@iroco/ui 0.13.1 → 0.15.1

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/src/Button.svelte CHANGED
@@ -3,7 +3,6 @@
3
3
  export let disabled = false;
4
4
  export let kind: 'danger' | 'success' | 'dark' | 'basic' = 'basic';
5
5
  export let size: 'small' | 'regular' = 'regular';
6
- export let rounded = false;
7
6
  export let id:string ;
8
7
  export let node: HTMLElement ;
9
8
  </script>
@@ -12,7 +11,6 @@
12
11
  {id}
13
12
  class={`iroco-ui-button iroco-ui-button--${size} iroco-ui-button--${kind}`}
14
13
  class:disabled
15
- class:rounded
16
14
  {type}
17
15
  {disabled}
18
16
  on:click
@@ -25,6 +23,7 @@
25
23
  @use '../scss/colors';
26
24
  @use '../scss/fonts';
27
25
  @use '../scss/containers';
26
+ @use '../scss/constants';
28
27
 
29
28
  .iroco-ui-button {
30
29
  cursor: pointer;
@@ -35,44 +34,51 @@
35
34
  -ms-user-select: none;
36
35
  user-select: none;
37
36
  border: none;
38
- border-radius: 0.5em;
39
37
  flex-shrink: 0;
40
38
  margin: 1em 0em;
41
39
  position: relative;
40
+ text-transform: uppercase;
41
+ border-radius: constants.$border-radius;
42
42
 
43
43
  &--basic {
44
44
  background: colors.$beige;
45
- color: colors.$darkBeige;
46
45
  border: 1px solid colors.$nightBlue;
47
46
  }
48
47
  &--dark {
49
48
  background: colors.$nightBlue;
49
+ color: colors.$beige;
50
50
  }
51
51
  &--success {
52
52
  background: colors.$green;
53
53
  }
54
54
  &--danger {
55
55
  background: colors.$red;
56
- color: colors.$beige;
57
56
  }
58
57
  &--regular {
59
- padding: 1em;
58
+ padding: 1em 2em;
60
59
  }
61
60
  &--small {
62
- padding: 0.5em;
61
+ padding: 0.5em 1em;
62
+ }
63
+
64
+ &--basic:hover, &--success:hover, &--danger:hover {
65
+ box-shadow: inset 0 0 0 10em rgba(0, 0, 0, 0.2);
66
+ }
67
+ &--dark:hover {
68
+ box-shadow: inset 0 0 0 10em rgba(255, 255, 255, 0.2);
63
69
  }
64
70
 
65
71
  &:active {
66
- background: colors.$lightGrey;
72
+ box-shadow: none;
67
73
  }
68
74
 
69
75
  &.disabled {
70
76
  background-color: colors.$lightGrey;
71
77
  cursor: default;
72
- }
73
-
74
- &.rounded {
75
- border-radius: 10px;
78
+ &:hover {
79
+ box-shadow: none;
80
+ }
76
81
  }
77
82
  }
83
+
78
84
  </style>
package/src/NavBar.svelte CHANGED
@@ -66,7 +66,6 @@
66
66
  top: 4.45em;
67
67
  left: 0;
68
68
  overflow-x: hidden;
69
- border-right: 1px solid colors.$mediumGrey;
70
69
  &__item-container {
71
70
  margin: 0;
72
71
  padding: 0;
@@ -53,6 +53,8 @@
53
53
 
54
54
  <style lang="scss">
55
55
  @use "../scss/colors";
56
+ @use "../scss/constants";
57
+
56
58
  input,
57
59
  textarea {
58
60
  outline: none;
@@ -78,7 +80,7 @@
78
80
  text-overflow: ellipsis;
79
81
  white-space: nowrap;
80
82
  overflow: hidden;
81
- border-radius: 0.5em;
83
+ border-radius: constants.$border-radius;
82
84
 
83
85
  &.border {
84
86
  border: 1px solid colors.$beige;