Browse Source

Add classes for limiting height on breakpoints

Stasiek Michalski 7 years ago
parent
commit
99975da140
1 changed files with 23 additions and 0 deletions
  1. 23 0
      resources/assets/sass/custom.scss

+ 23 - 0
resources/assets/sass/custom.scss

@@ -203,3 +203,26 @@ body, button, input, textarea {
   height: .25rem;
   animation: loading-bar 3s linear infinite;
 }
+
+.max-hide-overflow {
+  max-height: 500px;
+  overflow-y: hidden;
+}
+
+@media (min-width: map-get($grid-breakpoints, "xs")) {
+  .max-hide-overflow {
+    max-height: 600px!important;
+  }
+}
+
+@media (min-width: map-get($grid-breakpoints, "md")) {
+  .max-hide-overflow {
+    max-height: 800px!important;
+  }
+}
+
+@media (min-width: map-get($grid-breakpoints, "xl")) {
+  .max-hide-overflow {
+    max-height: 1000px!important;
+  }
+}