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