diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-05-01 10:45:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 10:45:07 +0200 |
commit | 165ee2929bc76fc7f9985ae81cc33736820c7865 (patch) | |
tree | af89ec858c1a2177c36eef3bc12726eab2722ff1 /client/src/sass/application.scss | |
parent | 7a03209d28f3f31d706dee08ae487d2ca1926893 (diff) | |
download | PeerTube-165ee2929bc76fc7f9985ae81cc33736820c7865.tar.gz PeerTube-165ee2929bc76fc7f9985ae81cc33736820c7865.tar.zst PeerTube-165ee2929bc76fc7f9985ae81cc33736820c7865.zip |
Fix tables width, paginators, button on mobile / touchscreens (#2695)
Diffstat (limited to 'client/src/sass/application.scss')
-rw-r--r-- | client/src/sass/application.scss | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index ab0bf0a08..f54fecda8 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss | |||
@@ -267,7 +267,7 @@ table { | |||
267 | top: #{-($header-height + 20px)}; | 267 | top: #{-($header-height + 20px)}; |
268 | } | 268 | } |
269 | 269 | ||
270 | @media screen and (max-width: #{map-get($grid-breakpoints, xxl)}) { | 270 | @media screen and (max-width: #{breakpoint(xxl)}) { |
271 | .main-col { | 271 | .main-col { |
272 | &.expanded { | 272 | &.expanded { |
273 | .margin-content { | 273 | .margin-content { |
@@ -278,7 +278,7 @@ table { | |||
278 | } | 278 | } |
279 | } | 279 | } |
280 | 280 | ||
281 | @media screen and (max-width: #{map-get($grid-breakpoints, lg)}) { | 281 | @media screen and (max-width: #{breakpoint(lg)}) { |
282 | /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */ | 282 | /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */ |
283 | .main-col { | 283 | .main-col { |
284 | &, &.expanded { | 284 | &, &.expanded { |
@@ -343,6 +343,40 @@ table { | |||
343 | } | 343 | } |
344 | } | 344 | } |
345 | 345 | ||
346 | // overflow-databale responsive rules | ||
347 | @media screen and (max-width: #{breakpoint(xxl)}) { | ||
348 | .main-col { | ||
349 | &.expanded { | ||
350 | @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/2); | ||
351 | } | ||
352 | |||
353 | &:not(.expanded) { | ||
354 | @include overflow-datatable(breakpoint(lg), $not-expanded-horizontal-margins + $menu-width/2); | ||
355 | } | ||
356 | } | ||
357 | } | ||
358 | |||
359 | @media screen and (max-width: #{breakpoint(lg)}) { | ||
360 | .main-col { | ||
361 | &.expanded { | ||
362 | @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3); | ||
363 | } | ||
364 | |||
365 | &:not(.expanded) { | ||
366 | @include overflow-datatable(breakpoint(lg), $not-expanded-horizontal-margins + $menu-width/2); | ||
367 | } | ||
368 | } | ||
369 | } | ||
370 | |||
371 | @media screen and (max-width: $small-view) { | ||
372 | .main-col { | ||
373 | &:not(.expanded), | ||
374 | &.expanded { | ||
375 | @include overflow-datatable(breakpoint(lg), 15px); | ||
376 | } | ||
377 | } | ||
378 | } | ||
379 | |||
346 | @media screen and (min-width: $small-view) and (max-width: #{$small-view + $menu-width}) { | 380 | @media screen and (min-width: $small-view) and (max-width: #{$small-view + $menu-width}) { |
347 | .main-col { | 381 | .main-col { |
348 | &:not(.expanded) { | 382 | &:not(.expanded) { |