From 173fb18813d0173d0545d8ca55ab4f6a76f7fdc9 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 6 Apr 2016 17:15:29 +0800 Subject: add responsive breakpoint system code --- dist/spectre.css | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) (limited to 'dist') diff --git a/dist/spectre.css b/dist/spectre.css index 5f698ed..622e322 100644 --- a/dist/spectre.css +++ b/dist/spectre.css @@ -416,7 +416,7 @@ h6 { font-weight: 300; line-height: 1.1; margin-top: 2.5rem; - margin-bottom: 1rem; + margin-bottom: 1.5rem; color: inherit; } h1 { @@ -558,8 +558,17 @@ ol ol { padding-right: 1rem; } @media screen and (min-width: 961px) { - .container.grid-960 { + .grid-960 { width: 96rem; + margin-left: auto; + margin-right: auto; + } +} +@media screen and (min-width: 481px) { + .grid-480 { + width: 48rem; + margin-left: auto; + margin-right: auto; } } .columns { @@ -634,6 +643,31 @@ ol ol { width: 8.33333333%; } } +@media screen and (max-width: 480px) { + .hide-xs { + display: none !important; + } +} +@media screen and (max-width: 600px) { + .hide-sm { + display: none !important; + } +} +@media screen and (max-width: 840px) { + .hide-md { + display: none !important; + } +} +@media screen and (max-width: 960px) { + .hide-lg { + display: none !important; + } +} +@media screen and (max-width: 1280px) { + .hide-xl { + display: none !important; + } +} .img-responsive { display: block; max-width: 100%; -- cgit v1.3.1-26-gb76a