-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
80 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* https://afeld.github.io/bootstrap-toc/#customization */ | ||
|
||
nav[data-toggle=\"toc\"] { | ||
top: 42px; | ||
} | ||
|
||
nav[data-toggle=toc] .nav-link+ul { | ||
display:block; | ||
padding-bottom:10px; | ||
} | ||
|
||
|
||
/* small screens */ | ||
@media (max-width: 768px) { | ||
/* override stickyness so that the navigation does not follow scrolling */ | ||
nav[data-toggle=\"toc\"] { | ||
margin-bottom: 42px; | ||
position: static; | ||
} | ||
|
||
/* PICK ONE */ | ||
/* don't expand nested items, which pushes down the rest of the page when navigating */ | ||
nav[data-toggle=\"toc\"] .nav .active .nav { | ||
display: none; | ||
} | ||
/* alternatively, if you *do* want the second-level navigation to be shown (as seen on this page on mobile), use this */ | ||
/* | ||
nav[data-toggle='toc'] .nav .nav { | ||
display: block; | ||
} | ||
*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* See https://www.w3schools.com/howto/howto_css_loader.asp */ | ||
|
||
(def loader | ||
" | ||
.loader { | ||
border: 16px solid #f3f3f3; /* Light grey */ | ||
border-top: 16px solid #3498db; /* Blue */ | ||
border-radius: 50%; | ||
width: 30px; | ||
height: 30px; | ||
animation: spin 2s linear infinite; | ||
} | ||
|
||
@keyframes spin { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(360deg); } | ||
} | ||
") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
table { | ||
border-style: thin; | ||
} | ||
th, td { | ||
padding: 6px; | ||
} | ||
td { | ||
text-align: left; | ||
} | ||
th { | ||
text-align: center; | ||
background-color: #ddd; | ||
} | ||
tr:nth-child(even) { | ||
background-color: #f6f6f6; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,17 @@ | ||
(ns scicloj.clay.v2.styles) | ||
(ns scicloj.clay.v2.styles | ||
(:require [clojure.java.io :as io])) | ||
|
||
(def table " | ||
table { | ||
border-style: thin; | ||
} | ||
th, td { | ||
padding: 6px; | ||
} | ||
td { | ||
text-align: left; | ||
} | ||
th { | ||
text-align: center; | ||
background-color: #ddd; | ||
} | ||
tr:nth-child(even) { | ||
background-color: #f6f6f6; | ||
} | ||
") | ||
(def table | ||
(-> "styles/table.css" | ||
io/resource | ||
slurp)) | ||
|
||
|
||
;; https://afeld.github.io/bootstrap-toc/#customization | ||
(def boostrap-toc " | ||
nav[data-toggle=\"toc\"] { | ||
top: 42px; | ||
} | ||
nav[data-toggle=toc] .nav-link+ul { | ||
display:block; | ||
padding-bottom:10px; | ||
} | ||
/* small screens */ | ||
@media (max-width: 768px) { | ||
/* override stickyness so that the navigation does not follow scrolling */ | ||
nav[data-toggle=\"toc\"] { | ||
margin-bottom: 42px; | ||
position: static; | ||
} | ||
/* PICK ONE */ | ||
/* don't expand nested items, which pushes down the rest of the page when navigating */ | ||
nav[data-toggle=\"toc\"] .nav .active .nav { | ||
display: none; | ||
} | ||
/* alternatively, if you *do* want the second-level navigation to be shown (as seen on this page on mobile), use this */ | ||
/* | ||
nav[data-toggle='toc'] .nav .nav { | ||
display: block; | ||
} | ||
*/ | ||
} | ||
") | ||
|
||
;; See https://www.w3schools.com/howto/howto_css_loader.asp | ||
(def loader | ||
" | ||
.loader { | ||
border: 16px solid #f3f3f3; /* Light grey */ | ||
border-top: 16px solid #3498db; /* Blue */ | ||
border-radius: 50%; | ||
width: 30px; | ||
height: 30px; | ||
animation: spin 2s linear infinite; | ||
} | ||
@keyframes spin { | ||
0% { transform: rotate(0deg); } | ||
100% { transform: rotate(360deg); } | ||
} | ||
") | ||
(-> "styles/loader.css" | ||
io/resource | ||
slurp)) | ||
|
||
(def bootstrap-toc | ||
(-> "styles/bootstrap-toc.css" | ||
io/resource | ||
slurp)) |