diff options
author | Siri Reiter <siri@jones.dk> | 2016-02-05 21:07:22 +0100 |
---|---|---|
committer | Siri Reiter <siri@jones.dk> | 2016-02-05 21:07:22 +0100 |
commit | 18820ee3c07e02660ecbca4f4a2611c759323f9f (patch) | |
tree | ec396775b7c589cfa6bb05a1f35150d6f4085f0f /test.scss | |
parent | 1bd7681903569a1087fe3117b023e1a59e86982f (diff) |
Add responsive column count. Set margin and width for max-width 40em.
Diffstat (limited to 'test.scss')
-rw-r--r-- | test.scss | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -26,17 +26,38 @@ //Responsive design @media screen and (max-width: 40em) { +#content { + width: 100%; + margin: 0; +} .inlinepage { background-color: Blue; } +.columns { + -webkit-column-count: 1; /* Chrome, Safari, Opera */ + -moz-column-count: 1; /* Firefox */ + column-count: 1; +} } + @media screen and (min-width: 41em) and (max-width: 70em) { .inlinepage { background-color: Black; } +.columns { + -webkit-column-count: 2; /* Chrome, Safari, Opera */ + -moz-column-count: 2; /* Firefox */ + column-count: 2; +} } + @media only screen and (min-width: 71em) { .inlinepage { background-color: Red; } +.columns { + -webkit-column-count: 3; /* Chrome, Safari, Opera */ + -moz-column-count: 3; /* Firefox */ + column-count: 3; +} } |