]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/application.scss
Upgrade to bootstrap 4 first step
[github/Chocobozzz/PeerTube.git] / client / src / sass / application.scss
CommitLineData
63c4db6d
C
1@import '_variables';
2@import '_mixins';
3
b34a444e 4$icon-font-path: '../../node_modules/@neos21/bootstrap3-glyphicons/assets/fonts/';
e203f2e0 5@import '_bootstrap';
63c4db6d 6
fa40cbc3 7@import '_fonts';
63c4db6d 8
d592e0a9 9@import '~video.js/dist/video-js.css';
c893d451 10
2a19a1e4
C
11$assets-path: '../assets/';
12@import './player/player';
c893d451 13@import './loading-bar';
e31f6ad6 14
bbe0f064
C
15@import './primeng-custom';
16
383bfc83
C
17[hidden] {
18 display: none !important;
19}
a64668c0 20
b33f657c 21body {
8a8e02a4 22 font-family: $main-fonts;
b33f657c
C
23 font-weight: $font-regular;
24 color: #000;
b34a444e 25 font-size: 14px;
b33f657c
C
26}
27
73e09f27
C
28#incompatible-browser {
29 display: none;
30 text-align: center;
31 position: absolute;
32 width: 100%;
33 top: 45%;
34}
35
07fa4c97
C
36strong {
37 font-weight: $font-semibold;
38}
39
383bfc83
C
40input.readonly {
41 /* Force blank on readonly inputs */
42 background-color: #fff !important;
0ac5edd9 43}
44
d235f6b0
C
45label {
46 font-weight: $font-bold;
47 font-size: 15px;
09223546
C
48}
49
a2b817d3
C
50.form-error {
51 display: block;
52 color: $red-error;
53 margin-top: 5px;
54}
55
56.input-error {
57 border-color: $red-error !important;
58}
59
383bfc83
C
60.glyphicon-black {
61 color: black;
62}
63
383bfc83 64.main-col {
c30745f3 65 margin-left: $menu-width;
b34a444e 66 width: auto;
9bf9d2a5 67
c30745f3 68 .margin-content {
d178b5c1
C
69 margin-left: $not-expanded-horizontal-margins;
70 margin-right: $not-expanded-horizontal-margins;
b34a444e 71 flex-grow: 1;
c30745f3
C
72 }
73
74 .sub-menu {
75 background-color: #F7F7F7;
76 width: 100%;
77 height: 81px;
78 margin-bottom: 30px;
79 display: flex;
80 align-items: center;
d178b5c1 81 padding-left: $not-expanded-horizontal-margins;
c30745f3
C
82 }
83
84 // Override some properties if the main content is expanded (no menu on the left)
85 &.expanded {
86 margin-left: 0;
87
88 .margin-content {
89 margin-left: $expanded-horizontal-margins;
90 margin-right: $expanded-horizontal-margins;
91 }
92
93 .sub-menu {
94 padding-left: $expanded-horizontal-margins;
95 }
602eb142 96 }
383bfc83 97}
602eb142 98
59aa1e5e
C
99.title-page {
100 color: #000;
101 font-size: 16px;
102 display: inline-block;
103 margin-right: 55px;
104 font-weight: $font-semibold;
105 @include disable-default-a-behaviour;
106
107 &.active, &.title-page-single {
108 border-bottom: 2px solid $orange-color;
109 font-weight: $font-bold;
110 margin-top: 30px;
111 margin-bottom: 25px;
112 }
cadb46d8
C
113
114 &:hover, &:active, &:focus {
115 color: #000;
04e0fc48 116 }
1952a538
C
117
118 @media screen and (max-width: 500px) {
119 margin-right: 20px;
120 }
cadb46d8 121}
04e0fc48 122
cd83ea1b
C
123.admin-sub-header {
124 display: flex;
125 align-items: center;
126 margin-bottom: 30px;
127
08c1efbe 128 .form-sub-title {
cd83ea1b
C
129 flex-grow: 1;
130 }
131}
132
08c1efbe 133.form-sub-title {
04e0fc48
C
134 font-size: 20px;
135 font-weight: bold;
59aa1e5e
C
136}
137
315cc0cc
C
138// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
139.glyphicon-refresh-animate {
4635f59d 140 animation: spin .7s infinite linear;
315cc0cc
C
141}
142
143@keyframes spin {
144 from { transform: scale(1) rotate(0deg);}
145 to { transform: scale(1) rotate(360deg);}
146}
147
04e0fc48 148// Bootstrap customizations
7b272fd7
C
149.dropdown-menu {
150 border-radius: 3px;
151 box-shadow: 0 3px 6px;
152 font-size: 15px;
153
154 .dropdown-item {
155 padding: 3px 15px;
156 }
157
158 a {
159 color: #000 !important;
160 }
161}
0727cab0
C
162
163.modal {
164 .modal-header {
165 border-bottom: none;
5f0805d3 166 margin-bottom: 5px;
0727cab0 167
5f0805d3
C
168 .modal-title {
169 font-size: 20px;
170 font-weight: $font-semibold;
171 }
172
173 .close {
174 @include icon(24px);
175
176 position: relative;
177 right: -1px;
178 float: right;
179 background-image: url('../assets/images/global/cross.svg');
180 }
181 }
182
183 .inputs {
184 margin-top: 40px;
185 margin-bottom: 0;
186 text-align: right;
187
188 .action-button-cancel {
189 @include peertube-button;
190 @include grey-button;
191
192 display: inline-block;
193 margin-right: 10px;
194 }
195
196 .action-button-submit {
197 @include peertube-button;
198 @include orange-button;
0727cab0
C
199 }
200 }
201}
202
6de36768
C
203tabset:not(.bootstrap) {
204 .nav {
205 font-size: 16px !important;
04e0fc48
C
206 border: none !important;
207
6de36768
C
208 .nav-item .nav-link {
209 margin-right: 30px;
210 padding: 0;
211 border-radius: 3px;
212 border: none !important;
e600e1fe 213
6de36768
C
214 .tab-link {
215 display: flex !important;
216 align-items: center;
217 min-height: 30px !important;
218 padding: 0 15px;
219 }
04e0fc48 220
6de36768
C
221 &, & a {
222 color: #000 !important;
223 @include disable-default-a-behaviour;
224 }
225
226 &.active, &:hover {
227 background-color: #F0F0F0;
228 }
229
230 &.active {
231 font-weight: $font-semibold !important;
232 }
04e0fc48 233 }
6de36768
C
234 }
235}
04e0fc48 236
6de36768 237tabset.bootstrap {
bbe0f064
C
238 margin-left: 0;
239
6de36768
C
240 .nav-item .nav-link {
241 &, & a {
242 color: #000;
243 @include disable-default-a-behaviour;
04e0fc48
C
244 }
245 }
04e0fc48
C
246}
247
0727cab0
C
248.orange-button {
249 @include peertube-button;
250 @include orange-button;
251}
252
253.orange-button-link {
254 @include peertube-button-link;
255 @include orange-button;
256}
257
258.grey-button {
259 @include peertube-button;
260 @include grey-button;
261}
262
263.grey-button-link {
264 @include peertube-button-link;
265 @include grey-button;
266}
20206dfb 267
fb4fd623
C
268// In tables, don't have a hover different background
269table {
270 .action-button-edit, .action-button-delete {
271 &:hover, &:active, &:focus, &[disabled], &.disabled {
272 background-color: $grey-color !important;
273 }
274 }
275}
276
1f788f20
C
277@media screen and (max-width: 900px) {
278 .main-col {
279 &, &.expanded {
280 .margin-content {
281 margin-left: 50px;
282 margin-right: 50px;
283 }
dd778941
C
284
285 .sub-menu {
286 padding-left: 50px;
287 }
1f788f20
C
288 }
289 }
290}
291
c8cf5952 292@media screen and (max-width: 600px) {
8afc19a6 293 .menu-wrapper {
c8cf5952 294 width: 100% !important;
20206dfb
C
295 z-index: 10000;
296 }
297
298 .main-col {
299 margin-left: 0;
300
301 &, &.expanded {
302 .margin-content {
6693df9d
C
303 margin-left: 15px;
304 margin-right: 15px;
20206dfb
C
305 }
306
307 .sub-menu {
dd778941 308 padding-left: 15px;
20206dfb
C
309 margin-bottom: 10px;
310 }
311
312 input[type=text], input[type=password] {
313 width: 100% !important;
314 }
315 }
316 }
c8cf5952
C
317
318 bs-dropdown-container {
319 z-index: 10000;
320 }
20206dfb 321}