Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions src/css/lib/_button.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'variable';

@mixin btn() {
display: inline-block;
text-align: center;
Expand All @@ -7,32 +9,32 @@
font-size: 90%;
border-radius: 0.25em;
overflow: hidden;
color: $link;
color: variable.$link;
background-color: transparent;
text-decoration: none;
border: 1px solid $link;
border: 1px solid variable.$link;
&:hover {
background-color: $link;
color: $bg;
background-color: variable.$link;
color: variable.$bg;
text-decoration: none;
border-color: transparent;
}
}
@mixin btn-light() {
border-color: $light;
color: $base;
border-color: variable.$light;
color: variable.$base;
&:hover {
background-color: $base;
color: $bg;
background-color: variable.$base;
color: variable.$bg;
}
}
@mixin btn-primary() {
background-color: $link;
color: $bg;
border-color: $link;
background-color: variable.$link;
color: variable.$bg;
border-color: variable.$link;
&:hover {
background-color: $hover;
color: $bg;
background-color: variable.$hover;
color: variable.$bg;
}
}
@mixin btn-large() {
Expand All @@ -42,7 +44,7 @@
border-width: 2px;
width: 100%;
margin: 0.2em 0;
@media #{$mq-sm} {
@media #{variable.$mq-sm} {
padding: 0.7em 2em;
width: auto;
}
Expand Down
14 changes: 8 additions & 6 deletions src/css/lib/_common.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'variable';

@mixin clearfix() {
&:after {
content: ' ';
Expand All @@ -7,13 +9,13 @@
}
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background: $bg;
color: $base;
background: variable.$bg;
color: variable.$base;
-webkit-font-smoothing: antialiased;
word-wrap: break-word;
}
a {
color: $link;
color: variable.$link;
text-decoration: none;
&:hover {
text-decoration: underline;
Expand All @@ -30,13 +32,13 @@ h5,
h6 {
a,
a:hover {
color: $base;
color: variable.$base;
text-decoration: none;
}
}
.l-section {
margin: auto;
@media #{$mq-md} {
@media #{variable.$mq-md} {
margin: auto;
}
img {
Expand All @@ -49,7 +51,7 @@ h6 {
h2 {
margin: 0.5em auto;
font-size: 1.6rem;
@media #{$mq-sm} {
@media #{variable.$mq-sm} {
font-size: 2rem;
}
}
Expand Down
Loading