From e1212ec79fc62b24f6fd82edf8e8bc7a792f9dd4 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 25 Jul 2017 02:47:11 +0800 Subject: [PATCH] fix mobile style --- demo/demo.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/demo/demo.css b/demo/demo.css index f0190ac..9cc5464 100644 --- a/demo/demo.css +++ b/demo/demo.css @@ -1,7 +1,7 @@ body { max-width: 700px; margin: 0 auto; - padding: 45px; + padding: 45px 10px; } .example { @@ -13,6 +13,12 @@ body { border: 1px solid #ddd; } +@media (max-width:500px) { + .example { + padding: 39px 10px 14px; + } +} + .example:after { content: "Example"; position: absolute;