continue re-design
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
/* Body and Global Styles */
|
||||
|
||||
/* Hide scrollbars but keep functionality */
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover,
|
||||
::-webkit-scrollbar-thumb:active {
|
||||
background-color: var(--black-alpha-12);
|
||||
}
|
||||
|
||||
/* Global text rendering */
|
||||
* {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
/* Body defaults */
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
color: var(--accent-black);
|
||||
background-color: var(--background-base);
|
||||
overflow-anchor: none;
|
||||
}
|
||||
|
||||
/* Prevent image dragging */
|
||||
img,
|
||||
video {
|
||||
max-width: unset;
|
||||
user-select: none;
|
||||
-webkit-user-drag: none;
|
||||
-khtml-user-drag: none;
|
||||
-moz-user-drag: none;
|
||||
-o-user-drag: none;
|
||||
user-drag: none;
|
||||
}
|
||||
|
||||
/* Form elements */
|
||||
input,
|
||||
input:focus,
|
||||
textarea,
|
||||
textarea:focus,
|
||||
select,
|
||||
select:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Focus states handled by utilities */
|
||||
*:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Smooth scrolling */
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* Section defaults */
|
||||
section {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Text selection */
|
||||
h1, h2, h3, h4, h5, h6, p {
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
/* Button defaults */
|
||||
button {
|
||||
text-align: left;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
/* Selection color using design system colors */
|
||||
*::selection {
|
||||
background-color: var(--heat-20);
|
||||
color: var(--accent-black);
|
||||
}
|
||||
|
||||
/* Links */
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--heat-100);
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
code {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.875em;
|
||||
background-color: var(--black-alpha-4);
|
||||
padding: 0.125rem 0.25rem;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Prevent FOUC */
|
||||
html {
|
||||
visibility: visible !important;
|
||||
}
|
||||
|
||||
/* Responsive text sizing */
|
||||
@media (max-width: 768px) {
|
||||
html {
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1536px) {
|
||||
html {
|
||||
font-size: 17px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
/* Layout Utilities and Helpers */
|
||||
|
||||
/* Container system */
|
||||
.container {
|
||||
width: 100%;
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--container-padding, 1rem);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.container {
|
||||
max-width: 640px;
|
||||
padding-inline: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
max-width: 768px;
|
||||
padding-inline: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.container {
|
||||
max-width: 1024px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
.container {
|
||||
max-width: 1280px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1536px) {
|
||||
.container {
|
||||
max-width: 1536px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Layout patterns */
|
||||
.layout-grid {
|
||||
display: grid;
|
||||
gap: var(--gap, 1rem);
|
||||
}
|
||||
|
||||
.layout-flex {
|
||||
display: flex;
|
||||
gap: var(--gap, 1rem);
|
||||
}
|
||||
|
||||
/* Common grid patterns */
|
||||
.grid-cols-auto-fit {
|
||||
grid-template-columns: repeat(auto-fit, minmax(var(--min-width, 250px), 1fr));
|
||||
}
|
||||
|
||||
.grid-cols-auto-fill {
|
||||
grid-template-columns: repeat(auto-fill, minmax(var(--min-width, 250px), 1fr));
|
||||
}
|
||||
|
||||
/* Sidebar layouts */
|
||||
.layout-sidebar {
|
||||
display: grid;
|
||||
grid-template-columns: var(--sidebar-width, 260px) 1fr;
|
||||
gap: var(--gap, 2rem);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.layout-sidebar {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Stack layouts */
|
||||
.stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--gap, 1rem);
|
||||
}
|
||||
|
||||
.stack-horizontal {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: var(--gap, 1rem);
|
||||
}
|
||||
|
||||
/* Cluster layout */
|
||||
.cluster {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--gap, 1rem);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Center layout */
|
||||
.center {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: var(--min-height, 100vh);
|
||||
}
|
||||
|
||||
/* Cover layout */
|
||||
.cover {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: var(--min-height, 100vh);
|
||||
}
|
||||
|
||||
.cover > * {
|
||||
margin-block: 1rem;
|
||||
}
|
||||
|
||||
.cover > :first-child:not(.centered) {
|
||||
margin-block-start: 0;
|
||||
}
|
||||
|
||||
.cover > :last-child:not(.centered) {
|
||||
margin-block-end: 0;
|
||||
}
|
||||
|
||||
.cover > .centered {
|
||||
margin-block: auto;
|
||||
}
|
||||
|
||||
/* Switcher layout (switches from horizontal to vertical) */
|
||||
.switcher {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--gap, 1rem);
|
||||
}
|
||||
|
||||
.switcher > * {
|
||||
flex-grow: 1;
|
||||
flex-basis: calc((var(--threshold, 30rem) - 100%) * 999);
|
||||
}
|
||||
|
||||
/* Frame layout (for aspect ratios) */
|
||||
.frame {
|
||||
aspect-ratio: var(--ratio, 16 / 9);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.frame > img,
|
||||
.frame > video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* Reel layout (horizontal scroll) */
|
||||
.reel {
|
||||
display: flex;
|
||||
gap: var(--gap, 1rem);
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
scrollbar-width: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.reel::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.reel > * {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
/* Full bleed */
|
||||
.full-bleed {
|
||||
width: 100vw;
|
||||
margin-inline: calc(50% - 50vw);
|
||||
}
|
||||
|
||||
/* Visually hidden but accessible */
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
/* Skip to content link */
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
left: 1rem;
|
||||
z-index: 999;
|
||||
padding: 0.5rem 1rem;
|
||||
background-color: var(--accent-black);
|
||||
color: var(--white);
|
||||
text-decoration: none;
|
||||
border-radius: 0.25rem;
|
||||
opacity: 0;
|
||||
transform: translateY(-100%);
|
||||
transition: opacity 0.2s, transform 0.2s;
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
/* Modern CSS Reset */
|
||||
|
||||
/* Box sizing rules */
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Remove default margin */
|
||||
body,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
figure,
|
||||
blockquote,
|
||||
dl,
|
||||
dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Remove list styles on ul, ol elements with a list role */
|
||||
ul[role='list'],
|
||||
ol[role='list'] {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Set core root defaults */
|
||||
html:focus-within {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* Set core body defaults */
|
||||
body {
|
||||
min-height: 100vh;
|
||||
text-rendering: optimizeSpeed;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* A elements that don't have a class get default styles */
|
||||
a:not([class]) {
|
||||
text-decoration-skip-ink: auto;
|
||||
}
|
||||
|
||||
/* Make images easier to work with */
|
||||
img,
|
||||
picture,
|
||||
video,
|
||||
canvas,
|
||||
svg {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Inherit fonts for inputs and buttons */
|
||||
input,
|
||||
button,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html:focus-within {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reset button styles */
|
||||
button {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
text-align: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* Form elements */
|
||||
fieldset {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Text area */
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
/* Remove default focus styles and add custom ones */
|
||||
:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--heat-100);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Prevent iOS zoom on form focus */
|
||||
@media (hover: none) {
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="password"],
|
||||
input[type="number"],
|
||||
input[type="tel"],
|
||||
input[type="search"],
|
||||
input[type="url"],
|
||||
textarea,
|
||||
select {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user