1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,65 @@ |
1 |
+@mixin aspect-ratio($width, $height, $float: false) { |
|
2 |
+ position: relative; |
|
3 |
+ @if $float { |
|
4 |
+ overflow: hidden; |
|
5 |
+ &:before { |
|
6 |
+ display: table; |
|
7 |
+ content: ""; |
|
8 |
+ padding-top: ($height / $width) * 100%; |
|
9 |
+ float: left; |
|
10 |
+ } |
|
11 |
+ } @else { |
|
12 |
+ &:before { |
|
13 |
+ display: block; |
|
14 |
+ content: ""; |
|
15 |
+ width: 100%; |
|
16 |
+ padding-top: ($height / $width) * 100%; |
|
17 |
+ } |
|
18 |
+ > * { |
|
19 |
+ position: absolute; |
|
20 |
+ top: 0; |
|
21 |
+ left: 0; |
|
22 |
+ right: 0; |
|
23 |
+ bottom: 0; |
|
24 |
+ } |
|
25 |
+ } |
|
26 |
+} |
|
27 |
+ |
|
28 |
+@mixin background-opacity($color, $opacity: 0.3) { |
|
29 |
+ background: $color; /* The Fallback */ |
|
30 |
+ background: rgba($color, $opacity); |
|
31 |
+} |
|
32 |
+ |
|
33 |
+@mixin content-box($override-padding: "") { |
|
34 |
+ border-radius: $border-radius; |
|
35 |
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); |
|
36 |
+ position: relative; |
|
37 |
+ z-index: 5; |
|
38 |
+ background-color: $body-bg; |
|
39 |
+ |
|
40 |
+ @if $override-padding == "" { |
|
41 |
+ padding: rfs-value($basic-gutter/2); |
|
42 |
+ @include media-breakpoint-up(md) { |
|
43 |
+ padding: rfs-value($basic-gutter); |
|
44 |
+ } |
|
45 |
+ } @else { |
|
46 |
+ padding: $override-padding; |
|
47 |
+ } |
|
48 |
+ |
|
49 |
+ .ce_text { |
|
50 |
+ margin-top: 0px; |
|
51 |
+ } |
|
52 |
+} |
|
53 |
+ |
|
54 |
+ |
|
55 |
+@keyframes fadein { |
|
56 |
+ 0% { |
|
57 |
+ opacity: 0; |
|
58 |
+ } |
|
59 |
+ 66% { |
|
60 |
+ opacity: 0; |
|
61 |
+ } |
|
62 |
+ 100% { |
|
63 |
+ opacity: 1; |
|
64 |
+ } |
|
65 |
+} |
|
0 | 66 |
\ No newline at end of file |