summaryrefslogtreecommitdiffstats
path: root/client/src/login/scss/_loginPanel.scss
blob: b105784899c7781ca97373450f43861bfd20d32d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.login-panel {
  text-align: center;
  padding: 1.5em;

  &__form {
    display: inline-block;
    width: 100%;
    max-width: 400px;
  }

  @keyframes shine {
    0% {background-size: 220% 100%;}
    7% {background-position: 0 100%;}
    100% {background-position: 0 100%;}
  }

  &__header {
    color: $text;
    font-size: 1.75em;
    line-height: 1.5;
    margin-bottom: 4em;
    position: relative;
    display: inline-block;
    color: $text;
    overflow: hidden;
    background: linear-gradient(to right, $text 50%, $text-selected 55%, $text 60%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: 110%;
    animation: shine 15s ease-out;
    background-size: 220% 100%;
    animation-iteration-count: infinite;
    animation-delay: 8s;
  }

  &__button {
    display: inline-block;
    color: $text-inactive;
    background: $background;
    font-size: 1.25em;
    border-radius: 1em;
    border: 2px solid $text-inactive;
    padding: .5em 1.5em;
    margin: 0 auto;
    transition: .3s color, .3s background;

    &.active {
      cursor: pointer;
      background: $background;
      color: $text-selected;
      border: 2px solid $text-selected;

      &:hover {
        background: $text-selected;
        color: $background;
      }
    }
  }

}