diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-17 12:46:09 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-17 12:46:57 +0530 |
commit | 9649b3ed2b252cab6ab4076d58814790582f07f0 (patch) | |
tree | 9af97b2edfb543ea96fd3d647c98763f1f52a905 /static | |
parent | d083d5d72e4bf496b8152d14986818a5b63fe301 (diff) | |
download | legit-9649b3ed2b252cab6ab4076d58814790582f07f0.tar.gz legit-9649b3ed2b252cab6ab4076d58814790582f07f0.tar.bz2 legit-9649b3ed2b252cab6ab4076d58814790582f07f0.zip |
templates: index rework
Diffstat (limited to 'static')
-rw-r--r-- | static/style.css | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..b3bf406 --- /dev/null +++ b/static/style.css @@ -0,0 +1,112 @@ +:root { + --light: #f4f4f4; + --cyan: #509c93; + --light-gray: #eee; + --medium-gray: #ddd; + --gray: #6a6a6a; + --dark: #444; + --darker: #222; +} + +html { + background: var(--light); + -webkit-text-size-adjust: none; + font-family: "InterVar", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif; +} + +::selection { + background: var(--medium-gray); + opacity: 0.3; +} + +* { + box-sizing: border-box; + padding: 0; + margin: 0; +} + +body { + max-width: 750px; + padding: 0 13px; + margin: 40px auto; +} + +main, footer { + font-size: 1rem; + padding: 0; + line-height: 160%; +} + +main h1, h2, h3, .small-heading { + font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif; + font-weight: 500; +} + +strong { + font-weight: 500; +} + +main h1 { + font-size: 20px; + padding: 10px 0 10px 0; +} + +main h2 { + font-size: 18px; +} + +main h2, h3 { + padding: 20px 0 15px 0; +} + +nav { + padding-top: 1rem; +} + +nav ul { + padding: 0; + margin: 0; + list-style: none; + padding-bottom: 20px; +} + +nav ul li { + padding-right: 10px; + display: inline-block; +} + +a { + margin: 0; + padding: 0; + box-sizing: border-box; + text-decoration: none; + word-wrap: break-word; +} + +a { + color: var(--darker); + border-bottom: 1.5px solid var(--medium-gray); +} + +a:hover { + border-bottom: 1.5px solid var(--gray); +} + +.repo-index { + display: grid; + grid-template-columns: 6em 1fr 7em; + grid-row-gap: 0.5em; +} + +.repo-index-headings { + display: grid; + grid-template-columns: 6em 1fr 7em; + padding-bottom: 1.2em; + padding-top: 1.2em; +} + +@media (max-width: 385px) { + .repo-index { + grid-row-gap: 0.8em; + } +} |