forked from malarkey/320andup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolour.less
executable file
·159 lines (111 loc) · 3.38 KB
/
colour.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
// ==========================================================
// 320 and Up by Andy Clarke
// Version: 3.0
// URL: http://stuffandnonsense.co.uk/projects/320andup/
// Apache License: v2.0. http://www.apache.org/licenses/LICENSE-2.0
// ==========================================================
/* Colour =================================================== */
// 1. ROOT ==============================
// 2. TYPOGRAPHY ==============================
// 3. COLOUR ==============================
a {
text-decoration : none;
color : @linkcolor;
&:visited {
color : @linkcolorvisited; }
&:hover {
text-decoration : underline;
color : @linkcolorhover; }
&:focus {
outline : thin dotted;
color : @linkcolorfocus; }
&:hover,
&:active {
outline : 0; }
}
::-moz-selection {
background-color : lighten(@basecolor, 65%);
color : @basecolor;
text-shadow : none; }
::selection {
background-color : lighten(@basecolor, 65%);
color : @basecolor;
text-shadow : none; }
// swatches
.swatch {
margin : 0 0 @baselineheight 0;
padding : 0; }
.swatch-row {
display : block;
margin : 0;
padding : 0;
width : 200px; }
.swatch-row-one {
background-color : @black; }
.swatch-row-two {
background-color : @white; }
.swatch-row span {
display : block;
float : left;
width : 50px;
height : 50px; }
// base
.swatch-base span:nth-child(1) {
.background-alpha(@basecolor, .9); }
.swatch-base span:nth-child(2) {
.background-alpha(@basecolor, .8); }
.swatch-base span:nth-child(3) {
.background-alpha(@basecolor, .7); }
.swatch-base span:nth-child(4) {
.background-alpha(@basecolor, .6); }
// alert
.swatch-alert span:nth-child(1) {
.background-alpha(@alertcolor, .9); }
.swatch-alert span:nth-child(2) {
.background-alpha(@alertcolor, .8); }
.swatch-alert span:nth-child(3) {
.background-alpha(@alertcolor, .7); }
.swatch-alert span:nth-child(4) {
.background-alpha(@alertcolor, .6); }
// error
.swatch-error span:nth-child(1) {
.background-alpha(@errorcolor, .9); }
.swatch-error span:nth-child(2) {
.background-alpha(@errorcolor, .8); }
.swatch-error span:nth-child(3) {
.background-alpha(@errorcolor, .7); }
.swatch-error span:nth-child(4) {
.background-alpha(@errorcolor, .6); }
// info
.swatch-info span:nth-child(1) {
.background-alpha(@infocolor, .9); }
.swatch-info span:nth-child(2) {
.background-alpha(@infocolor, .8); }
.swatch-info span:nth-child(3) {
.background-alpha(@infocolor, .7); }
.swatch-info span:nth-child(4) {
.background-alpha(@infocolor, .6); }
// success
.swatch-success span:nth-child(1) {
.background-alpha(@successcolor, .9); }
.swatch-success span:nth-child(2) {
.background-alpha(@successcolor, .8); }
.swatch-success span:nth-child(3) {
.background-alpha(@successcolor, .7); }
.swatch-success span:nth-child(4) {
.background-alpha(@successcolor, .6); }
// warning
.swatch-warning span:nth-child(1) {
.background-alpha(@warningcolor, .9); }
.swatch-warning span:nth-child(2) {
.background-alpha(@warningcolor, .8); }
.swatch-warning span:nth-child(3) {
.background-alpha(@warningcolor, .7); }
.swatch-warning span:nth-child(4) {
.background-alpha(@warningcolor, .6); }
// 4. TEXTURE ==============================
// 5. ELEMENTS ==============================
// 6. LAYOUT ==============================
// 7. VENDOR-SPECIFIC ==============================
// 8. MODERNIZR ==============================
// 9. TEMPLATE SPECIFICS ==============================