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