barbican-reset 0.9.4 → 0.9.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.
@@ -0,0 +1,33 @@
1
+
2
+ @mixin content_masthead {
3
+ background-color: white;
4
+ box-shadow: 0 5px 5px rgba(black, 0.1);
5
+ padding: 0 $constrained_grid_padding;
6
+ // Required to ensure the box-shadow is visible when div.content-main-content uses a background-color.
7
+ position: relative;
8
+ }
9
+
10
+ @mixin content_masthead__inner {
11
+ max-width: $constrained_content_width--wide;
12
+ padding: $space--large * 2 0;
13
+ margin: 0 auto;
14
+
15
+ h1 {
16
+ margin-bottom: 0;
17
+ }
18
+ }
19
+
20
+ @mixin content-main-content {
21
+ padding-right: 10%;
22
+ padding-left: 10%;
23
+ }
24
+
25
+ @mixin content-main-content__inner {
26
+ max-width: $constrained_content_width--wide;
27
+ padding: 1.5rem 0;
28
+ margin: 0 auto;
29
+
30
+ @include media-breakpoint-up(sm) {
31
+ padding: 2.5rem 0;
32
+ }
33
+ }
@@ -24,15 +24,18 @@
24
24
  -moz-appearance: $value;
25
25
  }
26
26
 
27
- @mixin button($background: $c-power-blue, $focus: $c-power-blue-dark) {
27
+ @mixin button(
28
+ $background: $c-power-blue,
29
+ $focus: $c-power-blue-dark,
30
+ $gap: 0.75em) {
31
+
28
32
  $color: $white;
29
- $gap: 0.75em;
30
-
31
33
  -webkit-font-smoothing: antialiased;
32
34
  -moz-osx-font-smoothing: grayscale;
35
+ border-radius: $border-radius-lg;
33
36
  background-color: $background;
37
+ padding: $gap ($gap * 1.65);
34
38
  text-decoration: none;
35
- border-radius: 0.5rem;
36
39
  place-items: center;
37
40
  text-align: center;
38
41
  font-weight: 700;
@@ -41,7 +44,6 @@
41
44
  cursor: pointer;
42
45
  line-height: 1;
43
46
  display: flex;
44
- padding: $gap;
45
47
  color: $color;
46
48
 
47
49
  @include focus {
@@ -3,7 +3,7 @@
3
3
  box-shadow: none;
4
4
  outline: none;
5
5
  }
6
- &:hover, &:focus, &[data-focus-visible-added] {
6
+ &:hover, &[data-focus-visible-added] {
7
7
  @content;
8
8
  }
9
9
  }
@@ -1,5 +1,6 @@
1
1
  // paths more explicit for gulp-sass
2
2
  @import "~bourbon/core/bourbon.scss";
3
+ @import "content.scss";
3
4
  @import "core.scss";
4
5
  @import "focus.scss";
5
6
  @import "font.scss";
@@ -4,13 +4,18 @@ $constrained_content_width--thin: 800px;
4
4
  $constrained_content_width--wide: 1200px;
5
5
 
6
6
  $space: 0.625rem;
7
- /// Default large amount of space.
7
+ // Default large amount of space.
8
8
  $space--large: $space * 3;
9
- /// Default gap value for use in CSS grid.
9
+ // Default gap value for use in CSS grid.
10
10
  $grid-gap: $space;
11
11
 
12
- /// Power Festival
13
- $power-gap: 1.25rem;
12
+ $border-radius-lg: 0.375rem;
13
+
14
+ // Account Area
15
+ $gap-account: 2rem;
16
+
17
+ // Power Festival
18
+ $gap-power: 1.25rem;
14
19
  $height-dashboard-banner: 25rem;
15
20
  $width-power-related: 66rem;
16
- $accordion-gap: 2rem;
21
+ $gap-accordion: 2rem;
package/index.js CHANGED
@@ -6,6 +6,7 @@ import Container from './vue/Container'
6
6
  import Wrap from './vue/Wrap'
7
7
  import Card from './vue/Card'
8
8
  import Carousel from './vue/Carousel'
9
+ import Banner from './vue/Banner'
9
10
 
10
11
  export {
11
12
  LoadingAnimation,
@@ -15,5 +16,6 @@ export {
15
16
  Container,
16
17
  Wrap,
17
18
  Card,
18
- Carousel
19
+ Carousel,
20
+ Banner
19
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "0.9.4",
3
+ "version": "0.9.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": {
@@ -0,0 +1,8 @@
1
+
2
+ .outer {
3
+ @include content_masthead;
4
+ }
5
+
6
+ .inner {
7
+ @include content_masthead__inner;
8
+ }
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <div :class="$style.outer">
3
+ <div :class="$style.inner">
4
+ <slot />
5
+ </div>
6
+ </div>
7
+ </template>
8
+
9
+ <style src="./banner.scss" lang="scss" module></style>
@@ -1,17 +1,24 @@
1
1
 
2
2
  .container {
3
3
  border: 1px solid $c-grey-concrete;
4
+ border-radius: $border-radius-lg;
4
5
  border-color: $c-grey-pearl;
5
6
  background-color: $white;
6
- border-radius: 0.5rem;
7
7
  align-content: start;
8
8
  overflow: hidden;
9
9
  padding: 1.25rem;
10
10
  display: grid;
11
11
  gap: 1.25rem;
12
-
13
- &_wrap {
14
- composes: container;
15
- background-color: $gray-100;
12
+ }
13
+
14
+ .container.wrap {
15
+ background-color: $gray-100;
16
+ }
17
+
18
+ .container.account {
19
+ padding: $gap-account;
20
+
21
+ &:not(:last-of-type) {
22
+ margin-bottom: $gap-account;
16
23
  }
17
24
  }
@@ -10,11 +10,22 @@ export default {
10
10
  wrap: {
11
11
  type: Boolean,
12
12
  default: false,
13
+ },
14
+ account: {
15
+ type: Boolean,
16
+ default: false,
13
17
  }
14
18
  },
15
19
  computed: {
16
20
  styleContainer() {
17
- return this.wrap ? this.$style.container_wrap : this.$style.container;
21
+ let styles = [this.$style.container];
22
+ if (this.wrap) {
23
+ styles.push(this.$style.wrap);
24
+ }
25
+ if (this.account) {
26
+ styles.push(this.$style.account);
27
+ }
28
+ return styles;
18
29
  }
19
30
  }
20
31
  }
@@ -2,11 +2,11 @@
2
2
  .outer {
3
3
  padding-right: 5%;
4
4
  padding-left: 5%;
5
+ }
5
6
 
6
- &_splash {
7
- padding-right: 10%;
8
- padding-left: 10%;
9
- }
7
+ .outer_splash {
8
+ padding-right: 10%;
9
+ padding-left: 10%;
10
10
  }
11
11
 
12
12
  .inner {
@@ -2,9 +2,9 @@
2
2
  max-width: $constrained_content_width--wide;
3
3
  margin-right: auto;
4
4
  margin-left: auto;
5
+ }
5
6
 
6
- &_title {
7
- composes: container;
8
- @include narrow-width;
9
- }
7
+ .container_title {
8
+ composes: container;
9
+ @include narrow-width;
10
10
  }