summaryrefslogtreecommitdiffstats
path: root/src/css/toolbar.css
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2017-10-26 09:24:28 +0000
committerDan Allen <dan.j.allen@gmail.com>2017-10-26 09:24:28 +0000
commitec2092b985830c9c8877de14fa250bfda6eda42d (patch)
tree139a7422329e6f959dc490525a916dc3ab5a4bd8 /src/css/toolbar.css
parentdaf031a5cc04f8c0cc6571c3a2f93508c7cde028 (diff)
parent1a2bdfc79e0d902b290ab7c2fe946cb64d78633d (diff)
downloadalpine-antora-theme-ec2092b985830c9c8877de14fa250bfda6eda42d.tar.bz2
alpine-antora-theme-ec2092b985830c9c8877de14fa250bfda6eda42d.tar.xz
Merge !9
resolves #9 add CSS to style UI and article content
Diffstat (limited to 'src/css/toolbar.css')
-rw-r--r--src/css/toolbar.css88
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;
+}