]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/menu/menu.component.scss
Sort video captions
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / menu.component.scss
CommitLineData
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
11menu {
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;
72 }
73 }
74 }
75
76 .button-block {
77 margin: 30px 25px 35px 25px;
78
9bce8112
C
79 .login-button {
80 @include peertube-button-link;
81 @include orange-button;
82
c30745f3 83 display: block;
9bce8112
C
84 width: 100%;
85 margin-bottom: 10px;
86 }
c30745f3 87
9bce8112
C
88 .create-account-button {
89 @include peertube-button-link;
b33f657c 90
9bce8112
C
91 display: block;
92 width: 100%;
93
94 color: #fff;
95 background-color: rgba(255, 255, 255, 0.25);
b33f657c 96
9bce8112
C
97 &:hover {
98 background-color: rgba(255, 255, 255, 0.28);
b33f657c
C
99 }
100 }
101 }
102
103 .block-title {
104 text-transform: uppercase;
105 font-weight: $font-bold; // Bold
106 font-size: 13px;
107 margin-bottom: 25px;
829be6e8 108 margin-left: 26px;
b33f657c
C
109 }
110
111 .panel-block {
112 margin-bottom: 45px;
b33f657c
C
113
114 a {
115 display: flex;
829be6e8 116 align-items: center;
8afc19a6 117 padding-left: $menu-left-padding;
c30745f3
C
118 color: $menu-color;
119 cursor: pointer;
829be6e8 120 height: 40px;
c30745f3 121 font-size: 16px;
829be6e8 122 transition: background-color .1s ease-in-out;
c30745f3 123 @include disable-default-a-behaviour;
b33f657c 124
829be6e8
CL
125 &:hover {
126 background-color: rgba(255, 255, 255, 0.15);
127 }
128
b33f657c 129 .icon {
0727cab0
C
130 @include icon(22px);
131
b33f657c 132 margin-right: 18px;
b33f657c
C
133
134 &.icon-videos-trending {
135 position: relative;
136 top: -2px;
d2cc03aa 137 background-image: url('../../assets/images/menu/trending.svg');
b33f657c
C
138 }
139
140 &.icon-videos-recently-added {
141 width: 23px;
142 height: 23px;
143 position: relative;
144 top: -1px;
d2cc03aa 145 background-image: url('../../assets/images/menu/recently-added.svg');
b33f657c
C
146 }
147
066e94c5
C
148 &.icon-videos-local {
149 width: 23px;
150 height: 23px;
151 position: relative;
152 top: -1px;
153 background-image: url('../../assets/images/menu/home.svg');
154 }
155
b33f657c
C
156 &.icon-administration {
157 width: 23px;
158 height: 23px;
159
d2cc03aa 160 background-image: url('../../assets/images/menu/administration.svg');
b33f657c 161 }
36f9424f
C
162
163 &.icon-about {
164 width: 23px;
165 height: 23px;
166
167 background-image: url('../../assets/images/menu/about.svg');
168 }
b33f657c
C
169 }
170 }
171 }
8afc19a6
C
172
173 .footer {
174 margin-bottom: 15px;
175 padding-left: $menu-left-padding;
176
177 .language {
178 display: inline-block;
179 color: $menu-bottom-color;
180 cursor: pointer;
181 font-size: 12px;
182 font-weight: $font-semibold;
183
184 .icon {
185 @include icon(28px);
186 opacity: 0.9;
187
188 &.icon-language {
189 position: relative;
190 top: -1px;
191 width: 28px;
192 height: 24px;
193
194 background-image: url('../../assets/images/menu/language.png');
195 }
196
197 &:hover {
198 opacity: 1;
199 }
200 }
201 }
202 }
b33f657c 203}