Skip to content

Commit b2dd54a

Browse files
committed
Extracted button into mixin and applied in callouts and pagination
1 parent dc82063 commit b2dd54a

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

app/assets/stylesheets/application.css.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@import "partials/_variables";
77
@import "partials/_typography";
88
@import "partials/_alerts";
9+
@import "partials/_buttons";
910
@import "partials/_effects";
1011
@import "partials/_filters";
1112
@import "partials/_global_alerts";
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@mixin buttonSecondary {
2+
border: 1px solid $color-blue-500;
3+
border-radius: 0;
4+
display: inline-block;
5+
padding: 6px 12px;
6+
text-decoration: none;
7+
font-size: 1.6rem;
8+
font-weight: $fw-medium;
9+
10+
&:hover {
11+
background-color: $color-blue-25;
12+
}
13+
}

app/assets/stylesheets/partials/_pagination.scss

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,7 @@
2828
}
2929

3030
a {
31-
border: 1px solid $color-blue-500;
32-
border-radius: 0;
33-
display: inline-block;
34-
padding: 6px 12px;
35-
text-decoration: none;
36-
font-size: 1.6rem;
37-
font-weight: $fw-medium;
38-
39-
&:hover {
40-
background-color: $color-blue-25;
41-
}
31+
@include buttonSecondary;
4232
}
4333

4434
.first a, .first span {

app/assets/stylesheets/partials/_results.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@
207207
p {
208208
line-height: 1.4;
209209
}
210+
211+
a {
212+
@include buttonSecondary;
213+
}
210214
}
211215

212216
@media (max-width: $bp-screen-md) {

0 commit comments

Comments
 (0)