diff options
| author | Dan Allen <dan@opendevise.com> | 2017-10-14 15:59:16 -0600 |
|---|---|---|
| committer | Dan Allen <dan@opendevise.com> | 2017-10-24 19:42:05 -0600 |
| commit | 646d7eeb991bf5f75138b44a9fb93b569fe3bbdc (patch) | |
| tree | 1ef5f1fac511d7bb0b4a23062e4aa9474c4b8f7b /src/css/toolbar.css | |
| parent | d2a293c0042fad9e33de0c888bddc81ccaf0ea65 (diff) | |
| download | alpine-antora-theme-646d7eeb991bf5f75138b44a9fb93b569fe3bbdc.tar.bz2 alpine-antora-theme-646d7eeb991bf5f75138b44a9fb93b569fe3bbdc.tar.xz | |
add CSS for UI shell
- add CSS for all UI elements outside of article content
- add additional CSS classes to be activated by JavaScript
- add Roboto and Roboto Mono font packages as dev dependencies
- change navigation button in toolbar to a toggle
Diffstat (limited to 'src/css/toolbar.css')
| -rw-r--r-- | src/css/toolbar.css | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/src/css/toolbar.css b/src/css/toolbar.css new file mode 100644 index 0000000..821e196 --- /dev/null +++ b/src/css/toolbar.css @@ -0,0 +1,88 @@ +:root { + --toolbar-height: 2.5rem; +} + +.toolbar { + color: #5d5d5d; + align-items: center; + background-color: #fafafa; + box-shadow: 0 1px 0 #e1e1e1; + display: flex; + font-size: 0.75rem; + height: var(--toolbar-height); + justify-content: flex-start; + position: sticky; + top: var(--navbar-height); + z-index: 1; +} + +.toolbar a { + text-decoration: none; +} + +.toolbar a, +.toolbar a:hover, +.toolbar a:visited { + color: inherit; +} + +.toolbar a:hover { + text-decoration: underline; +} + +.navigation-toggle { + background: url(../img/menu.svg) no-repeat 50% 47.5%; + background-size: 49%; + border: none; + outline: none; + cursor: pointer; + display: block; + height: 2.5rem; + padding: 0; + width: 2.5rem; + margin-right: -0.25rem; +} + +.navigation-toggle::-moz-focus-inner { + border: none; +} + +@media (min-width: 1024px) { + .navigation-toggle { + display: none; + } +} + +.navigation-toggle.is-active { + background-image: url(../img/close.svg); + background-size: 41.5%; +} + +.home-link { + background: url(../img/home-o.svg) no-repeat 50% 45%; + background-size: 50%; + display: block; + height: 2.5rem; + padding: 0; + width: 2.5rem; +} + +.home-link:hover, +.home-link.is-current { + background-image: url(../img/home.svg); +} + +.edit-this-page { + display: none; + padding-right: 0.5rem; +} + +@media (min-width: 1024px) { + .edit-this-page { + display: block; + } +} + +.toolbar .edit-this-page a { + color: #8e8e8e; +} |
