@onereach/styles 2.8.4 → 2.9.0-beta.605.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +0,0 @@
1
- @use "../utils" as *;
2
-
3
- $body-color: var(--c-neutral-6) !default;
4
- $body-bg-color: var(--c-body-bg) !default;
5
-
6
- html {
7
- text-rendering: optimizeLegibility;
8
- font-size: 100%;
9
- text-size-adjust: 100%;
10
- }
11
-
12
- body {
13
- overflow-x: hidden;
14
- overflow-y: auto;
15
- overscroll-behavior: none;
16
- color: $body-color;
17
- background-color: $body-bg-color;
18
- }
19
-
20
- fieldset {
21
- border: none;
22
- }
23
-
24
- a {
25
- text-decoration: none;
26
- }
27
-
28
- input[type="checkbox"],
29
- input[type="radio"] {
30
- vertical-align: baseline;
31
- }
@@ -1,149 +0,0 @@
1
- html,
2
- body,
3
- div,
4
- span,
5
- applet,
6
- object,
7
- iframe,
8
- h1,
9
- h2,
10
- h3,
11
- h4,
12
- h5,
13
- h6,
14
- p,
15
- blockquote,
16
- pre,
17
- a,
18
- abbr,
19
- acronym,
20
- address,
21
- big,
22
- cite,
23
- code,
24
- del,
25
- dfn,
26
- em,
27
- img,
28
- ins,
29
- kbd,
30
- q,
31
- s,
32
- samp,
33
- small,
34
- strike,
35
- strong,
36
- tt,
37
- var,
38
- b,
39
- u,
40
- i,
41
- center,
42
- dl,
43
- dt,
44
- dd,
45
- ol,
46
- ul,
47
- li,
48
- fieldset,
49
- form,
50
- label,
51
- legend,
52
- table,
53
- caption,
54
- tbody,
55
- tfoot,
56
- thead,
57
- tr,
58
- th,
59
- td,
60
- article,
61
- aside,
62
- canvas,
63
- details,
64
- embed,
65
- figure,
66
- figcaption,
67
- footer,
68
- header,
69
- hgroup,
70
- menu,
71
- nav,
72
- output,
73
- ruby,
74
- section,
75
- summary,
76
- time,
77
- mark,
78
- audio,
79
- video {
80
- padding: 0;
81
- margin: 0;
82
- vertical-align: baseline;
83
- border: 0;
84
- }
85
-
86
- *,
87
- *::before,
88
- *::after {
89
- box-sizing: border-box;
90
- }
91
-
92
- article,
93
- aside,
94
- details,
95
- figcaption,
96
- figure,
97
- footer,
98
- header,
99
- hgroup,
100
- menu,
101
- nav,
102
- section {
103
- display: block;
104
- }
105
-
106
- html,
107
- body {
108
- -webkit-tap-highlight-color: transparent;
109
- }
110
-
111
- blockquote,
112
- q {
113
- quotes: none;
114
- }
115
-
116
- blockquote::before,
117
- blockquote::after,
118
- q::before,
119
- q::after {
120
- content: none;
121
- }
122
-
123
- table {
124
- border-spacing: 0;
125
- border-collapse: collapse;
126
- }
127
-
128
- input,
129
- textarea {
130
- padding: 0;
131
- margin: 0;
132
- border-radius: 0;
133
- }
134
-
135
- /* clears the 'X' from Internet Explorer */
136
- input[type=search]::-ms-clear,
137
- input[type=search]::-ms-reveal {
138
- display: none;
139
- width: 0;
140
- height: 0;
141
- }
142
-
143
- /* clears the 'X' from Chrome */
144
- input[type="search"]::-webkit-search-decoration,
145
- input[type="search"]::-webkit-search-cancel-button,
146
- input[type="search"]::-webkit-search-results-button,
147
- input[type="search"]::-webkit-search-results-decoration {
148
- display: none;
149
- }
@@ -1,39 +0,0 @@
1
- body,
2
- .body-normal {
3
- font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
4
- font-size: var(--fs-1);
5
- font-weight: var(--fw-0);
6
- line-height: var(--lh-1);
7
- }
8
-
9
- .caption-normal {
10
- font-size: var(--fs-0);
11
- font-weight: var(--fw-0);
12
- line-height: var(--lh-0);
13
- }
14
-
15
- .caption-bold {
16
- @extend .caption-normal;
17
-
18
- font-weight: var(--fw-2);
19
- }
20
-
21
- .body-semibold {
22
- @extend .body-normal;
23
-
24
- font-weight: var(--fw-1);
25
- }
26
-
27
- h4,
28
- .subheading {
29
- font-size: var(--fs-2);
30
- font-weight: var(--fw-2);
31
- line-height: var(--lh-1);
32
- }
33
-
34
- h1,
35
- .heading {
36
- font-size: var(--fs-3);
37
- font-weight: var(--fw-2);
38
- line-height: var(--lh-2);
39
- }
@@ -1,13 +0,0 @@
1
- @use "../variables/initial";
2
-
3
- .fade {
4
- &-enter-active,
5
- &-leave-active {
6
- transition: opacity initial.$transition-duration initial.$transition-function;
7
- }
8
-
9
- &-enter,
10
- &-leave-to {
11
- opacity: 0;
12
- }
13
- }
@@ -1,5 +0,0 @@
1
- @forward "reset";
2
- @forward "generic";
3
- @forward "typography";
4
- @forward "v-transitions";
5
- @forward "animation";
@@ -1,29 +0,0 @@
1
- .d {
2
- &-inline {
3
- display: inline;
4
- }
5
-
6
- &-inline-block {
7
- display: inline-block;
8
- }
9
-
10
- &-flex {
11
- display: flex;
12
- }
13
-
14
- &-inline-flex {
15
- display: inline-flex;
16
- }
17
-
18
- &-block {
19
- display: block;
20
- }
21
-
22
- &-grid {
23
- display: grid;
24
- }
25
-
26
- &-inline-grid {
27
- display: inline-grid;
28
- }
29
- }
@@ -1,109 +0,0 @@
1
- .align {
2
- &-baseline {
3
- align-items: baseline;
4
- }
5
-
6
- &-start {
7
- align-items: start;
8
- }
9
-
10
- &-end {
11
- align-items: end;
12
- }
13
-
14
- &-self-start {
15
- align-items: self-start;
16
- }
17
-
18
- &-self-end {
19
- align-items: self-end;
20
- }
21
-
22
- &-flex-start {
23
- align-items: flex-start;
24
- }
25
-
26
- &-flex-end {
27
- align-items: flex-end;
28
- }
29
-
30
- &-stretch {
31
- align-items: stretch;
32
- }
33
-
34
- &-center {
35
- align-items: center;
36
- }
37
- }
38
-
39
- .justify {
40
- &-start {
41
- justify-content: start;
42
- }
43
-
44
- &-end {
45
- justify-content: end;
46
- }
47
-
48
- &-left {
49
- justify-content: left;
50
- }
51
-
52
- &-right {
53
- justify-content: right;
54
- }
55
-
56
- &-flex-start {
57
- justify-content: flex-start;
58
- }
59
-
60
- &-flex-end {
61
- justify-content: flex-end;
62
- }
63
-
64
- &-space-between {
65
- justify-content: space-between;
66
- }
67
-
68
- &-space-around {
69
- justify-content: space-around;
70
- }
71
-
72
- &-sapce-evenly {
73
- justify-content: space-evenly;
74
- }
75
-
76
- &-center {
77
- justify-content: center;
78
- }
79
- }
80
-
81
- .direction {
82
- &-row {
83
- flex-direction: row;
84
- }
85
-
86
- &-row-reverse {
87
- flex-direction: row-reverse;
88
- }
89
-
90
- &-column {
91
- flex-direction: column;
92
- }
93
-
94
- &-column-reverse {
95
- flex-direction: column-reverse;
96
- }
97
- }
98
-
99
- .wrap {
100
- flex-wrap: wrap;
101
- }
102
-
103
- .nowrap {
104
- flex-wrap: nowrap;
105
- }
106
-
107
- .wrap-reverse {
108
- flex-wrap: wrap-reverse;
109
- }
@@ -1,29 +0,0 @@
1
- @use "sass:string";
2
- @use "../variables/initial";
3
- @use "../utils/functions/px-to-rem" as *;
4
-
5
- $directions: (top, right, bottom, left);
6
- $margin-prefix: m !default;
7
- $padding-prefix: p !default;
8
-
9
- .#{$margin-prefix}-0 {
10
- margin: 0;
11
- }
12
-
13
- .#{$padding-prefix}-0 {
14
- padding: 0;
15
- }
16
-
17
- @each $value in initial.$spacingsValues {
18
- $i: index(initial.$spacingsValues, $value) - 1;
19
-
20
- @each $direction in $directions {
21
- .#{$margin-prefix + string.slice($direction, 1, 1)}-#{$i} {
22
- margin-#{$direction}: px-to-rem($value);
23
- }
24
-
25
- .#{$padding-prefix + string.slice($direction, 1, 1)}-#{$i} {
26
- padding-#{$direction}: px-to-rem($value);
27
- }
28
- }
29
- }
@@ -1,45 +0,0 @@
1
- @use "../variables/initial" as *;
2
- @use "sass:list";
3
-
4
- // generate classes font-size
5
- @for $i from 0 through list.length($fontSizeList) - 1 {
6
- .fs-#{$i} {
7
- font-size: var(--fs-#{$i});
8
- }
9
- }
10
-
11
- // generate classes font-weight
12
- @for $i from 0 through list.length($fontWeightList) - 1 {
13
- .fw-#{$i} {
14
- font-weight: var(--fw-#{$i});
15
- }
16
- }
17
-
18
- // generate classes line-height
19
- @for $i from 0 through list.length($lineHeightList) - 1 {
20
- .lh-#{$i} {
21
- line-height: var(--lh-#{$i});
22
- }
23
- }
24
-
25
- .text-align {
26
- &-center {
27
- text-align: center;
28
- }
29
-
30
- &-end {
31
- text-align: end;
32
- }
33
-
34
- &-left {
35
- text-align: left;
36
- }
37
-
38
- &-right {
39
- text-align: right;
40
- }
41
-
42
- &-justify {
43
- text-align: justify;
44
- }
45
- }
@@ -1,4 +0,0 @@
1
- @forward "display";
2
- @forward "flexbox";
3
- @forward "spacings";
4
- @forward "text";
@@ -1,6 +0,0 @@
1
- @mixin absolute-center() {
2
- position: absolute;
3
- top: 50%;
4
- left: 50%;
5
- transform: translate(-50%, -50%);
6
- }
@@ -1,7 +0,0 @@
1
- @mixin absolute-stretch () {
2
- position: absolute;
3
- top: 0;
4
- left: 0;
5
- width: 100%;
6
- height: 100%;
7
- }
@@ -1,124 +0,0 @@
1
- $breakpoints: (
2
- "sm": 0,
3
- "md": 768,
4
- "lg": 1280,
5
- "xl": 1920
6
- );
7
-
8
- // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
9
- // Makes the @content apply to the given breakpoint and wider.
10
- @mixin respUp($name, $landscape: false, $breakpoints: $breakpoints) {
11
- $min: breakpoint-min($name, $breakpoints);
12
-
13
- @if $min and $landscape {
14
- @media (min-width: #{$min}px) and (orientation: landscape) {
15
- @content;
16
- }
17
- }
18
-
19
- @else if $min {
20
- @media (min-width: #{$min}px) {
21
- @content;
22
- }
23
- }
24
-
25
- @else {
26
- @content;
27
- }
28
- }
29
-
30
- // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
31
- // Makes the @content apply to the given breakpoint and narrower.
32
- @mixin respDown($name, $landscape: false, $breakpoints: $breakpoints) {
33
- $max: breakpoint-max($name, $breakpoints);
34
-
35
- @if $max and $landscape {
36
- @media (max-width: #{$max}px) and (orientation: landscape) {
37
- @content;
38
- }
39
- }
40
-
41
- @else if $max {
42
- @media (max-width: #{$max}px) {
43
- @content;
44
- }
45
-
46
- @if $name == sm {
47
- .rwc-embed & {
48
- @content;
49
- }
50
- }
51
- }
52
-
53
- @else {
54
- @content;
55
- }
56
- }
57
-
58
- // Media that spans multiple breakpoint widths.
59
- // Makes the @content apply between the min and max breakpoints
60
- @mixin respBetween(
61
- $lower,
62
- $upper,
63
- $landscape: false,
64
- $breakpoints: $breakpoints
65
- ) {
66
- $min: breakpoint-min($lower, $breakpoints);
67
- $max: breakpoint-max($upper, $breakpoints);
68
-
69
- @if $min != null and $max != null and $landscape {
70
- @media (min-width: #{$min}px) and (max-width: #{$max}px) and (orientation: landscape) {
71
- @content;
72
- }
73
- }
74
-
75
- @else if $min != null and $max != null {
76
- @media (min-width: #{$min}px) and (max-width: #{$max}px) {
77
- @content;
78
- }
79
- }
80
-
81
- @else if $max == null {
82
- @include respUp($lower, $landscape, $breakpoints) {
83
- @content;
84
- }
85
- }
86
-
87
- @else if $min == null {
88
- @include respDown($upper, $landscape, $breakpoints) {
89
- @content;
90
- }
91
- }
92
- }
93
-
94
- // Media between the breakpoint's minimum and maximum widths.
95
- // No minimum for the smallest breakpoint, and no maximum for the largest one.
96
- // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
97
- @mixin respOnly($name, $landscape: false, $breakpoints: $breakpoints) {
98
- $min: breakpoint-min($name, $breakpoints);
99
- $max: breakpoint-max($name, $breakpoints);
100
-
101
- @if $min != null and $max != null and $landscape {
102
- @media (min-width: #{$min}px) and (max-width: #{$max}px) and (orientation: landscape) {
103
- @content;
104
- }
105
- }
106
-
107
- @else if $min != null and $max != null {
108
- @media (min-width: #{$min}px) and (max-width: #{$max}px) {
109
- @content;
110
- }
111
- }
112
-
113
- @else if $max == null {
114
- @include respUp($name, $landscape, $breakpoints) {
115
- @content;
116
- }
117
- }
118
-
119
- @else if $min == null {
120
- @include respDown($name, $landscape, $breakpoints) {
121
- @content;
122
- }
123
- }
124
- }
@@ -1,5 +0,0 @@
1
- @mixin extra-click-area ($area: 10px) {
2
- box-sizing: content-box;
3
- padding: $area;
4
- margin: -$area;
5
- }
@@ -1,14 +0,0 @@
1
- @use "../../variables/colors" as *;
2
-
3
- /* Make div look like an input element */
4
- @mixin input-wrapper($min-height: 2.25rem) {
5
- min-height: $min-height;
6
-
7
- background-color: $c-neutral-1;
8
- border: 1px solid $c-neutral-2;
9
- border-radius: 0.25rem;
10
-
11
- &.error {
12
- border-color: $c-error;
13
- }
14
- }
@@ -1,3 +0,0 @@
1
- @mixin overflow-touch () {
2
- -webkit-overflow-scrolling: touch;
3
- }
@@ -1,5 +0,0 @@
1
- @mixin visually-hidden() {
2
- width: 0;
3
- height: 0;
4
- visibility: hidden;
5
- }