diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-12-07 05:08:54 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-12-07 05:08:54 +0100 |
| commit | 15c7a862bcf83aad0a369c84a0cb9cc323b64c47 (patch) | |
| tree | a4f4bb97b89d81a597f444d23ed64b4c91dd81b2 /static/css | |
| parent | 4fb46cd35fcd929136ae44e4f31f489c361b5282 (diff) | |
| download | cacharle.xyz-15c7a862bcf83aad0a369c84a0cb9cc323b64c47.tar.gz cacharle.xyz-15c7a862bcf83aad0a369c84a0cb9cc323b64c47.tar.bz2 cacharle.xyz-15c7a862bcf83aad0a369c84a0cb9cc323b64c47.zip | |
Updated topbar, Added links icons, Added big title
Diffstat (limited to 'static/css')
| -rw-r--r-- | static/css/blog.css | 3 | ||||
| -rw-r--r-- | static/css/index.css | 38 | ||||
| -rw-r--r-- | static/css/style.css | 62 |
3 files changed, 80 insertions, 23 deletions
diff --git a/static/css/blog.css b/static/css/blog.css new file mode 100644 index 0000000..772bd5b --- /dev/null +++ b/static/css/blog.css @@ -0,0 +1,3 @@ +.article { + margin-top: 4rem; +} diff --git a/static/css/index.css b/static/css/index.css new file mode 100644 index 0000000..607e8b5 --- /dev/null +++ b/static/css/index.css @@ -0,0 +1,38 @@ +@font-face { + font-family: Montserrat, sans-serif; + font-weight: 100; + src: url(../font/Montserrat/Montserrat-ExtraLight.ttf); +} + +#site-title { + font-family: Montserrat; + font-size: 17vw; + font-weight: 100; + width: 100%; + margin: 0px auto; + text-align: center; + text-transform: uppercase; +} + +@media screen and (min-width: 1200px) { + #site-title { + font-size: 10rem; + } +} + +.links { + display: flex; + justify-content: space-between; + max-width: 320px; + margin: 10px auto 40px auto; +} + +.links a.links-item { + display: block; +} + +.links a.links-item img { + height: 30px; + width: 30px; + filter: grayscale(1) invert(1); +} diff --git a/static/css/style.css b/static/css/style.css index a8142fb..e9ca6b3 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -10,20 +10,20 @@ @font-face { font-family: OpenSans; font-weight: normal; - src: url(font/OpenSans/OpenSans-Regular.ttf); + src: url(../font/OpenSans/OpenSans-Regular.ttf); } @font-face { font-family: OpenSans; font-weight: bold; - src: url(font/OpenSans/OpenSans-Bold.ttf); + src: url(../font/OpenSans/OpenSans-Bold.ttf); } @font-face { font-family: OpenSans; font-weight: normal; font-style: italic; - src: url(font/OpenSans/OpenSans-Italic.ttf); + src: url(../font/OpenSans/OpenSans-Italic.ttf); } html { @@ -47,25 +47,39 @@ body { /* header */ header { - display: flex; - margin-bottom: 20px; - background-color: #191919; padding: 10px; + background-color: var(--color-darker); } -header div { - margin-right: 30px; - color: #ccc; +header .header-container { + max-width: 300px; + margin: auto; + display: flex; + justify-content: space-between; } a.header-link { - color: #ccc; - text-decoration: none; + display: block; font-weight: bold; + text-decoration: none; + text-transform: capitalize; +} + +a.header-link:not(:last-child)::after { + content: '/'; + position: relative; + right: -10px; +} + +a.header-link, +a.header-link:visited { + color: #eee; } -a.header-link:hover { - color: #fff; +a.header-link:hover, +a.header-link:focus, +a.header-link:active { + color: var(--color-light-grey); } /*****************************************************************************/ @@ -74,9 +88,9 @@ a.header-link:hover { main { color: #fafafa; line-height: 1.80; - margin: 2rem auto 1rem; + margin: 0 auto; max-width: 55rem; - padding: 1.5rem; + padding: 1rem 1.5rem; } /*****************************************************************************/ @@ -101,7 +115,7 @@ a:hover, a:focus, a:active { @font-face { font-family: Montserrat, sans-serif; font-weight: bold; - src: url(font/Montserrat/Montserrat-Bold.ttf); + src: url(../font/Montserrat/Montserrat-Bold.ttf); } h1, h2, h3, h4 { @@ -114,24 +128,25 @@ h1, h2, h3, h4 { h1 { margin-top: 0; - font-size: 2.3rem; + font-size: 2.5rem; } -h2 { font-size: 2.0rem; } -h3 { font-size: 1.7rem; } -h4 { font-size: 1.5rem; } -h5 { font-size: 1.3rem; } -h6 { font-size: 1.1rem; } +h2 { font-size: 2.1rem; } +h3 { font-size: 1.8rem; } +h4 { font-size: 1.6rem; } +h5 { font-size: 1.4rem; } +h6 { font-size: 1.2rem; } /* code */ @font-face { font-family: FiraMono; font-weight: normal; - src: url(font/FiraMono/FiraMono-Regular.ttf); + src: url(../font/FiraMono/FiraMono-Regular.ttf); } pre, code { + white-space: pre; font-family: FiraMono, "Courier New", monospace; } @@ -140,6 +155,7 @@ code { padding: 0.2rem 0.3rem; border: 1px solid var(--color-light-grey); font-size: 82%; + margin: 0 1px; } pre { |
