-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
39fffb4
commit 3ee5ce2
Showing
3 changed files
with
333 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,220 @@ | ||
.theme-light { | ||
--brand-primary: rgb(47, 112, 193); | ||
--brand-secondary: rgb(116, 97, 195); | ||
--brand-alternative: rgb(19, 120, 134); | ||
--background-site: rgb(249, 249, 249); | ||
--background-code: rgb(244, 244, 244); | ||
--text-body: rgb(54, 49, 61); | ||
--text-comment: rgb(99, 94, 105); | ||
--text-high-contrast: rgb(49, 49, 49); | ||
--text-medium-contrast: rgb(99, 94, 105); | ||
--text-low-contrast: rgb(116, 109, 118); | ||
--detail-high-contrast: rgb(192, 192, 192); | ||
--detail-medium-contrast: rgb(234, 234, 234); | ||
--detail-low-contrast: rgb(240, 240, 242); | ||
--admonition-note: rgb(46, 109, 188); | ||
--admonition-warning: rgb(255, 196, 9); | ||
--admonition-danger: rgb(220, 38, 38); | ||
--brand-primary-rgb-value: 47, 112, 193; | ||
--brand-secondary-rgb-value: 116, 97, 195; | ||
--brand-alternative-rgb-value: 19, 120, 134; | ||
--background-site-rgb-value: 249, 249, 249; | ||
--background-code-rgb-value: 244, 244, 244; | ||
--text-body-rgb-value: 54, 49, 61; | ||
--text-comment-rgb-value: 99, 94, 105; | ||
--text-high-contrast-rgb-value: 49, 49, 49; | ||
--text-medium-contrast-rgb-value: 99, 94, 105; | ||
--text-low-contrast-rgb-value: 116, 109, 118; | ||
--detail-high-contrast-rgb-value: 192, 192, 192; | ||
--detail-medium-contrast-rgb-value: 234, 234, 234; | ||
--detail-low-contrast-rgb-value: 240, 240, 242; | ||
--admonition-note-rgb-value: 46, 109, 188; | ||
--admonition-warning-rgb-value: 255, 196, 9; | ||
--admonition-danger-rgb-value: 220, 38, 38; | ||
} | ||
.theme-dark { | ||
--brand-primary: rgb(138, 180, 248); | ||
--brand-secondary: rgb(193, 168, 226); | ||
--brand-alternative: rgb(136, 186, 191); | ||
--background-site: rgb(0, 0, 0); | ||
--background-code: rgb(12, 12, 12); | ||
--text-body: rgb(222, 222, 222); | ||
--text-comment: rgb(170, 170, 170); | ||
--text-high-contrast: rgb(230, 230, 230); | ||
--text-medium-contrast: rgb(202, 202, 202); | ||
--text-low-contrast: rgb(170, 170, 170); | ||
--detail-high-contrast: rgb(101, 101, 101); | ||
--detail-medium-contrast: rgb(25, 25, 25); | ||
--detail-low-contrast: rgb(21, 21, 21); | ||
--admonition-note: rgb(138, 180, 248); | ||
--admonition-warning: rgb(253, 186, 116); | ||
--admonition-danger: rgb(220, 38, 38); | ||
--brand-primary-rgb-value: 138, 180, 248; | ||
--brand-secondary-rgb-value: 193, 168, 226; | ||
--brand-alternative-rgb-value: 136, 186, 191; | ||
--background-site-rgb-value: 0, 0, 0; | ||
--background-code-rgb-value: 12, 12, 12; | ||
--text-body-rgb-value: 222, 222, 222; | ||
--text-comment-rgb-value: 170, 170, 170; | ||
--text-high-contrast-rgb-value: 230, 230, 230; | ||
--text-medium-contrast-rgb-value: 202, 202, 202; | ||
--text-low-contrast-rgb-value: 170, 170, 170; | ||
--detail-high-contrast-rgb-value: 101, 101, 101; | ||
--detail-medium-contrast-rgb-value: 25, 25, 25; | ||
--detail-low-contrast-rgb-value: 21, 21, 21; | ||
--admonition-note-rgb-value: 138, 180, 248; | ||
--admonition-warning-rgb-value: 253, 186, 116; | ||
--admonition-danger-rgb-value: 220, 38, 38; | ||
} | ||
html { | ||
box-sizing: border-box; | ||
line-height: 1.15; | ||
-webkit-text-size-adjust: 100%; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: inherit; | ||
} | ||
html, | ||
body, | ||
p, | ||
ol, | ||
ul, | ||
li, | ||
dl, | ||
dt, | ||
dd, | ||
blockquote, | ||
figure, | ||
fieldset, | ||
legend, | ||
textarea, | ||
pre, | ||
iframe, | ||
hr, | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-size: 100%; | ||
font-weight: 400; | ||
} | ||
ul { | ||
list-style: none; | ||
} | ||
:root { | ||
-moz-tab-size: 4; | ||
tab-size: 4; | ||
} | ||
hr { | ||
height: 0; | ||
} | ||
abbr[title] { | ||
text-decoration: underline dotted; | ||
} | ||
b, | ||
strong { | ||
font-weight: bolder; | ||
} | ||
code, | ||
kbd, | ||
samp, | ||
pre { | ||
font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, | ||
monospace; | ||
font-size: 1em; | ||
} | ||
small { | ||
font-size: 80%; | ||
} | ||
sub, | ||
sup { | ||
font-size: 75%; | ||
line-height: 0; | ||
position: relative; | ||
vertical-align: baseline; | ||
} | ||
sub { | ||
bottom: -0.25em; | ||
top: -0.5em; | ||
} | ||
button, | ||
input, | ||
optgroup, | ||
select, | ||
textarea { | ||
font-family: inherit; | ||
font-size: 100%; | ||
line-height: 1.15; | ||
margin: 0; | ||
} | ||
button, | ||
select { | ||
text-transform: none; | ||
} | ||
button, | ||
[type='button'], | ||
[type='reset'], | ||
[type='submit'] { | ||
-webkit-appearance: none; | ||
appearance: none; | ||
} | ||
button::-moz-focus-inner, | ||
[type='button']::-moz-focus-inner, | ||
[type='reset']::-moz-focus-inner, | ||
[type='submit']::-moz-focus-inner { | ||
border-style: none; | ||
padding: 0; | ||
} | ||
button:-moz-focusring, | ||
[type='button']:-moz-focusring, | ||
[type='reset']:-moz-focusring, | ||
[type='submit']:-moz-focusring { | ||
outline: 1px dotted ButtonText; | ||
} | ||
img, | ||
embed, | ||
iframe, | ||
object, | ||
audio, | ||
video { | ||
height: auto; | ||
max-width: 100%; | ||
} | ||
html { | ||
background-color: var(--background-site); | ||
font-size: 62.5%; | ||
} | ||
body { | ||
background-color: var(--background-site); | ||
color: var(--text-high-contrast); | ||
font-size: 1.6rem; | ||
line-height: 1.65; | ||
} | ||
html { | ||
font-family: 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', | ||
Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', | ||
'Segoe UI Symbol'; | ||
letter-spacing: -0.02rem; | ||
} | ||
@supports (font-variation-settings: normal) { | ||
html { | ||
font-family: 'Inter var', 'system-ui', -apple-system, BlinkMacSystemFont, | ||
'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', | ||
'Segoe UI Emoji', 'Segoe UI Symbol'; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
.embla { | ||
--slide-spacing: 1rem; | ||
--slide-size: 100%; | ||
--slide-height: 19rem; | ||
padding: 1.6rem; | ||
} | ||
.embla__viewport { | ||
overflow: hidden; | ||
} | ||
.embla__container { | ||
backface-visibility: hidden; | ||
display: flex; | ||
touch-action: pan-y; | ||
margin-left: calc(var(--slide-spacing) * -1); | ||
} | ||
.embla__slide { | ||
flex: 0 0 var(--slide-size); | ||
min-width: 0; | ||
padding-left: var(--slide-spacing); | ||
position: relative; | ||
} | ||
.embla__slide__img { | ||
display: block; | ||
height: var(--slide-height); | ||
width: 100%; | ||
object-fit: cover; | ||
} | ||
.embla__slide__number { | ||
width: 4.6rem; | ||
height: 4.6rem; | ||
z-index: 1; | ||
position: absolute; | ||
top: 0.6rem; | ||
right: 0.6rem; | ||
border-radius: 50%; | ||
background-color: rgba(var(--background-site-rgb-value), 0.85); | ||
line-height: 4.6rem; | ||
font-weight: 900; | ||
text-align: center; | ||
pointer-events: none; | ||
} | ||
.embla__slide__number > span { | ||
color: var(--brand-primary); | ||
background-image: linear-gradient( | ||
45deg, | ||
var(--brand-primary), | ||
var(--brand-secondary) | ||
); | ||
background-clip: text; | ||
-webkit-background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
font-size: 1.6rem; | ||
display: block; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.sandbox { | ||
width: 100%; | ||
} | ||
@media (min-width: 750px) { | ||
.sandbox { | ||
margin-left: auto; | ||
margin-right: auto; | ||
max-width: 67rem; | ||
} | ||
} | ||
.sandbox__carousel { | ||
position: relative; | ||
background-color: var(--background-code); | ||
} | ||
@media (max-width: 749px) { | ||
.sandbox__carousel { | ||
border-top: 0.1rem solid var(--detail-low-contrast); | ||
border-bottom: 0.1rem solid var(--detail-low-contrast); | ||
} | ||
} | ||
@media (min-width: 750px) { | ||
.sandbox__carousel { | ||
border-radius: 0.4rem; | ||
border: 0.1rem solid var(--detail-low-contrast); | ||
} | ||
} | ||
.sandbox__header { | ||
font-size: 2rem; | ||
font-weight: 700; | ||
text-align: center; | ||
padding: 4rem 2rem 2rem 2rem; | ||
} | ||
.sandbox__footer { | ||
display: flex; | ||
justify-content: center; | ||
padding: 2rem 2rem 4rem 2rem; | ||
} | ||
.sandbox__footer__link { | ||
display: flex; | ||
align-items: center; | ||
background-color: transparent; | ||
text-decoration: none; | ||
text-align: center; | ||
font-weight: 700; | ||
color: var(--text-low-contrast); | ||
font-size: 1.4rem; | ||
} | ||
.sandbox__footer__link__svg { | ||
display: block; | ||
width: 2rem; | ||
height: 2rem; | ||
margin-right: 1rem; | ||
fill: currentColor; | ||
} |