-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
12,284 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,132 @@ | ||
:root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:24px;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}html,body,#app{height:100%}.container{display:flex;justify-content:center;box-sizing:border-box;padding:3rem;height:100%}.content{display:grid;gap:1rem 3rem;grid-template-columns:1fr 1fr;max-width:1000px;align-items:center}.nested-container{height:20rem}.horizontal-container{height:20rem;width:100%}a{display:block;margin:1rem 0}img{width:100%;object-fit:cover} | ||
:root { | ||
font-family: Inter, Avenir, Helvetica, Arial, sans-serif; | ||
font-size: 16px; | ||
line-height: 24px; | ||
font-weight: 400; | ||
|
||
color-scheme: light dark; | ||
color: rgba(255, 255, 255, 0.87); | ||
background-color: #242424; | ||
|
||
font-synthesis: none; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
-webkit-text-size-adjust: 100%; | ||
} | ||
|
||
a { | ||
font-weight: 500; | ||
/* color: #646cff; */ | ||
text-decoration: inherit; | ||
} | ||
a:hover { | ||
color: #535bf2; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
h1 { | ||
font-size: 3.2em; | ||
line-height: 1.1; | ||
} | ||
|
||
button { | ||
border-radius: 8px; | ||
border: 1px solid transparent; | ||
padding: 0.6em 1.2em; | ||
font-size: 1em; | ||
font-weight: 500; | ||
font-family: inherit; | ||
background-color: #1a1a1a; | ||
cursor: pointer; | ||
transition: border-color 0.25s; | ||
} | ||
button:hover { | ||
border-color: #646cff; | ||
} | ||
button:focus, | ||
button:focus-visible { | ||
outline: 4px auto -webkit-focus-ring-color; | ||
} | ||
|
||
@media (prefers-color-scheme: light) { | ||
:root { | ||
color: #213547; | ||
background-color: #ffffff; | ||
} | ||
a:hover { | ||
color: #747bff; | ||
} | ||
button { | ||
background-color: #f9f9f9; | ||
} | ||
} | ||
|
||
/* IMPORTANT */ | ||
html, | ||
body, | ||
#app { | ||
/* pass down scroll handling to content wrap by setting concrete height */ | ||
height: 100%; | ||
} | ||
.container { | ||
/* firefox breaks if container is flex... */ | ||
/* display: flex; | ||
justify-content: center; */ | ||
|
||
/* margin: auto; */ | ||
|
||
/* important when using borders, padding */ | ||
/* box-sizing: border-box; | ||
padding: 3rem; */ | ||
|
||
/* ! better not style container at all, only set dimensions */ | ||
|
||
/* and setting height of container itself */ | ||
height: 100%; | ||
} | ||
.content-wrap { | ||
display: flex; | ||
flex-flow: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
box-sizing: border-box; | ||
padding: 3rem; | ||
} | ||
.content { | ||
display: grid; | ||
gap: 1rem 3rem; | ||
grid-template-columns: 1fr 1fr; | ||
|
||
max-width: 1000px; | ||
|
||
align-items: center; | ||
} | ||
.nested-container { | ||
height: 20rem; | ||
} | ||
.horizontal-container { | ||
width: 100%; | ||
|
||
grid-row: 2; | ||
grid-column: 1 / 3; | ||
} | ||
.bidirectional-container { | ||
height: 10rem; | ||
width: 100%; | ||
|
||
grid-row: 3; | ||
grid-column: 1 / 3; | ||
} | ||
a { | ||
display: block; | ||
margin: 1rem 0; | ||
} | ||
img { | ||
width: 100%; | ||
object-fit: cover; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters