@castlabs/ui 7.0.0 → 7.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castlabs/ui",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "repository": "https://github.com/castlabs/ui-styleguide",
5
5
  "private": false,
6
6
  "description": "A vanilla HTML/CS/JS & Vue.js component library for Castlabs.",
@@ -30,17 +30,23 @@ details.card {
30
30
  align-items: center;
31
31
  background-color: var(--cl-color-background);
32
32
  box-shadow: -8px 0 4px var(--cl-color-background);
33
- color: $color-ci-silver;
33
+ color: $color-ci-clay;
34
34
  display: flex;
35
- height: 100%;
35
+ height: 80%;
36
36
  justify-content: flex-start;
37
37
  position: absolute;
38
38
  right: $card-spacing;
39
- top: 0;
39
+ top: 10%;
40
+ }
41
+
42
+ &:hover,
43
+ &:hover::after {
44
+ color: $color-ci-red !important;
40
45
  }
41
46
 
42
47
  &:focus {
43
48
  @include cl-color-focus-outline;
49
+ border-radius: $brand-border-radius;
44
50
  }
45
51
  }
46
52
 
@@ -11,7 +11,6 @@ $card-spacing-tight: $spacing-small;
11
11
  %cl-card {
12
12
  @extend %cl-color-night-outline;
13
13
 
14
- #{'--cl-color-accent'}: $color-ci-petrol;
15
14
  background-color: transparent;
16
15
  background-position: center;
17
16
  background-size: cover;
@@ -42,6 +41,15 @@ $card-spacing-tight: $spacing-small;
42
41
  }
43
42
  }
44
43
 
44
+ &:not([class*='cl-color-']) {
45
+ #{'--cl-color-accent'}: $color-accent;
46
+ }
47
+
48
+ &.cl-color-red-outline:not([class*='cl-color-text-']) {
49
+ #{'--cl-color-text'}: $color-ci-night;
50
+ #{'--cl-color-accent'}: $color-accent;
51
+ }
52
+
45
53
  a:not(.btn) {
46
54
  @include typography-link(var(--cl-color-link), var(--cl-color-hover));
47
55
 
@@ -52,10 +60,6 @@ $card-spacing-tight: $spacing-small;
52
60
  color: var(--cl-color-text) !important;
53
61
  }
54
62
 
55
- .btn {
56
- width: 100%;
57
- }
58
-
59
63
  &.cl-card-oversized {
60
64
  @include media-breakpoint-up(sm) {
61
65
  margin-left: -$card-spacing;
@@ -71,6 +75,12 @@ $card-spacing-tight: $spacing-small;
71
75
  padding: calc($card-spacing - $brand-line-width);
72
76
  }
73
77
 
78
+ .card-footer {
79
+ .btn {
80
+ width: 100%;
81
+ }
82
+ }
83
+
74
84
  form.card-body {
75
85
  margin-top: 0;
76
86
  }
@@ -50,6 +50,7 @@ $color-disabled: $color-ci-clay;
50
50
 
51
51
  $color-text: $color-ci-night;
52
52
  $color-selected: $color-ci-red;
53
+ $color-accent: $color-ci-petrol;
53
54
  $color-focus: $color-ci-night;
54
55
  $color-background: $color-ci-white;
55
56
  $color-code-background: rgb(16 0 0 / 5%); // transparent to work on different colors
@@ -103,7 +104,7 @@ $bar-ui-width: px(4);
103
104
 
104
105
  &.cl-accent-petrol,
105
106
  .cl-accent-petrol {
106
- #{'--cl-color-accent'}: $color-ci-petrol;
107
+ #{'--cl-color-accent'}: $color-accent;
107
108
  }
108
109
 
109
110
  &.cl-accent-berry,
@@ -125,7 +126,7 @@ $bar-ui-width: px(4);
125
126
  #{'--cl-color-border'}: $color-ci-night;
126
127
  #{'--cl-color-text'}: $color-ci-night;
127
128
  #{'--cl-color-line'}: $color-ci-clay;
128
- #{'--cl-color-accent'}: $color-ci-petrol;
129
+ #{'--cl-color-accent'}: $color-accent;
129
130
  #{'--cl-color-highlight'}: rgba(#fff, 0.85);
130
131
  #{'--cl-color-link'}: $color-ci-berry;
131
132
  #{'--cl-color-active'}: $color-ci-berry;
@@ -44,6 +44,17 @@ h6.cl-faded,
44
44
  }
45
45
  }
46
46
 
47
+ @for $i from 0 through 10 {
48
+ .cl-w-#{$i * 10} {
49
+ width: $i * 10;
50
+ }
51
+ }
52
+
53
+ .cl-w-auto,
54
+ .cl-width-auto {
55
+ width: auto;
56
+ }
57
+
47
58
  .cl-text-start,
48
59
  .text-start {
49
60
  text-align: left;
@@ -179,6 +179,7 @@ main {
179
179
  > *:first-child {
180
180
  display: inline-block;
181
181
  margin: $spacing $spacing 0 0;
182
+ vertical-align: text-bottom;
182
183
 
183
184
  @include media-breakpoint-down(sm) {
184
185
  // buttons are 100% width on sm