diff options
author | Camil Staps | 2023-11-28 16:24:38 +0100 |
---|---|---|
committer | Camil Staps | 2023-11-28 16:24:38 +0100 |
commit | d50a4d508d357f70f22e8e0d837c3c4962468321 (patch) | |
tree | 091334b610b58f330cc984d27403b80eb4a14380 /resources/sass | |
parent | Add lingbuzz links for S&P article and BJALL article (diff) |
Add navigation
Diffstat (limited to 'resources/sass')
-rw-r--r-- | resources/sass/style.scss | 24 |
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; } |