robin/maivi

a tiny cute lua web framework

git clone https://git.robinwobin.dev/robin/maivi

robindocs: wip897859d

push-srxvuswpkqxx
1.2 KiB82 linesraw
1@layer reset {
2
3  *,
4  *::before,
5  *::after {
6    box-sizing: border-box;
7  }
8
9  * {
10    margin: 0;
11    padding: 0;
12  }
13
14  ul[role='list'],
15  ol[role='list'] {
16
17    &,
18    .text & {
19      list-style: none;
20    }
21  }
22
23  html:focus-within {
24    scroll-behavior: smooth;
25  }
26
27  a:not([class]) {
28    text-decoration-skip-ink: auto;
29  }
30
31  img,
32  picture,
33  svg,
34  video,
35  canvas {
36    max-width: 100%;
37    height: auto;
38    vertical-align: middle;
39    font-style: italic;
40    background-repeat: no-repeat;
41    background-size: cover;
42  }
43
44  input,
45  button,
46  textarea,
47  select {
48    border: unset;
49    background: unset;
50    padding: unset;
51    font: inherit;
52  }
53
54  @media (prefers-reduced-motion: reduce) {
55    html:focus-within {
56      scroll-behavior: auto;
57    }
58
59    *,
60    *::before,
61    *::after {
62      animation-duration: 0.01ms !important;
63      animation-iteration-count: 1 !important;
64      transition-duration: 0.01ms !important;
65      scroll-behavior: auto !important;
66      transition: none;
67    }
68  }
69
70  body,
71  html {
72    height: 100%;
73    width: 100vw;
74    overflow-x: hidden;
75
76    -webkit-text-size-adjust: none;
77    -moz-text-size-adjust: none;
78    text-size-adjust: none;
79
80    scroll-behavior: smooth;
81  }
82}