diff options
Diffstat (limited to 'src/_general.scss')
| -rw-r--r-- | src/_general.scss | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/src/_general.scss b/src/_general.scss new file mode 100644 index 0000000..82b9467 --- /dev/null +++ b/src/_general.scss | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | @use 'iro-sass/src/index' as iro; | ||
| 2 | @use 'mixins/typography'; | ||
| 3 | @use 'vars'; | ||
| 4 | |||
| 5 | html, | ||
| 6 | body { | ||
| 7 | height: 100%; | ||
| 8 | } | ||
| 9 | |||
| 10 | body { | ||
| 11 | @include typography.set-font(vars.$font--main, (size: iro.props-get(--dims --font-size --md))); | ||
| 12 | |||
| 13 | margin: 0; | ||
| 14 | padding: 0; | ||
| 15 | background-color: iro.props-get(--colors --bg); | ||
| 16 | color: iro.props-get(--colors --fg); | ||
| 17 | } | ||
| 18 | |||
| 19 | h1, | ||
| 20 | h2, | ||
| 21 | h3, | ||
| 22 | h4, | ||
| 23 | h5, | ||
| 24 | h6 { | ||
| 25 | @include typography.set-font(vars.$font--main, (size: iro.props-get(--dims --font-size --md), weight: 400)); | ||
| 26 | |||
| 27 | margin: 0; | ||
| 28 | } | ||
| 29 | |||
| 30 | p { | ||
| 31 | margin-top: iro.props-get(--dims --paragraph --margin-top); | ||
| 32 | margin-bottom: 0; | ||
| 33 | |||
| 34 | &:empty { | ||
| 35 | display: none; | ||
| 36 | } | ||
| 37 | } | ||
| 38 | |||
| 39 | ul, | ||
| 40 | ol { | ||
| 41 | margin: iro.props-get(--dims --paragraph --margin-top) 0 0; | ||
| 42 | padding-left: iro.props-get(--dims --list --indent); | ||
| 43 | } | ||
| 44 | |||
| 45 | :focus { | ||
| 46 | outline: 0; | ||
| 47 | } | ||
| 48 | |||
| 49 | :link, | ||
| 50 | :visited { | ||
| 51 | color: currentColor; | ||
| 52 | text-decoration: none; | ||
| 53 | } | ||
| 54 | |||
| 55 | button { | ||
| 56 | box-sizing: content-box; | ||
| 57 | margin: 0; | ||
| 58 | padding: 0; | ||
| 59 | border: 0; | ||
| 60 | background-color: transparent; | ||
| 61 | color: currentColor; | ||
| 62 | font: inherit; | ||
| 63 | letter-spacing: inherit; | ||
| 64 | text-align: left; | ||
| 65 | text-transform: inherit; | ||
| 66 | appearance: none; | ||
| 67 | |||
| 68 | &::-moz-focus-inner { | ||
| 69 | border: 0; | ||
| 70 | } | ||
| 71 | } | ||
| 72 | |||
| 73 | ::selection { | ||
| 74 | background: iro.props-get(--colors --selection --bg); | ||
| 75 | color: iro.props-get(--colors --selection --fg); | ||
| 76 | } | ||
| 77 | |||
| 78 | img { | ||
| 79 | &::selection { | ||
| 80 | background: iro.props-get(--colors --selection --bg-img); | ||
| 81 | } | ||
| 82 | } | ||
