summaryrefslogtreecommitdiffhomepage
path: root/resources/sass
diff options
context:
space:
mode:
authorCamil Staps2023-11-28 16:24:38 +0100
committerCamil Staps2023-11-28 16:24:38 +0100
commitd50a4d508d357f70f22e8e0d837c3c4962468321 (patch)
tree091334b610b58f330cc984d27403b80eb4a14380 /resources/sass
parentAdd lingbuzz links for S&P article and BJALL article (diff)
Add navigation
Diffstat (limited to 'resources/sass')
-rw-r--r--resources/sass/style.scss24
1 files changed, 24 insertions, 0 deletions
diff --git a/resources/sass/style.scss b/resources/sass/style.scss
index f92f58d..227093c 100644
--- a/resources/sass/style.scss
+++ b/resources/sass/style.scss
@@ -17,12 +17,36 @@
body {
font-family: Hebrew, sans-serif;
+ position: relative;
}
.container {
max-width: 970px;
}
+#sticky-nav {
+ padding-top: 1em;
+}
+
+@media (min-width: 1270px) {
+ /* 970px is width of .container; 200px is width of #sticky-nav. This places
+ * the nav buttons to the left of the content. */
+ #sticky-nav {
+ left: calc(50% - 970px/2 - 150px);
+ position: fixed;
+ text-align: right;
+ width: 150px;
+ }
+
+ #sticky-nav li {
+ float: none;
+ }
+
+ #sticky-nav li > a {
+ display: inline-block;
+ }
+}
+
.greyed-out {
color: #888;
}