]>
Commit | Line | Data |
---|---|---|
161b061d | 1 | $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; |
63c4db6d | 2 | |
dcbc29d5 C |
3 | @import '_variables'; |
4 | @import '_mixins'; | |
5 | ||
fa40cbc3 | 6 | @import '_fonts'; |
63c4db6d | 7 | |
d592e0a9 | 8 | @import '~video.js/dist/video-js.css'; |
c893d451 | 9 | |
2a19a1e4 | 10 | $assets-path: '../assets/'; |
b335ccec | 11 | @import './player/index'; |
c893d451 | 12 | @import './loading-bar'; |
e31f6ad6 | 13 | |
2f4c784a | 14 | @import './bootstrap'; |
bbe0f064 C |
15 | @import './primeng-custom'; |
16 | ||
383bfc83 C |
17 | [hidden] { |
18 | display: none !important; | |
19 | } | |
a64668c0 | 20 | |
b33f657c | 21 | body { |
dcbc29d5 C |
22 | /*** theme ***/ |
23 | // now beware node-sass requires interpolation | |
24 | // for css custom properties #{$var} | |
25 | --mainColor: #{$orange-color}; | |
457bb213 | 26 | --mainHoverColor: #{$orange-hover-color}; |
dcbc29d5 C |
27 | --mainBackgroundColor: #{$bg-color}; |
28 | --mainForegroundColor: #{$fg-color}; | |
1d9d9cfd RK |
29 | --menuBackgroundColor: #{$menu-background}; |
30 | --menuForegroundColor: #{$menu-color}; | |
dcbc29d5 | 31 | --submenuColor: #{$sub-menu-color}; |
db6d617d | 32 | --inputColor: #{$input-background-color}; |
dcbc29d5 C |
33 | --inputPlaceholderColor: #{$input-placeholder-color}; |
34 | ||
8a8e02a4 | 35 | font-family: $main-fonts; |
b33f657c | 36 | font-weight: $font-regular; |
9a0fc840 | 37 | color: var(--mainForegroundColor); |
b34a444e | 38 | font-size: 14px; |
b33f657c C |
39 | } |
40 | ||
73e09f27 C |
41 | #incompatible-browser { |
42 | display: none; | |
43 | text-align: center; | |
44 | position: absolute; | |
45 | width: 100%; | |
46 | top: 45%; | |
47 | } | |
48 | ||
07fa4c97 C |
49 | strong { |
50 | font-weight: $font-semibold; | |
51 | } | |
52 | ||
383bfc83 C |
53 | input.readonly { |
54 | /* Force blank on readonly inputs */ | |
20c3a59e | 55 | background-color: var(--inputColor) !important; |
0ac5edd9 | 56 | } |
57 | ||
63347a0f C |
58 | input, textarea { |
59 | outline: none; | |
20c3a59e | 60 | color: var(--mainForegroundColor); |
63347a0f C |
61 | } |
62 | ||
a7f9fae9 C |
63 | .btn-outline-secondary { |
64 | border-color: $input-border-color; | |
65 | } | |
66 | ||
d235f6b0 C |
67 | label { |
68 | font-weight: $font-bold; | |
69 | font-size: 15px; | |
09223546 C |
70 | } |
71 | ||
a2b817d3 C |
72 | .form-error { |
73 | display: block; | |
41a676db | 74 | color: $red; |
a2b817d3 C |
75 | margin-top: 5px; |
76 | } | |
77 | ||
78 | .input-error { | |
41a676db | 79 | border-color: $red !important; |
a2b817d3 C |
80 | } |
81 | ||
2d9fea16 RK |
82 | .fullWidth { |
83 | width: 100%; | |
84 | margin-left: auto; | |
85 | margin-right: auto; | |
86 | max-width: initial; | |
87 | } | |
88 | ||
383bfc83 C |
89 | .glyphicon-black { |
90 | color: black; | |
91 | } | |
92 | ||
383bfc83 | 93 | .main-col { |
c30745f3 | 94 | margin-left: $menu-width; |
b34a444e | 95 | width: auto; |
9bf9d2a5 | 96 | |
c30745f3 | 97 | .margin-content { |
d178b5c1 C |
98 | margin-left: $not-expanded-horizontal-margins; |
99 | margin-right: $not-expanded-horizontal-margins; | |
b34a444e | 100 | flex-grow: 1; |
c30745f3 C |
101 | } |
102 | ||
103 | .sub-menu { | |
9a0fc840 | 104 | background-color: var(--submenuColor); |
c30745f3 C |
105 | width: 100%; |
106 | height: 81px; | |
bce47964 | 107 | margin-bottom: $sub-menu-margin-bottom; |
c30745f3 C |
108 | display: flex; |
109 | align-items: center; | |
d178b5c1 | 110 | padding-left: $not-expanded-horizontal-margins; |
22a16e36 | 111 | padding-right: $not-expanded-horizontal-margins; |
c30745f3 C |
112 | } |
113 | ||
114 | // Override some properties if the main content is expanded (no menu on the left) | |
115 | &.expanded { | |
116 | margin-left: 0; | |
117 | ||
118 | .margin-content { | |
119 | margin-left: $expanded-horizontal-margins; | |
120 | margin-right: $expanded-horizontal-margins; | |
121 | } | |
122 | ||
123 | .sub-menu { | |
124 | padding-left: $expanded-horizontal-margins; | |
22a16e36 | 125 | padding-right: $expanded-horizontal-margins; |
c30745f3 | 126 | } |
602eb142 | 127 | } |
383bfc83 | 128 | } |
602eb142 | 129 | |
59aa1e5e | 130 | .title-page { |
9a0fc840 | 131 | color: var(--mainForegroundColor); |
59aa1e5e C |
132 | font-size: 16px; |
133 | display: inline-block; | |
134 | margin-right: 55px; | |
135 | font-weight: $font-semibold; | |
136 | @include disable-default-a-behaviour; | |
137 | ||
138 | &.active, &.title-page-single { | |
9a0fc840 | 139 | border-bottom: 2px solid var(--mainColor); |
59aa1e5e C |
140 | font-weight: $font-bold; |
141 | margin-top: 30px; | |
142 | margin-bottom: 25px; | |
143 | } | |
cadb46d8 C |
144 | |
145 | &:hover, &:active, &:focus { | |
9a0fc840 | 146 | color: var(--mainForegroundColor); |
04e0fc48 | 147 | } |
1952a538 C |
148 | |
149 | @media screen and (max-width: 500px) { | |
2c3abc4f | 150 | margin-right: 15px; |
1952a538 | 151 | } |
cadb46d8 | 152 | } |
04e0fc48 | 153 | |
cd83ea1b C |
154 | .admin-sub-header { |
155 | display: flex; | |
156 | align-items: center; | |
157 | margin-bottom: 30px; | |
158 | ||
08c1efbe | 159 | .form-sub-title { |
cd83ea1b C |
160 | flex-grow: 1; |
161 | } | |
65b247dd C |
162 | |
163 | .admin-sub-nav a { | |
164 | @include disable-default-a-behaviour; | |
165 | ||
166 | font-size: 16px; | |
9a0fc840 | 167 | color: var(--mainForegroundColor); |
65b247dd C |
168 | padding: 5px 15px; |
169 | border-radius: 0.25rem; | |
170 | ||
171 | &.active { | |
172 | font-weight: $font-semibold; | |
173 | background-color: #f0f0f0; | |
9a0fc840 | 174 | color: #000; |
65b247dd C |
175 | } |
176 | } | |
cd83ea1b C |
177 | } |
178 | ||
08c1efbe | 179 | .form-sub-title { |
04e0fc48 C |
180 | font-size: 20px; |
181 | font-weight: bold; | |
59aa1e5e C |
182 | } |
183 | ||
315cc0cc C |
184 | @keyframes spin { |
185 | from { transform: scale(1) rotate(0deg);} | |
186 | to { transform: scale(1) rotate(360deg);} | |
187 | } | |
188 | ||
0727cab0 C |
189 | .orange-button { |
190 | @include peertube-button; | |
191 | @include orange-button; | |
192 | } | |
193 | ||
194 | .orange-button-link { | |
195 | @include peertube-button-link; | |
196 | @include orange-button; | |
197 | } | |
198 | ||
199 | .grey-button { | |
200 | @include peertube-button; | |
201 | @include grey-button; | |
202 | } | |
203 | ||
204 | .grey-button-link { | |
205 | @include peertube-button-link; | |
206 | @include grey-button; | |
207 | } | |
20206dfb | 208 | |
fb4fd623 C |
209 | // In tables, don't have a hover different background |
210 | table { | |
211 | .action-button-edit, .action-button-delete { | |
212 | &:hover, &:active, &:focus, &[disabled], &.disabled { | |
457bb213 | 213 | background-color: $grey-background-color !important; |
fb4fd623 C |
214 | } |
215 | } | |
216 | } | |
217 | ||
2d3741d6 C |
218 | .no-results { |
219 | height: 40vh; | |
220 | display: flex; | |
221 | align-items: center; | |
222 | justify-content: center; | |
223 | font-size: 16px; | |
224 | font-weight: $font-semibold; | |
225 | } | |
226 | ||
19f22055 | 227 | @media screen and (max-width: 1600px) { |
2303a803 RK |
228 | .main-col { |
229 | &.expanded { | |
230 | .margin-content { | |
231 | margin-left: $expanded-horizontal-margins/2; | |
232 | margin-right: $expanded-horizontal-margins/2; | |
233 | } | |
234 | } | |
235 | } | |
236 | } | |
237 | ||
1f788f20 C |
238 | @media screen and (max-width: 900px) { |
239 | .main-col { | |
2303a803 | 240 | &.expanded { |
1f788f20 | 241 | .margin-content { |
2303a803 RK |
242 | margin-left: $expanded-horizontal-margins/3; |
243 | margin-right: $expanded-horizontal-margins/3; | |
1f788f20 | 244 | } |
dd778941 C |
245 | |
246 | .sub-menu { | |
247 | padding-left: 50px; | |
22a16e36 C |
248 | |
249 | .title-page { | |
250 | font-size: 15px; | |
251 | } | |
dd778941 | 252 | } |
1f788f20 C |
253 | } |
254 | } | |
255 | } | |
256 | ||
8ff3f883 | 257 | @media screen and (max-width: $small-view) { |
20206dfb C |
258 | .main-col { |
259 | margin-left: 0; | |
260 | ||
261 | &, &.expanded { | |
262 | .margin-content { | |
6693df9d C |
263 | margin-left: 15px; |
264 | margin-right: 15px; | |
20206dfb C |
265 | } |
266 | ||
267 | .sub-menu { | |
2c3abc4f C |
268 | width: 100vw; |
269 | overflow-x: auto; | |
dd778941 | 270 | padding-left: 15px; |
22a16e36 | 271 | padding-right: 15px; |
20206dfb C |
272 | margin-bottom: 10px; |
273 | } | |
274 | ||
275 | input[type=text], input[type=password] { | |
276 | width: 100% !important; | |
277 | } | |
278 | } | |
279 | } | |
457bb213 | 280 | } |