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