added various SVG and fixed display of footer and some shortcodes. Initial fix of...
[theme-danix.xyz.git] / assets / sass / components / _image.scss
1 ///
2 /// Forty by HTML5 UP
3 /// html5up.net | @ajlkn
4 /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
5 ///
6
7 /* Image */
8
9 .image {
10 border: 0;
11 display: inline-block;
12 position: relative;
13
14 img {
15 display: block;
16 }
17
18 &.left,
19 &.right {
20 max-width: 30%;
21
22 img {
23 width: 100%;
24 }
25 }
26
27 &.left {
28 float: left;
29 margin: 0 1.5em 1.25em 0;
30 top: 0.25em;
31 }
32
33 &.right {
34 float: right;
35 margin: 0 0 1.25em 1.5em;
36 top: 0.25em;
37 }
38
39 &.fit {
40 display: block;
41 margin: 0 0 _size(element-margin) 0;
42 width: 100%;
43
44 img {
45 width: 100%;
46 }
47 }
48
49 &.main {
50 display: block;
51 margin: (_size(element-margin) * 1.25) 0;
52 width: 100%;
53
54 img {
55 width: 100%;
56 }
57
58 @include breakpoint('<=small') {
59 margin: (_size(element-margin) * 0.75) 0;
60 }
61 }
62 }
63
64 .circle > img {
65 @include circle(200px, "block")
66 }
67
68 video {
69 display: block !important;
70 &.left {
71 float: left;
72 margin: 0 1.5em 1.25em 0;
73 top: 0.25em;
74 }
75
76 &.right {
77 float: right;
78 margin: 0 0 1.25em 1.5em;
79 top: 0.25em;
80 }
81
82 &.fit {
83 display: block;
84 margin: 0 0 _size(element-margin) 0;
85 width: 100%;
86 }
87 }