-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.less
231 lines (183 loc) · 4.84 KB
/
style.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
/***
*** @desc Pure CSS Narwhal
*** @author Alexandra Marin
***/
@base-color: lighten(#44BCDA,3%);
@white: #F2F2F2;
@blue: #419BBF;
@unit: 1.3em;
body
{
background: #f0f9ff;
background: -moz-linear-gradient(top, #f0f9ff 0%, #ededed 47%, #e0e0e0 100%);
background: -webkit-linear-gradient(top, #f0f9ff 0%,#ededed 47%,#e0e0e0 100%);
background: -o-linear-gradient(top, #f0f9ff 0%,#ededed 47%,#e0e0e0 100%);
background: -ms-linear-gradient(top, #f0f9ff 0%,#ededed 47%,#e0e0e0 100%);
background: linear-gradient(to bottom, #f0f9ff 0%,#ededed 47%,#e0e0e0 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f9ff', endColorstr='#e0e0e0',GradientType=0 );
font-family: 'Donegal One', serif;
margin:auto;
}
a
{
color: #000000;
}
h1
{
font-size: 1.5*@unit;
margin-bottom: 0.8 * @unit;
}
.title
{
margin-left: 12*@unit;
z-index: 999;
}
#about {
//float:left;
margin-left: 2*@unit;
clear:both;}
#container
{
// float:left;
margin: 0 1.5*@unit;
height: 20 * @unit;
}
#narwhal
{
position: relative;
width: 20 * @unit;
height: 15 * @unit;
float:left;
}
#narwhal > div
{
position: absolute;
margin-left: @unit;
}
#horn_narwhal
{
top: 0.4 * @unit;
left: 8.2 * @unit;
width: 0;
height: 0;
border-bottom: 10 * @unit solid darken(@base-color, 20%);
border-left: 1.2 * @unit solid transparent;
border-right: 1.2 * @unit solid transparent;
}
#eye
{
top: 5.5 * @unit;
left: 6 * @unit;
width: 1.2 * @unit;
height: 1.2 * @unit;
background: darken(@base-color, 20%);
border: 0.6 * @unit solid lighten(@base-color, 50%);
border-radius: 2 * @unit;
}
#pupil
{
width: 0.6 * @unit;
height: 0.5 * @unit;
background: lighten(@base-color, 10%);
border-radius: 6 * @unit;
margin: 0.2*@unit;
}
#body
{
top: 4 * @unit;
left: 3.5 * @unit;
width: 10 * @unit;
height: 10 * @unit;
background: @base-color;
overflow: hidden;
border-radius: 5.5 * @unit 0 5.5 * @unit 0;
}
#tails
{
position: absolute;
top: -1%;
left: 0%;
}
#left
{
position:absolute;
left: -0.5 * @unit;
top: 13.5 * @unit;
width:5*@unit;
height:4*@unit;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7db9e8', endColorstr='#007db9e8',GradientType=0 ); /* IE6-9 */
background-image: -moz-linear-gradient(right bottom , transparent 61%, #44BCDA 61%);
background-image: -webkit-linear-gradient(right bottom , transparent 61%, #44BCDA 61%);
background-image: -ms-linear-gradient(right bottom ,transparent 61%, #44BCDA 61%);
-moz-transform: rotate(30deg);
-webkit-transform: rotate(30deg);
-ms-transform: rotate(30deg);
transform: rotate(30deg);
border-radius: 4*@unit;
}
#right
{
position:absolute;
left: -6%;
top: 14.3*@unit;
width:5*@unit;
height:4*@unit;
background-image: -moz-linear-gradient(right bottom , transparent 61%, #44BCDA 61%);
background-image: -webkit-linear-gradient(right bottom , transparent 61%, #44BCDA 61%);
background-image: -ms-linear-gradient(right bottom ,transparent 61%, #44BCDA 61%);
-moz-transform: rotate(150deg);
-webkit-transform: rotate(150deg);
-ms-transform: rotate(150deg);
transform: rotate(150deg);
border-radius: 4*@unit;
}
#chest
{
background-image: -moz-repeating-radial-gradient(110px 110px,circle,rgba(153, 221, 255, 0.8) 0px, rgba(153, 221, 255, 0.5) 4px, rgba(153, 221, 255, 0) 50px), -moz-repeating-radial-gradient(110px 110px,circle,transparent 0px, rgba(85, 0, 255, 0.1) 2px, transparent 10px);
background-image: -webkit-repeating-radial-gradient(110px 110px,circle, rgba(153, 221, 255, 0.8) 0px, rgba(153, 221, 255, 0.5) 4px, rgba(153, 221, 255, 0) 50px), -webkit-repeating-radial-gradient(110px 110px,circle,transparent 0px, rgba(85, 0, 255, 0.1) 2px, transparent 10px);
background-image: -ms-repeating-radial-gradient(110px 110px,circle, rgba(153, 221, 255, 0.8) 0px, rgba(153, 221, 255, 0.5) 4px, rgba(153, 221, 255, 0) 50px), -ms-repeating-radial-gradient(110px 110px,circle,transparent 0px, rgba(85, 0, 255, 0.1) 2px, transparent 10px);
border-top: 2px dotted darken(@base-color, 20%);
border-left: 2px dotted darken(@base-color, 20%);
border-radius: 5.5 * @unit 0;
position:absolute;
left: 3.5 * @unit;
top: 3.5 * @unit;
width: 6.5 * @unit;
height: 6.5 * @unit;
}
.spot
{
width:10px;
height:10px;
border-radius: 10px;
margin:10px;
}
#spots
{
top: 8 * @unit;
}
@iterations: 5;
.loopingClass (@index) when (@index > 0) {
(~"#myclass_@{index}") {
position:absolute;
top: @index * (0.9 * @unit);
left: 3.8 * @unit;
background: darken(@base-color, 20%);
}
.loopingClass(@index - 1);
}
.loopingClass (0) {}
.loopingClass (@iterations);
@iteration: 10;
.loopingClas (@index) when (@index > 5) {
(~"#myclass_@{index}") {
position:absolute;
top: @index * (0.9 * @unit);
left: 4.5 * @unit;
margin-top: -4.5 * @unit;
background: darken(@base-color, 25%);
}
.loopingClas(@index - 1);
}
.loopingClas (5) {}
.loopingClas (@iteration);