]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/menu/menu.component.scss
Automatically resize avatars
[github/Chocobozzz/PeerTube.git] / client / src / app / menu / menu.component.scss
CommitLineData
63c4db6d
C
1@import '_variables';
2@import '_mixins';
3
b33f657c
C
4menu {
5 background-color: $black-background;
6 margin: 0;
7 padding: 0;
8 height: 100%;
9 white-space: nowrap;
10 text-overflow: ellipsis;
11 overflow: hidden;
12 z-index: 1000;
13 color: $menu-color;
14
b33f657c
C
15 .logged-in-block {
16 height: 100px;
17 background-color: rgba(255, 255, 255, 0.15);
18 display: flex;
19 align-items: center;
20 justify-content: center;
21 margin-bottom: 35px;
22
2295ce6c
C
23 img {
24 margin-left: 20px;
25 margin-right: 10px;
26
27 @include avatar(34px);
28 }
29
b33f657c
C
30 .logged-in-info {
31 flex-grow: 1;
b33f657c
C
32
33 .logged-in-username {
34 font-size: 16px;
35 font-weight: $font-semibold;
c30745f3
C
36 color: $menu-color;
37 cursor: pointer;
38
39 @include disable-default-a-behaviour;
b33f657c
C
40 }
41
42 .logged-in-email {
43 font-size: 13px;
44 color: #C6C6C6;
cadb46d8
C
45 white-space: nowrap;
46 overflow: hidden;
47 text-overflow: ellipsis;
48 max-width: 140px;
b33f657c
C
49 }
50 }
51
52 .logged-in-more {
53 margin-right: 20px;
54
55 .glyphicon {
56 cursor: pointer;
57 font-size: 18px;
58 }
59 }
60 }
61
62 .button-block {
63 margin: 30px 25px 35px 25px;
64
65 .login-button, .create-account-button {
66 font-weight: $font-semibold;
67 font-size: 15px;
68 height: $button-height;
69 line-height: $button-height;
9b7d1c72 70 width: 100%;
b33f657c
C
71 border-radius: 3px;
72 text-align: center;
c30745f3
C
73 color: $menu-color;
74 display: block;
75 cursor: pointer;
76 margin-bottom: 15px;
77
78 @include disable-default-a-behaviour;
b33f657c
C
79
80 &.login-button {
81 background-color: $orange-color;
82 margin-bottom: 10px;
83 }
84
85 &.create-account-button {
86 background-color: rgba(255, 255, 255, 0.25);
87 }
88 }
89 }
90
91 .block-title {
92 text-transform: uppercase;
93 font-weight: $font-bold; // Bold
94 font-size: 13px;
95 margin-bottom: 25px;
96 }
97
98 .panel-block {
99 margin-bottom: 45px;
100 margin-left: 26px;
101
102 a {
103 display: flex;
c30745f3
C
104 color: $menu-color;
105 cursor: pointer;
106 height: 22px;
107 line-height: 22px;
108 font-size: 16px;
109 margin-bottom: 15px;
110 @include disable-default-a-behaviour;
b33f657c
C
111
112 .icon {
0727cab0
C
113 @include icon(22px);
114
b33f657c 115 margin-right: 18px;
b33f657c
C
116
117 &.icon-videos-trending {
118 position: relative;
119 top: -2px;
d2cc03aa 120 background-image: url('../../assets/images/menu/trending.svg');
b33f657c
C
121 }
122
123 &.icon-videos-recently-added {
124 width: 23px;
125 height: 23px;
126 position: relative;
127 top: -1px;
d2cc03aa 128 background-image: url('../../assets/images/menu/recently-added.svg');
b33f657c
C
129 }
130
131 &.icon-administration {
132 width: 23px;
133 height: 23px;
134
d2cc03aa 135 background-image: url('../../assets/images/menu/administration.svg');
b33f657c
C
136 }
137 }
138 }
139 }
b33f657c 140}
9b7d1c72
C
141
142@media screen and (max-width: 800px) {
143 menu {
144 .logged-in-block {
145 padding-left: 10px;
146
147 img {
148 display: none;
149 }
150
151 .logged-in-info {
152 .logged-in-username {
153 font-size: 14px;
154 }
155
156 .logged-in-email {
157 font-size: 11px;
158 max-width: 120px;
159 }
160 }
161
162 .logged-in-more {
163 margin-right: 5px;
164
165 .login-button, .create-account-button {
166 font-weight: $font-semibold;
167 font-size: 15px;
168 height: $button-height;
169 line-height: $button-height;
170 width: 190px;
171 }
172 }
173 }
174
175 .button-block {
176 margin: 20px 10px 25px 10px;
177
178 .login-button, .create-account-button {
179 font-size: 13px;
180 }
181 }
182
183 .panel-block {
184 margin-bottom: 30px;
185 margin-left: 10px;
186
187 a {
188 font-size: 14px;
189
190 .icon {
191 margin-right: 10px;
192 }
193 }
194 }
195 }
196}