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