-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathimg.scss
More file actions
107 lines (91 loc) · 1.51 KB
/
Copy pathimg.scss
File metadata and controls
107 lines (91 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
@use "@styles/color";
img {
display: block;
max-height: 40rem;
max-width: 100%;
height: auto;
width: auto;
object-fit: contain;
object-position: left top;
}
img.large {
width: 100%;
}
img.medium {
max-width: 40rem; /* for IE11 */
max-width: min(100%, 40rem);
}
img.small {
max-width: 30rem; /* for IE11 */
max-width: min(100%, 30rem);
max-height: 30rem;
}
img.height70 {
height: 70px;
}
img.extra-small {
max-width: 15rem; /* for IE11 */
max-width: min(100%, 15rem);
max-height: 15rem;
}
img.inline {
display: inline;
}
img.icon {
display: inline;
max-height: 1.5em; /* slightly larger than text */
vertical-align: middle;
}
img.center {
margin-left: auto;
margin-right: auto;
}
img.border {
border: 1px solid currentcolor;
& + img.border {
margin-top: 0.5em;
}
}
img.thin-border {
@extend .border;
border-color: color-mix(in srgb, currentcolor 50%, transparent);
}
img.shadow {
box-shadow: 0 0 0.75em 0.75em white inset;
padding: 1em;
background: color.$gray;
}
figure {
margin-left: 0;
margin-right: 0;
width: fit-content;
&.center {
margin-left: auto;
margin-right: auto;
img {
margin-left: auto;
margin-right: auto;
}
figcaption {
text-align: center;
}
}
}
figcaption {
font-size: 0.75em;
}
.gallery {
display: flex;
align-items: center;
gap: 0.5em;
> img {
min-width: 0;
}
> * {
margin: 0 !important;
}
@media (max-width: 640px) {
flex-flow: column;
align-items: center;
}
}