thomaswilson-sveltekit/src/styles/thomaswilson.css

170 lines
3.8 KiB
CSS
Raw Normal View History

2022-04-16 10:43:45 +00:00
@font-face {
2023-01-30 22:30:38 +00:00
font-family: 'FivoSansModern-Regular';
src: url('/FivoSansModern-Regular.otf');
font-display: swap;
2022-04-16 10:43:45 +00:00
}
:root {
2023-01-30 22:30:38 +00:00
--brand-orange: #ff8c0d;
--brand-purple: #464d77;
--brand-green: #36827f;
--brand-blue: #00a0e9;
2023-02-12 10:16:13 +00:00
--white: #fff;
2023-01-30 22:30:38 +00:00
--gray-100: #f8f9fa;
--gray-200: #e9ecef;
--gray-300: #dee2e6;
--gray-400: #ced4da;
--gray-500: #adb5bd;
--gray-600: #6c757d;
--gray-700: #495057;
--gray-800: #343a40;
--gray-900: #212529;
--gray-950: #1a1e23;
--gray-1000: #0a0c0e;
2024-03-17 09:33:22 +00:00
--font-family-mono: monospace;
2023-01-30 22:30:38 +00:00
--font-family-title: 'FivoSansModern-Regular', sans-serif;
--font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans',
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
--font-family-serif: Georgia, Cambria, 'Times New Roman', Times, serif;
2023-02-14 23:00:25 +00:00
--line-height: 120%;
--line-height-sm: 120%;
--line-height-md: 138%;
--line-height-lg: 145%;
2023-01-30 22:30:38 +00:00
--font-size-base: 1rem;
--spacing-base: 1rem;
--spacing-sm: 0.25rem;
--spacing-md: 0.5rem;
--spacing-lg: 1rem;
--spacing-xl: 1.5rem;
--navbar-height: 75px;
--font-size-sm: 0.875rem;
2023-04-14 20:50:27 +00:00
--font-size: 1.12rem;
2023-01-30 22:30:38 +00:00
--font-size-md: 1.25rem;
--font-size-lg: 1.5rem;
--btn-border: 0;
--btn-padding: var(--spacing-sm);
--btn-border-radius: 0.25rem;
--btn-font-size: 1.08rem;
--btn-text-decoration: none;
2022-04-16 10:43:45 +00:00
}
body {
2023-01-30 22:30:38 +00:00
font-family: var(--font-family-sans);
2023-02-14 23:00:25 +00:00
line-height: var(--line-height-md);
2023-02-14 22:47:26 +00:00
min-height: 100vh;
2024-03-17 09:33:22 +00:00
background-color: var(--colour-scheme-background);
color: var(--colour-scheme-text);
transition: 0.3s ease;
transition-property: background-color, color;
2022-04-16 10:43:45 +00:00
}
.thomaswilson-container {
2023-01-30 22:30:38 +00:00
--container-padding: 24px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: calc(100vh - var(--navbar-height) - calc(2 * var(--container-padding)));
padding: var(--container-padding);
2022-04-16 10:43:45 +00:00
}
.thomaswilson-container .section {
2023-01-30 22:30:38 +00:00
padding: 24px;
width: 100%;
max-width: 750px;
font-size: 1.19rem;
2023-02-14 23:00:25 +00:00
line-height: var(--line-height-md);
2023-01-30 22:30:38 +00:00
padding-bottom: var(--spacing-base);
padding-bottom: 2rem;
2022-04-16 10:43:45 +00:00
}
.thomaswilson-strapline .title {
2023-01-30 22:30:38 +00:00
font-family: var(--font-family-title);
font-size: var(--font-size-base);
font-weight: 700;
margin: 0;
2022-04-16 10:43:45 +00:00
}
.thomaswilson-strapline p {
2024-03-17 09:33:22 +00:00
font-size: 1.4rem;
2023-02-14 23:00:25 +00:00
line-height: var(--line-height-md);
2023-01-30 22:30:38 +00:00
letter-spacing: -0.25px;
2024-03-17 09:33:22 +00:00
font-weight: 200;
2022-04-16 10:43:45 +00:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
2023-01-30 22:30:38 +00:00
font-family: var(--font-family-title);
padding-bottom: 0.25rem;
font-weight: 700;
margin: 0;
2024-03-17 09:33:22 +00:00
color: var(--colour-scheme-text);
2023-01-30 22:30:38 +00:00
padding-top: 8px;
padding-bottom: 6px;
2023-02-14 23:00:25 +00:00
line-height: var(--line-height);
2022-04-16 10:43:45 +00:00
}
p,
li,
2024-03-17 22:01:32 +00:00
a,
blockquote {
2023-02-14 23:00:25 +00:00
font-size: var(--font-size);
line-height: var(--line-height-lg);
2024-03-17 09:33:22 +00:00
font-family: var(--font-family-mono);
2023-01-30 22:30:38 +00:00
margin: 0;
2024-03-17 09:33:22 +00:00
color: var(--colour-scheme-text);
2023-01-30 22:30:38 +00:00
padding: 8px 0;
2022-04-16 10:43:45 +00:00
}
2024-03-17 22:01:32 +00:00
blockquote {
border-style: solid;
padding: 0.25rem 0 0.5rem 1rem;
border-width: 0px;
border-left: 4px solid var(--brand-orange);
opacity: 0.85;
max-width: 60ch;
2024-03-17 22:01:32 +00:00
}
2022-04-16 10:43:45 +00:00
ul,
ol {
2023-01-30 22:30:38 +00:00
padding-left: var(--spacing-base);
2022-04-16 10:43:45 +00:00
}
.thomaswilson-button {
2023-01-30 22:30:38 +00:00
border: var(--btn-border);
padding: var(--btn-padding);
border-radius: var(--btn-border-radius);
font-size: var(--btn-font-size);
text-decoration: var(--btn-text-decoration);
}
.thomaswilson-button:hover {
2023-01-30 22:30:38 +00:00
text-decoration: none;
cursor: pointer;
}
.sr-only {
2023-01-30 22:30:38 +00:00
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
img {
max-width: 100%;
height: auto;
}