Skip to content

Commit

Permalink
removes deprecated SCSS selectors
Browse files Browse the repository at this point in the history
fixes #56
  • Loading branch information
rohanchandra committed Sep 3, 2017
1 parent 8afb9e7 commit 4b5ca61
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
25 changes: 16 additions & 9 deletions _sass/base/_utility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
padding: $padding-small * 1.5 $padding-large / 1.6;
}
}
%link-hover {
text-decoration: underline;
color: darken($link-color, 15%);
}
// Buttons
.button {
border-radius: 0.3em;
Expand All @@ -23,11 +19,22 @@
margin: 1em 0;
padding: 0.5em 0.75em;
}
a.button:hover {
background: $link-color;
border: 1px solid $link-color;
color: $background-color;
text-decoration: none;
a.button {
@extend .button-link;
}
.button-link {
&:hover {
background: $link-color;
border: 1px solid $link-color;
color: $background-color;
text-decoration: none;
}
}
.body-link {
&:hover {
text-decoration: underline;
color: darken($link-color, 15%);
}
}
// States
.disabled {
Expand Down
4 changes: 2 additions & 2 deletions _sass/layouts/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
display: inline-block;
background-size: $feature-image-size;
border-bottom: 1px solid $border-color;
p a:hover {
@extend %link-hover;
p a {
@extend .body-link;
}
}
.excerpt {
Expand Down
11 changes: 4 additions & 7 deletions _sass/layouts/_posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ article {
margin-bottom: 6%;
text-align: center;
}
a:hover {
@extend %link-hover;
a {
@extend .body-link;
}
.footnotes {
font-size: 0.9em;
Expand Down Expand Up @@ -54,7 +54,7 @@ header {
@media screen and (max-width: 576px) {
.feature-image .post-content {
padding: $padding-small;
}
}
}
// Post navigation
#post-nav {
Expand All @@ -77,6 +77,7 @@ header {
}

a {
@extend .button-link;
padding: 2em 3em;
border: 1px solid rgba(255, 255, 255, 0);
text-align: center;
Expand All @@ -85,12 +86,8 @@ header {
width: 100%;
}
}
a:hover {
@extend a.button:hover;
}

i {
vertical-align: middle;
}
}

0 comments on commit 4b5ca61

Please sign in to comment.