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