/
buttonCta.less
57 lines (52 loc) · 1.13 KB
/
buttonCta.less
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
/**
* CtaBtn
* https://github.com/internetarchive/openlibrary/wiki/Design-Pattern-Library#ctabtn
*/
.cta-btn,
// override default anchor styles
a.cta-btn {
font-size: 14px;
color: @white !important;
width: 100%;
display: block;
border: 0;
border-radius: 5px;
box-sizing: border-box;
cursor: pointer;
text-decoration: none;
font-family: @lucida_sans_serif-1;
text-align: center;
padding: 7px 20px;
white-space: nowrap;
background-color: @mid-grey;
line-height: 1.5em;
&--available {
background-color: @primary-blue;
}
&--unavailable {
background-color: @orange;
color: @white;
}
&--preview, &--preview:link, &--preview:visited {
background-color: @white;
border: 1px solid @lighter-grey;
color: @black;
}
&--sponsor {
background: @white-blue;
border: 2px solid @link-blue;
}
&--sponsor:link {
color: @link-blue;
}
&__badge {
background-color: @orange-two;
padding: 4px 7px;
border-radius: 5px;
font-size: .7em;
}
}
// Top margin to button coming after another button
.cta-btn + form input.cta-btn, .cta-btn + .cta-btn {
margin-top: 5px;
}