diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2019-05-01 21:11:53 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2019-05-01 21:11:53 +0200 |
commit | 751b112b7ab1766aa08d3422ecd1924354b9cd59 (patch) | |
tree | 5982c8cc5fe861209d8e7baf9ca6e39b48dc9e89 /app/assets/stylesheets/hmno_page.scss | |
parent | a7a2fc57cf458fee98bad03b3c2a40b6e8d75606 (diff) | |
download | hmnoweb-751b112b7ab1766aa08d3422ecd1924354b9cd59.tar.gz hmnoweb-751b112b7ab1766aa08d3422ecd1924354b9cd59.tar.bz2 hmnoweb-751b112b7ab1766aa08d3422ecd1924354b9cd59.zip |
Move towards flexbox layout.
Main page and header now use flexbox instead of not quite working
floats and position relative/absolute. This really simplifies things.
Perhaps we'll even be able to make a mobile friendly site some day.
Various other cosmetic tweaks have snuch in too. The page now has a
max size of about 25cm, and some other minor tweaks.
Diffstat (limited to 'app/assets/stylesheets/hmno_page.scss')
-rw-r--r-- | app/assets/stylesheets/hmno_page.scss | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/app/assets/stylesheets/hmno_page.scss b/app/assets/stylesheets/hmno_page.scss index 476da14..3a6c9d5 100644 --- a/app/assets/stylesheets/hmno_page.scss +++ b/app/assets/stylesheets/hmno_page.scss @@ -16,24 +16,23 @@ @import "color_scheme"; #page_container { + display: flex; + flex-direction: column; background: $bg; min-width: $min-page-width; + max-width: $max-page-width; + margin: { + left: auto; + right: auto; + } #page { - position: relative; - min-height: 1000px; + display: flex; + flex-direction: row; padding: $spacing / 2; - #body_content { - min-width: $min-center-width; - margin: { - left: $sidebar-width + 3 * $spacing; - right: $sidebar-width + 3 * $spacing; - } - padding: { - left: $spacing / 2; - right: $spacing / 2; - } + #page-content-area { + flex: 1 1 500px; } } |