Create button component
This commit is contained in:
parent
2dcd3ffa5e
commit
f0c83831db
12
source/_assets/components/button.scss
Normal file
12
source/_assets/components/button.scss
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
@import '../vars';
|
||||||
|
|
||||||
|
%button {
|
||||||
|
display: inline-block;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #405480;
|
||||||
|
padding: 0.6em 1.2em;
|
||||||
|
border: none;
|
||||||
|
font-size: 100%;
|
||||||
|
font-family: inherit;
|
||||||
|
border-radius: $button-border-radius;
|
||||||
|
}
|
@ -81,8 +81,7 @@ export default {
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '../vars.scss';
|
@import '../vars.scss';
|
||||||
|
@import '../components/button';
|
||||||
$button-radius: 0.5em;
|
|
||||||
|
|
||||||
.app {
|
.app {
|
||||||
display: block;
|
display: block;
|
||||||
@ -115,20 +114,12 @@ $button-radius: 0.5em;
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
%button {
|
|
||||||
display: inline-block;
|
|
||||||
color: #fff;
|
|
||||||
background-color: #405480;
|
|
||||||
padding: 0.6em;
|
|
||||||
border: none;
|
|
||||||
font-size: 100%;
|
|
||||||
font-family: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.restart-button {
|
.restart-button {
|
||||||
@extend %button;
|
@extend %button;
|
||||||
padding: 0.6em 1.4em;
|
padding: {
|
||||||
border-radius: $button-radius;
|
left: 1.4em;
|
||||||
|
right: 1.4em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.pass-button {
|
.pass-button {
|
||||||
@ -139,12 +130,12 @@ $button-radius: 0.5em;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.pass-button.__left {
|
.pass-button.__left {
|
||||||
border-top-left-radius: $button-radius;
|
border-top-right-radius: 0;
|
||||||
border-bottom-left-radius: $button-radius;
|
border-bottom-right-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pass-button.__right {
|
.pass-button.__right {
|
||||||
border-top-right-radius: $button-radius;
|
border-top-left-radius: 0;
|
||||||
border-bottom-right-radius: $button-radius;
|
border-bottom-left-radius: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -9,3 +9,5 @@ $preferred-width: 700px;
|
|||||||
$first-media-step: $preferred-width - 1px;
|
$first-media-step: $preferred-width - 1px;
|
||||||
|
|
||||||
$mobile-margin: 0.8em;
|
$mobile-margin: 0.8em;
|
||||||
|
|
||||||
|
$button-border-radius: 0.5em;
|
||||||
|
Loading…
Reference in New Issue
Block a user