Mercurial > hg > cmmr2012-drupal-site
annotate themes/contrib/mayo/sass/partials/_mobile-first.scss @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | 5311817fb629 |
children |
rev | line source |
---|---|
Chris@2 | 1 // ==================================================================== |
Chris@2 | 2 // Mobile first layout. |
Chris@2 | 3 // This is the layout for smalltouch_portrait which stacks all the columns |
Chris@2 | 4 // at 100% width for each. Media queries cause this to be available to |
Chris@2 | 5 // only the layouts that have width less than 321px. |
Chris@2 | 6 // ==================================================================== |
Chris@2 | 7 #main-wrapper { |
Chris@2 | 8 width: 100%; |
Chris@2 | 9 position: relative; |
Chris@2 | 10 } |
Chris@2 | 11 |
Chris@2 | 12 #main { |
Chris@2 | 13 width: 100%; |
Chris@2 | 14 } |
Chris@2 | 15 // Limits the stacking of top-column blocks to small screen touch. |
Chris@2 | 16 @media only screen and (max-width:320px) { |
Chris@2 | 17 #top-columns .column-block-wrapper, |
Chris@2 | 18 #bottom-columns .column-block-wrapper, |
Chris@2 | 19 #footer-columns .column-block-wrapper { |
Chris@2 | 20 width: 100% !important; |
Chris@2 | 21 margin-top: 1em; |
Chris@2 | 22 } |
Chris@2 | 23 |
Chris@2 | 24 #top-columns .column-block-wrapper .column-block, |
Chris@2 | 25 #bottom-columns .column-block-wrapper .column-block, |
Chris@2 | 26 #footer-columns .column-block-wrapper .column-block { |
Chris@2 | 27 height: auto !important; |
Chris@2 | 28 margin:0 !important; |
Chris@2 | 29 } |
Chris@2 | 30 } |
Chris@2 | 31 #content, |
Chris@2 | 32 #sidebar-first, |
Chris@2 | 33 #sidebar-second, { |
Chris@2 | 34 margin: 0; |
Chris@2 | 35 width: 100%; |
Chris@2 | 36 img { |
Chris@2 | 37 max-width: 100%; // Make sure all images fit within viewport |
Chris@2 | 38 height: auto; // Correct width from max-width rule above. |
Chris@2 | 39 } |
Chris@2 | 40 } |
Chris@2 | 41 |
Chris@2 | 42 #sidebar-first .section, |
Chris@2 | 43 #sidebar-second .section { |
Chris@2 | 44 // margin:0 !important; |
Chris@2 | 45 } |
Chris@2 | 46 |