blog/sass/parts/_image.scss

40 lines
489 B
SCSS
Raw Normal View History

2022-11-12 01:07:47 +00:00
img {
border: 3px solid #ececec;
max-width: 100%;
2023-01-15 07:33:31 +00:00
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 3px;
2022-11-12 01:07:47 +00:00
}
figure {
box-sizing: border-box;
display: inline-block;
margin: 0;
max-width: 100%;
}
figure img {
max-height: 500px;
}
@media screen and (min-width: 600px) {
figure {
padding: 0 40px;
}
}
figure h4 {
font-size: 1rem;
margin: 0;
margin-bottom: 1em;
}
figure h4::before {
content: "";
}
svg {
2023-01-15 07:33:31 +00:00
max-height: 30px;
}