]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
8afc19a6 C |
4 | .menu-wrapper { |
5 | position: fixed; | |
6 | height: calc(100vh - #{$header-height}); | |
7 | padding: 0; | |
8 | width: $menu-width; | |
9 | } | |
10 | ||
b33f657c C |
11 | menu { |
12 | background-color: $black-background; | |
13 | margin: 0; | |
14 | padding: 0; | |
15 | height: 100%; | |
16 | white-space: nowrap; | |
17 | text-overflow: ellipsis; | |
18 | overflow: hidden; | |
19 | z-index: 1000; | |
20 | color: $menu-color; | |
8afc19a6 C |
21 | overflow-y: auto; |
22 | display: flex; | |
23 | flex-direction: column; | |
24 | ||
25 | .top-menu { | |
26 | flex-grow: 1; | |
27 | } | |
b33f657c | 28 | |
b33f657c C |
29 | .logged-in-block { |
30 | height: 100px; | |
31 | background-color: rgba(255, 255, 255, 0.15); | |
32 | display: flex; | |
33 | align-items: center; | |
34 | justify-content: center; | |
35 | margin-bottom: 35px; | |
36 | ||
2295ce6c | 37 | img { |
4e8c8728 C |
38 | @include avatar(34px); |
39 | ||
2295ce6c C |
40 | margin-left: 20px; |
41 | margin-right: 10px; | |
2295ce6c C |
42 | } |
43 | ||
b33f657c C |
44 | .logged-in-info { |
45 | flex-grow: 1; | |
b33f657c C |
46 | |
47 | .logged-in-username { | |
48 | font-size: 16px; | |
49 | font-weight: $font-semibold; | |
c30745f3 C |
50 | color: $menu-color; |
51 | cursor: pointer; | |
52 | ||
53 | @include disable-default-a-behaviour; | |
b33f657c C |
54 | } |
55 | ||
56 | .logged-in-email { | |
57 | font-size: 13px; | |
58 | color: #C6C6C6; | |
cadb46d8 C |
59 | white-space: nowrap; |
60 | overflow: hidden; | |
61 | text-overflow: ellipsis; | |
62 | max-width: 140px; | |
b33f657c C |
63 | } |
64 | } | |
65 | ||
66 | .logged-in-more { | |
67 | margin-right: 20px; | |
68 | ||
69 | .glyphicon { | |
70 | cursor: pointer; | |
71 | font-size: 18px; | |
63347a0f C |
72 | |
73 | &::after { | |
74 | border: none; | |
75 | } | |
b33f657c C |
76 | } |
77 | } | |
78 | } | |
79 | ||
80 | .button-block { | |
81 | margin: 30px 25px 35px 25px; | |
82 | ||
9bce8112 C |
83 | .login-button { |
84 | @include peertube-button-link; | |
85 | @include orange-button; | |
86 | ||
c30745f3 | 87 | display: block; |
9bce8112 C |
88 | width: 100%; |
89 | margin-bottom: 10px; | |
90 | } | |
c30745f3 | 91 | |
9bce8112 C |
92 | .create-account-button { |
93 | @include peertube-button-link; | |
b33f657c | 94 | |
9bce8112 C |
95 | display: block; |
96 | width: 100%; | |
97 | ||
98 | color: #fff; | |
99 | background-color: rgba(255, 255, 255, 0.25); | |
b33f657c | 100 | |
9bce8112 C |
101 | &:hover { |
102 | background-color: rgba(255, 255, 255, 0.28); | |
b33f657c C |
103 | } |
104 | } | |
105 | } | |
106 | ||
107 | .block-title { | |
108 | text-transform: uppercase; | |
109 | font-weight: $font-bold; // Bold | |
110 | font-size: 13px; | |
111 | margin-bottom: 25px; | |
829be6e8 | 112 | margin-left: 26px; |
b33f657c C |
113 | } |
114 | ||
115 | .panel-block { | |
116 | margin-bottom: 45px; | |
b33f657c C |
117 | |
118 | a { | |
119 | display: flex; | |
829be6e8 | 120 | align-items: center; |
8afc19a6 | 121 | padding-left: $menu-left-padding; |
c30745f3 C |
122 | color: $menu-color; |
123 | cursor: pointer; | |
829be6e8 | 124 | height: 40px; |
c30745f3 | 125 | font-size: 16px; |
829be6e8 | 126 | transition: background-color .1s ease-in-out; |
c30745f3 | 127 | @include disable-default-a-behaviour; |
b33f657c | 128 | |
829be6e8 CL |
129 | &:hover { |
130 | background-color: rgba(255, 255, 255, 0.15); | |
131 | } | |
132 | ||
b33f657c | 133 | .icon { |
0727cab0 C |
134 | @include icon(22px); |
135 | ||
b33f657c | 136 | margin-right: 18px; |
b33f657c C |
137 | |
138 | &.icon-videos-trending { | |
139 | position: relative; | |
140 | top: -2px; | |
d2cc03aa | 141 | background-image: url('../../assets/images/menu/trending.svg'); |
b33f657c C |
142 | } |
143 | ||
144 | &.icon-videos-recently-added { | |
145 | width: 23px; | |
146 | height: 23px; | |
147 | position: relative; | |
148 | top: -1px; | |
d2cc03aa | 149 | background-image: url('../../assets/images/menu/recently-added.svg'); |
b33f657c C |
150 | } |
151 | ||
066e94c5 C |
152 | &.icon-videos-local { |
153 | width: 23px; | |
154 | height: 23px; | |
155 | position: relative; | |
156 | top: -1px; | |
157 | background-image: url('../../assets/images/menu/home.svg'); | |
158 | } | |
159 | ||
b33f657c C |
160 | &.icon-administration { |
161 | width: 23px; | |
162 | height: 23px; | |
163 | ||
d2cc03aa | 164 | background-image: url('../../assets/images/menu/administration.svg'); |
b33f657c | 165 | } |
36f9424f C |
166 | |
167 | &.icon-about { | |
168 | width: 23px; | |
169 | height: 23px; | |
170 | ||
171 | background-image: url('../../assets/images/menu/about.svg'); | |
172 | } | |
b33f657c C |
173 | } |
174 | } | |
175 | } | |
8afc19a6 C |
176 | |
177 | .footer { | |
178 | margin-bottom: 15px; | |
179 | padding-left: $menu-left-padding; | |
180 | ||
181 | .language { | |
182 | display: inline-block; | |
183 | color: $menu-bottom-color; | |
184 | cursor: pointer; | |
185 | font-size: 12px; | |
186 | font-weight: $font-semibold; | |
187 | ||
188 | .icon { | |
189 | @include icon(28px); | |
190 | opacity: 0.9; | |
191 | ||
192 | &.icon-language { | |
193 | position: relative; | |
194 | top: -1px; | |
195 | width: 28px; | |
196 | height: 24px; | |
197 | ||
198 | background-image: url('../../assets/images/menu/language.png'); | |
199 | } | |
200 | ||
201 | &:hover { | |
202 | opacity: 1; | |
203 | } | |
204 | } | |
205 | } | |
206 | } | |
b33f657c | 207 | } |