barbican-reset 1.5.4 → 1.5.5

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.
@@ -2,11 +2,12 @@
2
2
  <b-card related no-body>
3
3
  <b-img v-if="content.image" :src="content.image" />
4
4
  <b-card-body>
5
- <b-link :href="content.link" target="_blank">
6
- <b-card-title v-html="content.title" />
7
- <b-card-sub-title v-if="content.start_date" v-html="handleDate(content.start_date)" />
8
- <b-card-text v-html="limitLength(content.description)" />
9
- </b-link>
5
+ <b-card-title>
6
+ <b-link v-if="content.title" v-html="content.title" :href="content.link" target="_blank" />
7
+ <b-link v-else :href="content.link" target="_blank">More Info</b-link>
8
+ </b-card-title>
9
+ <b-card-sub-title v-if="content.start_date" v-html="handleDate(content.start_date)" />
10
+ <b-card-text v-html="limitLength(content.description)" />
10
11
  </b-card-body>
11
12
  </b-card>
12
13
  </template>
@@ -29,6 +29,7 @@ export default {
29
29
  opacity: 0;
30
30
 
31
31
  @include focus {
32
+ outline: none;
32
33
  opacity: 1;
33
34
  z-index: 2;
34
35
  }
@@ -74,6 +74,7 @@
74
74
  border: $border solid $color;
75
75
  background-color: $color;
76
76
  color: $background;
77
+ box-shadow: none;
77
78
  outline: none;
78
79
 
79
80
  svg {
@@ -95,10 +96,6 @@
95
96
  color: $color;
96
97
 
97
98
  @if $line { line-height: $line; }
98
-
99
- @include focus {
100
- @content;
101
- }
102
99
  }
103
100
 
104
101
  @mixin btn-outline-header {
@@ -162,7 +159,8 @@
162
159
  }
163
160
 
164
161
  @mixin btn-link {
165
- @include button-link {
162
+ @include button-link;
163
+ @include focus {
166
164
  @include single-box($c-grey-night);
167
165
  background-color: $c-grey-night;
168
166
  color: $white;
@@ -172,17 +170,20 @@
172
170
  @mixin btn-video-help {
173
171
  @include button-link(
174
172
  $padding: 1.25rem,
175
- $background: $c-grey-alpine) {
176
- background-color: $c-grey-steel;
177
- color: $white;
178
- }
173
+ $background: $c-grey-alpine);
179
174
  font-weight: 700;
180
175
  text-align: left;
181
176
  width: 100%;
177
+
178
+ @include focus {
179
+ background-color: $c-grey-steel;
180
+ color: $white;
181
+ }
182
182
  }
183
183
 
184
184
  @mixin btn-exit {
185
- @include button-link {
185
+ @include button-link;
186
+ @include focus {
186
187
  @include single-box($c-grey-night);
187
188
  background-color: $white;
188
189
  border-radius: 50%;
@@ -269,20 +270,6 @@
269
270
  }
270
271
  }
271
272
 
272
- @mixin btn-invisible {
273
- &, &:focus {
274
- background: transparent;
275
- line-height: 1;
276
- padding: 0;
277
-
278
- @include focus {
279
- background: transparent;
280
- line-height: 1;
281
- padding: 0;
282
- }
283
- }
284
- }
285
-
286
273
  @mixin btn-expand {
287
274
  display: block;
288
275
  }
@@ -29,6 +29,7 @@ export default {
29
29
 
30
30
  @include focus {
31
31
  text-decoration: underline;
32
+ outline: none;
32
33
  }
33
34
  }
34
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/scss/_btn.scss CHANGED
@@ -76,10 +76,6 @@
76
76
  @include btn-carousel;
77
77
  }
78
78
 
79
- &.btn-invisible {
80
- @include btn-invisible;
81
- }
82
-
83
79
  // modifyers
84
80
  &.expand {
85
81
  @include btn-expand;
package/scss/_input.scss CHANGED
@@ -9,12 +9,6 @@ input::placeholder {
9
9
  color: $c-grey-concrete;
10
10
  }
11
11
 
12
- input[type=number], input[type=text] {
13
- @include focus {
14
- @include input-focus;
15
- }
16
- }
17
-
18
12
  input[type=checkbox],
19
13
  input[type=radio] {
20
14
  margin-bottom: 0.5rem;
@@ -27,6 +21,15 @@ input[type=submit] {
27
21
  appearance: none;
28
22
  }
29
23
 
24
+ input[type=number] {
25
+ @include focus {
26
+ @include input-focus;
27
+ }
28
+ }
29
+
30
30
  #{$all-text-inputs} {
31
31
  @include all-text-inputs;
32
+ @include focus {
33
+ @include input-focus;
34
+ }
32
35
  }
@@ -13,11 +13,21 @@
13
13
 
14
14
  .card-title {
15
15
  font-size: $font-size-lg;
16
+ margin-bottom: 0.75rem;
17
+
18
+ a {
19
+ @include btn-link;
20
+ }
16
21
  }
17
22
 
23
+ .card-subtitle[date],
18
24
  .card-text:not(:last-child) {
19
25
  margin-bottom: 0.5rem;
20
26
  }
27
+
28
+ * + .card-text[date] {
29
+ margin-top: 0.75rem;
30
+ }
21
31
  }
22
32
 
23
33
  .card[related][hero=true] {