Skip to content

Commit f087885

Browse files
committed
Improve styling of buttons
1 parent 7a9ec72 commit f087885

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

sass/_extra.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,23 +99,32 @@ h6:hover .anchor {
9999
margin-bottom: 0;
100100
}
101101

102+
input, button {
103+
font-size: inherit;
104+
}
105+
102106
a.btn, // Trick to increase the specificity and win against rules such as a:visited
103107
.btn {
104108
text-decoration: none;
105109
border-radius: 3px;
106110
font-weight: 600;
107-
border: 1px solid transparent;
111+
border: none;
108112
box-sizing: border-box;
109113
display: inline-block;
110114
padding: 0.4em 2em;
115+
transition: background-color 125ms;
111116

112117
background-color: $brand-color;
113118
color: $background-color;
114119
border-color: $background-color;
115120

116121
&:hover {
117122
color: lighten($background-color, 10);
118-
border-color: $brand-color;
123+
background-color: lighten($brand-color, 5);
124+
}
125+
126+
&:active {
127+
background-color: darken($brand-color, 5);
119128
}
120129
}
121130

0 commit comments

Comments
 (0)