aboutsummaryrefslogtreecommitdiffstats
path: root/docs/style.css
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-04 22:26:37 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-05 10:59:44 +0000
commit902af9866eff3960e094f2563ac9b91f2742af76 (patch)
treea787c109072c7f496e6d3d1407bd69dcacf09d57 /docs/style.css
parentmake lib/midi documentable (diff)
downloadalive-902af9866eff3960e094f2563ac9b91f2742af76.tar.gz
alive-902af9866eff3960e094f2563ac9b91f2742af76.zip
main page and responsive styling
Diffstat (limited to 'docs/style.css')
-rw-r--r--docs/style.css46
1 files changed, 39 insertions, 7 deletions
diff --git a/docs/style.css b/docs/style.css
index 809ee05..1d326a9 100644
--- a/docs/style.css
+++ b/docs/style.css
@@ -13,12 +13,18 @@ body {
font-family: 'Source Sans Pro', sans-serif;
color: #222222;
}
+@media (max-width: 699px) {
+ body {
+ width: 100vw;
+ }
+}
article {
padding: 3rem 2em 1em;
}
code {
+ font-size: 0.9em;
font-family: 'Source Code Pro', monospace;
}
@@ -36,32 +42,58 @@ ul {
padding-left: 0.6em;
}
-nav {
+header {
position: fixed;
width: inherit;
height: 4rem;
top: 0;
- padding: 1em 2em 4px;
+ padding: 1rem 2rem 4px;
background: #eeeeee;
box-sizing: border-box;
}
-nav div {
+nav {
display: flex;
- justify-content: space-around;
+ justify-content: space-between;
border-bottom: 1px solid #222222;
padding-bottom: 1em;
}
-nav i {
- flex: 1;
+nav span,
+nav a {
+ flex: 0 0 auto;
}
-nav a {
+nav > a {
margin-left: 1rem;
}
+nav span a {
+ font-weight: bold;
+ text-decoration: none;
+}
+
+nav .grow {
+ flex: 1;
+}
+
+footer {
+ font-size: 0.8em;
+ padding: 0 2rem;
+}
+
+footer > div {
+ border-top: 1px solid #222222;
+ text-align: right;
+ padding: 0.5rem 0;
+}
+
+.embed {
+ box-sizing: border-box;
+ width: 100%;
+}
+
.def {
margin-top: 0.5rem;
}