Light mode fixes

pull/8274/head
Puru Vijay 4 years ago
parent 250bfd02bb
commit 152cc22806

@ -243,8 +243,8 @@ export default app;`,
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0.6rem var(--side-nav); padding: 0.6rem var(--side-nav);
background-color: var(--second); background-color: var(--sk-back-4);
color: white; color: var(--sk-text-1);
white-space: nowrap; white-space: nowrap;
flex: 0; flex: 0;
} }
@ -256,9 +256,9 @@ export default app;`,
padding: 0.2em; padding: 0.2em;
opacity: 0.7; opacity: 0.7;
transition: opacity 0.3s; transition: opacity 0.3s;
font-family: var(--font); font-family: var(--sk-font);
font-size: 1.6rem; font-size: 1.6rem;
color: white; color: var(--sk-text-1);
/* width: 1.6em; /* width: 1.6em;
height: 1.6em; */ height: 1.6em; */
line-height: 1; line-height: 1;
@ -280,7 +280,7 @@ export default app;`,
background: transparent; background: transparent;
border: none; border: none;
color: currentColor; color: currentColor;
font-family: var(--font); font-family: var(--sk-font);
font-size: 1.6rem; font-size: 1.6rem;
opacity: 0.7; opacity: 0.7;
outline: none; outline: none;

@ -52,6 +52,10 @@
</main> </main>
<style> <style>
:global(:root) {
color-scheme: light dark;
}
@media (max-width: 830px) { @media (max-width: 830px) {
:global(aside) { :global(aside) {
z-index: 9999 !important; z-index: 9999 !important;
@ -84,6 +88,11 @@
} }
} }
:global(html, body) {
height: 100%;
width: 100%;
}
:global(.examples-container, .repl-outer, .tutorial-outer) { :global(.examples-container, .repl-outer, .tutorial-outer) {
height: calc(100vh - var(--nav-h) - var(--ukr-footer-height)) !important; height: calc(100vh - var(--nav-h) - var(--ukr-footer-height)) !important;
} }

@ -17,12 +17,14 @@
{ {
id: 'reactive-assignments', id: 'reactive-assignments',
title: 'Reactivity', title: 'Reactivity',
description: 'Trigger efficient, granular updates by assigning to local variables. The compiler does the rest.', description:
'Trigger efficient, granular updates by assigning to local variables. The compiler does the rest.',
}, },
{ {
id: 'svg-transitions', id: 'svg-transitions',
title: 'Transitions', title: 'Transitions',
description: 'Build beautiful UIs with a powerful, performant transition engine built right into the framework.', description:
'Build beautiful UIs with a powerful, performant transition engine built right into the framework.',
}, },
]; ];
@ -102,8 +104,8 @@
} }
button.selected { button.selected {
background-color: white; background-color: var(--sk-back-1);
color: var(--sk-back-1); color: var(--sk-text-2);
} }
.small-show { .small-show {

@ -48,7 +48,7 @@
height: 100%; height: 100%;
border-right: 1px solid var(--sk-back-4); border-right: 1px solid var(--sk-back-4);
background-color: var(--sk-back-4); background-color: var(--sk-back-4);
color: white; color: var(--sk-text-2);
padding: 3rem 3rem 0 3rem; padding: 3rem 3rem 0 3rem;
margin: 0; margin: 0;
} }

@ -220,7 +220,7 @@
font-size: var(--sk-text-m); font-size: var(--sk-text-m);
line-height: 1; line-height: 1;
font-weight: 400; font-weight: 400;
color: white; color: var(--sk-text-2);
} }
.chapter-markup :global(h2:first-child) { .chapter-markup :global(h2:first-child) {
@ -234,7 +234,7 @@
} }
.chapter-markup :global(a:hover) { .chapter-markup :global(a:hover) {
color: white; color: var(--sk-text-1);
} }
.chapter-markup :global(ul) { .chapter-markup :global(ul) {
@ -258,7 +258,7 @@
.chapter-markup :global(p) > :global(code), .chapter-markup :global(p) > :global(code),
.chapter-markup :global(ul) :global(code) { .chapter-markup :global(ul) :global(code) {
color: var(--sidebar-text); color: var(--sk-code-base);
background: var(--sk-code-bg); background: var(--sk-code-bg);
padding: 0.2em 0.4em 0.3em; padding: 0.2em 0.4em 0.3em;
white-space: nowrap; white-space: nowrap;
@ -266,6 +266,15 @@
top: -0.1em; top: -0.1em;
} }
.chapter-markup :global(:where(pre.language-markup)) {
background-color: var(--sk-code-bg);
color: var(--sk-code-base);
border-radius: 0.5rem;
padding: 1rem;
margin: 0 0 1rem;
font-size: 14px;
}
.controls { .controls {
border-top: 1px solid rgba(255, 255, 255, 0.15); border-top: 1px solid rgba(255, 255, 255, 0.15);
padding: 1em 0 0 0; padding: 1em 0 0 0;
@ -274,9 +283,9 @@
} }
.show { .show {
background: var(--prime); background: var(--sk-theme-1);
padding: 0.3em 0.7em; padding: 0.3em 0.7em;
border-radius: var(--border-r); border-radius: var(--sk-border-radius);
top: 0.1em; top: 0.1em;
position: relative; position: relative;
font-size: var(--h5); font-size: var(--h5);
@ -303,7 +312,7 @@
.improve-chapter a { .improve-chapter a {
font-size: 14px; font-size: 14px;
text-decoration: none; text-decoration: none;
opacity: 0.3; opacity: 0.6;
padding: 0 0.1em 0 1.2em; padding: 0 0.1em 0 1.2em;
background: no-repeat 0 50% url(/icons/edit.svg); background: no-repeat 0 50% url(/icons/edit.svg);
background-size: 1em 1em; background-size: 1em 1em;

@ -67,8 +67,8 @@
position: relative; position: relative;
padding: 1em 0.5em; padding: 1em 0.5em;
font-weight: 300; font-weight: 300;
font-size: var(--h6); font-size: var(--sk-text-xs);
color: white; color: var(--sk-text-2);
} }
a { a {
@ -76,7 +76,7 @@
padding: 0.7em 0; padding: 0.7em 0;
text-align: center; text-align: center;
opacity: 0.75; opacity: 0.75;
color: white; color: var(--sk-text-2);
} }
a:hover { a:hover {

Loading…
Cancel
Save