Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gyorb/hugo-dusk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJef Yo <yo@tkjef.com>2019-05-05 05:54:51 +0300
committerGyorgy Orban <o.gyorgy@gmail.com>2019-08-20 18:01:43 +0300
commitda80130811db6dd57518793f3c3ee3b098c8d840 (patch)
treeba63e4c80ac5d9e7f6e02dd5527f3a253c707830
parente835243131f4f6b70a74c22769b7e083ce055690 (diff)
mobile-optimize the images
switching img_max_width to 100% will mobile-optimize the images
-rw-r--r--CHANGELOG.md3
-rw-r--r--static/css/layout.css2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9b6ddd6..6cd5d4d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,9 @@
### Changed
* sort posts/pages on the error page by last modification date
+### Fixed
+ * optimize image size when viewed on mobile devices
+
## [1.1] - 2017-11-22
### Added
diff --git a/static/css/layout.css b/static/css/layout.css
index c9ee170..1355ae2 100644
--- a/static/css/layout.css
+++ b/static/css/layout.css
@@ -12,7 +12,7 @@ body {
}
img {
- max-width: 42em;
+ max-width: 100%;
display: block;
margin-left: auto;
margin-right: auto;