forked from ethereum/dapp-styles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuttons.import.less
84 lines (71 loc) · 1.57 KB
/
buttons.import.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// buttons
button {
font-family: @fontFamily;
}
// TODO we could add a circle on hover
.dapp-icon-button {
.dapp-button-reset;
display: inline-block;
color: @colorBlack;
// make smaller on click
&:active {
.scale(0.95);
}
&:hover {
opacity: 0.9;
}
}
.dapp-block-button,
.dapp-block-button:visited {
.dapp-button-reset;
height: @gridHeight * 3;
min-width: 140px;
padding: @gridHeight/4 @gridWidth/3;
background: @colorLink;
color: @colorWhite;
border-bottom: 3px solid darken(@colorLink, 5%);
.box-sizing(border-box);
.border-radius(2px);
.dapp-shorten-text;
font-family: @fontFamily;
font-size: 1em;
font-weight: 400;
text-transform: uppercase;
&.dapp-small {
height: @gridHeight*1.7;
min-width: 100px;
font-size: 0.8em;
border-bottom-width: 0;
&:focus {
border-bottom-width: 0;
}
}
&:focus {
border-bottom: 3px solid darken(@colorLink, 5%);
.opacity(0.8);
}
&:active {
border-bottom-width: 3px;
}
&:disabled {
background-color: @colorGray;
border-bottom-color: darken(@colorGray, 5%);
}
i {
position: relative;
top: 2px;
}
}
.dapp-tag-button {
.dapp-button-reset;
padding: @gridHeight/4 @gridWidth/4;
background: @colorGray;
color: @colorTextPrimary;
.border-radius(4px);
.dapp-shorten-text;
font-size: 0.7em;
&.active {
background: @colorLink;
color: @colorWhite;
}
}