@iroco/ui 0.15.1 → 0.16.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/lib/button.scss +60 -0
- package/lib/index.js +412 -109
- package/lib/index.min.js +6 -6
- package/lib/index.mjs +411 -110
- package/lib/index.mjs.css +39 -39
- package/package.json +4 -3
- package/scss/button.scss +60 -0
- package/src/Button.svelte +1 -61
- package/src/IrocoLogo.svelte +45 -0
- package/src/NavBar.svelte +3 -1
- package/src/Navigation.svelte +15 -5
- package/src/definition.ts +10 -1
- package/src/index.ts +4 -0
package/lib/button.scss
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@use '../scss/colors';
|
|
2
|
+
@use '../scss/fonts';
|
|
3
|
+
@use '../scss/containers';
|
|
4
|
+
@use '../scss/constants';
|
|
5
|
+
|
|
6
|
+
.iroco-ui-button {
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
-webkit-touch-callout: none;
|
|
9
|
+
-webkit-user-select: none;
|
|
10
|
+
-khtml-user-select: none;
|
|
11
|
+
-moz-user-select: none;
|
|
12
|
+
-ms-user-select: none;
|
|
13
|
+
user-select: none;
|
|
14
|
+
border: none;
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
margin: 1em 0em;
|
|
17
|
+
position: relative;
|
|
18
|
+
text-transform: uppercase;
|
|
19
|
+
border-radius: constants.$border-radius;
|
|
20
|
+
|
|
21
|
+
&--basic {
|
|
22
|
+
background: colors.$beige;
|
|
23
|
+
border: 1px solid colors.$nightBlue;
|
|
24
|
+
}
|
|
25
|
+
&--dark {
|
|
26
|
+
background: colors.$nightBlue;
|
|
27
|
+
color: colors.$beige;
|
|
28
|
+
}
|
|
29
|
+
&--success {
|
|
30
|
+
background: colors.$green;
|
|
31
|
+
}
|
|
32
|
+
&--danger {
|
|
33
|
+
background: colors.$red;
|
|
34
|
+
}
|
|
35
|
+
&--regular {
|
|
36
|
+
padding: 1em 2em;
|
|
37
|
+
}
|
|
38
|
+
&--small {
|
|
39
|
+
padding: 0.5em 1em;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--basic:hover, &--success:hover, &--danger:hover {
|
|
43
|
+
box-shadow: inset 0 0 0 10em rgba(0, 0, 0, 0.2);
|
|
44
|
+
}
|
|
45
|
+
&--dark:hover {
|
|
46
|
+
box-shadow: inset 0 0 0 10em rgba(255, 255, 255, 0.2);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:active {
|
|
50
|
+
box-shadow: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.disabled {
|
|
54
|
+
background-color: colors.$lightGrey;
|
|
55
|
+
cursor: default;
|
|
56
|
+
&:hover {
|
|
57
|
+
box-shadow: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|