mirror of
https://github.com/hnasheralneam/hnasheralneam.github.io.git
synced 2024-11-06 15:45:54 -05:00
Move image styles to stylesheet
This commit is contained in:
parent
80f7d9188b
commit
1289c6b838
1 changed files with 3 additions and 1 deletions
|
@ -38,12 +38,14 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.article img {
|
.article img {
|
||||||
|
max-height: 400px;
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 700px) {
|
||||||
.article img {
|
.article img {
|
||||||
max-width: 100vw; /* For screens less than 700px wide */
|
max-height: none;
|
||||||
|
max-width: calc(100vw - 4em);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue