瀏覽代碼

Add classes for limiting height on breakpoints

Stasiek Michalski 7 年之前
父節點
當前提交
99975da140
共有 1 個文件被更改,包括 23 次插入0 次删除
  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;
+  }
+}