-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathless_demo.less
83 lines (72 loc) · 1003 Bytes
/
less_demo.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
#
h1 {
color:#0982c1;
}
h2 {
font-size: 1.2em;
}
@mainColor: #0982c1;
@siteWidth: 1024px;
@borderStyle: dotted;
body {
color: @mainColor;
border: 1px @borderStyle @mainColor;
max-width: @siteWidth;
}
section {
margin: 10px;
nav {
height: 25x;
a {
color: #0982c1;
:hover {
text-decoration: underline;
}
}
}
}
.error(@borderWidth: 2px) {
border: @borderWidth solid #f00;
color: #f00;
}
.generic-error {
padding: 20px;
margin: 4px;
.error();
}
.login-error {
left: 120px;
position: absolute;
top: 20px;
.error(5px);
}
.block {
margin: 10px 5px;
padding: 2px;
}
p {
.block;
border: 1px solid #eee;
}
ul {
width: 100px;
margin: 20px;
border: 1px dashed #33539c;
ol {
.block;
color: #3539c;
text-transform: uppercase;
}
}
.border-radius(@values) {
-webkit-border-radius: @values;
-moz-border-radius: @values;
border-radius: @values;
}
.radius {
.border-radius(10px);
width: 100px;
height: 100px;
border: 1px dashed #33539c;
margin: 20px;
}