forked from alphagov/pay-product-page
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_hero-button.scss
61 lines (50 loc) · 1.19 KB
/
_hero-button.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Hero Button Component
*
* Notes:
* - Ensure you include shim-links-with-button-role.js from GOV.UK Frontend
* Toolkit to ensure that the link acts like a button (i.e. the space bar
* should trigger it).
*
* Example Usage:
*
* <a href="#" role="button" class="hero-button">
* Do this thing
* </a>
*/
$hero-button-arrow-width: 26px;
$hero-button-arrow-height: 30px;
a.hero-button {
@include button($white);
@include bold-24;
@include box-shadow(0 2px 0 darken($govuk-blue, 10%));
background-size: 20px;
background-repeat: no-repeat;
background-position: 95% 50%;
padding: 0.3684210526em 2.1578947368em 0.2105263158em 0.8421052632em; // 5px 34px 3px 13px
margin: 0 0.416666667em 0.416666667em 0; // 0 10px 10px 0
display: block;
text-align: center;
@include device-pixel-ratio(2) {
background-image: file-url('/pay-product-page/images/hero-button/[email protected]');
}
@include media(tablet) {
display: inline-block;
text-align: left;
}
&,
&:link,
&:visited {
color: $link-colour;
}
&:hover,
&:active {
background-color: $white;
}
&:hover {
color: $link-hover-colour;
}
&:active {
color: $link-active-colour;
}
}