Display other videos on xl screens on the right
authorChocobozzz <me@florianbigard.com>
Fri, 28 Sep 2018 12:37:04 +0000 (14:37 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 28 Sep 2018 12:37:04 +0000 (14:37 +0200)
client/src/app/videos/+video-watch/video-watch.component.scss
client/src/sass/application.scss
client/src/sass/include/_bootstrap-variables.scss [new file with mode: 0644]
client/src/sass/include/_bootstrap.scss

index eb63cbde78c26a204d7a6355bc165ffd6153f449..f31e4694a935a9af5713bfba6727de8bca68eef0 100644 (file)
@@ -1,5 +1,8 @@
 @import '_variables';
 @import '_mixins';
+@import '_bootstrap-variables';
+
+$other-videos-width: 260px;
 
 .root-row {
   flex-direction: column;
 
   /deep/ .other-videos {
     padding-left: 15px;
-    width: 260px;
+    width: $other-videos-width;
 
     .title-page {
       margin-top: 0 !important;
@@ -450,6 +453,11 @@ my-video-comments {
   }
 }
 
+@media screen and (min-width: map-get($grid-breakpoints, xl)) {
+  .video-bottom .video-info {
+    max-width: calc(100% - #{$other-videos-width});
+  }
+}
 
 @media screen and (max-width: 1600px) {
   .video-bottom .video-info .video-attributes .video-attribute {
index 40a9ed231478f29b26fabf0902b4ada04763a475..e2271d7d90089ea70a8af5ba98e1df768303ba8b 100644 (file)
@@ -339,7 +339,7 @@ table {
   font-weight: $font-semibold;
 }
 
-@media screen and (max-width: 1200px) {
+@media screen and (max-width: 1600px) {
   .main-col {
     &.expanded {
       .margin-content {
diff --git a/client/src/sass/include/_bootstrap-variables.scss b/client/src/sass/include/_bootstrap-variables.scss
new file mode 100644 (file)
index 0000000..ce2532a
--- /dev/null
@@ -0,0 +1,32 @@
+$dropdown-link-active-bg: inherit;
+
+$zindex-modal: 10005;
+$modal-footer-border-width: 0;
+$modal-md: 600px;
+
+$grid-breakpoints: (
+  // Extra small screen / phone
+  xs: 0,
+  // Small screen / phone
+  sm: 576px,
+  // Medium screen / tablet
+  md: 768px,
+  // Large screen / desktop
+  lg: 900px,
+  // Extra large screen / wide desktop
+  xl: 1200px
+);
+
+$container-max-widths: (
+  sm: 420px,
+  md: 720px,
+  lg: 900px,
+  xl: 1140px
+);
+
+$input-btn-focus-width: 0;
+$input-btn-focus-color: inherit;
+$input-focus-border-color: #ced4da;
+
+$nav-pills-link-active-bg: #F0F0F0;
+$nav-pills-link-active-color: #000;
\ No newline at end of file
index 7bce85c3752237f9d33bff6e311800ff160c9128..9c7464873bc32820ca25845d6d579fa14774e063 100644 (file)
@@ -1,35 +1,4 @@
-$dropdown-link-active-bg: inherit;
-
-$zindex-modal: 10005;
-$modal-footer-border-width: 0;
-$modal-md: 600px;
-
-$grid-breakpoints: (
-  // Extra small screen / phone
-  xs: 0,
-  // Small screen / phone
-  sm: 576px,
-  // Medium screen / tablet
-  md: 768px,
-  // Large screen / desktop
-  lg: 900px,
-  // Extra large screen / wide desktop
-  xl: 1200px
-);
-
-$container-max-widths: (
-  sm: 420px,
-  md: 720px,
-  lg: 900px,
-  xl: 1140px
-);
-
-$input-btn-focus-width: 0;
-$input-btn-focus-color: inherit;
-$input-focus-border-color: #ced4da;
-
-$nav-pills-link-active-bg: #F0F0F0;
-$nav-pills-link-active-color: #000;
+@import "./_bootstrap-variables";
 
 @import '~bootstrap/scss/functions';
 @import '~bootstrap/scss/variables';