@import "../css/colors"
@import "../css/vars"

$container-size = 38px

:local(.noticon)
  position: relative;
  display: inline-block;
  width: $container-size;
  height: $container-size;

  > div
    cursor: pointer;

:local(.noticon.disabled)
  opacity: 0.5

  > div
    cursor: default;

:local(.noticonOuter)
  position: absolute;
  display: inline-block;
  width: 32px;
  height: @width;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 1.5s ease;
  top: (($container-size - @width) / 2);
  left: (($container-size - @height) / 2);

:local(.noticonOuter.blink)
  // animation: noticon-blink-outerCircle 1.6s infinite

:local(.noticonInner)
  position: absolute;
  display: inline-block;
  width: 28px;
  height: @width;
  border-radius: 50%;
  background-color: $darkGray;
  top: (($container-size - @width) / 2);
  left: (($container-size - @height) / 2);

:local(.info)
  background-color: $blue;

:local(.warning)
  background-color: $yellow;

:local(.error)
  background-color: $red;

:local(.noticonStats)
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  margin-top: 1px
  font-family: $sansserif
  width: 100%;
  height: 100%;
  color: $backgroundGray

  i
    position: absolute;
    margin-top: -1px
    font-size: 26px
    color: $backgroundGray
    //transform: rotate(30deg)

:local(.noticonStats.blink)
  display: none

:local(.noticonBell)
  display: none;
  position: absolute;
  display: inline-block;
  width: 22px;
  height: @width;
  font-size: 30px;
  padding-right: 4px;
  top: 0px;
  left: 6px;
  color: $backgroundGray;

  i
    display: none;
    font-size: 26px!important;
    margin: 0!important;
    padding: 0!important;

:local(.noticonBell.blink)
  display: block
  animation: noticon-blink-bell 0.4s infinite
  animation-delay: 0.2

  i
    display: inline-block;


@keyframes noticon-blink-outerCircle
  0% { transform: scale(1); opacity: 1; }
  25% { transform: scale(1.2); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; }
  75% { transform: scale(1.2); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }

@keyframes noticon-blink-bell
  0% { transform: rotate(0deg); }
  25% { transform: rotate(25deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-25deg); }
  100% { transform: rotate(0deg); }
