Improvements

- Add .contrast variant
- Separate _button-styles.scss
- Edit .secondary, mark, figcaption, hgroup, tooltips
- Docs: Add More about grids, External links icon, Second theme switcher
This commit is contained in:
Lucas 2019-11-30 12:43:20 +07:00
parent 066c0a04fd
commit 73237bdcd4
26 changed files with 516 additions and 229 deletions

View file

@ -48,6 +48,12 @@ nav {
&:focus {
text-decoration: none;
}
@if $enable-classes {
&.contrast:not([role="button"]) {
box-shadow: none;
}
}
}
}

View file

@ -22,8 +22,8 @@
overflow: hidden;
transform: translate(-50%, -.25rem);
border-radius: $round;
background: var(--secondary);
color: var(--secondary-inverse);
background: var(--contrast);
color: var(--contrast-inverse);
font-size: .85rem;
font-style: normal;
font-weight: normal;
@ -33,9 +33,9 @@
content: attr(data-tooltip);
opacity: 0;
pointer-events: none;
transition: opacity $transition;
}
// Caret
&::after {
padding: 0;
transform: translate(-50%, 0rem);
@ -44,7 +44,7 @@
border-left: .3rem solid transparent;
border-radius: 0;
background-color: transparent;
color: var(--secondary);
color: var(--contrast);
content: '';
}