forked from kamat/blog
fix: improve responsive typography and page structure
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
/* Site-specific overrides; keep the vendored Simple.css unchanged. */
|
||||
body > header .site-title {
|
||||
max-width: 1200px;
|
||||
margin: 1rem auto;
|
||||
font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
#content {
|
||||
min-width: 0;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
#content h1 {
|
||||
font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#content h2 {
|
||||
font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
#content h3 {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
header nav a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 44px;
|
||||
padding: 0.4rem 0.9rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
a:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
Simple.css v2.3.7
|
||||
Upstream: https://github.com/kevquirk/simple.css
|
||||
Commit: 7a0baa8906b3f76f58e14c6e496dd832b20ed946
|
||||
Source: https://raw.githubusercontent.com/kevquirk/simple.css/7a0baa8906b3f76f58e14c6e496dd832b20ed946/simple.min.css
|
||||
License: MIT (see simple.LICENSE.txt)
|
||||
|
||||
Keep simple.min.css unchanged. Put site-specific overrides in ../custom.css.
|
||||
When updating Simple.css, choose a release, replace the stylesheet and license
|
||||
from that release, update this file, and check desktop/mobile and light/dark views.
|
||||
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Simple.css (Kev Quirk)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Vendored
+1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user