added curriculum section. Needs working.
[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 }
71 .image.signature {
72 &.left,
73 &.right {
74 max-width: 60%;
75 }
76 @media screen and (prefers-color-scheme: dark) {
77 filter: invert(84%) sepia(12%) saturate(486%) hue-rotate(197deg) brightness(84%) contrast(87%);
78 }
79 }
80
81 .circle > img {
82 @include circle(200px, "block");
83 @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold));
84 @media screen and (prefers-color-scheme: dark) {
85 @include box-shadow(-5px, 5px, 5px, _palette_light(fg-bold));
86 }
87 }
88
89 video {
90 display: block !important;
91 &.left {
92 float: left;
93 margin: 0 1.5em 1.25em 0;
94 top: 0.25em;
95 }
96
97 &.right {
98 float: right;
99 margin: 0 0 1.25em 1.5em;
100 top: 0.25em;
101 }
102
103 &.fit {
104 display: block;
105 margin: 0 0 _size(element-margin) 0;
106 width: 100%;
107 }
108 }
109
110 figure {
111 figcaption {
112 p {
113 text-align: center;
114 }
115 }
116 }