소스 검색

Add CSS for added classes

Stasiek Michalski 7 년 전
부모
커밋
ea119a28ed
1개의 변경된 파일20개의 추가작업 그리고 0개의 파일을 삭제
  1. 20 0
      resources/assets/sass/custom.scss

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

@@ -153,3 +153,23 @@ body, button, input, textarea {
 .font-weight-ultralight {
     font-weight: 200 !important;
 }
+
+.square {
+    position: relative;
+    width: 100%;
+}
+
+.square::after {
+    content: "";
+    display: block;
+    padding-bottom: 100%;
+}
+
+.square-content {
+    position: absolute;
+    width: 100%;
+    height: 100%;
+    background-repeat: no-repeat;
+    background-size: cover;
+    background-position: 50%;
+}