aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@garethrees.co.uk>2017-01-19 12:57:38 +0000
committerGareth Rees <gareth@garethrees.co.uk>2017-01-19 13:01:03 +0000
commit84ce87cb19b54ca284bb6124b331bc2dbae37993 (patch)
tree4f6a9f447e7d2134226d7a40bededdb78765eec2
parent0c30576d80677d8e31b70710d46e250de860d755 (diff)
Remove duplication of action bar button stylesHEADmaster
-rw-r--r--assets/stylesheets/responsive/custom.scss52
1 files changed, 26 insertions, 26 deletions
diff --git a/assets/stylesheets/responsive/custom.scss b/assets/stylesheets/responsive/custom.scss
index 5ceec88..39271d1 100644
--- a/assets/stylesheets/responsive/custom.scss
+++ b/assets/stylesheets/responsive/custom.scss
@@ -173,6 +173,28 @@ a.link_button_green_large {
@include button-primary($size: large);
}
+
+/* Action Bar Mixins */
+
+@mixin follow-button {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ margin-bottom: 0;
+}
+
+@mixin follower-count {
+ color: $color_dark_grey;
+ padding: 0.56em 1.25em;
+ border: 1px solid $color_light_grey;
+ position: relative;
+ left: -3px;
+ line-height: 1.6em;
+ border-left: 0;
+ border-radius: 3px;
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+}
+
/* Popups */
.popup {
@@ -552,23 +574,12 @@ a.link_button_green_large {
.action-bar__follow-button {
.track__action {
@include button-primary();
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- margin-bottom: 0;
+ @include follow-button();
}
}
.action-bar__follower-count {
- color: $color_dark_grey;
- padding: 0.56em 1.25em;
- border: 1px solid $color_light_grey;
- position: relative;
- left: -3px;
- line-height: 1.6em;
- border-left: 0;
- border-radius: 3px;
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
+ @include follower-count();
}
}
@@ -817,23 +828,12 @@ dt {
.track_action,
.link_button_green {
@include button-secondary();
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- margin-bottom: 0;
+ @include follow-button();
}
}
.action-bar__follower-count {
- color: $color_dark_grey;
- padding: 0.56em 1.25em;
- border: 1px solid $color_light_grey;
- position: relative;
- left: -3px;
- line-height: 1.6em;
- border-left: 0;
- border-radius: 3px;
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
+ @include follower-count();
}
}