Skip to content

Commit

Permalink
Merge pull request #380 from woylie/update-box-banner-styles
Browse files Browse the repository at this point in the history
update box banner styles
  • Loading branch information
woylie authored Sep 25, 2024
2 parents 6e694cf + 97ccb43 commit e230549
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 105 deletions.
10 changes: 9 additions & 1 deletion demo/assets/css/components/_box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@
}

> .box-banner {
flex: 0 0 100%;
flex: 0 0 calc(100% + #{f.spacer(12)});
order: -1;
margin-top: f.spacer(-6);
margin-bottom: f.lines(0.5);
margin-left: f.spacer(-6);

> img {
border-top-left-radius: f.radius(m);
border-top-right-radius: f.radius(m);
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions demo/assets/css/layouts/_level.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
gap: var(--gap);

> :first-child {
flex-basis: var(--width-left, 50%);
flex-grow: 1;
flex-basis: var(--width-left, 50%);
}

> :last-child {
flex-basis: var(--width-right, 50%);
flex-grow: 1;
flex-basis: var(--width-right, 50%);
}

/*
Expand Down
8 changes: 4 additions & 4 deletions demo/assets/css/layouts/_with-sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@

&:not(.has-sidebar-right) {
> :first-child {
flex-basis: var(--sidebar-width);
flex-grow: 1;
flex-basis: var(--sidebar-width);
}

> :last-child {
flex-basis: 0;
flex-grow: 666;
flex-basis: 0;
min-width: var(--content-min-width);
}
}

&.has-sidebar-right {
> :last-child {
flex-basis: var(--sidebar-width);
flex-grow: 1;
flex-basis: var(--sidebar-width);
}

> :first-child {
flex-basis: 0;
flex-grow: 666;
flex-basis: 0;
min-width: var(--content-min-width);
}
}
Expand Down
2 changes: 1 addition & 1 deletion demo/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"prettier": "^3.3.3",
"style-dictionary": "^4.1.2",
"stylelint": "^16.9.0",
"stylelint-config-recess-order": "^5.1.0",
"stylelint-config-recess-order": "^5.1.1",
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-declaration-strict-value": "^1.10.6"
},
Expand Down
Loading

0 comments on commit e230549

Please sign in to comment.