aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/application.scss
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-01 11:10:27 +0200
committerChocobozzz <me@florianbigard.com>2021-04-01 16:54:49 +0200
commit0f7407d926cf7774f8f730dba08327569c11680c (patch)
tree6b44be72187390514d9068b78851b48b1a9b7244 /client/src/sass/application.scss
parent33253c1aa6b82284ddd0a9cb516ad85e276ca3a3 (diff)
downloadPeerTube-0f7407d926cf7774f8f730dba08327569c11680c.tar.gz
PeerTube-0f7407d926cf7774f8f730dba08327569c11680c.tar.zst
PeerTube-0f7407d926cf7774f8f730dba08327569c11680c.zip
Refactor video miniature
Less dirty code, better responsive Prepare for some regressions Increase default miniature size
Diffstat (limited to 'client/src/sass/application.scss')
-rw-r--r--client/src/sass/application.scss15
1 files changed, 12 insertions, 3 deletions
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss
index c35574568..4964ec85e 100644
--- a/client/src/sass/application.scss
+++ b/client/src/sass/application.scss
@@ -58,6 +58,7 @@ body {
58 --activatedActionButtonColor: #{$activated-action-button-color}; 58 --activatedActionButtonColor: #{$activated-action-button-color};
59 59
60 --horizontalMarginContent: #{$not-expanded-horizontal-margins}; 60 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
61 --videosHorizontalMarginContent: 6vw;
61 --mainColWidth: calc(100vw - #{$menu-width}); 62 --mainColWidth: calc(100vw - #{$menu-width});
62 63
63 font-family: $main-fonts; 64 font-family: $main-fonts;
@@ -332,8 +333,16 @@ ngx-loading-bar {
332} 333}
333 334
334@media screen and (max-width: #{breakpoint(xxl)}) { 335@media screen and (max-width: #{breakpoint(xxl)}) {
335 .main-col.expanded { 336 .main-col {
336 --horizontalMarginContent: #{$expanded-horizontal-margins/2}; 337 & {
338 --horizontalMarginContent: #{$not-expanded-horizontal-margins / 2};
339 }
340
341 &.expanded {
342 --horizontalMarginContent: #{$expanded-horizontal-margins / 2};
343 }
344
345 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
337 } 346 }
338} 347}
339 348
@@ -341,7 +350,7 @@ ngx-loading-bar {
341 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */ 350 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
342 .main-col, 351 .main-col,
343 .main-col.expanded { 352 .main-col.expanded {
344 --horizontalMarginContent: #{$expanded-horizontal-margins/3}; 353 --horizontalMarginContent: #{$expanded-horizontal-margins / 3};
345 354
346 .sub-menu { 355 .sub-menu {
347 padding-left: 50px; 356 padding-left: 50px;