Improvements

- Edit code colors and add a color for comments
- Add ::selection
- Small edits for cards: last-child and overflow
- Add card-sectioning (header, footer, pre)
- Change global hue for Primary color
- Remove border for pre
- Add querySelectorAll() for theme-switcher.js
- Update docs
This commit is contained in:
Lucas 2019-12-01 16:35:38 +07:00
parent c3f9d8d8c8
commit 85e21d35de
23 changed files with 937 additions and 422 deletions

View file

@ -24,7 +24,7 @@ pre,
code,
kbd {
background: var(--code-inlined);
color: var(--muted-text);
color: var(--code-color-1);
font-size: 85%;
font-weight: 400;
line-height: 1;
@ -66,7 +66,6 @@ pre {
margin-left: -$spacing-gutter;
padding: $spacing-block $spacing-gutter;
overflow-x: auto;
border-left: .25rem solid var(--code-border);
background: var(--code-background);
@media (min-width: map-get($breakpoints, "sm")) {
@ -88,21 +87,27 @@ code {
// Tags
b {
color: var(--code-color-1);
color: var(--code-color-2);
font-weight: normal;
}
// Properties
i {
color: var(--code-color-2);
color: var(--code-color-3);
font-style: normal;
}
// Values
u {
color: var(--text);
color: var(--code-color-4);
text-decoration: none;
}
// Comments
em {
color: var(--code-color-5);
font-style: normal;
}
}
// kbd

View file

@ -309,3 +309,8 @@ ins {
del {
color: var(--invalid);
}
// selection
::selection {
background-color: var(--primary-focus);
}