1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-14 18:21:41 +03:00

doc: Add styles for some utility image classes

This commit is contained in:
Samuel Dionne-Riel 2020-05-14 17:10:00 -04:00
parent ea7bad0879
commit 78ac52af46

View File

@ -32,8 +32,58 @@
.imageblock {
margin-bottom: 1em;
#screen-xs-max({
img {
display: block;
margin: auto;
}
});
#screen-sm-min({
&.right {
float: right;
padding-left: @gutter;
}
&.left {
float: left;
padding-right: @gutter;
}
});
}
.image-halfwidth {
img {
#screen-sm-min({
max-width: 50vw;
});
}
}
// Use when the image is *intended* to be scaled regardless of text.
// If you want the text inside an svg image to stay as big as
.image-scalable {
&.image-halfwidth {
#screen-sm-min({
width: 50%;
});
img {
max-width: 100%;
width: 50vw;
}
}
#screen-xs-max({
&, &.image-halfwidth {
img {
max-width: 100%;
width: 100vw;
}
}
});
}
table.stretch {
width: 100%;
}
.clear-floats {
clear: both;
}