gallery masonry is mostly working now. Still needs some aestetical retouching and...
[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 &.shadow {
19 img {
20 @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold));
21 @media screen and (prefers-color-scheme: dark) {
22 @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold));
23 }
24 }
25 }
26 &.left,
27 &.right {
28 max-width: 30%;
29
30 img {
31 width: 100%;
32 }
33 }
34
35 &.left {
36 float: left;
37 margin: 0 1.5em 0.5em 1em;
38 top: 0.25em;
39 }
40
41 &.right {
42 float: right;
43 margin: 0 1em 0.5em 1.5em;
44 top: 0.25em;
45 }
46
47 &.fit {
48 display: block;
49 margin: 0 0 _size(element-margin) 0;
50 width: 100%;
51
52 img {
53 width: 100%;
54 }
55 }
56
57 &.main {
58 display: block;
59 margin: (_size(element-margin) * 1.25) 0;
60 width: 100%;
61
62 img {
63 width: 100%;
64 }
65
66 @include breakpoint('<=small') {
67 margin: (_size(element-margin) * 0.75) 0;
68 }
69 }
70 &.w-full {
71 width: 100%;
72 }
73 &.h-auto {
74 height: auto;
75 }
76 }
77 .image.signature {
78 &.left,
79 &.right {
80 max-width: 60%;
81 }
82 @media screen and (prefers-color-scheme: dark) {
83 filter: invert(84%) sepia(12%) saturate(486%) hue-rotate(197deg) brightness(84%) contrast(87%);
84 }
85 }
86
87 .circle > img {
88 @include circle(200px, "block");
89 @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold));
90 @media screen and (prefers-color-scheme: dark) {
91 @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold));
92 }
93 }
94
95 video {
96 display: block !important;
97 &.left {
98 float: left;
99 margin: 0 1.5em 1.25em 0;
100 top: 0.25em;
101 }
102
103 &.right {
104 float: right;
105 margin: 0 0 1.25em 1.5em;
106 top: 0.25em;
107 }
108
109 &.fit {
110 display: block;
111 margin: 0 0 _size(element-margin) 0;
112 width: 100%;
113 }
114 }
115
116 .animate-fade {
117 animation: fadeIn 750ms ease-in-out;
118 }
119
120 figure {
121 figcaption {
122 p {
123 text-align: center;
124 }
125 }
126 }
127 // signature inside single articles
128 div#post-signature {
129 clear: both;
130 overflow: hidden;
131 width: 100%;
132 margin: 0;
133 div#signature {
134 margin: 0;
135 padding: 0;
136 img.signature {
137 margin: 0;
138 margin-right: 4em;
139 width: 350px;
140 }
141 }
142 }
143 .section-blog {
144 .spotlights {
145 .image {
146 max-height: 20em;
147 overflow: hidden;
148 }
149 }
150 }