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