Skip to content

Commit

Permalink
refactor(project): update example styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ernscht committed May 3, 2024
1 parent f1bed96 commit 5bd6fe8
Show file tree
Hide file tree
Showing 32 changed files with 47 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,24 @@
border-left: 2rem solid transparent;
border-right: 2rem solid $color-gray-8;
}

a {
padding: 0.5em 0;
}
}

// inline mixin examples
@mixin box-mixin() {
display: block;
}
/* stylelint-disable-next-line no-duplicate-selectors */
/* stylelint-disable-next-line no-duplicate-selectors */
.a-box {
@include box-mixin();
}
@mixin box-mixin-alternative($display: block) {
display: $display;
}
/* stylelint-disable-next-line no-duplicate-selectors */
/* stylelint-disable-next-line no-duplicate-selectors */
.a-box {
@include box-mixin-alternative();
@include box-mixin-alternative(block);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
}
.m-example__headline {
font-size: 1.6em;
margin-bottom: 0.6rem;
}
.m-example__link {
color: inherit;
display: inline-block;
padding: 0.2rem 0;
}
.m-example__button {
font-size: 1rem;
padding: 0.5rem 1rem;
margin: 0.5rem 0.5rem 0.5rem 0;
margin: 1rem 0.5rem 0.5rem 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,24 @@
border-left: 2rem solid transparent;
border-right: 2rem solid $color-gray-8;
}

a {
padding: 0.5em 0;
}
}

// inline mixin examples
@mixin box-mixin() {
display: block;
}
/* stylelint-disable-next-line no-duplicate-selectors */
/* stylelint-disable-next-line no-duplicate-selectors */
.a-box {
@include box-mixin();
}
@mixin box-mixin-alternative($display: block) {
display: $display;
}
/* stylelint-disable-next-line no-duplicate-selectors */
/* stylelint-disable-next-line no-duplicate-selectors */
.a-box {
@include box-mixin-alternative();
@include box-mixin-alternative(block);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
border-radius: 0.5em;
}
.m-example__headline {
font-size: 1.6em;
font-size: 1.6rem;
margin-bottom: 0.6rem;
}
.m-example__link {
color: inherit;
display: inline-block;
padding: 0.2rem 0;
}
.m-example__button {
font-size: 1rem;
padding: 0.5rem 1rem;
margin: 0.5rem 0.5rem 0.5rem 0;
margin: 1rem 0.5rem 0.5rem 0;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,24 @@
border-left: 2rem solid transparent;
border-right: 2rem solid $color-gray-8;
}

a {
padding: 0.5em 0;
}
}

// inline mixin examples
@mixin box-mixin() {
display: block;
}
/* stylelint-disable-next-line no-duplicate-selectors */
/* stylelint-disable-next-line no-duplicate-selectors */
.a-box {
@include box-mixin();
}
@mixin box-mixin-alternative($display: block) {
display: $display;
}
/* stylelint-disable-next-line no-duplicate-selectors */
/* stylelint-disable-next-line no-duplicate-selectors */
.a-box {
@include box-mixin-alternative();
@include box-mixin-alternative(block);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
border-radius: 0.5em;
}
.m-example__headline {
font-size: 1.6em;
font-size: 1.6rem;
margin-bottom: 0.6rem;
}
.m-example__link {
color: inherit;
display: inline-block;
padding: 0.2rem 0;
}
.m-example__button {
font-size: 1rem;
padding: 0.5rem 1rem;
margin: 0.5rem 0.5rem 0.5rem 0;
margin: 1rem 0.5rem 0.5rem 0;
}
8 changes: 6 additions & 2 deletions packages/project-nitro/src/patterns/atoms/box/css/box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,24 @@
border-left: 2rem solid transparent;
border-right: 2rem solid $color-gray-8;
}

a {
padding: 0.5em 0;
}
}

// inline mixin examples
@mixin box-mixin() {
display: block;
}
/* stylelint-disable-next-line no-duplicate-selectors */
/* stylelint-disable-next-line no-duplicate-selectors */
.a-box {
@include box-mixin();
}
@mixin box-mixin-alternative($display: block) {
display: $display;
}
/* stylelint-disable-next-line no-duplicate-selectors */
/* stylelint-disable-next-line no-duplicate-selectors */
.a-box {
@include box-mixin-alternative();
@include box-mixin-alternative(block);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
border-radius: $example-border-radius;
}
.m-example__headline {
font-size: 1.6em;
font-size: 1.6rem;
margin-bottom: 0.6rem;
}
.m-example__link {
color: inherit;
display: inline-block;
padding: 0.2rem 0;
}
.m-example__button {
font-size: 1rem;
padding: 0.5rem 1rem;
margin: 0.5rem 0.5rem 0.5rem 0;
margin: 1rem 0.5rem 0.5rem 0;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5bd6fe8

Please sign in to comment.