summaryrefslogtreecommitdiffstats
path: root/client/src/admin/scss/_topBar.scss
blob: 3fe5006b2575ed223939acaee65ee6207cb23f6e (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
@keyframes showTopMenu {
  0%   {transform: translateY(100%) scale(0.8) ; opacity: 0;}
  80%   {transform: translateY(100%) scale(1.1); opacity: 100%;}
  100%   {transform: translateY(100%) scale(1); opacity: 100%;}
}

.top-bar {
  width: 100%;
  text-align: right;
  white-space: nowrap;
  padding-bottom: 1em;


  &__fog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

.user {
  position: relative;
  display: inline-block;

  &__list {
    position: absolute;
    display: block;
    bottom: 0;
    right: 0;
    transform: translateY(100%);
    background: $background-menu;
    animation: showTopMenu .3s;
  }

  &__main-item {
    color: $text;
    display: block;
    padding: .5em;
    white-space: nowrap;
    transition: color .3s;
    cursor: pointer;

    &--active {
      background: $background-menu;
      color: $text-selected;
    }

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

  &__item {
    display: block;
    color: $text;
    padding: .5em;
    font-weight: normal;
    transition: color .3s;
    cursor: pointer;
    white-space: nowrap;
    text-align: right;

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

.lang-switch {
  display: inline-block;
  position: relative;

  &__list {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    background: $background-menu;
    animation: showTopMenu .3s;
  }

  &__main-item {
    transition: .3s color;
    padding: .5em;
    display: block;
    color: $text;
    font-weight: normal;
    cursor: pointer;

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

    &--active {
      background: $background-menu;
      color: $text-selected;
    }
  }

  &__item {
    padding: .5em;
    display: block;
    color: $text;
    font-weight: normal;
    cursor: pointer;
    transition: color .3s;

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