diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-04-02 21:44:42 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-04-02 21:44:42 +0200 |
commit | 59f8cfcd5ce0ed247eecd3dbf460fe567a7b1aa4 (patch) | |
tree | 96f238fc9c7291ee6607d38e5ff0fa374dab8aa7 /style.scss | |
parent | 6580ce74d0b100c9460a04c5a31f8e2a64321f3a (diff) |
Improve and release menu styling.
Diffstat (limited to 'style.scss')
-rw-r--r-- | style.scss | 54 |
1 files changed, 41 insertions, 13 deletions
@@ -158,7 +158,6 @@ body { margin: 0; padding: 1.5em 0; background-color: lightblue; - text-align: center; text-transform: uppercase; letter-spacing: 1px; // position: absolute; @@ -176,25 +175,54 @@ body { } .topbar p { - float: left; margin-top: 0; margin-bottom: 0; } -.topbar a { - font-weight: bold; - &:hover { - text-decoration: none; - } -} - +// main menu .topbar ul { - @include inline-block-list(20px); -} - -.topbar li { + @include inline-block-list; + position: absolute; + top: 6.25em; + height: 4em; + width: 100%; font-size: 1.25em; line-height: 2em; + text-align: center; + li { + a, + .selflink { + @include inline-block; + width: 8em; + padding: 1em .5em; + background-color: #6699cc; + color: white; + font-weight: bold; + &:hover { + background-color: lightblue; + color: #336699; + text-decoration: none; + } + } + } + @media screen and (max-width: 480px) { + top: 9em; + font-size: inherit; + } + @media screen and (min-width: 701px) { + right: 6em; + width: auto; + li { + padding-left: .2em; + padding-right: .2em; + text-align: center; + a, + .selflink { + width: 10em; + padding: 1em; + } + } + } } .topbar img { |