rujira.ui 0.1.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.
- package/.eslintrc.cjs +21 -0
- package/.tool-versions +1 -0
- package/i18n/.github/workflows/validate.yml +13 -0
- package/i18n/README.md +7 -0
- package/i18n/translations/template.json +448 -0
- package/i18n/update-template.js +19 -0
- package/i18n/validate.js +10 -0
- package/lib/esm/i18n/translations/template.json +448 -0
- package/lib/esm/src/components/buttons/Button.js +37 -0
- package/lib/esm/src/components/buttons/Popout.js +56 -0
- package/lib/esm/src/components/buttons/TxButton.js +42 -0
- package/lib/esm/src/components/buttons/__Popout.js +34 -0
- package/lib/esm/src/components/cards/Card.js +8 -0
- package/lib/esm/src/components/cards/GradientCard.js +8 -0
- package/lib/esm/src/components/footer/Footer.js +11 -0
- package/lib/esm/src/components/header/Accounts.js +211 -0
- package/lib/esm/src/components/header/Header.js +69 -0
- package/lib/esm/src/components/header/QuickLauncher.js +10 -0
- package/lib/esm/src/components/header/ResolveLink.js +13 -0
- package/lib/esm/src/components/icons/IconDenom.js +358 -0
- package/lib/esm/src/components/icons/Icons.js +228 -0
- package/lib/esm/src/components/icons/Networks.js +32 -0
- package/lib/esm/src/components/icons/Wallets.js +62 -0
- package/lib/esm/src/components/inputs/Checkbox.js +12 -0
- package/lib/esm/src/components/inputs/DecimalInput.js +35 -0
- package/lib/esm/src/components/inputs/DenomInput.js +22 -0
- package/lib/esm/src/components/inputs/DenomSelect.js +66 -0
- package/lib/esm/src/components/inputs/Input.js +25 -0
- package/lib/esm/src/components/inputs/Numeric.js +18 -0
- package/lib/esm/src/components/inputs/Radio.js +12 -0
- package/lib/esm/src/components/inputs/Select.js +29 -0
- package/lib/esm/src/components/inputs/Textarea.js +25 -0
- package/lib/esm/src/components/inputs/Toggle.js +13 -0
- package/lib/esm/src/components/loader/Loader.js +3 -0
- package/lib/esm/src/components/logos/RujiraLogo.js +2 -0
- package/lib/esm/src/components/notices/Warning.js +10 -0
- package/lib/esm/src/components/numbers/Decimal.js +14 -0
- package/lib/esm/src/components/numbers/Fiat.js +19 -0
- package/lib/esm/src/components/progress/Progress.js +9 -0
- package/lib/esm/src/components/slider/Slider.js +5 -0
- package/lib/esm/src/context/Affiliate.js +34 -0
- package/lib/esm/src/context/GlobalModal.js +35 -0
- package/lib/esm/src/d.js +1 -0
- package/lib/esm/src/helpers/index.js +65 -0
- package/lib/esm/src/helpers/number.js +8 -0
- package/lib/esm/src/hooks/useClickOutside.js +19 -0
- package/lib/esm/src/hooks/useLocalStorage.js +12 -0
- package/lib/esm/src/hooks/useQueryParam.js +31 -0
- package/lib/esm/src/hooks/useWindowSize.js +19 -0
- package/lib/esm/src/i18n/i18n.js +90 -0
- package/lib/esm/src/i18n/index.js +1 -0
- package/lib/esm/src/index.js +38 -0
- package/lib/esm/src/services/account.js +42 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -0
- package/package.json +47 -0
- package/src/assets/ghost-tokens/akt.png +0 -0
- package/src/assets/ghost-tokens/ampkuji.png +0 -0
- package/src/assets/ghost-tokens/arb.png +0 -0
- package/src/assets/ghost-tokens/atom.png +0 -0
- package/src/assets/ghost-tokens/axlusdc.png +0 -0
- package/src/assets/ghost-tokens/cro.png +0 -0
- package/src/assets/ghost-tokens/dot.png +0 -0
- package/src/assets/ghost-tokens/fet.png +0 -0
- package/src/assets/ghost-tokens/fuzn.png +0 -0
- package/src/assets/ghost-tokens/glmr.png +0 -0
- package/src/assets/ghost-tokens/gpaxg.png +0 -0
- package/src/assets/ghost-tokens/inj.png +0 -0
- package/src/assets/ghost-tokens/juno.png +0 -0
- package/src/assets/ghost-tokens/kuji.png +0 -0
- package/src/assets/ghost-tokens/luna.png +0 -0
- package/src/assets/ghost-tokens/lunc.png +0 -0
- package/src/assets/ghost-tokens/mnta.png +0 -0
- package/src/assets/ghost-tokens/ntrn.png +0 -0
- package/src/assets/ghost-tokens/osmo.png +0 -0
- package/src/assets/ghost-tokens/scrt.png +0 -0
- package/src/assets/ghost-tokens/shd.png +0 -0
- package/src/assets/ghost-tokens/sol.png +0 -0
- package/src/assets/ghost-tokens/stars.png +0 -0
- package/src/assets/ghost-tokens/statom.png +0 -0
- package/src/assets/ghost-tokens/stosmo.png +0 -0
- package/src/assets/ghost-tokens/usdc.png +0 -0
- package/src/assets/ghost-tokens/usk.png +0 -0
- package/src/assets/ghost-tokens/wavax.png +0 -0
- package/src/assets/ghost-tokens/wbnb.png +0 -0
- package/src/assets/ghost-tokens/wbtc.png +0 -0
- package/src/assets/ghost-tokens/weth.png +0 -0
- package/src/assets/ghost-tokens/wftm.png +0 -0
- package/src/assets/ghost-tokens/wglmr.png +0 -0
- package/src/assets/ghost-tokens/wmatic.png +0 -0
- package/src/assets/mono.woff +0 -0
- package/src/assets/tokens/acre.png +0 -0
- package/src/assets/tokens/akt.png +0 -0
- package/src/assets/tokens/amber.png +0 -0
- package/src/assets/tokens/ampkuji.png +0 -0
- package/src/assets/tokens/ampluna.png +0 -0
- package/src/assets/tokens/ampmnta.png +0 -0
- package/src/assets/tokens/ampwhale.png +0 -0
- package/src/assets/tokens/andr.png +0 -0
- package/src/assets/tokens/aqla.png +0 -0
- package/src/assets/tokens/aqua.png +0 -0
- package/src/assets/tokens/arb.png +0 -0
- package/src/assets/tokens/arch.png +0 -0
- package/src/assets/tokens/astro.png +0 -0
- package/src/assets/tokens/atom.png +0 -0
- package/src/assets/tokens/auto.png +0 -0
- package/src/assets/tokens/avax.png +0 -0
- package/src/assets/tokens/axl.png +0 -0
- package/src/assets/tokens/axlusdc.png +0 -0
- package/src/assets/tokens/axlusdt.png +0 -0
- package/src/assets/tokens/bad.png +0 -0
- package/src/assets/tokens/bch.png +0 -0
- package/src/assets/tokens/bfit.png +0 -0
- package/src/assets/tokens/bnb.png +0 -0
- package/src/assets/tokens/btc.png +0 -0
- package/src/assets/tokens/cheq.png +0 -0
- package/src/assets/tokens/cmdx.png +0 -0
- package/src/assets/tokens/cmst.png +0 -0
- package/src/assets/tokens/cnto.png +0 -0
- package/src/assets/tokens/core.png +0 -0
- package/src/assets/tokens/crbrus.png +0 -0
- package/src/assets/tokens/cre.png +0 -0
- package/src/assets/tokens/cro.png +0 -0
- package/src/assets/tokens/cub.png +0 -0
- package/src/assets/tokens/dai.png +0 -0
- package/src/assets/tokens/default.png +0 -0
- package/src/assets/tokens/doge.png +0 -0
- package/src/assets/tokens/dot.png +0 -0
- package/src/assets/tokens/dvpn.png +0 -0
- package/src/assets/tokens/dydx.png +0 -0
- package/src/assets/tokens/dym.png +0 -0
- package/src/assets/tokens/eth.png +0 -0
- package/src/assets/tokens/evmos.png +0 -0
- package/src/assets/tokens/flix.png +0 -0
- package/src/assets/tokens/frnz.png +0 -0
- package/src/assets/tokens/fury.legacy.png +0 -0
- package/src/assets/tokens/fury.png +0 -0
- package/src/assets/tokens/fuzn.png +0 -0
- package/src/assets/tokens/glmr.png +0 -0
- package/src/assets/tokens/glto.png +0 -0
- package/src/assets/tokens/gpaxg.png +0 -0
- package/src/assets/tokens/grav.png +0 -0
- package/src/assets/tokens/inj.png +0 -0
- package/src/assets/tokens/jkl.png +0 -0
- package/src/assets/tokens/juno.png +0 -0
- package/src/assets/tokens/kart.png +0 -0
- package/src/assets/tokens/kuji.png +0 -0
- package/src/assets/tokens/kune.png +0 -0
- package/src/assets/tokens/link.png +0 -0
- package/src/assets/tokens/loop.png +0 -0
- package/src/assets/tokens/ltc.png +0 -0
- package/src/assets/tokens/luna.png +0 -0
- package/src/assets/tokens/lunc.png +0 -0
- package/src/assets/tokens/lvn.png +0 -0
- package/src/assets/tokens/mars.png +0 -0
- package/src/assets/tokens/mnta.png +0 -0
- package/src/assets/tokens/mntl.png +0 -0
- package/src/assets/tokens/nami.png +0 -0
- package/src/assets/tokens/nausd.png +0 -0
- package/src/assets/tokens/nbtc.png +0 -0
- package/src/assets/tokens/neok.png +0 -0
- package/src/assets/tokens/newt.png +0 -0
- package/src/assets/tokens/nstk.png +0 -0
- package/src/assets/tokens/ntrn.png +0 -0
- package/src/assets/tokens/odin.png +0 -0
- package/src/assets/tokens/osmo.png +0 -0
- package/src/assets/tokens/pepe.png +0 -0
- package/src/assets/tokens/plnk.png +0 -0
- package/src/assets/tokens/plq.png +0 -0
- package/src/assets/tokens/qcaqla.png +0 -0
- package/src/assets/tokens/qcatom.png +0 -0
- package/src/assets/tokens/qcfuzn.png +0 -0
- package/src/assets/tokens/qckuji.png +0 -0
- package/src/assets/tokens/qcmnta.png +0 -0
- package/src/assets/tokens/rac.legacy.png +0 -0
- package/src/assets/tokens/rac.png +0 -0
- package/src/assets/tokens/ratom.png +0 -0
- package/src/assets/tokens/regen.png +0 -0
- package/src/assets/tokens/rfuzn.png +0 -0
- package/src/assets/tokens/rio.png +0 -0
- package/src/assets/tokens/rkuji.png +0 -0
- package/src/assets/tokens/roar.png +0 -0
- package/src/assets/tokens/ruji.png +0 -0
- package/src/assets/tokens/rune.png +0 -0
- package/src/assets/tokens/sayve.png +0 -0
- package/src/assets/tokens/scrt.png +0 -0
- package/src/assets/tokens/shd.legacy.png +0 -0
- package/src/assets/tokens/shd.png +0 -0
- package/src/assets/tokens/silk.png +0 -0
- package/src/assets/tokens/sol.png +0 -0
- package/src/assets/tokens/somm.png +0 -0
- package/src/assets/tokens/stars.png +0 -0
- package/src/assets/tokens/statom.png +0 -0
- package/src/assets/tokens/stinj.png +0 -0
- package/src/assets/tokens/stluna.png +0 -0
- package/src/assets/tokens/stosmo.png +0 -0
- package/src/assets/tokens/strd.png +0 -0
- package/src/assets/tokens/swth.png +0 -0
- package/src/assets/tokens/tia.png +0 -0
- package/src/assets/tokens/tori.png +0 -0
- package/src/assets/tokens/umee.png +0 -0
- package/src/assets/tokens/uni.png +0 -0
- package/src/assets/tokens/usdc.png +0 -0
- package/src/assets/tokens/usk.png +0 -0
- package/src/assets/tokens/usk_black.png +0 -0
- package/src/assets/tokens/ustc.png +0 -0
- package/src/assets/tokens/wavax.png +0 -0
- package/src/assets/tokens/wbtc.png +0 -0
- package/src/assets/tokens/wftm.png +0 -0
- package/src/assets/tokens/whale.png +0 -0
- package/src/assets/tokens/whlocal.png +0 -0
- package/src/assets/tokens/wink.png +0 -0
- package/src/assets/tokens/wmatic.png +0 -0
- package/src/assets/tokens/wsteth.png +0 -0
- package/src/assets/tokens/wtao.png +0 -0
- package/src/assets/tokens/xastro.png +0 -0
- package/src/assets/tokens/yieldeth.png +0 -0
- package/src/assets/tokens/yum.png +0 -0
- package/src/components/buttons/Button.tsx +80 -0
- package/src/components/buttons/Popout.tsx +74 -0
- package/src/components/buttons/TxButton.tsx +103 -0
- package/src/components/buttons/__Popout.tsx +56 -0
- package/src/components/cards/Card.tsx +17 -0
- package/src/components/cards/GradientCard.tsx +17 -0
- package/src/components/footer/Footer.tsx +117 -0
- package/src/components/header/Accounts.tsx +1021 -0
- package/src/components/header/Header.tsx +745 -0
- package/src/components/header/QuickLauncher.tsx +67 -0
- package/src/components/header/ResolveLink.tsx +81 -0
- package/src/components/icons/IconDenom.tsx +400 -0
- package/src/components/icons/Icons.tsx +686 -0
- package/src/components/icons/Networks.tsx +687 -0
- package/src/components/icons/Wallets.tsx +947 -0
- package/src/components/inputs/Checkbox.tsx +35 -0
- package/src/components/inputs/DecimalInput.tsx +72 -0
- package/src/components/inputs/DenomInput.tsx +65 -0
- package/src/components/inputs/DenomSelect.tsx +178 -0
- package/src/components/inputs/Input.tsx +66 -0
- package/src/components/inputs/Numeric.tsx +49 -0
- package/src/components/inputs/Radio.tsx +33 -0
- package/src/components/inputs/Select.tsx +69 -0
- package/src/components/inputs/Textarea.tsx +65 -0
- package/src/components/inputs/Toggle.tsx +38 -0
- package/src/components/loader/Loader.tsx +103 -0
- package/src/components/logos/RujiraLogo.tsx +83 -0
- package/src/components/notices/Warning.tsx +42 -0
- package/src/components/numbers/Decimal.tsx +43 -0
- package/src/components/numbers/Fiat.tsx +56 -0
- package/src/components/progress/Progress.tsx +40 -0
- package/src/components/slider/Slider.tsx +12 -0
- package/src/context/Affiliate.tsx +65 -0
- package/src/context/GlobalModal.tsx +115 -0
- package/src/d.ts +4 -0
- package/src/helpers/index.ts +73 -0
- package/src/helpers/number.ts +12 -0
- package/src/hooks/useClickOutside.ts +27 -0
- package/src/hooks/useLocalStorage.ts +20 -0
- package/src/hooks/useQueryParam.ts +46 -0
- package/src/hooks/useWindowSize.ts +26 -0
- package/src/i18n/i18n.tsx +102 -0
- package/src/i18n/index.ts +1 -0
- package/src/index.ts +54 -0
- package/src/scss/base/_colors.scss +23 -0
- package/src/scss/base/_display.scss +85 -0
- package/src/scss/base/_filters.scss +20 -0
- package/src/scss/base/_flex.scss +612 -0
- package/src/scss/base/_important.scss +3 -0
- package/src/scss/base/_normalize.scss +351 -0
- package/src/scss/base/_spacing.scss +290 -0
- package/src/scss/base/_tooltip.scss +9 -0
- package/src/scss/base/_typography.scss +279 -0
- package/src/scss/base/_variables.scss +72 -0
- package/src/scss/components/_button-group.scss +61 -0
- package/src/scss/components/_button.scss +459 -0
- package/src/scss/components/_decimal.scss +40 -0
- package/src/scss/components/_denom-select.scss +270 -0
- package/src/scss/components/_fiat.scss +34 -0
- package/src/scss/components/_footer.scss +27 -0
- package/src/scss/components/_header.scss +665 -0
- package/src/scss/components/_input.scss +82 -0
- package/src/scss/components/_loader.scss +20 -0
- package/src/scss/components/_modal.scss +138 -0
- package/src/scss/components/_numeric-input.scss +98 -0
- package/src/scss/components/_popout.scss +63 -0
- package/src/scss/components/_progress.scss +62 -0
- package/src/scss/components/_radio-checkbox.scss +79 -0
- package/src/scss/components/_select.scss +106 -0
- package/src/scss/components/_slider.scss +34 -0
- package/src/scss/components/_toggle.scss +120 -0
- package/src/scss/components/_warning.scss +65 -0
- package/src/scss/index.scss +37 -0
- package/src/scss/styledcomponents/_card.scss +130 -0
- package/src/scss/styledcomponents/_drawer.scss +36 -0
- package/src/scss/styledcomponents/_general.scss +20 -0
- package/src/scss/styledcomponents/_table.scss +302 -0
- package/src/scss/styledcomponents/_tabs.scss +97 -0
- package/src/scss/styledcomponents/_tag.scss +155 -0
- package/src/scss/unsorted/_general.scss +259 -0
- package/src/services/account.ts +53 -0
- package/tsconfig.json +25 -0
- package/tsconfig.node.json +11 -0
- package/vite.config.ts +7 -0
- package/vitest-setup.js +1 -0
- package/vitest.config.js +13 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
|
|
3
|
+
/* Document
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 1. Correct the line height in all browsers.
|
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
html {
|
|
12
|
+
line-height: 1.15; /* 1 */
|
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Sections
|
|
17
|
+
========================================================================== */
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Remove the margin in all browsers.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Render the `main` element consistently in IE.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
main {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
37
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
h1 {
|
|
41
|
+
font-size: 2em;
|
|
42
|
+
margin: 0.67em 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Grouping content
|
|
46
|
+
========================================================================== */
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 1. Add the correct box sizing in Firefox.
|
|
50
|
+
* 2. Show the overflow in Edge and IE.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
hr {
|
|
54
|
+
box-sizing: content-box; /* 1 */
|
|
55
|
+
height: 0; /* 1 */
|
|
56
|
+
overflow: visible; /* 2 */
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
61
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
pre {
|
|
65
|
+
font-family: monospace, monospace; /* 1 */
|
|
66
|
+
font-size: 1em; /* 2 */
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Text-level semantics
|
|
70
|
+
========================================================================== */
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Remove the gray background on active links in IE 10.
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
a {
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
82
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
abbr[title] {
|
|
86
|
+
border-bottom: none; /* 1 */
|
|
87
|
+
text-decoration: underline; /* 2 */
|
|
88
|
+
text-decoration: underline dotted; /* 2 */
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
b,
|
|
96
|
+
strong {
|
|
97
|
+
font-weight: bolder;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
102
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
code,
|
|
106
|
+
kbd,
|
|
107
|
+
samp {
|
|
108
|
+
font-family: monospace, monospace; /* 1 */
|
|
109
|
+
font-size: 1em; /* 2 */
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Add the correct font size in all browsers.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
small {
|
|
117
|
+
font-size: 80%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
122
|
+
* all browsers.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
sub,
|
|
126
|
+
sup {
|
|
127
|
+
font-size: 75%;
|
|
128
|
+
line-height: 0;
|
|
129
|
+
position: relative;
|
|
130
|
+
vertical-align: baseline;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
sub {
|
|
134
|
+
bottom: -0.25em;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
sup {
|
|
138
|
+
top: -0.5em;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Embedded content
|
|
142
|
+
========================================================================== */
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Remove the border on images inside links in IE 10.
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
img {
|
|
149
|
+
border-style: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* Forms
|
|
153
|
+
========================================================================== */
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* 1. Change the font styles in all browsers.
|
|
157
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
button,
|
|
161
|
+
input,
|
|
162
|
+
optgroup,
|
|
163
|
+
select,
|
|
164
|
+
textarea {
|
|
165
|
+
font-family: inherit; /* 1 */
|
|
166
|
+
font-size: 100%; /* 1 */
|
|
167
|
+
line-height: 1.15; /* 1 */
|
|
168
|
+
margin: 0; /* 2 */
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Show the overflow in IE.
|
|
173
|
+
* 1. Show the overflow in Edge.
|
|
174
|
+
*/
|
|
175
|
+
|
|
176
|
+
button,
|
|
177
|
+
input {
|
|
178
|
+
/* 1 */
|
|
179
|
+
overflow: visible;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
184
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
185
|
+
*/
|
|
186
|
+
|
|
187
|
+
button,
|
|
188
|
+
select {
|
|
189
|
+
/* 1 */
|
|
190
|
+
text-transform: none;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
button,
|
|
198
|
+
[type="button"],
|
|
199
|
+
[type="reset"],
|
|
200
|
+
[type="submit"] {
|
|
201
|
+
-webkit-appearance: button;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Remove the inner border and padding in Firefox.
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
button::-moz-focus-inner,
|
|
209
|
+
[type="button"]::-moz-focus-inner,
|
|
210
|
+
[type="reset"]::-moz-focus-inner,
|
|
211
|
+
[type="submit"]::-moz-focus-inner {
|
|
212
|
+
border-style: none;
|
|
213
|
+
padding: 0;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Restore the focus styles unset by the previous rule.
|
|
218
|
+
*/
|
|
219
|
+
|
|
220
|
+
button:-moz-focusring,
|
|
221
|
+
[type="button"]:-moz-focusring,
|
|
222
|
+
[type="reset"]:-moz-focusring,
|
|
223
|
+
[type="submit"]:-moz-focusring {
|
|
224
|
+
outline: 1px dotted ButtonText;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Correct the padding in Firefox.
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
fieldset {
|
|
232
|
+
padding: 0.35em 0.75em 0.625em;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
237
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
238
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
239
|
+
* `fieldset` elements in all browsers.
|
|
240
|
+
*/
|
|
241
|
+
|
|
242
|
+
legend {
|
|
243
|
+
box-sizing: border-box; /* 1 */
|
|
244
|
+
color: inherit; /* 2 */
|
|
245
|
+
display: table; /* 1 */
|
|
246
|
+
max-width: 100%; /* 1 */
|
|
247
|
+
padding: 0; /* 3 */
|
|
248
|
+
white-space: normal; /* 1 */
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
253
|
+
*/
|
|
254
|
+
|
|
255
|
+
progress {
|
|
256
|
+
vertical-align: baseline;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
textarea {
|
|
264
|
+
overflow: auto;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* 1. Add the correct box sizing in IE 10.
|
|
269
|
+
* 2. Remove the padding in IE 10.
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
[type="checkbox"],
|
|
273
|
+
[type="radio"] {
|
|
274
|
+
box-sizing: border-box; /* 1 */
|
|
275
|
+
padding: 0; /* 2 */
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
280
|
+
*/
|
|
281
|
+
|
|
282
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
283
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
284
|
+
height: auto;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
289
|
+
* 2. Correct the outline style in Safari.
|
|
290
|
+
*/
|
|
291
|
+
|
|
292
|
+
[type="search"] {
|
|
293
|
+
-webkit-appearance: textfield; /* 1 */
|
|
294
|
+
outline-offset: -2px; /* 2 */
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
[type="search"]::-webkit-search-decoration {
|
|
302
|
+
-webkit-appearance: none;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
307
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
::-webkit-file-upload-button {
|
|
311
|
+
-webkit-appearance: button; /* 1 */
|
|
312
|
+
font: inherit; /* 2 */
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Interactive
|
|
316
|
+
========================================================================== */
|
|
317
|
+
|
|
318
|
+
/*
|
|
319
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
details {
|
|
323
|
+
display: block;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/*
|
|
327
|
+
* Add the correct display in all browsers.
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
summary {
|
|
331
|
+
display: list-item;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/* Misc
|
|
335
|
+
========================================================================== */
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Add the correct display in IE 10+.
|
|
339
|
+
*/
|
|
340
|
+
|
|
341
|
+
template {
|
|
342
|
+
display: none;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Add the correct display in IE 10.
|
|
347
|
+
*/
|
|
348
|
+
|
|
349
|
+
[hidden] {
|
|
350
|
+
display: none;
|
|
351
|
+
}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@for $i from 0 through 150 {
|
|
4
|
+
$space: math.div($i, 2) * 1rem;
|
|
5
|
+
$qSpace: $space + 0.25rem;
|
|
6
|
+
// margin
|
|
7
|
+
.m-#{$i} {
|
|
8
|
+
margin: $space;
|
|
9
|
+
}
|
|
10
|
+
.m-#{$i}\.5 {
|
|
11
|
+
margin: $qSpace;
|
|
12
|
+
}
|
|
13
|
+
.my-#{$i} {
|
|
14
|
+
margin-top: $space;
|
|
15
|
+
margin-bottom: $space;
|
|
16
|
+
}
|
|
17
|
+
.my-#{$i}\.5 {
|
|
18
|
+
margin-top: $qSpace;
|
|
19
|
+
margin-bottom: $qSpace;
|
|
20
|
+
}
|
|
21
|
+
.mx-#{$i} {
|
|
22
|
+
margin-left: $space;
|
|
23
|
+
margin-right: $space;
|
|
24
|
+
}
|
|
25
|
+
.mx-#{$i}\.5 {
|
|
26
|
+
margin-left: $qSpace;
|
|
27
|
+
margin-right: $qSpace;
|
|
28
|
+
}
|
|
29
|
+
.mt-#{$i} {
|
|
30
|
+
margin-top: $space;
|
|
31
|
+
}
|
|
32
|
+
.mt-#{$i}\.5 {
|
|
33
|
+
margin-top: $qSpace;
|
|
34
|
+
}
|
|
35
|
+
.mb-#{$i} {
|
|
36
|
+
margin-bottom: $space;
|
|
37
|
+
}
|
|
38
|
+
.mb-#{$i}\.5 {
|
|
39
|
+
margin-bottom: $qSpace;
|
|
40
|
+
}
|
|
41
|
+
.ml-#{$i} {
|
|
42
|
+
margin-left: $space;
|
|
43
|
+
}
|
|
44
|
+
.ml-#{$i}\.5 {
|
|
45
|
+
margin-left: $qSpace;
|
|
46
|
+
}
|
|
47
|
+
.mr-#{$i} {
|
|
48
|
+
margin-right: $space;
|
|
49
|
+
}
|
|
50
|
+
.mr-#{$i}\.5 {
|
|
51
|
+
margin-right: $qSpace;
|
|
52
|
+
}
|
|
53
|
+
// padding
|
|
54
|
+
.p-#{$i} {
|
|
55
|
+
padding: $space;
|
|
56
|
+
}
|
|
57
|
+
.p-#{$i}\.5 {
|
|
58
|
+
padding: $qSpace;
|
|
59
|
+
}
|
|
60
|
+
.py-#{$i} {
|
|
61
|
+
padding-top: $space;
|
|
62
|
+
padding-bottom: $space;
|
|
63
|
+
}
|
|
64
|
+
.py-#{$i}\.5 {
|
|
65
|
+
padding-top: $qSpace;
|
|
66
|
+
padding-bottom: $qSpace;
|
|
67
|
+
}
|
|
68
|
+
.px-#{$i} {
|
|
69
|
+
padding-left: $space;
|
|
70
|
+
padding-right: $space;
|
|
71
|
+
}
|
|
72
|
+
.px-#{$i}\.5 {
|
|
73
|
+
padding-left: $qSpace;
|
|
74
|
+
padding-right: $qSpace;
|
|
75
|
+
}
|
|
76
|
+
.pt-#{$i} {
|
|
77
|
+
padding-top: $space;
|
|
78
|
+
}
|
|
79
|
+
.pt-#{$i}\.5 {
|
|
80
|
+
padding-top: $qSpace;
|
|
81
|
+
}
|
|
82
|
+
.pb-#{$i} {
|
|
83
|
+
padding-bottom: $space;
|
|
84
|
+
}
|
|
85
|
+
.pb-#{$i}\.5 {
|
|
86
|
+
padding-bottom: $qSpace;
|
|
87
|
+
}
|
|
88
|
+
.pl-#{$i} {
|
|
89
|
+
padding-left: $space;
|
|
90
|
+
}
|
|
91
|
+
.pl-#{$i}\.5 {
|
|
92
|
+
padding-left: $qSpace;
|
|
93
|
+
}
|
|
94
|
+
.pr-#{$i} {
|
|
95
|
+
padding-right: $space;
|
|
96
|
+
}
|
|
97
|
+
.pr-#{$i}\.5 {
|
|
98
|
+
padding-right: $qSpace;
|
|
99
|
+
}
|
|
100
|
+
// width
|
|
101
|
+
.w-#{$i} {
|
|
102
|
+
width: $space;
|
|
103
|
+
}
|
|
104
|
+
.w-#{$i}\.5 {
|
|
105
|
+
width: $qSpace;
|
|
106
|
+
}
|
|
107
|
+
// height
|
|
108
|
+
.h-#{$i} {
|
|
109
|
+
height: $space;
|
|
110
|
+
}
|
|
111
|
+
.h-#{$i}\.5 {
|
|
112
|
+
height: $qSpace;
|
|
113
|
+
}
|
|
114
|
+
// border radius
|
|
115
|
+
.br-#{$i} {
|
|
116
|
+
border-radius: $space;
|
|
117
|
+
}
|
|
118
|
+
.br-#{$i}\.5 {
|
|
119
|
+
border-radius: $qSpace;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
// auto margin
|
|
123
|
+
.my-a {
|
|
124
|
+
margin-top: auto !important;
|
|
125
|
+
margin-bottom: auto !important;
|
|
126
|
+
}
|
|
127
|
+
.mx-a {
|
|
128
|
+
margin-left: auto !important;
|
|
129
|
+
margin-right: auto !important;
|
|
130
|
+
}
|
|
131
|
+
.mt-a {
|
|
132
|
+
margin-top: auto;
|
|
133
|
+
}
|
|
134
|
+
.mr-a {
|
|
135
|
+
margin-right: auto;
|
|
136
|
+
}
|
|
137
|
+
.mb-a {
|
|
138
|
+
margin-bottom: auto;
|
|
139
|
+
}
|
|
140
|
+
.ml-a {
|
|
141
|
+
margin-left: auto;
|
|
142
|
+
}
|
|
143
|
+
// pizel width
|
|
144
|
+
.w-px {
|
|
145
|
+
width: 1px;
|
|
146
|
+
}
|
|
147
|
+
// full size
|
|
148
|
+
.w-full {
|
|
149
|
+
width: 100%;
|
|
150
|
+
}
|
|
151
|
+
.h-full {
|
|
152
|
+
height: 100%;
|
|
153
|
+
}
|
|
154
|
+
// auto size
|
|
155
|
+
.w-a {
|
|
156
|
+
width: auto;
|
|
157
|
+
}
|
|
158
|
+
.h-a {
|
|
159
|
+
height: auto;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@each $s, $bp in $sizes {
|
|
163
|
+
@media only screen and (min-width: $bp) {
|
|
164
|
+
@for $i from 0 through 150 {
|
|
165
|
+
$space: math.div($i, 2) * 1rem;
|
|
166
|
+
$qSpace: $space + 0.25rem;
|
|
167
|
+
|
|
168
|
+
// margin
|
|
169
|
+
.m-#{$s}-#{$i} {
|
|
170
|
+
margin: $space;
|
|
171
|
+
}
|
|
172
|
+
.m-#{$s}-#{$i}\.5 {
|
|
173
|
+
margin: $qSpace;
|
|
174
|
+
}
|
|
175
|
+
.my-#{$s}-#{$i} {
|
|
176
|
+
margin-top: $space;
|
|
177
|
+
margin-bottom: $space;
|
|
178
|
+
}
|
|
179
|
+
.my-#{$s}-#{$i}\.5 {
|
|
180
|
+
margin-top: $qSpace;
|
|
181
|
+
margin-bottom: $qSpace;
|
|
182
|
+
}
|
|
183
|
+
.mx-#{$s}-#{$i} {
|
|
184
|
+
margin-left: $space;
|
|
185
|
+
margin-right: $space;
|
|
186
|
+
}
|
|
187
|
+
.mx-#{$s}-#{$i}\.5 {
|
|
188
|
+
margin-left: $qSpace;
|
|
189
|
+
margin-right: $qSpace;
|
|
190
|
+
}
|
|
191
|
+
.mt-#{$s}-#{$i} {
|
|
192
|
+
margin-top: $space;
|
|
193
|
+
}
|
|
194
|
+
.mt-#{$s}-#{$i}\.5 {
|
|
195
|
+
margin-top: $qSpace;
|
|
196
|
+
}
|
|
197
|
+
.mb-#{$s}-#{$i} {
|
|
198
|
+
margin-bottom: $space;
|
|
199
|
+
}
|
|
200
|
+
.mb-#{$s}-#{$i}\.5 {
|
|
201
|
+
margin-bottom: $qSpace;
|
|
202
|
+
}
|
|
203
|
+
.ml-#{$s}-#{$i} {
|
|
204
|
+
margin-left: $space;
|
|
205
|
+
}
|
|
206
|
+
.ml-#{$s}-#{$i}\.5 {
|
|
207
|
+
margin-left: $qSpace;
|
|
208
|
+
}
|
|
209
|
+
.mr-#{$s}-#{$i} {
|
|
210
|
+
margin-right: $space;
|
|
211
|
+
}
|
|
212
|
+
.mr-#{$s}-#{$i}\.5 {
|
|
213
|
+
margin-right: $qSpace;
|
|
214
|
+
}
|
|
215
|
+
// padding
|
|
216
|
+
.py-#{$s}-#{$i} {
|
|
217
|
+
padding-top: $space;
|
|
218
|
+
padding-bottom: $space;
|
|
219
|
+
}
|
|
220
|
+
.py-#{$s}-#{$i}\.5 {
|
|
221
|
+
padding-top: $qSpace;
|
|
222
|
+
padding-bottom: $qSpace;
|
|
223
|
+
}
|
|
224
|
+
.px-#{$s}-#{$i} {
|
|
225
|
+
padding-left: $space;
|
|
226
|
+
padding-right: $space;
|
|
227
|
+
}
|
|
228
|
+
.px-#{$s}-#{$i}\.5 {
|
|
229
|
+
padding-left: $qSpace;
|
|
230
|
+
padding-right: $qSpace;
|
|
231
|
+
}
|
|
232
|
+
.pt-#{$s}-#{$i} {
|
|
233
|
+
padding-top: $space;
|
|
234
|
+
}
|
|
235
|
+
.pt-#{$s}-#{$i}\.5 {
|
|
236
|
+
padding-top: $qSpace;
|
|
237
|
+
}
|
|
238
|
+
.pb-#{$s}-#{$i} {
|
|
239
|
+
padding-bottom: $space;
|
|
240
|
+
}
|
|
241
|
+
.pb-#{$s}-#{$i}\.5 {
|
|
242
|
+
padding-bottom: $qSpace;
|
|
243
|
+
}
|
|
244
|
+
.pl-#{$s}-#{$i} {
|
|
245
|
+
padding-left: $space;
|
|
246
|
+
}
|
|
247
|
+
.pl-#{$s}-#{$i}\.5 {
|
|
248
|
+
padding-left: $qSpace;
|
|
249
|
+
}
|
|
250
|
+
.pr-#{$s}-#{$i} {
|
|
251
|
+
padding-right: $space;
|
|
252
|
+
}
|
|
253
|
+
.pr-#{$s}-#{$i}\.5 {
|
|
254
|
+
padding-right: $qSpace;
|
|
255
|
+
}
|
|
256
|
+
// width
|
|
257
|
+
.w-#{$s}-#{$i} {
|
|
258
|
+
width: $space;
|
|
259
|
+
}
|
|
260
|
+
.w-#{$s}-q#{$i} {
|
|
261
|
+
width: $qSpace;
|
|
262
|
+
}
|
|
263
|
+
// height
|
|
264
|
+
.h-#{$s}-#{$i} {
|
|
265
|
+
height: $space;
|
|
266
|
+
}
|
|
267
|
+
.h-#{$s}-q#{$i} {
|
|
268
|
+
height: $qSpace;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
// pixel width
|
|
272
|
+
.w-#{$s}-px {
|
|
273
|
+
width: 1px;
|
|
274
|
+
}
|
|
275
|
+
// full size
|
|
276
|
+
.w-#{$s}-full {
|
|
277
|
+
width: 100%;
|
|
278
|
+
}
|
|
279
|
+
.h-#{$s}-full {
|
|
280
|
+
height: 100%;
|
|
281
|
+
}
|
|
282
|
+
// auto size
|
|
283
|
+
.w-#{$s}-a {
|
|
284
|
+
width: auto;
|
|
285
|
+
}
|
|
286
|
+
.h-#{$s}-a {
|
|
287
|
+
height: auto;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|