-
Notifications
You must be signed in to change notification settings - Fork 0
/
atheme.less
131 lines (112 loc) · 2.48 KB
/
atheme.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
* http://aeqdev.com/tools/css/default/
* v 1.8
* License: none (public domain)
*/
body
{
background: @background;
color: @text6;
}
h1, h2, h3, h4, h5, h6,
acronym, abbr, dfn, dt, table caption, th, ins
{
color: @text;
}
a
{
color: @link6;
}
a:hover
{
color: @link;
}
acronym, abbr, dfn, h3, hr
{
border-bottom-color: @text6;
}
table, td
{
border-color: @text2;
}
th
{
border-color: @text3;
background: @text2;
}
kbd, tt
{
background: @text1;
}
tbody tr:hover td
{
background: @link1;
}
input, button, textarea, select
{
outline: 0;
color: @text6;
background: @background;
border: 1px @text2 solid;
box-shadow: 0 0 1ex @text2;
}
input:hover, button:hover, textarea:hover, select:hover,
input:focus, button:focus, textarea:focus, select:focus
{
border-color: @link3;
box-shadow: 0 0 1ex @link3;
}
input[type="checkbox"], input[type="checkbox"]:hover, input[type="checkbox"]:focus,
input[type="radio"], input[type="radio"]:hover, input[type="radio"]:focus
{
box-shadow: none;
border: none;
}
.button-text-shadow () when (lightness(@background) >= lightness(@text))
{
text-shadow: 0 1px 1px @background;
}
.button-text-shadow () when (lightness(@background) < lightness(@text))
{
text-shadow: 0 -1px 1px @background;
}
.button-background-image () when (lightness(@background) >= lightness(@text))
{
background-image: -webkit-linear-gradient(top, @background, @text1);
background-image: -moz-linear-gradient(top, @background, @text1);
background-image: linear-gradient(top, @background, @text1);
}
.button-background-image () when (lightness(@background) < lightness(@text))
{
background-image: -webkit-linear-gradient(top, @text1, @background);
background-image: -moz-linear-gradient(top, @text1, @background);
background-image: linear-gradient(top, @text1, @background);
}
button,
input[type=submit],
input[type=reset],
input[type=button]
{
background-color: @text1;
box-shadow: 0 .3ex 1ex @text2;
.button-text-shadow();
.button-background-image();
}
button:hover, button:focus,
input[type=submit]:hover, input[type=submit]:focus,
input[type=reset]:hover, input[type=reset]:focus,
input[type=button]:hover, input[type=button]:focus
{
box-shadow: 0 .3ex 1ex @link3;
color: @link;
}
button:active,
input[type=submit]:active,
input[type=reset]:active,
input[type=button]:active
{
position: relative;
top: 1px;
box-shadow: 0 .2ex 1ex -.2ex @link3;
color: @link;
}