barbican-reset 1.7.4 → 1.7.7

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.
@@ -1,18 +1,18 @@
1
1
  <template>
2
- <b-card class="loading-animation" no-body>
3
- <div class="wrap loading-animation">
4
- <div class="icon loading-animation"></div>
5
- <div class="icon loading-animation"></div>
6
- <div class="icon loading-animation"></div>
7
- <div class="icon loading-animation"></div>
8
- <div class="icon loading-animation"></div>
9
- <div class="icon loading-animation"></div>
2
+ <b-card class="br-loader" no-body>
3
+ <div class="wrap br-loader">
4
+ <div class="icon br-loader"></div>
5
+ <div class="icon br-loader"></div>
6
+ <div class="icon br-loader"></div>
7
+ <div class="icon br-loader"></div>
8
+ <div class="icon br-loader"></div>
9
+ <div class="icon br-loader"></div>
10
10
  </div>
11
11
  </b-card>
12
12
  </template>
13
13
 
14
14
  <script>
15
15
  export default {
16
- name: "Loader",
16
+ name: "BrLoader",
17
17
  };
18
18
  </script>
@@ -2,10 +2,13 @@
2
2
  @mixin br-footer-upper {
3
3
  padding-top: 3.75rem;
4
4
  display: grid;
5
- gap: 1rem;
5
+ row-gap: 1rem;
6
6
 
7
7
  @include media-breakpoint-up(md) {
8
- grid-template-columns: 11rem auto;
8
+ justify-content: flex-start;
9
+ align-items: flex-start;
10
+ grid-auto-flow: column;
11
+ column-gap: 3rem;
9
12
  }
10
13
 
11
14
  &:not(.splash) {
@@ -8,7 +8,11 @@
8
8
  font-weight: 700;
9
9
  transition: none;
10
10
  line-height: 1;
11
- padding: 1em;
11
+ padding: 1em;
12
+
13
+ &[slim] {
14
+ padding: 0.75em;
15
+ }
12
16
  }
13
17
 
14
18
  @mixin button-display($display:'ib',$gap:1em) {
@@ -32,18 +36,22 @@
32
36
  $background: $c-brand-orange,
33
37
  $color: $white,
34
38
  $border: 1px,
35
- $padding: 1em,
39
+ $padding: false,
36
40
  $line-height: false,
37
41
  $display: false,
38
42
  $font-size: false) {
39
43
  border: $border solid $background;
40
44
  background-color: $background;
41
- padding: $padding;
42
45
  color: $color;
46
+
47
+ @if $display {
48
+ @if $padding { @include button-display($display, $padding * 0.625); }
49
+ @else { @include button-display($display, 0.625); }
50
+ }
43
51
 
44
- @if $display { @include button-display($display, $padding * 0.625); }
45
52
  @if $line-height { line-height: $line-height; }
46
53
  @if $font-size { font-size: $font-size; }
54
+ @if $padding { padding: $padding; }
47
55
 
48
56
  path {
49
57
  fill: $color;
@@ -65,18 +73,22 @@
65
73
  $color: $c-brand-orange,
66
74
  $background: $white,
67
75
  $border: 1px,
68
- $padding: 1em,
76
+ $padding: false,
69
77
  $line-height: false,
70
78
  $display: false,
71
79
  $font-size: false) {
72
80
  background-color: $background;
73
81
  border: $border solid $color;
74
- padding: $padding;
75
82
  color: $color;
76
83
 
77
- @if $display { @include button-display($display, $padding * 0.625); }
84
+ @if $display {
85
+ @if $padding { @include button-display($display, $padding * 0.625); }
86
+ @else { @include button-display($display, 0.625); }
87
+ }
88
+
78
89
  @if $line-height { line-height: $line-height; }
79
90
  @if $font-size { font-size: $font-size; }
91
+ @if $padding { padding: $padding; }
80
92
 
81
93
  path {
82
94
  fill: $color;
@@ -98,16 +110,16 @@
98
110
  @mixin button-link(
99
111
  $color: inherit,
100
112
  $background: transparent,
101
- $padding: 0,
113
+ $padding: false,
102
114
  $line-height: false) {
103
115
  background-color: $background;
104
116
  text-decoration: underline;
105
117
  font-weight: inherit;
106
- padding: $padding;
107
118
  border-radius: 0;
108
119
  color: $color;
109
120
 
110
121
  @if $line-height { line-height: $line-height; }
122
+ @if $padding { padding: $padding; }
111
123
  }
112
124
 
113
125
  @mixin btn-primary {
@@ -5,12 +5,10 @@
5
5
  padding-top: $gap;
6
6
  }
7
7
 
8
- @mixin table-link {
9
- @include focus {
10
- @include single-box($c-grey-night);
11
- background-color: $c-grey-night;
12
- color: $white;
13
- }
8
+ @mixin table-link--focus {
9
+ @include single-box($c-grey-night);
10
+ background-color: $c-grey-night;
11
+ color: $white;
14
12
  }
15
13
 
16
14
  @mixin default-table-style {
@@ -1,9 +1,23 @@
1
1
 
2
- @mixin input-dropdown {
2
+ @mixin custom-select {
3
+ padding: 0.8125rem 2.5rem 0.8125rem 0.8125rem;
4
+ background-position: right 0.75rem center;
5
+ background-image: url($select-arrow);
6
+ border: 1px solid $c-grey-concrete;
3
7
  background-color: $c-grey-alpine;
4
8
  border-radius: $border-radius-lg;
5
- border-color: $c-grey-concrete;
6
- padding: 0.875rem 0.5rem;
9
+ background-size: 1rem 0.75rem;
10
+ background-repeat: no-repeat;
11
+ line-height: 1.375rem;
7
12
  color: $c-grey-night;
13
+ font-size: inherit;
14
+ font-weight: 400;
15
+ transition: none;
16
+ appearance: none;
17
+ display: block;
8
18
  width: 100%;
19
+
20
+ @include focus {
21
+ @include input-focus-defaults;
22
+ }
9
23
  }
@@ -25,6 +25,7 @@
25
25
  padding: 0.875rem 0.875rem 0.75rem;
26
26
  background-color: $c-grey-alpine;
27
27
  border-radius: $border-radius-lg;
28
+ line-height: 1.375rem;
28
29
  color: $c-grey-night;
29
30
 
30
31
  &:disabled, &[readonly] {
@@ -53,6 +53,8 @@
53
53
  }
54
54
 
55
55
  a {
56
- @include table-link;
56
+ @include focus {
57
+ @include table-link--focus;
58
+ }
57
59
  }
58
60
  }
@@ -49,6 +49,8 @@
49
49
  }
50
50
 
51
51
  a {
52
- @include table-link;
52
+ @include focus {
53
+ @include table-link--focus;
54
+ }
53
55
  }
54
56
  }
@@ -20,4 +20,6 @@ $gap-account: 2rem;
20
20
  $gap-power: 1.25rem;
21
21
  $height-dashboard-banner: 25rem;
22
22
  $width-power-related: 66rem;
23
- $gap-accordion: 2rem;
23
+ $gap-accordion: 2rem;
24
+
25
+ $select-arrow: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e";
package/index.js CHANGED
@@ -6,7 +6,6 @@ import RelatedRow from './components/related_row'
6
6
  import TypeText from './components/type_text'
7
7
  import Placeholder from './components/placeholder'
8
8
  import CardDisplay from './components/card_display'
9
- import FooterLogos from './components/footer_logos'
10
9
  import FluidIframe from './components/fluid_iframe'
11
10
  import HelpRow from './components/help_row'
12
11
  import VideoContent from './components/video_content'
@@ -24,6 +23,7 @@ import BrFormRow from './components/br_form_row'
24
23
  import BrFormUpdate from './components/br_form_update'
25
24
  import BrLoader from './components/br_loader'
26
25
  import BrWrap from './components/br_wrap'
26
+
27
27
  import BrFooterUpper from './components/br_footer/upper'
28
28
  import BrFooterLower from './components/br_footer/lower'
29
29
 
@@ -43,7 +43,6 @@ export {
43
43
  EventSummary,
44
44
  BrFooterLower,
45
45
  BrFooterUpper,
46
- FooterLogos,
47
46
  FluidIframe,
48
47
  HelpRow,
49
48
  CardDisplay,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.7.4",
3
+ "version": "1.7.7",
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": {
@@ -17,7 +17,7 @@ $animation-setup: 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
17
17
  margin-left: auto;
18
18
  padding-top: 2rem;
19
19
  height: 6.5rem;
20
- width: 8.5rem;
20
+ width: 9.75rem;
21
21
  }
22
22
 
23
23
  .icon.br-loader {
@@ -1,3 +1,3 @@
1
1
  .custom-select {
2
- @include input-dropdown;
2
+ @include custom-select;
3
3
  }
@@ -1,31 +0,0 @@
1
- <template>
2
- <div :class="$style.logos">
3
- <slot />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- // dont think we need this any longer
9
- export default {
10
- name: 'FooterLogos'
11
- }
12
- </script>
13
-
14
- <style lang="scss" module>
15
-
16
- .logos {
17
- margin: -1rem;
18
-
19
- > * {
20
- margin: 1rem;
21
- }
22
-
23
- > svg {
24
- display: inline-block;
25
- height: 3rem;
26
- fill: $white;
27
- width: auto;
28
- }
29
- }
30
-
31
- </style>