@onereach/styles 0.1.3 → 0.1.4
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.
- package/dist/index.css +521 -72
- package/dist/index.css.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +2 -5
- package/src/base/_generic.scss +7 -13
- package/src/base/_reset.scss +15 -1
- package/src/base/_typography.scss +42 -0
- package/src/base/_v-transitions.scss +2 -2
- package/src/base/index.scss +1 -0
- package/src/components/base/_button.scss +119 -16
- package/src/components/base/_checkbox.scss +8 -11
- package/src/components/base/_collapse.scss +11 -0
- package/src/components/base/_error.scss +13 -0
- package/src/components/base/_hint.scss +13 -0
- package/src/components/base/_icon.scss +4 -3
- package/src/components/base/_label.scss +14 -0
- package/src/components/base/_loader.scss +79 -5
- package/src/components/base/_radio-group.scss +5 -4
- package/src/components/base/_radio.scss +11 -18
- package/src/components/base/_switch.scss +11 -16
- package/src/components/base/_textbox.scss +242 -0
- package/src/layout/_display.scss +29 -0
- package/src/layout/_flexbox.scss +79 -0
- package/src/layout/_spacings.scss +29 -0
- package/src/layout/index.scss +3 -0
- package/src/main.scss +4 -3
- package/src/utils/mixins/_absolute-center.scss +6 -0
- package/src/utils/mixins/_has-error.scss +5 -0
- package/src/utils/mixins/_transition.scss +7 -0
- package/src/utils/mixins/index.scss +3 -0
- package/src/variables/_css-vars.scss +60 -9
- package/src/variables/_initial.scss +39 -0
- package/src/variables/index.scss +3 -2
- package/src/variables/tokens/design-tokens.scss +8 -12
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/variables/_css-vars.scss","index.css","../src/base/_reset.scss","../src/base/_generic.scss","../src/utils/mixins/_overflow-touch.scss","../src/base/_v-transitions.scss","../src/base/_animation.scss"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/variables/_css-vars.scss","index.css","../src/base/_reset.scss","../src/base/_generic.scss","../src/utils/mixins/_overflow-touch.scss","../src/base/_typography.scss","../src/variables/_initial.scss","../src/base/_v-transitions.scss","../src/base/_animation.scss","../src/layout/_display.scss","../src/layout/_flexbox.scss","../src/layout/_spacings.scss"],"names":[],"mappings":"AASI;;EAQM,oBAAA;EACA,6BAAA;EACA,6BAAA;EACA,+BAAA;EAHA,kBAAA;EACA,2BAAA;EACA,2BAAA;EACA,6BAAA;EAHA,oBAAA;EACA,6BAAA;EACA,6BAAA;EACA,+BAAA;EAHA,oBAAA;EACA,6BAAA;EACA,6BAAA;EACA,+BAAA;EAHA,mBAAA;EACA,+BAAA;EACA,+BAAA;EACA,+BAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,+BAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,+BAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCAAA;EAPA,iBAAA;EAAA,eAAA;EAAA,eAAA;ACoCV;;ADtBI;EAOM,oBAAA;EACA,6BAAA;EACA,6BAAA;EACA,+BAAA;EAHA,kBAAA;EACA,2BAAA;EACA,2BAAA;EACA,6BAAA;EAHA,oBAAA;EACA,6BAAA;EACA,6BAAA;EACA,+BAAA;EAHA,oBAAA;EACA,6BAAA;EACA,6BAAA;EACA,+BAAA;EAHA,mBAAA;EACA,+BAAA;EACA,+BAAA;EACA,+BAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,+BAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,+BAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCAAA;EAHA,sBAAA;EACA,+BAAA;EACA,+BAAA;EACA,iCAAA;EAHA,sBA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mBAAA;AV6uBN;;AU1uBI;EACE,oBAAA;AV6uBN;;AUlvBI;EACE,iBAAA;AVqvBN;;AUlvBI;EACE,kBAAA;AVqvBN;;AU1vBI;EACE,gBAAA;AV6vBN;;AU1vBI;EACE,iBAAA;AV6vBN;;AUlwBI;EACE,kBAAA;AVqwBN;;AUlwBI;EACE,mBAAA;AVqwBN;;AU1wBI;EACE,mBAAA;AV6wBN;;AU1wBI;EACE,oBAAA;AV6wBN;;AUlxBI;EACE,iBAAA;AVqxBN;;AUlxBI;EACE,kBAAA;AVqxBN","file":"index.css"}
|
package/dist/index.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root,[data-theme=light]{--c-primary:#178ae7;--c-primary-
|
|
1
|
+
:root,[data-theme=light]{--c-primary:#178ae7;--c-primary-darken-3:#1682d9;--c-primary-darken-5:#157cd0;--c-primary-lighten-20:#73b9f1;--c-error:#da1e28;--c-error-darken-3:#cd1c26;--c-error-darken-5:#c41b24;--c-error-lighten-20:#ec7279;--c-warning:#f0d10d;--c-warning-darken-3:#e1c40c;--c-warning-darken-5:#d8bc0c;--c-warning-lighten-20:#f7e46c;--c-success:#4ec00f;--c-success-darken-3:#48b20e;--c-success-darken-5:#44a80d;--c-success-lighten-20:#82f045;--c-neutral-0:#fff;--c-neutral-0-darken-3:#f7f7f7;--c-neutral-0-darken-5:#f2f2f2;--c-neutral-0-lighten-20:white;--c-neutral-1:#f6f6f6;--c-neutral-1-darken-3:#eeeeee;--c-neutral-1-darken-5:#e9e9e9;--c-neutral-1-lighten-20:white;--c-neutral-2:#dfdfdf;--c-neutral-2-darken-3:#d7d7d7;--c-neutral-2-darken-5:#d2d2d2;--c-neutral-2-lighten-20:white;--c-neutral-3:#c6c6c6;--c-neutral-3-darken-3:#bebebe;--c-neutral-3-darken-5:#b9b9b9;--c-neutral-3-lighten-20:#f9f9f9;--c-neutral-4:#91969d;--c-neutral-4-darken-3:#898e96;--c-neutral-4-darken-5:#848991;--c-neutral-4-lighten-20:#c7c9cd;--c-neutral-5:#6c747d;--c-neutral-5-darken-3:#656c75;--c-neutral-5-darken-5:#60676f;--c-neutral-5-lighten-20:#a1a7ae;--c-neutral-6:#1e232b;--c-neutral-6-darken-3:#181c22;--c-neutral-6-darken-5:#14171c;--c-neutral-6-lighten-20:#485467;--c-body-bg:#fff;--c-white:#fff;--c-black:#000}[data-theme=dark]{--c-primary:#178ae7;--c-primary-darken-3:#1682d9;--c-primary-darken-5:#157cd0;--c-primary-lighten-20:#73b9f1;--c-error:#da1e28;--c-error-darken-3:#cd1c26;--c-error-darken-5:#c41b24;--c-error-lighten-20:#ec7279;--c-warning:#f0d10d;--c-warning-darken-3:#e1c40c;--c-warning-darken-5:#d8bc0c;--c-warning-lighten-20:#f7e46c;--c-success:#4ec00f;--c-success-darken-3:#48b20e;--c-success-darken-5:#44a80d;--c-success-lighten-20:#82f045;--c-neutral-0:#fff;--c-neutral-0-darken-3:#f7f7f7;--c-neutral-0-darken-5:#f2f2f2;--c-neutral-0-lighten-20:white;--c-neutral-1:#f6f6f6;--c-neutral-1-darken-3:#eeeeee;--c-neutral-1-darken-5:#e9e9e9;--c-neutral-1-lighten-20:white;--c-neutral-2:#dfdfdf;--c-neutral-2-darken-3:#d7d7d7;--c-neutral-2-darken-5:#d2d2d2;--c-neutral-2-lighten-20:white;--c-neutral-3:#c6c6c6;--c-neutral-3-darken-3:#bebebe;--c-neutral-3-darken-5:#b9b9b9;--c-neutral-3-lighten-20:#f9f9f9;--c-neutral-4:#91969d;--c-neutral-4-darken-3:#898e96;--c-neutral-4-darken-5:#848991;--c-neutral-4-lighten-20:#c7c9cd;--c-neutral-5:#6c747d;--c-neutral-5-darken-3:#656c75;--c-neutral-5-darken-5:#60676f;--c-neutral-5-lighten-20:#a1a7ae;--c-neutral-6:#1e232b;--c-neutral-6-darken-3:#181c22;--c-neutral-6-darken-5:#14171c;--c-neutral-6-lighten-20:#485467;--c-c-body-bg:#fff;--c-c-body-bg-darken-3:#f7f7f7;--c-c-body-bg-darken-5:#f2f2f2;--c-c-body-bg-lighten-20:white;--c-white:#fff;--c-black:#000}:root{--s-0:0;--s-1:0.125rem;--s-2:0.25rem;--s-3:0.5rem;--s-4:1rem;--s-5:1.5rem;--s-6:2rem;--s-7:3rem;--s-8:4rem;--s-9:8rem;--t-func:cubic-bezier(0.12, 0.39, 0.5, 0.93);--t-duration:0.25s;--fs-0:0.75rem;--fs-1:0.875rem;--fs-2:1.125rem;--fs-3:1.375rem;--fw-0:400;--fw-1:600;--fw-2:800;--lh-0:1.125rem;--lh-1:1.3125rem;--lh-2:1.625rem}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,summary,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{padding:0;margin:0;vertical-align:baseline;border:0}input:-webkit-autofill,input:-webkit-autofill:focus,input:-webkit-autofill:hover,select:-webkit-autofill,select:-webkit-autofill:focus,select:-webkit-autofill:hover,textarea:-webkit-autofill,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:hover{-webkit-transition:color 9999s ease-out,background-color 9999s ease-out;-webkit-transition-delay:9999s}*,::after,::before{box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body,html{-webkit-tap-highlight-color:transparent}blockquote,q{quotes:none}blockquote::after,blockquote::before,q::after,q::before{content:none}table{border-spacing:0;border-collapse:collapse}input,textarea{padding:0;margin:0;border-radius:0}input[type=search]::-ms-clear,input[type=search]::-ms-reveal{display:none;width:0;height:0}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-size:100%;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{overflow-x:hidden;overflow-y:auto;-ms-scroll-chaining:none;overscroll-behavior:none;color:var(--c-neutral-6);background-color:var(--c-body-bg)}fieldset{border:none}a{text-decoration:none}code,pre{font-family:"Operator Mono","Fira Code Retina","Fira Code",FiraCode-Retina,"Andale Mono","Lucida Console",Consolas,Monaco,monospace;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}pre{-webkit-overflow-scrolling:touch;padding:var(--s-4);overflow-x:auto;font-size:inherit;color:var(--c-neutral-6);text-align:left;word-wrap:normal;white-space:pre-wrap;background-color:var(--c-neutral-2)}pre code{padding:0;font-size:.75rem;color:currentColor;background-color:transparent}input[type=checkbox],input[type=radio]{vertical-align:baseline}.body-normal,.body-semibold,body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:var(--fs-1);font-weight:var(--fw-0);line-height:var(--lh-1)}.caption-bold,.caption-normal{font-size:var(--fs-0);font-weight:var(--fw-0);line-height:var(--lh-0)}.caption-bold{font-weight:800}.body-semibold{font-weight:600}.subheading,h4{font-size:var(--fs-2);font-weight:var(--fw-2);line-height:var(--lh-1)}.heading,h1{font-size:var(--fs-3);font-weight:var(--fw-2);line-height:var(--lh-2)}.fade-enter-active,.fade-leave-active{transition:opacity var(--t-duration) var(--t-func)}.fade-enter,.fade-leave-to{opacity:0}@-webkit-keyframes spinAround{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes spinAround{from{transform:rotate(0)}to{transform:rotate(359deg)}}@-webkit-keyframes fade{from{opacity:1}to{opacity:0}}@keyframes fade{from{opacity:1}to{opacity:0}}.d-inline{display:inline}.d-inline-block{display:inline-block}.d-flex{display:flex}.d-inline-flex{display:inline-flex}.d-block{display:block}.d-grid{display:grid}.d-inline-grid{display:inline-grid}.align-baseline{align-items:baseline}.align-start{align-items:start}.align-end{align-items:end}.align-self-start{align-items:self-start}.align-self-end{align-items:self-end}.align-flex-start{align-items:flex-start}.align-flex-end{align-items:flex-end}.align-stretch{align-items:stretch}.align-center{align-items:center}.justify-start{justify-content:start}.justify-end{justify-content:end}.justify-left{justify-content:left}.justify-right{justify-content:right}.justify-flex-start{justify-content:flex-start}.justify-flex-end{justify-content:flex-end}.justify-space-between{justify-content:space-between}.justify-space-around{justify-content:space-around}.justify-sapce-evenly{justify-content:space-evenly}.justify-center{justify-content:center}.m-0{margin:0}.p-0{padding:0}.mt-0{margin-top:0}.pt-0{padding-top:0}.mr-0{margin-right:0}.pr-0{padding-right:0}.mb-0{margin-bottom:0}.pb-0{padding-bottom:0}.ml-0{margin-left:0}.pl-0{padding-left:0}.mt-1{margin-top:.125rem}.pt-1{padding-top:.125rem}.mr-1{margin-right:.125rem}.pr-1{padding-right:.125rem}.mb-1{margin-bottom:.125rem}.pb-1{padding-bottom:.125rem}.ml-1{margin-left:.125rem}.pl-1{padding-left:.125rem}.mt-2{margin-top:.25rem}.pt-2{padding-top:.25rem}.mr-2{margin-right:.25rem}.pr-2{padding-right:.25rem}.mb-2{margin-bottom:.25rem}.pb-2{padding-bottom:.25rem}.ml-2{margin-left:.25rem}.pl-2{padding-left:.25rem}.mt-3{margin-top:.5rem}.pt-3{padding-top:.5rem}.mr-3{margin-right:.5rem}.pr-3{padding-right:.5rem}.mb-3{margin-bottom:.5rem}.pb-3{padding-bottom:.5rem}.ml-3{margin-left:.5rem}.pl-3{padding-left:.5rem}.mt-4{margin-top:1rem}.pt-4{padding-top:1rem}.mr-4{margin-right:1rem}.pr-4{padding-right:1rem}.mb-4{margin-bottom:1rem}.pb-4{padding-bottom:1rem}.ml-4{margin-left:1rem}.pl-4{padding-left:1rem}.mt-5{margin-top:1.5rem}.pt-5{padding-top:1.5rem}.mr-5{margin-right:1.5rem}.pr-5{padding-right:1.5rem}.mb-5{margin-bottom:1.5rem}.pb-5{padding-bottom:1.5rem}.ml-5{margin-left:1.5rem}.pl-5{padding-left:1.5rem}.mt-6{margin-top:2rem}.pt-6{padding-top:2rem}.mr-6{margin-right:2rem}.pr-6{padding-right:2rem}.mb-6{margin-bottom:2rem}.pb-6{padding-bottom:2rem}.ml-6{margin-left:2rem}.pl-6{padding-left:2rem}.mt-7{margin-top:3rem}.pt-7{padding-top:3rem}.mr-7{margin-right:3rem}.pr-7{padding-right:3rem}.mb-7{margin-bottom:3rem}.pb-7{padding-bottom:3rem}.ml-7{margin-left:3rem}.pl-7{padding-left:3rem}.mt-8{margin-top:4rem}.pt-8{padding-top:4rem}.mr-8{margin-right:4rem}.pr-8{padding-right:4rem}.mb-8{margin-bottom:4rem}.pb-8{padding-bottom:4rem}.ml-8{margin-left:4rem}.pl-8{padding-left:4rem}.mt-9{margin-top:8rem}.pt-9{padding-top:8rem}.mr-9{margin-right:8rem}.pr-9{padding-right:8rem}.mb-9{margin-bottom:8rem}.pb-9{padding-bottom:8rem}.ml-9{margin-left:8rem}.pl-9{padding-left:8rem}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/styles",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Styles for or-ui components",
|
|
5
5
|
"main": "./dist/index.min.css",
|
|
6
6
|
"unpkg": "./dist/index.css",
|
|
@@ -28,9 +28,6 @@
|
|
|
28
28
|
"src"
|
|
29
29
|
],
|
|
30
30
|
"license": "UNLICENSED",
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"bulma": "^0.9.2"
|
|
33
|
-
},
|
|
34
31
|
"devDependencies": {
|
|
35
32
|
"autoprefixer": "^10.2.5",
|
|
36
33
|
"clean-css-cli": "^5.2.2",
|
|
@@ -41,5 +38,5 @@
|
|
|
41
38
|
"sass": "^1.35.1",
|
|
42
39
|
"stylelint": "^13.13.1"
|
|
43
40
|
},
|
|
44
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "97c0ccde259eb0ecfe134868e14bb6679de00f63"
|
|
45
42
|
}
|
package/src/base/_generic.scss
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$body-
|
|
4
|
-
$body-line-height: get-line-height(1) !default;
|
|
5
|
-
$body-color: var(--c-text) !default;
|
|
1
|
+
@use "../utils" as *;
|
|
2
|
+
|
|
3
|
+
$body-color: var(--c-neutral-6) !default;
|
|
6
4
|
$body-bg-color: var(--c-body-bg) !default;
|
|
7
5
|
|
|
8
6
|
$pre-bg: var(--c-neutral-2) !default;
|
|
9
|
-
$pre-color: var(--c-
|
|
7
|
+
$pre-color: var(--c-neutral-6) !default;
|
|
10
8
|
|
|
11
9
|
html {
|
|
12
10
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -20,10 +18,6 @@ body {
|
|
|
20
18
|
overflow-x: hidden;
|
|
21
19
|
overflow-y: auto;
|
|
22
20
|
overscroll-behavior: none;
|
|
23
|
-
font-family: $body-font-family;
|
|
24
|
-
font-size: $body-font-size;
|
|
25
|
-
font-weight: $body-font-weight;
|
|
26
|
-
line-height: $body-line-height;
|
|
27
21
|
color: $body-color;
|
|
28
22
|
background-color: $body-bg-color;
|
|
29
23
|
}
|
|
@@ -38,17 +32,17 @@ a {
|
|
|
38
32
|
|
|
39
33
|
code,
|
|
40
34
|
pre {
|
|
35
|
+
font-family: 'Operator Mono', 'Fira Code Retina', 'Fira Code', 'FiraCode-Retina', 'Andale Mono', 'Lucida Console', Consolas, Monaco, monospace;
|
|
41
36
|
-webkit-font-smoothing: subpixel-antialiased;
|
|
42
37
|
-moz-osx-font-smoothing: auto;
|
|
43
|
-
font-family: monospace;
|
|
44
38
|
}
|
|
45
39
|
|
|
46
40
|
pre {
|
|
47
41
|
@include overflow-touch;
|
|
48
42
|
|
|
49
|
-
padding:
|
|
43
|
+
padding: var(--s-4);
|
|
50
44
|
overflow-x: auto;
|
|
51
|
-
font-size: inherit;
|
|
45
|
+
font-size: inherit;
|
|
52
46
|
color: $pre-color;
|
|
53
47
|
text-align: left;
|
|
54
48
|
word-wrap: normal;
|
package/src/base/_reset.scss
CHANGED
|
@@ -141,9 +141,23 @@ table {
|
|
|
141
141
|
|
|
142
142
|
input,
|
|
143
143
|
textarea {
|
|
144
|
+
padding: 0;
|
|
145
|
+
margin: 0;
|
|
144
146
|
border-radius: 0;
|
|
145
147
|
}
|
|
146
148
|
|
|
147
|
-
|
|
149
|
+
/* clears the 'X' from Internet Explorer */
|
|
150
|
+
input[type=search]::-ms-clear,
|
|
151
|
+
input[type=search]::-ms-reveal {
|
|
152
|
+
display: none;
|
|
148
153
|
width: 0;
|
|
154
|
+
height: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* clears the 'X' from Chrome */
|
|
158
|
+
input[type="search"]::-webkit-search-decoration,
|
|
159
|
+
input[type="search"]::-webkit-search-cancel-button,
|
|
160
|
+
input[type="search"]::-webkit-search-results-button,
|
|
161
|
+
input[type="search"]::-webkit-search-results-decoration {
|
|
162
|
+
display: none;
|
|
149
163
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use "../utils" as *;
|
|
2
|
+
@use "../variables/initial";
|
|
3
|
+
|
|
4
|
+
body,
|
|
5
|
+
.body-normal {
|
|
6
|
+
font-family: initial.$body-font-family;
|
|
7
|
+
font-size: initial.$body-font-size;
|
|
8
|
+
font-weight: initial.$body-font-weight;
|
|
9
|
+
line-height: initial.$body-line-height;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.caption-normal {
|
|
13
|
+
font-size: initial.$caption-font-size;
|
|
14
|
+
font-weight: initial.$caption-font-weight;
|
|
15
|
+
line-height: initial.$caption-line-height;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.caption-bold {
|
|
19
|
+
@extend .caption-normal;
|
|
20
|
+
|
|
21
|
+
font-weight: get-font-weight(2);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.body-semibold {
|
|
25
|
+
@extend .body-normal;
|
|
26
|
+
|
|
27
|
+
font-weight: get-font-weight(1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
h4,
|
|
31
|
+
.subheading {
|
|
32
|
+
font-size: initial.$subheading-font-size;
|
|
33
|
+
font-weight: initial.$subheading-font-weight;
|
|
34
|
+
line-height: initial.$subheading-line-height;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h1,
|
|
38
|
+
.heading {
|
|
39
|
+
font-size: initial.$heading-font-size;
|
|
40
|
+
font-weight: initial.$heading-font-weight;
|
|
41
|
+
line-height: initial.$heading-line-height;
|
|
42
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@use "../
|
|
1
|
+
@use "../variables/initial";
|
|
2
2
|
|
|
3
3
|
.fade {
|
|
4
4
|
&-enter-active,
|
|
5
5
|
&-leave-active {
|
|
6
|
-
transition: opacity
|
|
6
|
+
transition: opacity initial.$transition-duration initial.$transition-function;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
&-enter,
|
package/src/base/index.scss
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../../utils" as *;
|
|
2
|
+
@use "../../variables/initial";
|
|
2
3
|
|
|
3
|
-
$btn-prefix: base !default;
|
|
4
|
+
$btn-prefix: initial.$base-prefix !default;
|
|
4
5
|
|
|
5
6
|
$btn-min-width: px-to-rem(96) !default;
|
|
6
|
-
$btn-padding:
|
|
7
|
+
$btn-padding: var(--s-2) var(--s-4) !default;
|
|
7
8
|
$btn-cursor: pointer !default;
|
|
8
9
|
|
|
9
|
-
$btn-font-size:
|
|
10
|
-
$btn-font-weight:
|
|
10
|
+
$btn-font-size: var(--fs-1) !default;
|
|
11
|
+
$btn-font-weight: var(--fw-1) !default;
|
|
11
12
|
$btn-line-height: px-to-rem(22) !default;
|
|
12
13
|
|
|
13
14
|
$btn-border-width: px-to-rem(1) !default;
|
|
@@ -16,16 +17,13 @@ $btn-border-radius: px-to-rem(4) !default;
|
|
|
16
17
|
|
|
17
18
|
$btn-letter-spacing: px-to-rem(-0.15) !default;
|
|
18
19
|
|
|
19
|
-
$btn-transition-func: get-transition-func() !default;
|
|
20
|
-
$btn-transition-time: get-transition-time() !default;
|
|
21
|
-
|
|
22
20
|
$btn-box-shadow: 0 px-to-rem(1) px-to-rem(2) 0 hsla(0, 0%, 0%, 20%) !default;
|
|
23
21
|
$btn-box-shadow-second: 0 px-to-rem(1) px-to-rem(2) 0 hsla(0, 0%, 0%, 10%) !default;
|
|
24
22
|
|
|
25
23
|
$btn-icon-font-size: calc(#{$btn-font-size} + #{px-to-rem(6)});
|
|
26
24
|
|
|
27
|
-
$list-of-colors: (primary, error,
|
|
28
|
-
$btn-types: (outline, text, icon);
|
|
25
|
+
$list-of-colors: (primary, error, neutral-4, neutral-5, neutral-6);
|
|
26
|
+
$btn-types: (outline, text, icon, icon-simple);
|
|
29
27
|
|
|
30
28
|
@mixin default-color-mixin() {
|
|
31
29
|
@each $key in $list-of-colors {
|
|
@@ -190,12 +188,113 @@ $btn-types: (outline, text, icon);
|
|
|
190
188
|
}
|
|
191
189
|
}
|
|
192
190
|
|
|
191
|
+
@mixin icon-type() {
|
|
192
|
+
&.icon-type {
|
|
193
|
+
$btn-border-radius: initial.$round;
|
|
194
|
+
|
|
195
|
+
min-width: auto;
|
|
196
|
+
max-width: px-to-rem(54);
|
|
197
|
+
padding: px-to-rem(14);
|
|
198
|
+
border-radius: $btn-border-radius;
|
|
199
|
+
|
|
200
|
+
.material-icons {
|
|
201
|
+
font-size: px-to-rem(24);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.#{$btn-prefix}-button {
|
|
205
|
+
&--content {
|
|
206
|
+
&-append,
|
|
207
|
+
&-prepend {
|
|
208
|
+
margin: 0;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
@mixin icon-simple-type() {
|
|
216
|
+
&.icon-simple-type {
|
|
217
|
+
$btn-border-radius: 9999px;
|
|
218
|
+
|
|
219
|
+
min-width: auto;
|
|
220
|
+
max-width: px-to-rem(18);
|
|
221
|
+
padding: 0;
|
|
222
|
+
background-color: transparent;
|
|
223
|
+
border-color: transparent;
|
|
224
|
+
border-radius: $btn-border-radius;
|
|
225
|
+
box-shadow: none;
|
|
226
|
+
|
|
227
|
+
@each $key in $list-of-colors {
|
|
228
|
+
&.is-#{$key}-color {
|
|
229
|
+
--btn-#{$key}-color: var(--c-#{$key});
|
|
230
|
+
--btn-#{$key}-darken-3: var(--c-#{$key}-darken-3);
|
|
231
|
+
--btn-#{$key}-darken-5: var(--c-#{$key}-darken-5);
|
|
232
|
+
--btn-#{$key}-lighten-20: var(--c-#{$key}-lighten-20);
|
|
233
|
+
|
|
234
|
+
color: var(--btn-#{$key}-color);
|
|
235
|
+
background-color: transparent;
|
|
236
|
+
border-color: transparent;
|
|
237
|
+
|
|
238
|
+
@include hover {
|
|
239
|
+
color: var(--btn-#{$key}-darken-3);
|
|
240
|
+
background-color: transparent;
|
|
241
|
+
border-color: transparent;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@include active {
|
|
245
|
+
color: var(--btn-#{$key}-darken-5);
|
|
246
|
+
background-color: transparent;
|
|
247
|
+
border-color: transparent;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@include disabled {
|
|
251
|
+
color: var(--btn-#{$key}-lighten-20);
|
|
252
|
+
background-color: transparent;
|
|
253
|
+
border-color: transparent;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@include loading {
|
|
257
|
+
color: var(--btn-#{$key}-lighten-20);
|
|
258
|
+
background-color: transparent;
|
|
259
|
+
border-color: transparent;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.material-icons {
|
|
265
|
+
font-size: px-to-rem(16);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.#{$btn-prefix}-button {
|
|
269
|
+
&--loader {
|
|
270
|
+
&::after {
|
|
271
|
+
width: 100%;
|
|
272
|
+
height: 100%;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&--content {
|
|
277
|
+
&-append,
|
|
278
|
+
&-prepend {
|
|
279
|
+
margin: 0;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
193
286
|
@mixin is-fullwidth() {
|
|
194
287
|
&.is-fullwidth {
|
|
195
288
|
width: 100%;
|
|
196
289
|
}
|
|
197
290
|
}
|
|
198
291
|
|
|
292
|
+
@mixin is-block() {
|
|
293
|
+
&.is-block {
|
|
294
|
+
display: flex;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
199
298
|
.#{$btn-prefix}-button {
|
|
200
299
|
-moz-appearance: none;
|
|
201
300
|
-webkit-appearance: none;
|
|
@@ -215,9 +314,8 @@ $btn-types: (outline, text, icon);
|
|
|
215
314
|
border: $btn-border-width $btn-border-style;
|
|
216
315
|
border-radius: $btn-border-radius;
|
|
217
316
|
box-shadow: $btn-box-shadow;
|
|
218
|
-
|
|
219
|
-
transition-
|
|
220
|
-
transition-property: color, background-color, box-shadow, border-color;
|
|
317
|
+
|
|
318
|
+
@include transition(color, background-color, box-shadow, border-color);
|
|
221
319
|
|
|
222
320
|
.material-icons {
|
|
223
321
|
font-size: $btn-icon-font-size;
|
|
@@ -233,7 +331,8 @@ $btn-types: (outline, text, icon);
|
|
|
233
331
|
pointer-events: none;
|
|
234
332
|
visibility: hidden;
|
|
235
333
|
opacity: 0;
|
|
236
|
-
|
|
334
|
+
|
|
335
|
+
@include transition(opacity);
|
|
237
336
|
|
|
238
337
|
&::after {
|
|
239
338
|
border-color: inherit;
|
|
@@ -245,7 +344,8 @@ $btn-types: (outline, text, icon);
|
|
|
245
344
|
display: inline-flex;
|
|
246
345
|
align-items: center;
|
|
247
346
|
justify-content: center;
|
|
248
|
-
|
|
347
|
+
|
|
348
|
+
@include transition(opacity);
|
|
249
349
|
|
|
250
350
|
&-prepend,
|
|
251
351
|
&-append {
|
|
@@ -267,14 +367,17 @@ $btn-types: (outline, text, icon);
|
|
|
267
367
|
line-height: 1;
|
|
268
368
|
|
|
269
369
|
.material-icons {
|
|
270
|
-
font-size: $btn-
|
|
370
|
+
font-size: calc(#{$btn-font-size} - #{px-to-rem(2)} + #{px-to-rem(4)});
|
|
271
371
|
}
|
|
272
372
|
}
|
|
273
373
|
|
|
274
374
|
@include default-color-mixin;
|
|
275
375
|
@include outline-type;
|
|
276
376
|
@include text-type;
|
|
377
|
+
@include icon-type;
|
|
378
|
+
@include icon-simple-type;
|
|
277
379
|
@include is-fullwidth;
|
|
380
|
+
@include is-block;
|
|
278
381
|
|
|
279
382
|
@include loading {
|
|
280
383
|
.#{$btn-prefix}-button {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../../utils" as *;
|
|
2
|
+
@use "../../variables/initial";
|
|
2
3
|
|
|
3
|
-
$checkbox-prefix:
|
|
4
|
+
$checkbox-prefix: initial.$base-prefix !default;
|
|
4
5
|
|
|
5
6
|
$checkbox-size: px-to-rem(16) !default;
|
|
6
|
-
$checkbox-transition-func: get-transition-func() !default;
|
|
7
|
-
$checkbox-transition-time: get-transition-time() !default;
|
|
8
7
|
$checkbox-border-radius: px-to-rem(2) !default;
|
|
9
8
|
$checkbox-border-width: px-to-rem(1) !default;
|
|
10
9
|
$checkbox-border-color: var(--c-neutral-2) !default;
|
|
@@ -14,7 +13,7 @@ $checkbox-bg-color: var(--c-white) !default;
|
|
|
14
13
|
$checkbox-text-color: inherit !default;
|
|
15
14
|
$checkbox-font-size: inherit !default;
|
|
16
15
|
$checkbox-line-height: inherit !default;
|
|
17
|
-
$checkbox-content-spacing:
|
|
16
|
+
$checkbox-content-spacing: var(--s-3) !default;
|
|
18
17
|
|
|
19
18
|
// checked
|
|
20
19
|
$checkbox-icon-color-checked: var(--c-white) !default;
|
|
@@ -88,17 +87,15 @@ $checkbox-bg-color-checked-disabled: var(--c-primary-lighten-20) !default;
|
|
|
88
87
|
background-color: $checkbox-bg-color;
|
|
89
88
|
border: $checkbox-border-width solid $checkbox-border-color;
|
|
90
89
|
border-radius: $checkbox-border-radius;
|
|
91
|
-
|
|
92
|
-
transition-
|
|
93
|
-
transition-property: background-color, border-color;
|
|
90
|
+
|
|
91
|
+
@include transition(background-color, border-color);
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
&--icon {
|
|
97
95
|
font-size: $checkbox-size;
|
|
98
96
|
color: $checkbox-icon-color-checked;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
transition-property: color;
|
|
97
|
+
|
|
98
|
+
@include transition(color);
|
|
102
99
|
}
|
|
103
100
|
|
|
104
101
|
@include hover {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@use "../../utils/functions/px-to-rem" as *;
|
|
2
|
+
@use "../../variables/initial";
|
|
3
|
+
|
|
4
|
+
$error-prefix: initial.$base-prefix !default;
|
|
5
|
+
$error-font-size: var(--fs-0) !default;
|
|
6
|
+
$error-line-height: px-to-rem(14) !default;
|
|
7
|
+
$error-color: var(--c-error) !default;
|
|
8
|
+
|
|
9
|
+
.#{$error-prefix}-error {
|
|
10
|
+
font-size: $error-font-size;
|
|
11
|
+
line-height: $error-line-height;
|
|
12
|
+
color: $error-color;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@use "../../utils/functions/px-to-rem" as *;
|
|
2
|
+
@use "../../variables/initial";
|
|
3
|
+
|
|
4
|
+
$hint-prefix: initial.$base-prefix !default;
|
|
5
|
+
$hint-font-size: var(--fs-0) !default;
|
|
6
|
+
$hint-line-height: px-to-rem(14) !default;
|
|
7
|
+
$hint-color: var(--c-neutral-4) !default;
|
|
8
|
+
|
|
9
|
+
.#{$hint-prefix}-hint {
|
|
10
|
+
font-size: $hint-font-size;
|
|
11
|
+
line-height: $hint-line-height;
|
|
12
|
+
color: $hint-color;
|
|
13
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@use "../../utils/functions" as *;
|
|
2
|
-
@use "../../
|
|
1
|
+
@use "../../utils/functions/px-to-rem" as *;
|
|
2
|
+
@use "../../variables/initial";
|
|
3
|
+
|
|
4
|
+
$icon-prefix: initial.$base-prefix !default;
|
|
3
5
|
|
|
4
|
-
$icon-prefix: base !default;
|
|
5
6
|
$icon-size: px-to-rem(20) !default;
|
|
6
7
|
$icon-color: inherit !default;
|
|
7
8
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use "../../utils" as *;
|
|
2
|
+
@use "../../variables/initial";
|
|
3
|
+
|
|
4
|
+
$label-prefix: initial.$base-prefix !default;
|
|
5
|
+
$label-font-size: var(--fs-0) !default;
|
|
6
|
+
$label-line-height: px-to-rem(14) !default;
|
|
7
|
+
$label-color: var(--c-neutral-4) !default;
|
|
8
|
+
|
|
9
|
+
.#{$label-prefix}-label {
|
|
10
|
+
width: 100%;
|
|
11
|
+
font-size: $label-font-size;
|
|
12
|
+
line-height: $label-line-height;
|
|
13
|
+
color: $label-color;
|
|
14
|
+
}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
@use "../../utils
|
|
2
|
-
@use "../../utils/mixins" as *;
|
|
1
|
+
@use "../../utils" as *;
|
|
3
2
|
@use "../../base/animation" as *;
|
|
3
|
+
@use "../../variables/initial";
|
|
4
|
+
|
|
5
|
+
$loader-prefix: initial.$base-prefix !default;
|
|
4
6
|
|
|
5
|
-
$loader-prefix: base !default;
|
|
6
7
|
$loader-width: px-to-rem(24) !default;
|
|
7
8
|
$loader-height: $loader-width !default;
|
|
9
|
+
|
|
8
10
|
$loader-border-width: 2px !default;
|
|
9
|
-
$loader-border-color: inherit;
|
|
11
|
+
$loader-border-color: inherit !default;
|
|
12
|
+
|
|
13
|
+
@keyframes loaderLinear {
|
|
14
|
+
0% {
|
|
15
|
+
transform: translate(-100%, 0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
100% {
|
|
19
|
+
transform: translate(100%, 0);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
10
22
|
|
|
11
23
|
// loader types mixins
|
|
12
24
|
@mixin default-type() {
|
|
@@ -34,7 +46,68 @@ $loader-border-color: inherit;
|
|
|
34
46
|
|
|
35
47
|
@for $i from 0 through 3 {
|
|
36
48
|
.base-loader--dot:nth-child(#{$i}) {
|
|
37
|
-
animation: fade 1s
|
|
49
|
+
animation: fade 1s initial.$transition-function $i * 0.2s infinite;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin linear-type() {
|
|
56
|
+
&.is-linear {
|
|
57
|
+
width: 100%;
|
|
58
|
+
max-width: px-to-rem(432);
|
|
59
|
+
|
|
60
|
+
.#{$loader-prefix}-loader {
|
|
61
|
+
&--linear {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
align-items: center;
|
|
65
|
+
width: 100%;
|
|
66
|
+
|
|
67
|
+
&-title {
|
|
68
|
+
margin-bottom: var(--s-4);
|
|
69
|
+
font-size: initial.$subheading-font-size;
|
|
70
|
+
font-weight: initial.$subheading-font-weight;
|
|
71
|
+
line-height: initial.$subheading-line-height;
|
|
72
|
+
color: var(--c-neutral-6);
|
|
73
|
+
letter-spacing: px-to-rem(-0.45);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-loader {
|
|
77
|
+
position: relative;
|
|
78
|
+
display: block;
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: px-to-rem(4);
|
|
81
|
+
margin-bottom: var(--s-4);
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
background-color: var(--c-neutral-2);
|
|
84
|
+
border-radius: px-to-rem(2);
|
|
85
|
+
|
|
86
|
+
> span {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 0;
|
|
89
|
+
left: 0;
|
|
90
|
+
width: 100%;
|
|
91
|
+
height: 100%;
|
|
92
|
+
animation: loaderLinear 1.2s initial.$transition-function infinite;
|
|
93
|
+
|
|
94
|
+
&::after {
|
|
95
|
+
position: absolute;
|
|
96
|
+
top: 0;
|
|
97
|
+
left: 0;
|
|
98
|
+
width: 100%;
|
|
99
|
+
max-width: px-to-rem(112);
|
|
100
|
+
height: 100%;
|
|
101
|
+
content: '';
|
|
102
|
+
background-color: var(--c-primary);
|
|
103
|
+
border-radius: px-to-rem(2);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&-desc {
|
|
109
|
+
color: var(--c-neutral-5);
|
|
110
|
+
}
|
|
38
111
|
}
|
|
39
112
|
}
|
|
40
113
|
}
|
|
@@ -49,4 +122,5 @@ $loader-border-color: inherit;
|
|
|
49
122
|
// types
|
|
50
123
|
@include default-type;
|
|
51
124
|
@include text-type;
|
|
125
|
+
@include linear-type;
|
|
52
126
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../../utils" as *;
|
|
2
|
+
@use "../../variables/initial";
|
|
2
3
|
|
|
3
|
-
$radio-group-prefix: base !default;
|
|
4
|
-
$radio-group-column-mb:
|
|
5
|
-
$radio-group-row-mr:
|
|
4
|
+
$radio-group-prefix: initial.$base-prefix !default;
|
|
5
|
+
$radio-group-column-mb: var(--s-4) !default;
|
|
6
|
+
$radio-group-row-mr: var(--s-4) !default;
|
|
6
7
|
|
|
7
8
|
.#{$radio-group-prefix}-radio-group {
|
|
8
9
|
&.is-column {
|