Skip to content

Commit

Permalink
Updating stories to reflect removal of bpk-mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
olliecurtis committed Aug 17, 2023
1 parent 4cb060a commit c92d1e4
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 260 deletions.
47 changes: 0 additions & 47 deletions stories/mixins/typography/typography.js

This file was deleted.

99 changes: 0 additions & 99 deletions stories/mixins/typography/typography.scss

This file was deleted.

61 changes: 0 additions & 61 deletions stories/mixins/typography/typography.stories.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,14 @@
* limitations under the License.
*/

const heroStyles = ['hero-1', 'hero-2', 'hero-3', 'hero-4', 'hero-5'];
const headingStyles = [
'heading-1',
'heading-2',
'heading-3',
'heading-4',
'heading-5',
];
const bodyStyles = [
'subheading',
'body-longform',
'body-default',
'footnote',
'caption',
];
const labelStyles = ['label-1', 'label-2', 'label-3'];
@import '../packages/bpk-foundations-web/tokens/base.default.scss';

export { heroStyles, headingStyles, bodyStyles, labelStyles };
@mixin bpk-caption {
font-size: $bpk-font-size-xs;
line-height: $bpk-line-height-xs;
font-weight: $bpk-font-weight-book;
}

@mixin bpk-border-sm($color) {
box-shadow: 0 0 0 $bpk-border-size-sm $color inset;
}
2 changes: 1 addition & 1 deletion stories/svgs/icons/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@import '../../../packages/bpk-mixins/index.scss';
@import '../../styles.scss';

.bpk-icon-container {
display: flex;
Expand Down
12 changes: 8 additions & 4 deletions stories/svgs/spinners/spinners.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@import '../../../packages/bpk-mixins/index.scss';
@import '../../styles.scss';

.bpk-spinner-container {
display: flex;
Expand All @@ -26,14 +26,18 @@
}

.bpk-spinner-swatch {
@include bpk-spinner();
width: bpk-spacing-base();
height: bpk-spacing-base();
animation: bpk-keyframe-spin 600ms linear infinite;

&--lg {
@include bpk-spinner--lg();
width: bpk-spacing-lg();
height: bpk-spacing-lg();
}

&--xl {
@include bpk-spinner--xl();
width: bpk-spacing-xl();
height: bpk-spacing-xl();
}
}

Expand Down
2 changes: 1 addition & 1 deletion stories/tokens/animations/animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@import '../../../packages/bpk-mixins/index.scss';
@import '../../styles.scss';

.bpk-animation-container {
margin: bpk-spacing-lg();
Expand Down
2 changes: 1 addition & 1 deletion stories/tokens/borders/borders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@import '../../../packages/bpk-mixins/index.scss';
@import '../../styles.scss';

.bpk-border-container {
display: flex;
Expand Down
47 changes: 23 additions & 24 deletions stories/tokens/breakpoints/breakpoints.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,30 @@
* limitations under the License.
*/

@import '../../../packages/bpk-mixins/index.scss';
@import '../../styles.scss';

.bpk-breakpoint-container {
padding-bottom: bpk-spacing-base();
}
.bpk-breakpoint-container {
padding-bottom: bpk-spacing-base();
}

.bpk-breakpoint-object {
align-items: center;
background-color: $bpk-status-danger-spot-day;
height: $bpk-one-pixel-rem;
}
.bpk-breakpoint-object {
align-items: center;
background-color: $bpk-status-danger-spot-day;
height: $bpk-one-pixel-rem;
}

.bpk-breakpoint-margin-object {
background-color: $bpk-status-warning-fill-day;
}
.bpk-breakpoint-margin-object {
background-color: $bpk-status-warning-fill-day;
}

.bpk-breakpoint-margin-container {
display: flex;
justify-content: space-between;
}

.bpk-breakpoint-name {
margin-top: bpk-spacing-base();
font-family: 'Space Mono', monospace;

@include bpk-caption;
}

.bpk-breakpoint-margin-container {
display: flex;
justify-content: space-between;
}

.bpk-breakpoint-name {
margin-top: bpk-spacing-base();
font-family: 'Space Mono', monospace;

@include bpk-caption;
}
2 changes: 1 addition & 1 deletion stories/tokens/colors/colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@import '../../../packages/bpk-mixins/index.scss';
@import '../../styles.scss';

.bpk-color-container {
width: bpk-spacing-md() * 19;
Expand Down
4 changes: 2 additions & 2 deletions stories/tokens/radii/radii.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@import '../../../packages/bpk-mixins/index.scss';
@import '../../styles.scss';

.bpk-radius-container {
margin: bpk-spacing-lg();
Expand All @@ -26,7 +26,7 @@
width: bpk-spacing-xxl() * 4;
height: bpk-spacing-xxl() * 4;

@include bpk-box-shadow-lg();
box-shadow: $bpk-box-shadow-lg;
}

.bpk-radius-name {
Expand Down
2 changes: 1 addition & 1 deletion stories/tokens/shadows/shadows.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

@import '../../../packages/bpk-mixins/index.scss';
@import '../../styles.scss';

.bpk-shadow-container {
margin: bpk-spacing-lg();
Expand Down
Loading

0 comments on commit c92d1e4

Please sign in to comment.