Stefanie Fluin ba29e4d953 feat(docs-infra): implement figure styles (#33259)
PR#28396 originally addressed an update via issue #23983 to make images more visible with a white background (implementation of gray "lightbox").

This PR implements those styles defined in PR#28396.

PR Close #33259
2019-10-23 12:59:34 -07:00

69 lines
1.2 KiB
SCSS

.content {
img {
&.right {
clear: both;
float: right;
margin-left: 20px;
margin-bottom: 20px;
}
&.left {
clear: both;
float: left;
margin-right: 20px;
margin-bottom: 20px;
}
@media (max-width: 1300px) {
max-width: 100%;
height: auto;
margin: auto;
}
@media (max-width: 600px) {
float: none !important;
&.right {
margin-left: 0;
}
&.left {
margin-right: 0;
}
}
}
figure {
margin: 0;
margin-top: 14px;
margin-bottom: 14px;
border-radius: 1px;
background: $white;
border: 1px solid $lightgray;
padding: 32px;
box-sizing: border-box;
display: flex;
justify-content: center;
box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, .2);
margin: 16px 0;
&.lightbox {
background-color: $lightboxgray;
width: 100%;
display: flex;
justify-content: center;
}
div.card {
box-shadow: 0 2px 2px rgba(10, 16, 20, 0.24), 0 0 2px rgba(10, 16, 20, 0.12);
border-radius: 4px;
padding: 8px;
background-color: $white;
img {
max-width: 100%;
height: auto;
}
}
}
}