Make images look better in iframes

Dynamically change width depending on viewport size
This commit is contained in:
Matthew Grove
2018-12-10 16:08:46 +00:00
parent 8048271849
commit 32a63811fa
2 changed files with 44 additions and 1 deletions

View File

@@ -3,11 +3,36 @@ html, body {
background: transparent; background: transparent;
} }
img { img {
width: 70%; width: 50%;
box-shadow: 3px 3px 6px 2px rgba(10,10,10,0.5); box-shadow: 3px 3px 6px 2px rgba(10,10,10,0.5);
margin: 10px; margin: 10px;
border-radius: 6px; border-radius: 6px;
} }
@media screen and (max-width: 1000px) {
img {
width: 60%;
}
}
@media screen and (max-width: 900px) {
img {
width: 70%;
}
}
@media screen and (max-width: 800px) {
img {
width: 80%;
}
}
@media screen and (max-width: 700px) {
img {
width: 90%;
}
}
@media screen and (max-width: 600px) {
img {
width: 100%;
}
}
/* revert changes made by Bootstrap */ /* revert changes made by Bootstrap */
p { p {

View File

@@ -0,0 +1,18 @@
html, body {
font-family: 'Roboto';
background: transparent;
}
img {
width: 70%;
box-shadow: 3px 3px 6px 2px rgba(10,10,10,0.5);
margin: 10px;
border-radius: 6px;
}
/* revert changes made by Bootstrap */
p {
margin: 0;
}
h1, h2, h3, .h1, .h2, .h3 {
margin-top: 0;
}