-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.less
242 lines (195 loc) · 3.95 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
232
233
234
235
236
/*
Theme Name: Twenty Eleven (LE Edition)
Theme URI: http://wordpress.org/extend/themes/twentyeleven_le
Author: Junaid Ahmed
Author URI: http://www.simpleux.co.uk
Description: Re-define Twenty Eleven in drag and drop; LessCSS compatible Layout Engine Framework.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: le, dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-width, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
Text Domain: twentyeleven
*/
//Default Twenty Eleven Style
@import 'twenty-eleven-default.css';
/*
Grid Support
Layout Engine allow end user to specify columns for blockitem in grid, and by default it uses Twitter Bootstrap standards.
.row => row container
.span4 => 1/3 Column
.span8 => half column
.span12 => Full width
*/
@import 'grid.css';
/*
Demonstrate different options we can define through css
also check modify_le_lesscss_settings() in functions.php to see how you can manipulate these settings using php.
Value defined in lesscss act as default value.
Remember parser only parse /*** style comments as demonstrated below
An annoated variable can have following properties
label - Label of the field
id - Name of variable like @name
description - Description of field. (Not implemented yet)
group - Default is 'default'
choices - Comma delimited values. (On server side hook you can provide arrays)
type - Input type. Default is 'text'. supported values text, radio, checkbox,color,textarea and image.
priority - priority in rendering. default is 0
*/
/***
Label:Background color
type:color
group: Typography
***/
@color-scheme: rgb(241,241,241);
/***
Label:Text color
type:color
group: Typography
***/
@text-color: rgb(55,55,55);
/***
Label:Link Color
type:color
group: Typography
***/
@link-color: rgb(80%, 15%, 80%);
/***
Label:Heading Color
type:color
group: Typography
***/
@heading-color: rgb(80%, 15%, 80%);
/***
Label:Font family
type:radio
group: Typography
***/
@theme-font: Arial, Helvetica, sans-serif;
/***
Label:Homepage default header
type:image
group: Header
***/
@default-header: 'http://';
//Demonstrating non-css values to use as wordpress settings in header.php
/***
Label:Facebok
type:text
group: Social Networks
***/
@social-facebook: 'http://';
/***
Label:Twitter
type:text
group: Social Networks
***/
@social-twitter: 'http://';
/***
Label:RSS
type:text
group: Social Networks
***/
@social-rss: 'http://';
/***
Label:Checkbox Test
type:checkbox
group: Demonstration
choices: One,Two,Three,Four
***/
@test-checkbox: One;
/***
Label:Select Test
type:select
group: Demonstration
choices: One,Two,Three,Four
***/
@test-select:Two;
//Static
//Fix for Bootstrap grid
[class*="span"]
{
clear:none;
min-height:5px;
}
.widget ul
{
list-style:none;
}
.widget ul ul
{
list-style:square;
}
div.row
{
margin-bottom:15px;
padding-bottom:15px;
}
#branding
{
border-top:none;
}
#branding div.row
{
margin-bottom:0px;
padding-bottom:0px;
}
#branding hgroup
{
padding-top:20px;
margin:0 0 20px 0;
}
#site-titlex
{
margin-left:0;
}
#site-titlex a
{
color: #111111;
font-size: 30px;
font-weight: bold;
line-height: 36px;
text-decoration: none;
}
.singular .hentry
{
padding:18px 0 0 0;
margin:0;
}
.singular .entry-header .entry-meta
{
top:20px;
}
.singular .entry-header, .singular .entry-content, .singular footer.entry-meta, .singular #comments-title
{
width:100%;
margin:0;
padding:0;
}
.singular .entry-meta .edit-link a
{
display:none;
}
//Applying LessCSS
body
{
background-color:@color-scheme;
color:@text-color;
font-family:@theme-font;
}
a
{
color:@link-color;
}
h1,
h2,
h3,
h4,
h1 a,
h2 a,
h3 a,
h4 a,
.entry-title,
.entry-title a
{
color:@heading-color;
}