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