]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
4 | $icon-font-path: '../../node_modules/bootstrap-sass/assets/fonts/bootstrap/'; | |
e203f2e0 | 5 | @import '_bootstrap'; |
63c4db6d | 6 | |
fa40cbc3 | 7 | @import '_fonts'; |
63c4db6d | 8 | |
d592e0a9 | 9 | @import '~video.js/dist/video-js.css'; |
c893d451 | 10 | |
2a19a1e4 C |
11 | $assets-path: '../assets/'; |
12 | @import './player/player'; | |
c893d451 | 13 | @import './loading-bar'; |
e31f6ad6 | 14 | |
bbe0f064 C |
15 | @import './primeng-custom'; |
16 | ||
383bfc83 C |
17 | [hidden] { |
18 | display: none !important; | |
19 | } | |
a64668c0 | 20 | |
b33f657c | 21 | body { |
8a8e02a4 | 22 | font-family: $main-fonts; |
b33f657c C |
23 | font-weight: $font-regular; |
24 | color: #000; | |
25 | } | |
26 | ||
73e09f27 C |
27 | #incompatible-browser { |
28 | display: none; | |
29 | text-align: center; | |
30 | position: absolute; | |
31 | width: 100%; | |
32 | top: 45%; | |
33 | } | |
34 | ||
07fa4c97 C |
35 | strong { |
36 | font-weight: $font-semibold; | |
37 | } | |
38 | ||
383bfc83 C |
39 | input.readonly { |
40 | /* Force blank on readonly inputs */ | |
41 | background-color: #fff !important; | |
0ac5edd9 | 42 | } |
43 | ||
d235f6b0 C |
44 | label { |
45 | font-weight: $font-bold; | |
46 | font-size: 15px; | |
09223546 C |
47 | } |
48 | ||
a2b817d3 C |
49 | .form-error { |
50 | display: block; | |
51 | color: $red-error; | |
52 | margin-top: 5px; | |
53 | } | |
54 | ||
55 | .input-error { | |
56 | border-color: $red-error !important; | |
57 | } | |
58 | ||
383bfc83 C |
59 | .glyphicon-black { |
60 | color: black; | |
61 | } | |
62 | ||
383bfc83 | 63 | .main-col { |
c30745f3 | 64 | margin-left: $menu-width; |
9bf9d2a5 | 65 | |
c30745f3 | 66 | .margin-content { |
d178b5c1 C |
67 | margin-left: $not-expanded-horizontal-margins; |
68 | margin-right: $not-expanded-horizontal-margins; | |
c30745f3 C |
69 | } |
70 | ||
71 | .sub-menu { | |
72 | background-color: #F7F7F7; | |
73 | width: 100%; | |
74 | height: 81px; | |
75 | margin-bottom: 30px; | |
76 | display: flex; | |
77 | align-items: center; | |
d178b5c1 | 78 | padding-left: $not-expanded-horizontal-margins; |
c30745f3 C |
79 | } |
80 | ||
81 | // Override some properties if the main content is expanded (no menu on the left) | |
82 | &.expanded { | |
83 | margin-left: 0; | |
84 | ||
85 | .margin-content { | |
86 | margin-left: $expanded-horizontal-margins; | |
87 | margin-right: $expanded-horizontal-margins; | |
88 | } | |
89 | ||
90 | .sub-menu { | |
91 | padding-left: $expanded-horizontal-margins; | |
92 | } | |
602eb142 | 93 | } |
383bfc83 | 94 | } |
602eb142 | 95 | |
59aa1e5e C |
96 | .title-page { |
97 | color: #000; | |
98 | font-size: 16px; | |
99 | display: inline-block; | |
100 | margin-right: 55px; | |
101 | font-weight: $font-semibold; | |
102 | @include disable-default-a-behaviour; | |
103 | ||
104 | &.active, &.title-page-single { | |
105 | border-bottom: 2px solid $orange-color; | |
106 | font-weight: $font-bold; | |
107 | margin-top: 30px; | |
108 | margin-bottom: 25px; | |
109 | } | |
cadb46d8 C |
110 | |
111 | &:hover, &:active, &:focus { | |
112 | color: #000; | |
04e0fc48 | 113 | } |
1952a538 C |
114 | |
115 | @media screen and (max-width: 500px) { | |
116 | margin-right: 20px; | |
117 | } | |
cadb46d8 | 118 | } |
04e0fc48 | 119 | |
cd83ea1b C |
120 | .admin-sub-header { |
121 | display: flex; | |
122 | align-items: center; | |
123 | margin-bottom: 30px; | |
124 | ||
08c1efbe | 125 | .form-sub-title { |
cd83ea1b C |
126 | flex-grow: 1; |
127 | } | |
128 | } | |
129 | ||
08c1efbe | 130 | .form-sub-title { |
04e0fc48 C |
131 | font-size: 20px; |
132 | font-weight: bold; | |
59aa1e5e C |
133 | } |
134 | ||
315cc0cc C |
135 | // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d |
136 | .glyphicon-refresh-animate { | |
4635f59d | 137 | animation: spin .7s infinite linear; |
315cc0cc C |
138 | } |
139 | ||
140 | @keyframes spin { | |
141 | from { transform: scale(1) rotate(0deg);} | |
142 | to { transform: scale(1) rotate(360deg);} | |
143 | } | |
144 | ||
04e0fc48 | 145 | // Bootstrap customizations |
7b272fd7 C |
146 | .dropdown-menu { |
147 | border-radius: 3px; | |
148 | box-shadow: 0 3px 6px; | |
149 | font-size: 15px; | |
150 | ||
151 | .dropdown-item { | |
152 | padding: 3px 15px; | |
153 | } | |
154 | ||
155 | a { | |
156 | color: #000 !important; | |
157 | } | |
158 | } | |
0727cab0 C |
159 | |
160 | .modal { | |
161 | .modal-header { | |
162 | border-bottom: none; | |
5f0805d3 | 163 | margin-bottom: 5px; |
0727cab0 | 164 | |
5f0805d3 C |
165 | .modal-title { |
166 | font-size: 20px; | |
167 | font-weight: $font-semibold; | |
168 | } | |
169 | ||
170 | .close { | |
171 | @include icon(24px); | |
172 | ||
173 | position: relative; | |
174 | right: -1px; | |
175 | float: right; | |
176 | background-image: url('../assets/images/global/cross.svg'); | |
177 | } | |
178 | } | |
179 | ||
180 | .inputs { | |
181 | margin-top: 40px; | |
182 | margin-bottom: 0; | |
183 | text-align: right; | |
184 | ||
185 | .action-button-cancel { | |
186 | @include peertube-button; | |
187 | @include grey-button; | |
188 | ||
189 | display: inline-block; | |
190 | margin-right: 10px; | |
191 | } | |
192 | ||
193 | .action-button-submit { | |
194 | @include peertube-button; | |
195 | @include orange-button; | |
0727cab0 C |
196 | } |
197 | } | |
198 | } | |
199 | ||
6de36768 C |
200 | tabset:not(.bootstrap) { |
201 | .nav { | |
202 | font-size: 16px !important; | |
04e0fc48 C |
203 | border: none !important; |
204 | ||
6de36768 C |
205 | .nav-item .nav-link { |
206 | margin-right: 30px; | |
207 | padding: 0; | |
208 | border-radius: 3px; | |
209 | border: none !important; | |
e600e1fe | 210 | |
6de36768 C |
211 | .tab-link { |
212 | display: flex !important; | |
213 | align-items: center; | |
214 | min-height: 30px !important; | |
215 | padding: 0 15px; | |
216 | } | |
04e0fc48 | 217 | |
6de36768 C |
218 | &, & a { |
219 | color: #000 !important; | |
220 | @include disable-default-a-behaviour; | |
221 | } | |
222 | ||
223 | &.active, &:hover { | |
224 | background-color: #F0F0F0; | |
225 | } | |
226 | ||
227 | &.active { | |
228 | font-weight: $font-semibold !important; | |
229 | } | |
04e0fc48 | 230 | } |
6de36768 C |
231 | } |
232 | } | |
04e0fc48 | 233 | |
6de36768 | 234 | tabset.bootstrap { |
bbe0f064 C |
235 | margin-left: 0; |
236 | ||
6de36768 C |
237 | .nav-item .nav-link { |
238 | &, & a { | |
239 | color: #000; | |
240 | @include disable-default-a-behaviour; | |
04e0fc48 C |
241 | } |
242 | } | |
04e0fc48 C |
243 | } |
244 | ||
0727cab0 C |
245 | .orange-button { |
246 | @include peertube-button; | |
247 | @include orange-button; | |
248 | } | |
249 | ||
250 | .orange-button-link { | |
251 | @include peertube-button-link; | |
252 | @include orange-button; | |
253 | } | |
254 | ||
255 | .grey-button { | |
256 | @include peertube-button; | |
257 | @include grey-button; | |
258 | } | |
259 | ||
260 | .grey-button-link { | |
261 | @include peertube-button-link; | |
262 | @include grey-button; | |
263 | } | |
20206dfb | 264 | |
fb4fd623 C |
265 | // In tables, don't have a hover different background |
266 | table { | |
267 | .action-button-edit, .action-button-delete { | |
268 | &:hover, &:active, &:focus, &[disabled], &.disabled { | |
269 | background-color: $grey-color !important; | |
270 | } | |
271 | } | |
272 | } | |
273 | ||
1f788f20 C |
274 | @media screen and (max-width: 900px) { |
275 | .main-col { | |
276 | &, &.expanded { | |
277 | .margin-content { | |
278 | margin-left: 50px; | |
279 | margin-right: 50px; | |
280 | } | |
dd778941 C |
281 | |
282 | .sub-menu { | |
283 | padding-left: 50px; | |
284 | } | |
1f788f20 C |
285 | } |
286 | } | |
287 | } | |
288 | ||
20206dfb | 289 | // On small screen, menu is absolute |
c8cf5952 | 290 | @media screen and (max-width: 600px) { |
20206dfb | 291 | .title-menu-left { |
c8cf5952 | 292 | width: 100% !important; |
20206dfb C |
293 | position: absolute !important; |
294 | z-index: 10000; | |
295 | } | |
296 | ||
297 | .main-col { | |
298 | margin-left: 0; | |
299 | ||
300 | &, &.expanded { | |
301 | .margin-content { | |
6693df9d C |
302 | margin-left: 15px; |
303 | margin-right: 15px; | |
20206dfb C |
304 | } |
305 | ||
306 | .sub-menu { | |
dd778941 | 307 | padding-left: 15px; |
20206dfb C |
308 | margin-bottom: 10px; |
309 | } | |
310 | ||
311 | input[type=text], input[type=password] { | |
312 | width: 100% !important; | |
313 | } | |
314 | } | |
315 | } | |
c8cf5952 C |
316 | |
317 | bs-dropdown-container { | |
318 | z-index: 10000; | |
319 | } | |
20206dfb | 320 | } |