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.
- package/helpers/mixins/_content.scss +33 -0
- package/helpers/mixins/_core.scss +7 -5
- package/helpers/mixins/_focus.scss +1 -1
- package/helpers/mixins/index.scss +1 -0
- package/helpers/variables/layout/index.scss +10 -5
- package/index.js +3 -1
- package/package.json +1 -1
- package/vue/Banner/banner.scss +8 -0
- package/vue/Banner/index.vue +9 -0
- package/vue/Card/card.scss +12 -5
- package/vue/Card/index.vue +12 -1
- package/vue/Container/container.scss +4 -4
- package/vue/Wrap/wrap.scss +4 -4
|
@@ -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(
|
|
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 {
|
|
@@ -4,13 +4,18 @@ $constrained_content_width--thin: 800px;
|
|
|
4
4
|
$constrained_content_width--wide: 1200px;
|
|
5
5
|
|
|
6
6
|
$space: 0.625rem;
|
|
7
|
-
|
|
7
|
+
// Default large amount of space.
|
|
8
8
|
$space--large: $space * 3;
|
|
9
|
-
|
|
9
|
+
// Default gap value for use in CSS grid.
|
|
10
10
|
$grid-gap: $space;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
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
|
|
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
package/vue/Card/card.scss
CHANGED
|
@@ -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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
}
|
package/vue/Card/index.vue
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|
package/vue/Wrap/wrap.scss
CHANGED