From: Vladimír Vondruš Date: Sun, 10 Sep 2017 16:50:16 +0000 (+0200) Subject: css: compress the code a bit, finish the doc comment. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=56681334f2e7b3a2eaf4601f6dfa62b17044529f;p=blog.git css: compress the code a bit, finish the doc comment. --- diff --git a/css/m-grid.css b/css/m-grid.css index 661feeee..64cfdb25 100644 --- a/css/m-grid.css +++ b/css/m-grid.css @@ -10,6 +10,7 @@ body { /* 12-column layout. Inspired by Bootstrap and https://www.w3schools.com/css/css_rwd_grid.asp */ .m-container { + width: 100%; margin: auto; padding: 1rem; } @@ -17,10 +18,7 @@ body { margin-left: -1rem; margin-right: -1rem; } -.m-container { - width: 100%; -} -.m-row:after { /* */ +.m-row:after { /* avoid rows floating around each other */ content: ' '; clear: both; display: table;