less 1.2.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/.npmignore +1 -0
  2. package/CHANGELOG.md +118 -0
  3. package/CONTRIBUTING.md +50 -0
  4. package/Makefile +14 -2
  5. package/benchmark/benchmark.less +11 -11
  6. package/benchmark/less-benchmark.js +1 -1
  7. package/bin/lessc +77 -21
  8. package/build/amd.js +6 -0
  9. package/build/ecma-5.js +120 -0
  10. package/build/header.js +7 -0
  11. package/build/require-rhino.js +7 -0
  12. package/build/require.js +7 -0
  13. package/lib/less/browser.js +192 -53
  14. package/lib/less/colors.js +1 -0
  15. package/lib/less/functions.js +159 -10
  16. package/lib/less/index.js +125 -56
  17. package/lib/less/lessc_helper.js +62 -0
  18. package/lib/less/parser.js +391 -154
  19. package/lib/less/rhino.js +84 -23
  20. package/lib/less/tree/anonymous.js +15 -1
  21. package/lib/less/tree/assignment.js +3 -1
  22. package/lib/less/tree/call.js +12 -6
  23. package/lib/less/tree/color.js +10 -0
  24. package/lib/less/tree/dimension.js +3 -1
  25. package/lib/less/tree/directive.js +10 -10
  26. package/lib/less/tree/element.js +8 -7
  27. package/lib/less/tree/import.js +17 -14
  28. package/lib/less/tree/media.js +121 -0
  29. package/lib/less/tree/mixin.js +133 -45
  30. package/lib/less/tree/operation.js +5 -0
  31. package/lib/less/tree/quoted.js +15 -1
  32. package/lib/less/tree/ratio.js +13 -0
  33. package/lib/less/tree/rule.js +7 -0
  34. package/lib/less/tree/ruleset.js +236 -37
  35. package/lib/less/tree/selector.js +21 -11
  36. package/lib/less/tree/unicode-descriptor.js +13 -0
  37. package/lib/less/tree/url.js +16 -14
  38. package/lib/less/tree/variable.js +13 -1
  39. package/lib/less/tree.js +28 -0
  40. package/package.json +13 -3
  41. package/test/browser/common.js +74 -0
  42. package/test/browser/css/relative-urls/urls.css +36 -0
  43. package/test/browser/css/rootpath/urls.css +36 -0
  44. package/test/browser/css/rootpath-relative/urls.css +36 -0
  45. package/test/browser/css/urls.css +36 -0
  46. package/test/browser/jasmine-html.js +681 -0
  47. package/test/browser/jasmine.css +82 -0
  48. package/test/browser/jasmine.js +2600 -0
  49. package/test/browser/less/imports/urls.less +4 -0
  50. package/test/browser/less/imports/urls2.less +4 -0
  51. package/test/browser/less/relative-urls/urls.less +33 -0
  52. package/test/browser/less/rootpath/urls.less +33 -0
  53. package/test/browser/less/rootpath-relative/urls.less +33 -0
  54. package/test/browser/less/urls.less +33 -0
  55. package/test/browser/phantom-runner.js +139 -0
  56. package/test/browser/runner-browser.js +3 -0
  57. package/test/browser/runner-main.js +15 -0
  58. package/test/browser/runner-relative-urls.js +4 -0
  59. package/test/browser/runner-rootpath-relative.js +5 -0
  60. package/test/browser/runner-rootpath.js +4 -0
  61. package/test/browser/template.htm +10 -0
  62. package/test/browser-test-prepare.js +29 -0
  63. package/test/css/charsets.css +1 -0
  64. package/test/css/colors.css +22 -0
  65. package/test/css/comments.css +7 -0
  66. package/test/css/css-3.css +57 -2
  67. package/test/css/css-escapes.css +4 -0
  68. package/test/css/css.css +11 -11
  69. package/test/css/debug/linenumbers-all.css +43 -0
  70. package/test/css/debug/linenumbers-comments.css +35 -0
  71. package/test/css/debug/linenumbers-mediaquery.css +35 -0
  72. package/test/css/functions.css +59 -2
  73. package/test/css/ie-filters.css +7 -3
  74. package/test/css/import-once.css +3 -0
  75. package/test/css/import.css +7 -9
  76. package/test/css/javascript.css +3 -2
  77. package/test/css/media.css +168 -0
  78. package/test/css/mixins-args.css +35 -4
  79. package/test/css/mixins-guards.css +13 -0
  80. package/test/css/mixins-important.css +21 -0
  81. package/test/css/mixins-named-args.css +27 -0
  82. package/test/css/mixins-pattern.css +4 -6
  83. package/test/css/mixins.css +50 -0
  84. package/test/css/scope.css +20 -0
  85. package/test/css/selectors.css +76 -0
  86. package/test/css/static-urls/urls.css +42 -0
  87. package/test/css/strings.css +2 -2
  88. package/test/css/urls.css +42 -0
  89. package/test/css/variables.css +0 -1
  90. package/test/css/whitespace.css +4 -0
  91. package/test/less/charsets.less +3 -0
  92. package/test/less/colors.less +27 -0
  93. package/test/less/comments.less +12 -0
  94. package/test/less/css-3.less +54 -6
  95. package/test/less/css-escapes.less +6 -1
  96. package/test/less/css.less +14 -12
  97. package/test/less/debug/import/test.less +25 -0
  98. package/test/less/debug/linenumbers.less +23 -0
  99. package/test/less/errors/bad-variable-declaration1.less +1 -0
  100. package/test/less/errors/bad-variable-declaration1.txt +2 -0
  101. package/test/less/errors/comment-in-selector.less +1 -0
  102. package/test/less/errors/comment-in-selector.txt +2 -0
  103. package/test/less/errors/import-missing.less +1 -0
  104. package/test/less/errors/import-missing.txt +3 -0
  105. package/test/less/errors/import-no-semi.less +1 -0
  106. package/test/less/errors/import-no-semi.txt +2 -0
  107. package/test/less/errors/import-subfolder1.less +1 -0
  108. package/test/less/errors/import-subfolder1.txt +3 -0
  109. package/test/less/errors/import-subfolder2.less +1 -0
  110. package/test/less/errors/import-subfolder2.txt +2 -0
  111. package/test/less/errors/imports/import-subfolder1.less +1 -0
  112. package/test/less/errors/imports/import-subfolder2.less +1 -0
  113. package/test/less/errors/imports/import-test.less +4 -0
  114. package/test/less/errors/imports/subfolder/mixin-not-defined.less +1 -0
  115. package/test/less/errors/imports/subfolder/parse-error-curly-bracket.less +1 -0
  116. package/test/less/errors/javascript-error.less +3 -0
  117. package/test/less/errors/javascript-error.txt +4 -0
  118. package/test/less/errors/mixed-mixin-definition-args-1.less +6 -0
  119. package/test/less/errors/mixed-mixin-definition-args-1.txt +4 -0
  120. package/test/less/errors/mixed-mixin-definition-args-2.less +6 -0
  121. package/test/less/errors/mixed-mixin-definition-args-2.txt +4 -0
  122. package/test/less/errors/mixin-not-defined.less +11 -0
  123. package/test/less/errors/mixin-not-defined.txt +3 -0
  124. package/test/less/errors/mixin-not-matched.less +6 -0
  125. package/test/less/errors/mixin-not-matched.txt +3 -0
  126. package/test/less/errors/mixin-not-matched2.less +6 -0
  127. package/test/less/errors/mixin-not-matched2.txt +3 -0
  128. package/test/less/errors/parse-error-curly-bracket.less +1 -0
  129. package/test/less/errors/parse-error-curly-bracket.txt +2 -0
  130. package/test/less/errors/parse-error-missing-bracket.less +2 -0
  131. package/test/less/errors/parse-error-missing-bracket.txt +2 -0
  132. package/test/less/errors/parse-error-with-import.less +13 -0
  133. package/test/less/errors/parse-error-with-import.txt +4 -0
  134. package/test/less/errors/property-ie5-hack.less +3 -0
  135. package/test/less/errors/property-ie5-hack.txt +4 -0
  136. package/test/less/errors/recursive-variable.less +1 -0
  137. package/test/less/errors/recursive-variable.txt +2 -0
  138. package/test/less/functions.less +64 -2
  139. package/test/less/ie-filters.less +7 -0
  140. package/test/less/import/deeper/import-once-test-a.less +1 -0
  141. package/test/less/import/import-and-relative-paths-test.less +6 -0
  142. package/test/less/import/import-charset-test.less +1 -0
  143. package/test/less/import/import-once-test-c.less +6 -0
  144. package/test/less/import/import-test-a.less +1 -0
  145. package/test/less/import/import-test-c.less +0 -1
  146. package/test/less/import/imports/font.less +8 -0
  147. package/test/less/import/imports/logo.less +5 -0
  148. package/test/less/import/urls.less +1 -0
  149. package/test/less/import-once.less +4 -0
  150. package/test/less/import.less +2 -1
  151. package/test/less/javascript.less +4 -2
  152. package/test/less/media.less +169 -1
  153. package/test/less/mixins-args.less +54 -11
  154. package/test/less/mixins-guards.less +30 -0
  155. package/test/less/mixins-important.less +4 -0
  156. package/test/less/mixins-named-args.less +36 -0
  157. package/test/less/mixins-pattern.less +3 -0
  158. package/test/less/mixins.less +47 -0
  159. package/test/less/scope.less +48 -1
  160. package/test/less/selectors.less +88 -0
  161. package/test/less/static-urls/urls.less +33 -0
  162. package/test/less/strings.less +1 -1
  163. package/test/less/urls.less +33 -0
  164. package/test/less/variables.less +0 -1
  165. package/test/less/whitespace.less +7 -0
  166. package/test/less-test.js +145 -36
  167. package/bench.css +0 -5943
  168. package/benchmark/b1.less +0 -3980
  169. package/dist/less-1.1.0.js +0 -2695
  170. package/dist/less-1.1.0.min.js +0 -16
  171. package/dist/less-1.1.1.js +0 -2710
  172. package/dist/less-1.1.1.min.js +0 -16
  173. package/dist/less-1.1.2.js +0 -2712
  174. package/dist/less-1.1.2.min.js +0 -16
  175. package/dist/less-1.1.3.js +0 -2721
  176. package/dist/less-1.1.3.min.js +0 -16
  177. package/dist/less-1.1.4.js +0 -2769
  178. package/dist/less-1.1.4.min.js +0 -16
  179. package/dist/less-1.1.5.js +0 -2805
  180. package/dist/less-1.1.5.min.js +0 -9
  181. package/dist/less-1.1.6.js +0 -3004
  182. package/dist/less-1.1.6.min.js +0 -9
  183. package/dist/less-1.2.0.js +0 -3293
  184. package/dist/less-1.2.0.min.js +0 -9
  185. package/dist/less-1.2.1.js +0 -3318
  186. package/dist/less-1.2.1.min.js +0 -9
  187. package/dist/less-1.2.2.js +0 -3337
  188. package/dist/less-1.2.2.min.js +0 -9
  189. package/dist/less-rhino-1.1.3.js +0 -2460
  190. package/dist/less-rhino-1.1.5.js +0 -2481
  191. package/foo.less +0 -2
  192. package/lib/less/cssmin.js +0 -355
  193. package/test/html/index.html +0 -10
  194. package/test/html/less.js +0 -3333
  195. package/test/html/lib.less +0 -2
  196. package/test/html/styles.less +0 -8
  197. package/x.less +0 -4
package/benchmark/b1.less DELETED
@@ -1,3980 +0,0 @@
1
-
2
- @bg: #f01;
3
- @white: #fff;
4
- @grey: #eee;
5
- @black: #000;
6
- @blue: #000;
7
- @accent_colour: #000;
8
- @light_grey: #eee;
9
- @dark_grey: #eee;
10
- @yellow: #422;
11
- @red: #ff0000;
12
- @colour_positive: #ff0000;
13
- @colour_negative: #ff0000;
14
-
15
- .box_shadow () {
16
- }
17
- .text_shadow () {
18
- }
19
- .border_radius () {
20
- }
21
- .border_radius_top_left () {
22
- }
23
- .border_radius_top_right () {
24
- }
25
- .border_radius_bottom_right () {
26
- }
27
- .border_radius_bottom_left () {
28
- }
29
- .border_radius_top () {
30
- }
31
- .border_radius_right () {
32
- }
33
- .border_radius_bottom () {
34
- }
35
- .border_radius_left () {
36
- }
37
- div.browse {
38
- margin: 0 0 20px;
39
- &.class {
40
- padding: 0;
41
- }
42
- div.header {
43
- padding: 10px 10px 9px; text-align: left; background: @bg url('/images/panel_header_bg.png') repeat-x top left;
44
- border-bottom: 1px solid (@bg * 0.66 + @black * 0.33); line-height: 1; height: 18px;
45
- .border_radius_top(3); color: @light_grey;
46
- h3 { font-size: 16px; margin: 0; color: @white; .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33); }
47
- span.filter {
48
- float: left; display: block; overflow: hidden; position: relative; z-index: 5;
49
- a {
50
- margin: 0 1px 0 0; display: block; float: left; padding: 0 8px; height: 18px; font-weight: bold; font-size: 10px; line-height: 18px;
51
- text-transform: uppercase; background: url('/images/transparent_backgrounds/black_50.png'); color: @light_grey; text-decoration: none; position: relative; z-index: 3;
52
- .active {
53
- background: @white; color: @black; z-index: 4;
54
- :hover { color: @black; }
55
- }
56
- :hover { color: @white; }
57
- :first-child { .border_radius_left(2); }
58
- :last-child { .border_radius_right(2); margin-right: 0; }
59
- }
60
- }
61
-
62
- span.filter.dropdown {
63
- margin: 0; position: relative; overflow: visible;
64
- a {
65
- .border_radius(2); background: @white; color: @black; margin: 0; position: relative; padding-right: 25px;
66
- img { float: left; margin: 4px 5px 0 0; }
67
- b.arrow {
68
- float: right; display: block; height: 0; width: 0; border: 5px solid transparent; border-top: 5px solid @black; border-bottom: none;
69
- position: absolute; top: 6px; right: 10px;
70
- }
71
- :hover {
72
- background: @accent_colour; color: @white;
73
- b.arrow { border-top: 5px solid @white; }
74
- }
75
- }
76
- ul {
77
- position: absolute; top: 100%; left: 0; margin: 1px 0 0; padding: 0; background: @white; .border_radius(2);
78
- .box_shadow(0, 1, 1, @black);
79
- li {
80
- list-style: none; display: block; padding: 0; margin: 0;
81
- a {
82
- display: block; height: 18px; line-height: 18px; color: @black; font-size: 10px; text-transform: uppercase; background: transparent;
83
- border-bottom: 1px solid (@light_grey * 0.66 + @white * 0.33); float: none; margin: 0; .border_radius(0); white-space: nowrap;
84
- :hover { background: url('/images/transparent_backgrounds/accent_colour_25.png'); color: @black; }
85
- }
86
- :last-child {
87
- a { border: none; }
88
- }
89
- }
90
- }
91
- }
92
- span.filter.dropdown.sort { float: left; margin: 0 0 0 10px; }
93
- span.filter.dropdown.localisation { float: left; margin: 0 0 0 10px; }
94
- a.more {
95
- float: right; color: @white; .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33); font-size: 14px; font-weight: bold;
96
- position: relative; top: 2px;
97
- :hover { text-decoration: none; }
98
- }
99
- }
100
- > ul {
101
- margin: 0; background: @white; padding: 10px 0 0 10px; .border_radius(3); position: relative;
102
- li {
103
- display: block; float: left; list-style: none; margin: 0 10px 10px 0; padding: 5px; position: relative;
104
- background: @white; width: 130px; border: 1px solid (@light_grey * 0.33 + @white * 0.66); .border_radius(2);
105
- a.remove {
106
- position: absolute; height: 16px; width: 16px; padding: 3px; background: @accent_colour;
107
- .border_radius(99); display: none; z-index: 3; top: -8px; right: -8px;
108
- img { vertical-align: middle; }
109
- }
110
- div.thumbnail {
111
- .border_radius_top(3); position: relative; z-index: 3;
112
- .marker {
113
- position: absolute; padding: 2px; .border_radius(2); z-index: 3;
114
- background: url('/images/transparent_backgrounds/white_75.png'); height: 12px; width: 12px;
115
- }
116
- .marker.coupon {
117
- height: auto; width: auto; top: 10px; right: -3px; padding: 0; background: transparent; overflow: hidden; position: absolute;
118
- b {
119
- display: block; height: 0; width: 0; float: left; border: 14px solid transparent; border-top: 14px solid @accent_colour;
120
- border-bottom: none; border-right: none; float: left;
121
- }
122
- span {
123
- color: @white; font-size: 10px; font-weight: bold; text-transform: uppercase; height: 14px; line-height: 14px; display: block;
124
- padding: 0 4px 0 2px; background: @accent_colour; .text_shadow(1, 1, 0px, (@accent_colour * 0.75 + @black * 0.25)); margin: 0 0 0 14px;
125
- }
126
- }
127
- .marker.video {
128
- position: absolute; left: 50%; top: 50%; background: @white; width: 10px; height: 10px;
129
- b { display: block; width: 0; height: 0; border: 5px solid transparent; border-left: 10px solid @black; border-right: none; }
130
- }
131
- .marker.endorsed_by_me { background: none; padding: 0; right: 0; bottom: -32px; .border_radius(2); background: @white; }
132
- a.thumbnail {
133
- display: block; overflow: hidden; position: relative; text-align: center;
134
- img { position: relative; display: block; margin: auto; }
135
- }
136
- }
137
- div.text {
138
- margin: 3px 0 0; display: block;
139
- a { text-decoration: none; }
140
- a.title {
141
- display: block; text-decoration: none; font-weight: bold; font-size: 12px; line-height: 16px;
142
- white-space: nowrap; height: 16px; overflow: hidden;
143
- :before {
144
- display: block; height: 32px; width: 20px; content: " "; float: right; right: -15px; top: -8px;
145
- background: @white; position: relative; z-index: 1; .box_shadow(-5, 0, 10, @white);
146
- }
147
- }
148
- small {
149
- font-size: 11px; line-height: 13px; color: @grey; display: block; height: 13px; overflow: hidden; white-space: nowrap;
150
- a { font-weight: bold; }
151
- :before {
152
- display: block; height: 32px; width: 20px; content: " "; float: right; right: -15px; top: -8px;
153
- background: @white; position: relative; z-index: 1; .box_shadow(-5, 0, 10, @white);
154
- }
155
- }
156
- }
157
- :hover {
158
- background: @accent_colour;
159
- a.remove { display: block; }
160
- div.thumbnail {
161
- a.marker.remove, a.marker.video {
162
- b { display: inline-block; }
163
- }
164
- a.marker.video { .box_shadow(0, 0, 2, @black); }
165
- }
166
- div.text {
167
- a { color: @white; }
168
- a.title:before { background: @accent_colour; .box_shadow(-5, 0, 10, @accent_colour); }
169
- small {
170
- color: @white * 0.75 + @accent_colour * 0.25;
171
- :before { background: @accent_colour; .box_shadow(-5, 0, 10, @accent_colour); }
172
- }
173
- }
174
- div.footer a { color: @white; }
175
- }
176
- }
177
- > li.ad div.thumbnail a.thumbnail {
178
- width: 130px; height: 97px;
179
- img { width: 100%; height: 100%; }
180
- }
181
- > li.brand div.thumbnail a.thumbnail {
182
- width: 120px; height: 87px; padding: 5px; background: @white; .border_radius(2);
183
- img { max-width: 120px; max-height: 87px; }
184
- }
185
- li.paginate {
186
- margin-bottom: 0;
187
- a {
188
- display: block; position: relative; text-decoration: none; height: 131px;
189
- div.arrow {
190
- background: #81c153 url('/images/button_bg.png') repeat-x left top; border: 1px solid (@accent_colour * 0.75 + @black * 0.25);
191
- height: 44px; .border_radius(99); width: 44px; margin: 0 auto; position: relative; top: 32px;
192
- b { text-indent: -9000px; display: block; border: 10px solid transparent; width: 0; height: 0; position: relative; top: 12px; }
193
- }
194
- div.label {
195
- position: absolute; bottom: 5px; left: 0; right: 0; line-height: 13px;
196
- color: @accent_colour * 0.85 + @black * 0.15; text-decoration: none;
197
- font-weight: bold; font-size: 12px; text-align: center;
198
- }
199
- :hover {
200
- div.arrow { background: #abd56e url('/images/button_bg.png') repeat-x left -44px; }
201
- }
202
- }
203
- :hover { background: transparent; }
204
- }
205
- li.paginate.previous a div b { border-right: 15px solid @white; border-left: none; left: 12px; }
206
- li.paginate.next a div b { border-left: 15px solid @white; border-right: none; left: 16px; }
207
- }
208
- > div.footer {
209
- padding: 9px 10px 10px; background: @light_grey * 0.75 + @white * 0.25; overflow: hidden;
210
- border-top: 1px solid @light_grey; .border_radius_bottom(3);
211
- div.info {
212
- float: left; color: @grey;
213
- strong { color: @black; font-weight: normal; }
214
- }
215
- div.pagination {
216
- float: right;
217
- > * {
218
- display: inline-block; line-height: 1; padding: 0 6px; line-height: 18px; height: 18px; background: @white;
219
- .border_radius(3); text-decoration: none; font-weight: bold;
220
- font-size: 10px; text-transform: uppercase;
221
- }
222
- a { color: @grey; }
223
- a:hover { color: @black; }
224
- span.disabled { color: @light_grey; }
225
- span.current { color: @white; background: @bg; border: none; }
226
- span.current:hover { color: @white; }
227
- }
228
- }
229
- }
230
- div.browse.with_categories { margin: 0 0 0 160px; }
231
- div.browse.with_options > ul { .border_radius_top(0); }
232
- div.browse.with_footer > ul { .border_radius_bottom(0); }
233
- /* Browse List */
234
- div.browse.list {
235
- > ul {
236
- margin: 0; min-height: 320px;
237
- padding: 10px 0 0 10px; overflow: hidden;
238
- > li {
239
- display: block; list-style: none; margin: 0 10px 10px 0; padding: 5px;
240
- .border_radius(3); position: relative; line-height: normal;
241
- .marker {
242
- position: absolute; padding: 2px; .border_radius(2);
243
- background: url('/images/transparent_backgrounds/white_75.png');
244
- img { height: 12px; width: 12px; }
245
- }
246
- img.marker { height: 12px; width: 12px; }
247
- span.marker.new {
248
- color: black; left: -5px; top: -5px; background: none; background-color: @white * 0.1 + @yellow * 0.6 + @red * 0.3; line-height: 1; padding: 2px 5px;
249
- font-weight: bold;
250
- }
251
- a.marker.media_type {
252
- display: inline-block; text-decoration: none; top: 39px; left: 8px;
253
- font-size: 10px;
254
- b { font-weight: normal; margin: 0 0 0 2px; line-height: 1; display: none; }
255
- img { vertical-align: middle; }
256
- }
257
- a.thumbnail {
258
- float: left;
259
- width: 68px; display: block; overflow: hidden;
260
- border: 1px solid @light_grey;
261
- :hover { border-color: @accent_colour; }
262
- }
263
- span.title_brand {
264
- display: block; margin: 0 0 2px 75px;
265
- a { margin: 0; display: inline; }
266
- a.brand_name { font-weight: normal; font-size: 12px; }
267
- }
268
- a.ad_title {
269
- font-weight: bold; font-size: 14px; margin: 0 0 0 75px; display: block;
270
- }
271
- a.brand_name {
272
- font-weight: bold; font-size: 14px; margin: 0 0 0 75px; display: block;
273
- }
274
- small {
275
- display: block; color: @grey; margin: 0 0 0 75px; font-size: 12px;
276
- }
277
- small.brand_name { display: inline; margin: 0; }
278
- ul.chart {
279
- margin: 0 0 0 80px;
280
- height: 39px;
281
- }
282
- ul.networks {
283
- margin: 3px 0 0 75px; padding: 0; overflow: hidden;
284
- li { display: block; float: left; margin: 0 5px 0 0; line-height: 1; }
285
- }
286
- div.points {
287
- display: none;
288
- font-size: 12px; text-align: right;
289
- label { color: @grey; }
290
- }
291
- a.remove { bottom: -3px; right: -3px; }
292
- }
293
- li.ad {
294
- a.thumbnail { height: 51px; }
295
- span.title_brand {
296
- small.brand_name {
297
- display: block;
298
- }
299
- }
300
- }
301
- li.brand {
302
- a.thumbnail { height: 68px; }
303
- }
304
- }
305
- }
306
- div.browse.list.with_options ul { .border_radius_top(0); }
307
- div.browse.list.with_footer ul { .border_radius_bottom(0); }
308
- div.browse.list.cols_2 {
309
- > ul {
310
- > li {
311
- width: 285px; float: left;
312
- :hover {
313
- background: @white;
314
- }
315
- }
316
- }
317
- }
318
- div.browse.ads.list {
319
- > ul {
320
- > li {
321
- height: 53px;
322
- a.thumbnail {
323
- height: 51px;
324
- }
325
- }
326
- }
327
- }
328
- div.browse.brands.list {
329
- > ul {
330
- > li {
331
- height: 68px;
332
- a.thumbnail {
333
- height: 66px;
334
- }
335
- }
336
- }
337
- }
338
-
339
- /* Categories List */
340
- #categories {
341
- margin: 40px 0 0; width: 160px; float: left; position: relative; z-index: 1;
342
- ul {
343
- margin: 0; padding: 10px 0 0;
344
- li {
345
- list-style: none; margin: 0; padding: 0; font-size: 14px;
346
- a { color: @grey; display: block; padding: 5px 10px 5px 15px; text-decoration: none; .border_radius_left(3); }
347
- a:hover { color: @black; background: @light_grey * 0.15 + @white * 0.85; }
348
- }
349
- .all a { font-weight: bold; }
350
- .current a {
351
- background: @white; color: @black; border: 1px solid (@light_grey * 0.25 + @white * 0.75); border-right: none; border-left: 5px solid @bg;
352
- padding-left: 10px;
353
- }
354
- }
355
- }
356
-
357
- /* Ads > Show */
358
- #ad {
359
- div.header {
360
- overflow: hidden;
361
- h3 { font-size: 16px; margin: 0 0 3px; }
362
- small {
363
- a.category { font-weight: bold; color: @accent_colour; }
364
- span.networks img { position: relative; top: 3px; }
365
- }
366
- span.brand {
367
- float: right; color: @white;
368
- a.brand_name { font-weight: bold; color: @accent_colour; }
369
- }
370
- }
371
- div.content {
372
- padding: 0; position: relative;
373
- a.toggle_size {
374
- display: block; .border_radius(3); background-color: @black; padding: 0 5px 0 26px;
375
- background-position: 5px center; background-repeat: no-repeat; text-decoration: none; margin: 5px 5px 0 0;
376
- position: absolute; top: 0; right: 0; line-height: 25px; z-index: 45;
377
- }
378
- img.creative { margin: 0 auto; max-width: 540px; display: block; }
379
- object { position: relative; z-index: 44; }
380
- object.video { line-height: 0; font-size: 0; }
381
- object embed { position: relative; z-index: 45; line-height: 0; font-size: 0; }
382
- }
383
- div.content.not_video {
384
- padding: 40px; text-align: center;
385
- * { margin-left: auto; margin-right: auto; }
386
- object.flash { margin-bottom: 0; }
387
- }
388
- div.footer {
389
- padding: 0;
390
- div.vote_views {
391
- padding: 5px 10px; overflow: hidden;
392
- div.share { float: right; margin: 2px 0 0 0; }
393
- #login_register_msg, #encourage_vote_msg { line-height: 22px; font-weight: bold; color: @black; }
394
- }
395
- }
396
- }
397
- #sidebar {
398
- #meta {
399
- table {
400
- margin: 0;
401
- tr:last-child td { padding-bottom: 0; }
402
- td {
403
- padding: 0 0 5px;
404
- ul.networks {
405
- margin: 0; padding: 0;
406
- li {
407
- list-style: none; display: inline;
408
- }
409
- li {
410
- }
411
- }
412
- }
413
- td.label { color: @grey; white-space: nowrap; width: 1%; text-align: right; padding-right: 5px; }
414
- }
415
- }
416
- }
417
-
418
- /* Voting */
419
- div.voted {
420
- font-size: 12px; line-height: 22px; color: @black; display: inline-block; font-weight: bold;
421
- img { float: left; margin-right: 5px; padding: 3px; .border_radius(3); }
422
- }
423
- #voted_up {
424
- img { background: @colour_positive * 0.66 + @bg * 0.15; }
425
- }
426
- #voted_down {
427
- img { background: @colour_negative * 0.66 + @bg * 0.15; }
428
- }
429
- #encourage_comment {
430
- display: inline-block; line-height: 22px; font-weight: bold;
431
- }
432
- #vote {
433
- overflow: hidden; font-size: 12px; line-height: 22px; color: @black; float: left;
434
- a {
435
- color: @white; font-weight: bold; overflow: hidden; display: block;
436
- width: 16px; text-decoration: none; text-align: center; font-size: 10px; padding: 3px; text-transform: uppercase;
437
- }
438
- a.up {
439
- float: left; background: @colour_positive * 0.66 + @bg * 0.15; .border_radius_left(3);
440
- :hover { background: @colour_positive * 0.85 + @bg * 0.15; }
441
- }
442
- a.down {
443
- float: left; background: @colour_negative * 0.66 + @bg * 0.15; .border_radius_right(3);
444
- margin: 0 5px 0 1px;
445
- :hover { background: @colour_negative * 0.85 + @bg * 0.15; }
446
- }
447
- }
448
- #vote.disabled {
449
- a.up {
450
- background: (@colour_positive * 0.66 + @bg * 0.15) * 0.15 + @grey * 0.85;
451
- :hover { background: (@colour_positive * 0.85 + @bg * 0.15) * 0.25 + @grey * 0.75; }
452
- }
453
- a.down {
454
- background: (@colour_negative * 0.66 + @bg * 0.15) * 0.15 + @grey * 0.85;
455
- :hover { background: (@colour_negative * 0.85 + @bg * 0.15) * 0.25 + @grey * 0.75; }
456
- }
457
- }
458
-
459
- /* Panels */
460
- div.panel {
461
- margin: 0 0 20px; position: relative; .box_shadow(0, 0, 3, @light_grey * 0.66 + @white * 0.33); .border_radius(3);
462
- > div.header {
463
- background: @bg url('/images/panel_header_bg.png') repeat-x top left; border-bottom: 1px solid (@bg * 0.66 + @black * 0.33);
464
- padding: 5px 10px 4px; .border_radius_top(3); min-height: 18px;
465
- h2 { font-size: 16px; margin: 0; color: @white; .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33); }
466
- h3 { color: @white; font-size: 14px; margin: 0; line-height: 18px; .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33); }
467
- small { display: block; font-size: 12px; color: @light_grey * 0.25 + @white * 0.75; }
468
- span.filter {
469
- float: left; display: block; overflow: hidden; position: relative; z-index: 5;
470
- a {
471
- margin: 0 1px 0 0; display: block; float: left; padding: 0 8px; height: 18px; font-weight: bold; font-size: 10px; line-height: 18px;
472
- text-transform: uppercase; background: url('/images/transparent_backgrounds/black_50.png'); color: @light_grey; text-decoration: none; position: relative; z-index: 3;
473
- }
474
- a:first-child { .border_radius_left(2); }
475
- a:last-child { .border_radius_right(2); margin-right: 0; }
476
- a.active { background: @white; color: @black; z-index: 4; }
477
- a:hover { color: @white; }
478
- a.active:hover { color: @black; }
479
- }
480
-
481
- span.filter.dropdown {
482
- margin: 0; position: relative; overflow: visible;
483
- a {
484
- .border_radius(2); background: @white; color: @black; margin: 0; position: relative; padding-right: 25px;
485
- img { float: left; margin: 4px 5px 0 0; }
486
- b.arrow {
487
- float: right; display: block; height: 0; width: 0; border: 5px solid transparent; border-top: 5px solid @black; border-bottom: none;
488
- position: absolute; top: 6px; right: 10px;
489
- }
490
- :hover {
491
- background: @accent_colour; color: @white;
492
- b.arrow { border-top: 5px solid @white; }
493
- }
494
- }
495
-
496
- ul {
497
- position: absolute; top: 100%; left: 0; margin: 1px 0 0; padding: 0; background: @white; .border_radius(2);
498
- .box_shadow(0, 1, 1, @black);
499
- li {
500
- list-style: none; display: block; padding: 0; margin: 0;
501
- a {
502
- display: block; height: 18px; line-height: 18px; color: @black; font-size: 10px; text-transform: uppercase; background: transparent;
503
- border-bottom: 1px solid (@light_grey * 0.66 + @white * 0.33); float: none; margin: 0; .border_radius(0); white-space: nowrap;
504
- :hover { background: url('/images/transparent_backgrounds/accent_colour_25.png'); color: @black; }
505
- }
506
- }
507
- li:last-child {
508
- a { border: none; }
509
- }
510
- }
511
- }
512
- span.filter.dropdown.sort { float: left; margin: 0 0 0 10px; }
513
- span.filter.dropdown.localisation { float: left; margin: 0 0 0 10px; }
514
-
515
- a.more {
516
- float: right; color: @white; .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33); font-size: 14px; font-weight: bold;
517
- position: relative; top: 2px;
518
- :hover { text-decoration: none; }
519
- }
520
- }
521
- > div.content {
522
- background: @white; padding: 10px;
523
- .no_padding { padding: 0; }
524
- }
525
- > div.footer {
526
- background: @light_grey * 0.33 + @white * 0.66; border-top: 1px solid (@light_grey * 0.5 + @white * 0.5);
527
- padding: 4px 10px 5px; .border_radius_bottom(3);
528
- }
529
- }
530
- div.panel.no_footer div.content { .border_radius_bottom(3); }
531
- div.panel.no_header div.content { .border_radius_top(3); }
532
- div.panel.collapsable {
533
- div.header {
534
- cursor: pointer;
535
- b.toggle { float: right; border: 5px solid transparent; border-bottom: 5px solid @white; border-top: none; display: block; width: 0; height: 0; margin: 6px 0 0 0; }
536
- }
537
- div.header:hover {
538
- background-color: @bg * 0.75 + @white * 0.25;
539
- }
540
- }
541
- div.panel.collapsed {
542
- div.header {
543
- border-bottom: none; .border_radius(3);
544
- b.toggle { border-bottom: none; border-top: 5px solid @white; }
545
- }
546
- div.blank { border-bottom: none; .border_radius_bottom(3); }
547
- div.content, div.footer { display: none; }
548
- }
549
-
550
-
551
- /* Sidebar Actions */
552
- #sidebar {
553
- #actions {
554
- .box_shadow(0, 0, 0, transparent);
555
- div.content {
556
- background: url('/images/transparent_backgrounds/accent_colour_10.png'); text-align: center;
557
- p.endorsement {
558
- margin: 0 0 10px; font-size: 14px; font-weight: bold;
559
- small { font-weight: normal; line-height: inherit; margin: 10px 0 0; }
560
- :last-child { margin: 0; }
561
- }
562
- div.share { margin: 5px 0 0; }
563
- a.button {
564
- font-size: 16px; line-height: normal; height: auto; padding: 5px 10px 5px 35px; font-weight: bold; margin: 0; position: relative;
565
- img { position: absolute; top: 3px; left: 6px; }
566
- }
567
- div.flash.notice {
568
- margin: 10px 0 0; font-size: 22px;
569
- small { font-weight: normal; margin: 0 0 10px; }
570
- }
571
- div.flash.notice.done { margin: 0; }
572
- small {
573
- display: block; margin: 10px 0 0; font-size: 11px; color: #808080; line-height: 12px;
574
- img.favicon { vertical-align: middle; }
575
- }
576
- div.blank {
577
- border: none; background: none; padding: 10px 0 0; border-top: 1px solid (@accent_colour * 0.5 + @white * 0.5);
578
- margin: 10px 0 0;
579
- }
580
- }
581
- }
582
- }
583
-
584
- /* People Lists */
585
- ul.people {
586
- margin: 0; padding: 10px 0 0 10px; background: @white;
587
- > li {
588
- display: block; margin: 0 10px 10px 0; float: left; padding: 2px; width: 57px; position: relative;
589
- .border_radius(2); background: @white; list-style: none; border: 1px solid (@light_grey * 0.33 + @white * 0.66);
590
- a.avatar {
591
- display: block; width: 59px; height: 59px; overflow: hidden;
592
- img { width: 100%; height: 100%; }
593
- }
594
- a.name { display: block; font-size: 10px; text-align: center; }
595
- :hover {
596
- background: @accent_colour;
597
- a.name { color: @white; }
598
- }
599
- }
600
- }
601
- ul.people.list {
602
- padding: 0;
603
- > li {
604
- margin: 0 0 10px; padding: 0 0 10px; overflow: hidden; float: none; width: auto; .border_radius(0);
605
- border: none; border-bottom: 1px solid (@light_grey * 0.33 + @white * 0.66);
606
- span.points {
607
- float: right; display: block; padding: 5px; background: @light_grey * 0.15 + @white * 0.85; line-height: 1;
608
- text-align: center; width: 50px; height: 30px; .border_radius(3); margin: 0 0 0 10px;
609
- strong { display: block; color: @black; font-size: 16px; margin: 2px 0 0; }
610
- label { color: @grey; text-transform: uppercase; font-size: 10px; }
611
- label.long { display: block; }
612
- label.short { display: none; }
613
- }
614
- a.avatar { float: left; width: 40px; height: 40px; }
615
- a.name { font-size: 14px; font-weight: bold; margin: 0 0 0 50px; text-align: left; }
616
- a.name.long { display: inline; }
617
- a.name.short { display: none; }
618
- span.networks {
619
- display: block; margin: 0 0 0 50px;
620
- img.favicon { vertical-align: middle; }
621
- }
622
- :hover {
623
- background: transparent;
624
- a.name { color: @accent_colour * 0.85 + @black * 0.15; }
625
- }
626
- :last-child { padding-bottom: 0; border-bottom: none; margin-bottom: 0; }
627
- }
628
- }
629
- ul.people.list.small {
630
- > li {
631
- span.points {
632
- padding: 3px 6px; height: 18px; font-size: 9px; line-height: 17px; width: 60px;
633
- strong { font-size: 12px; margin: 0; display: inline; }
634
- label { font-size: 9px; }
635
- label.long { display: none; }
636
- label.short { display: inline; }
637
- }
638
- a.avatar { width: 24px; height: 24px; }
639
- a.name { display: inline; line-height: 24px; margin: 0 0 0 5px; font-size: 12px; height: 24px; }
640
- a.name.long { display: none; }
641
- a.name.short { display: inline; }
642
- span.networks { display: inline; margin: 0; }
643
- :last-child { padding-bottom: 0; border-bottom: none; margin-bottom: 0; }
644
- }
645
- }
646
- ul.people.tiled {
647
- > li {
648
- width: 28px; padding: 2px;
649
- a.avatar { width: 24px; height: 24px; background: @white; padding: 2px; }
650
- a.name, small, span.networks, span.points { display: none; }
651
- }
652
- }
653
-
654
- /* Comments */
655
- #comments {
656
- ul {
657
- margin: 0 0 20px; padding: 0;
658
- li {
659
- display: block; list-style: none; padding: 0; margin: 0 0 10px;
660
- span.meta {
661
- margin: 0; overflow: hidden; display: block;
662
- small { font-size: 12px; color: @light_grey; float: right; line-height: 16px; display: inline-block; }
663
- a.avatar {
664
- display: inline-block; height: 16px; width: 16px; position: relative; top: 3px;
665
- img { height: 100%; width: 100%; }
666
- }
667
- a.name { font-weight: bold; line-height: 16px; display: inline-block; }
668
- span.inactive { color: @grey; font-weight: bold; line-height: 16px; display: inline-block; }
669
- }
670
- b.tail {
671
- display: block; width: 0; height: 0; margin: 3px 0 0 10px; border: 5px solid transparent; border-top: none;
672
- border-bottom: 5px solid @white; position: relative; z-index: 2;
673
- }
674
- blockquote {
675
- margin: 0; padding: 10px; .border_radius(3); font-style: normal; background: @white;
676
- color: @dark_grey; .box_shadow(0, 0, 3, @light_grey * 0.66 + @white * 0.33);
677
- }
678
- }
679
- }
680
- form {
681
- margin: 0;
682
- textarea { width: 500px; }
683
- }
684
- }
685
-
686
- /* Sidebar Categories */
687
- #sidebar {
688
- #categories {
689
- margin: 0 0 20px;
690
- width: auto;
691
- p { margin: 0; }
692
- }
693
- }
694
-
695
- #sidebar {
696
- #ads > ul li, #recommendations > ul li {
697
- width: 81px;
698
- div.thumbnail {
699
- a.thumbnail { height: 60px; width: 81px; }
700
- }
701
- div.text {
702
- a.title { font-size: 11px; height: 14px; line-height: 14px; }
703
- small { display: none; }
704
- }
705
- }
706
- #brands > ul li {
707
- width: 55px;
708
- div.thumbnail {
709
- a.thumbnail {
710
- height: 45px; width: 45px;
711
- img { max-height: 45px; max-width: 45px; }
712
- }
713
- }
714
- div.text { display: none; }
715
- }
716
- }
717
-
718
- /* My Account */
719
- #accounts_controller {
720
- #top {
721
- #page_title {
722
- #page_options {
723
- a.button.public_profile {
724
- float: right; font-size: 16px; line-height: 1; height: auto; padding: 8px 35px 8px 15px; position: relative;
725
- b.arrow { display: block; height: 0; width: 0; position: absolute; top: 10px; right: 15px; border: 6px solid transparent; border-right: none; border-left: 6px solid @white; margin: 0; }
726
- }
727
- a.button.goto_dashboard {
728
- float: right; font-size: 16px; line-height: 1; height: auto; padding: 8px 15px 8px 35px; margin-right: 5px; position: relative;
729
- b.arrow { display: block; height: 0; width: 0; position: absolute; top: 10px; left: 15px; border: 6px solid transparent; border-left: none; border-right: 6px solid @white; margin: 0; }
730
- }
731
- }
732
- }
733
- }
734
- #account_nav {
735
- float: left; width: 200px; margin: 0 20px 0 0;
736
- ul.nav {
737
- margin: 0; padding: 0;
738
- li {
739
- margin: 0 0 5px; display: block; list-style: none; padding: 0;
740
- a {
741
- display: block; height: 30px; text-decoration: none; color: @white;
742
- b {
743
- border: 15px solid transparent; border-right: none; border-left: 10px solid transparent; width: 0;
744
- height: 0; float: right; display: none;
745
- }
746
- span {
747
- .border_radius(3); background: @bg; display: block;
748
- line-height: 30px; padding: 0 10px; font-size: 14px; font-weight: bold; margin: 0 10px 0 0;
749
- }
750
- }
751
- :hover {
752
- a {
753
- color: @white;
754
- b { border-left-color: @bg; display: block; }
755
- span { background: @bg; .border_radius_right(0); }
756
- }
757
- }
758
- }
759
- li.current a {
760
- b { border-left-color: @accent_colour; display: block; }
761
- span { background: @accent_colour; color: @white; .border_radius_right(0); }
762
- }
763
- }
764
- }
765
- #main {
766
- > div {
767
- margin: 0 0 20px;
768
- form { margin: 0; }
769
- }
770
- #profile {
771
- a.avatar {
772
- float: left; display: block;
773
- width: 70px; overflow: hidden; position: relative; text-decoration: none;
774
- img { width: 100%; }
775
- span {
776
- display: block; line-height: 1; padding: 3px; margin: 5px 0 0; color: @white; background: @accent_colour;
777
- .border_radius(3); .text_shadow(1, 1, 0, @grey);
778
- text-align: center; font-size: 10px; font-weight: bold; text-transform: uppercase;
779
- }
780
- }
781
- form {
782
- margin: 0 0 0 90px;
783
- h4 { margin: 10px 0 20px; border-bottom: 1px solid (@light_grey * 0.5 + @white * 0.5); padding: 0; color: @bg; font-size: 16px; }
784
- ul.choices {
785
- li { width: 30%; }
786
- }
787
- div.extra { margin-top: 20px; }
788
- }
789
- }
790
-
791
- #networks {
792
- ul { margin: 0 -10px -10px 0; padding: 0; overflow: hidden;
793
- li:hover
794
- {
795
- background: @light_grey; display: block; float: left; width: 180px;
796
- padding: 10px; margin: 0 10px 10px 0; list-style: none; .border_radius(3);
797
- position: relative;
798
- * { line-height: normal; }
799
- img { vertical-align: middle; float: left; }
800
- .name { font-weight: bold; font-size: 14px; display: block; margin: -2px 0 0 42px; }
801
- small {
802
- font-size: 12px; color: @grey; display: block; margin-left: 42px;
803
- strong { color: @black; font-weight: normal; }
804
- }
805
- :hover {
806
- }
807
- }
808
- li.installed {
809
- background: @white;
810
- border: 2px solid @accent_colour; padding: 8px;
811
- }
812
- li.unavailable {
813
- .name { color: @black; }
814
- :hover {
815
- background: @light_grey;
816
- }
817
- }
818
- li:hover {
819
- background: @light_grey * 0.5 + @white * 0.5;
820
- }
821
- }
822
- }
823
- }
824
- }
825
-
826
- /* Shopping Style Panel */
827
- #shopping_style {
828
- div.header a.button.small { float: right; }
829
- div.content {
830
- p {
831
- margin: 0 0 10px;
832
- label { text-transform: uppercase; font-size: 11px; display: block; color: @bg; font-weight: bold; }
833
- span { color: @black; }
834
- span.toggle { white-space: nowrap; color: @grey; }
835
- :last-child { margin: 0; }
836
- }
837
- p.more { text-align: left; font-weight: normal; }
838
- p.less { display: none; margin: 0; }
839
- }
840
- }
841
-
842
- /* People Controller */
843
- #people_controller.index {
844
- #main {
845
- div.panel {
846
- float: left; width: 300px; margin: 0 20px 0 0;
847
- :last-child { margin-right: 0; }
848
- }
849
- }
850
- }
851
- #people_controller.show {
852
- #person_overview, #shopping_style {
853
- a.button.small {
854
- }
855
- }
856
- #content {
857
- #shopping_style {
858
- float: left; width: 240px; margin: 0 20px 0 0;
859
- }
860
- #main { width: 360px; }
861
- }
862
- }
863
-
864
- /* Search Results */
865
- #search_results {
866
- margin: 0 0 20px;
867
- li {
868
- :hover {
869
- small { color: @white * 0.75 + @accent_colour * 0.25; }
870
- }
871
- }
872
- }
873
- #search {
874
- div.content {
875
- padding: 20px;
876
- form {
877
- margin: 0; float: none;
878
- span.submit_and_options {
879
- display: block;
880
- }
881
- }
882
- p { margin: 0 0 15px; }
883
- h4 { font-weight: normal; margin: 0 0 5px; }
884
- }
885
- }
886
-
887
- /* Recommendations */
888
- #recommendations {
889
- div.browse {
890
- margin: 0; padding: 0; background: none;
891
- ul { min-height: 0; .border_radius(0); }
892
- }
893
- }
894
-
895
- /* Blank States */
896
- div.blank {
897
- padding: 20px; background: @bg * 0.05 + @blue * 0.05 + @white * 0.9; position: relative;
898
- border: 1px solid (@bg * 0.1 + @blue * 0.1 + @white * 0.8); z-index: 1;
899
- h4 { font-size: 18px; margin: 0 0 10px; }
900
- h4:last-child { margin: 0; }
901
- p { font-size: 16px; margin: 0 0 10px; }
902
- p:last-child { margin: 0; }
903
- p.with_list_number.large {
904
- span { margin-left: 48px; display: block; color: @white; }
905
- }
906
- p.earn span { font-size: 22px; color: @white; line-height: 48px; font-weight: bold; }
907
- a { white-space: nowrap; }
908
- a.hide {
909
- position: absolute; top: -5px; right: -5px; display: block; height: 16px; width: 16px; padding: 3px; background: #E7E9F6; .border_radius(99);
910
- }
911
- }
912
-
913
- div.blank.small {
914
- padding: 10px 20px;
915
- h4 { font-weight: normal; font-size: 16px; }
916
- p { margin: 0; }
917
- }
918
- div.blank.tiny {
919
- padding: 10px 20px;
920
- h4 { font-weight: normal; font-size: 14px; }
921
- p { margin: 0; font-size: 12px; }
922
- }
923
- div.blank.rounded {
924
- .border_radius(3); margin: 0 0 20px;
925
- }
926
- div.blank.rounded.bottom { .border_radius_top(0); }
927
- div.blank.with_border_bottom { border-bottom: 1px solid (@bg * 0.1 + @blue * 0.1 + @white * 0.8); }
928
- div.blank.no_border_top { border-top: none; }
929
- div.blank.no_border_bottom { border-bottom: none; }
930
- div.blank.no_side_borders { border-right: none; border-left: none; }
931
- div.panel {
932
- div.blank {
933
- padding: 10px 20px; overflow: hidden; margin: 0;
934
- h4 { font-weight: normal; font-size: 14px; }
935
- p, ul { margin: 0 0 10px; font-size: 12px; }
936
- p:last-child, ul:last-child { margin: 0; }
937
- }
938
- }
939
-
940
- /* Sidebar Browse */
941
- #sidebar {
942
- div.panel {
943
- div.content.browse {
944
- padding: 0; margin: 0;
945
- > ul {
946
- min-height: 0; .border_radius(0);
947
- > li {
948
- div.thumbnail {
949
- a.thumbnail { padding: 5px; }
950
- img.marker.media_type { top: 48px; left: 8px; }
951
- }
952
- div.footer {
953
- a.title, a.name { font-size: 11px; font-weight: normal; }
954
- }
955
- }
956
- }
957
- }
958
-
959
- div.content.browse.ads > ul > li {
960
- width: 93px;
961
- > div.thumbnail a.thumbnail { width: 83px; height: 62px; }
962
- }
963
- div.content.browse.brands {
964
- .border_radius(3);
965
- > ul {
966
- background: none;
967
- > li {
968
- width: 52px;
969
- > div.thumbnail {
970
- padding: 3px;
971
- a.thumbnail { width: 42px; height: 42px; padding: 2px; }
972
- }
973
- li.active { background: @accent_colour; }
974
- }
975
- }
976
- }
977
- div.footer {
978
- div.info { float: none; }
979
- div.pagination { float: none; margin: 3px 0 0; }
980
- }
981
- }
982
- }
983
-
984
- /* List Numbers */
985
- label.list_number {
986
- float: left; background: url('/images/transparent_backgrounds/black_15.png'); padding: 2px; width: 24px; height: 24px; display: block;
987
- .border_radius(99);
988
- b {
989
- display: block; font-weight: bold; font-size: 14px; color: @white; background: @accent_colour; height: 20px; width: 20px; line-height: 20px;
990
- text-align: center; .border_radius(99); .text_shadow(1, 1, 0px, (@accent_colour * 0.75 + @black * 0.25));
991
- border: 2px solid @white;
992
- }
993
- }
994
- label.list_number.large {
995
- padding: 4px; width: 48px; height: 48px; .border_radius(99); position: relative; left: -10px;
996
- b {
997
- font-size: 28px; height: 40px; width: 40px; .border_radius(99); line-height: 40px;
998
- .text_shadow(2, 2, 0px, (@accent_colour * 0.75 + @black * 0.25)); border-width: 4px;
999
- }
1000
- }
1001
-
1002
- /* Dashboard */
1003
- #dashboard_controller {
1004
- #ads {
1005
- span.filter.state { float: right; }
1006
- }
1007
- #sidebar {
1008
- #shopping_style div.content {
1009
- p.less { display: block; }
1010
- p.more { display: none; }
1011
- }
1012
- #influences {
1013
- div.header {
1014
- padding-bottom: 0;
1015
- ul.tabs {
1016
- position: relative; top: 1px; z-index: 3;
1017
- li {
1018
- margin: 0 5px 0 0;
1019
- a {
1020
- border: none; background: url('/images/transparent_backgrounds/white_75.png');
1021
- :hover { color: @black; }
1022
- }
1023
- }
1024
- li.active {
1025
- a {
1026
- background: @white; border: none;
1027
- :hover { color: @black; }
1028
- }
1029
- }
1030
- }
1031
- }
1032
-
1033
- div.tab_content {
1034
- overflow: hidden; padding: 0;
1035
- > ul {
1036
- padding: 10px 10px 0; max-height: 280px; min-height: 120px; overflow-y: scroll; .border_radius_bottom(3px);
1037
- }
1038
- }
1039
- div.footer {
1040
- form {
1041
- p {
1042
- margin: 0 0 5px;
1043
- img.marker { float: right; margin: 5px 0 0 0; }
1044
- span.invitee {
1045
- line-height: 26px; padding: 3px 3px 0; font-size: 14px;
1046
- small { color: @grey; font-size: 12px; }
1047
- }
1048
- }
1049
- p.indent { margin-left: 36px; }
1050
- p.submit { margin-top: 10px; }
1051
- }
1052
- }
1053
- }
1054
- }
1055
-
1056
- div.panel.full {
1057
- > div.content {
1058
- margin: 0; padding: 0; background: none;
1059
- ul {
1060
- li {
1061
- width: 148px;
1062
- div.thumbnail {
1063
- img.marker.media_type { top: 90px; }
1064
- a.thumbnail { width: 138px; height: 104px; }
1065
- }
1066
- }
1067
- }
1068
- }
1069
- }
1070
- #people {
1071
- form {
1072
- padding: 0 0 5px;
1073
- input { width: 225px; float: left; margin: 0 5px 0 0; }
1074
- a.button { height: 23px; line-height: 23px; width: 60px; padding: 0; text-align: center; }
1075
- }
1076
- }
1077
- }
1078
-
1079
- /* Remove Pages Titles when Browsing */
1080
- #ads_controller, #brands_controller {
1081
- #page_title { display: none; }
1082
- }
1083
-
1084
- /* Brands > Show */
1085
- #brands_controller.show {
1086
- #ads {
1087
- div.filters {
1088
- h3 { font-size: 16px; margin: 0; }
1089
- span.show { float: right; }
1090
- span.filter.dropdown.localisation { float: right; margin: 0 0 0 10px; }
1091
- span.filter.state { float: right; margin: 0 0 0 10px; }
1092
- }
1093
- }
1094
- }
1095
-
1096
- /* FAQ */
1097
- #pages_controller.faq {
1098
- #answers {
1099
- h3 { margin-top: 20px; padding-top: 20px; border-top: 1px solid (@light_grey * 0.75 + @white * 0.25); }
1100
- h3.first { margin-top: 0; padding-top: 0; border: none; }
1101
- }
1102
- #questions {
1103
- div.content {
1104
- padding: 20px;
1105
- ul {
1106
- margin: 0; padding: 0;
1107
- li {
1108
- margin: 0 0 10px; list-style: none; display: block; padding: 0;
1109
- a { font-size: 14px; }
1110
- }
1111
- li:last-child {
1112
- margin: 0;
1113
- }
1114
- }
1115
- }
1116
- }
1117
- }
1118
-
1119
- /* Person Overview */
1120
- #person_overview {
1121
- padding: 20px 10px; position: relative; z-index: 25;
1122
- #person {
1123
- float: left; width: 620px;
1124
- a.avatar {
1125
- display: block; float: left; width: 60px; height: 60px;
1126
- img { height: 100%; width: 100%; }
1127
- }
1128
- > div {
1129
- margin: 0 0 0 75px; color: @white; font-size: 14px; .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33);
1130
- }
1131
- div.name {
1132
- h2 {
1133
- margin: 0 0 5px; display: inline;
1134
- a {
1135
- font-size: 20px; font-weight: bold; .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33);
1136
- line-height: 1; color: @white; text-decoration: none;
1137
- :hover { text-decoration: underline; }
1138
- }
1139
- a.button.small {
1140
- font-size: 10px;
1141
- :hover { text-decoration: none; }
1142
- }
1143
- }
1144
-
1145
- span.points {
1146
- float: right; display: block; padding: 5px 10px; .border_radius(2); text-align: center; background: @white; position: relative;
1147
- min-width: 45px;
1148
- strong { color: @black; font-weight: bold; font-size: 24px; line-height: 1; display: block; .text_shadow(0, 0, 0, transparent); }
1149
- label { font-size: 9px; text-transform: uppercase; color: @grey; display: block; .text_shadow(0, 0, 0, transparent); font-weight: bold; }
1150
- }
1151
- span.points.with_redeem {
1152
- .border_radius_bottom(0);
1153
- a.button {
1154
- display: block; text-align: center; .border_radius_top(0); font-size: 10px; font-weight: bold; padding: 0;
1155
- position: absolute; height: 18px; left: 0; right: 0; bottom: -19px; line-height: 18px; text-transform: uppercase; border: none;
1156
- }
1157
- }
1158
- div.options { margin: 0; }
1159
- }
1160
- div.meta {
1161
- color: @white * 0.66 + @bg * 0.33;
1162
- span { color: @white; }
1163
- label { color: @white * 0.66 + @bg * 0.33; }
1164
- ul.networks {
1165
- display: inline; margin: 0; padding: 0;
1166
- li {
1167
- display: inline; line-height: 1;
1168
- img { position: relative; vertical-align: middle; top: -1px; }
1169
- }
1170
- }
1171
- }
1172
-
1173
- div.extra {
1174
- font-size: 12px; margin-top: 20px; margin-bottom: 20px;
1175
- span.toggle {
1176
- .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33);
1177
- a { font-size: 10px; font-weight: bold; text-transform: uppercase; text-decoration: none; color: @accent_colour; }
1178
- b.arrow { display: inline-block; width: 0; height: 0; border: 5px solid transparent; position: relative; top: -2px; }
1179
- }
1180
- #less_info {
1181
- span.toggle {
1182
- b.arrow { border-top: 5px solid @accent_colour; border-bottom: 0; }
1183
- }
1184
- }
1185
- #more_info {
1186
- span.toggle {
1187
- float: right;
1188
- b.arrow { border-bottom: 5px solid @accent_colour; border-top: 0; }
1189
- }
1190
- h4 {
1191
- color: @white; margin: 0 0 10px 0; border-bottom: 1px solid (@white * 0.25 + @bg * 0.75); .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33);
1192
- span { font-size: 12px; }
1193
- }
1194
- p {
1195
- margin: 0 0 5px;
1196
- label { display: block; float: left; width: 120px; color: @white * 0.66 + @bg * 0.33; }
1197
- span { display: block; margin: 0 0 0 130px; }
1198
- }
1199
- p:last-child { margin: 0; }
1200
-
1201
- }
1202
- }
1203
- div.login {
1204
- margin: 0 0 0 75px;
1205
- a.button { font-weight: bold; }
1206
- }
1207
- }
1208
- }
1209
-
1210
- /* Dashboard Nav */
1211
- #dashboard_nav {
1212
- position: absolute; bottom: 0; left: 10px; margin: 0; padding: 0; overflow: hidden;
1213
- li {
1214
- display: block; float: left; margin: 0 5px 0 0;
1215
- a {
1216
- display: block; height: 28px; padding: 0 10px; line-height: 28px; .border_radius_top(2);
1217
- text-decoration: none; color: @white; background: url('/images/transparent_backgrounds/accent_colour_30.png'); font-size: 14px;
1218
- font-weight: bold;
1219
- :hover { background: url('/images/transparent_backgrounds/accent_colour_45.png'); }
1220
- }
1221
- }
1222
- li.active {
1223
- a {
1224
- background: @white; color: @black;
1225
- :hover { color: @black; }
1226
- }
1227
- }
1228
- }
1229
-
1230
- /* Dwellometer */
1231
- #dwellometer {
1232
- z-index: 45; float: right; .box_shadow(0, 0, 0, transparent); margin: 0;
1233
- div.content {
1234
- text-align: center; position: relative;
1235
- object, object embed { position: relative; z-index: 46; line-height: 0; }
1236
- div.title {
1237
- position: absolute; bottom: 10px; left: 0; right: 0; z-index: 50;
1238
- img { width: 120px; display: block; margin: 0 auto; position: relative; left: -5px; }
1239
- }
1240
- }
1241
- }
1242
-
1243
- /* Activity Stream */
1244
- #activity {
1245
- div.content {
1246
- ul.events {
1247
- padding: 0; margin: 0 0 -10px;
1248
- li {
1249
- margin: 0; padding: 10px 0; border-bottom: 1px solid (@light_grey * 0.33 + @white * 0.66);
1250
- list-style: none; overflow: hidden;
1251
- small.meta {
1252
- font-size: 12px; color: @light_grey; float: right;
1253
- }
1254
- a.button { float: right; margin: 0 0 10px 10px; }
1255
- a.avatar, a.logo, a.thumbnail {
1256
- height: 32px; display: block; float: left;
1257
- img { width: 100%; height: 100%; }
1258
- }
1259
- a.avatar, a.logo, a.icon { width: 32px; }
1260
- a.thumbnail { width: 42px; }
1261
- div.symbols {
1262
- float: left; overflow: hidden;
1263
- b {
1264
- display: block; float: left; margin: 10px 5px 0;
1265
- img { height: 12px; width: 12px; }
1266
- }
1267
- b.voted { margin: 10px 3px 0; padding: 2px; .border_radius(2); }
1268
- b.voted.for { background: @colour_positive * 0.33 + @white * 0.66; }
1269
- b.voted.against { background: @colour_negative * 0.33 + @white * 0.66; }
1270
- }
1271
- /* Temporarily removed avatar and symbol */
1272
- /* div.symbols a.agent, b { display: none; }*/
1273
- div.description {
1274
- font-size: 12px; color: @grey;
1275
- a.agent { font-weight: bold; }
1276
- }
1277
- div.comment {
1278
- margin-top: 2px;
1279
- b.tail {
1280
- display: block; margin: 0 0 0 10px; width: 0; height: 0; border: 5px solid transparent;
1281
- border-top: none; border-bottom: 5px solid (@light_grey * 0.25 + @white * 0.75);
1282
- }
1283
- blockquote {
1284
- margin: 0; font-style: normal; color: @dark_grey;
1285
- .border_radius(3); background: @light_grey * 0.25 + @white * 0.75; padding: 5px 10px;
1286
- span.view_comment {
1287
- color: @grey;
1288
- }
1289
- }
1290
- }
1291
- div.content {
1292
- overflow: hidden;
1293
- }
1294
- }
1295
- li.new_comment.ad, li.endorsed.ad, li.voted {
1296
- div.description, div.content { margin-left: 106px; }
1297
- /* div.description, div.content { margin-left: 53px; }*/
1298
- }
1299
- li.new_comment.brand, li.replied_to, li.endorsed.brand, li.connected, li.sn_setup {
1300
- div.description, div.content { margin-left: 96px; }
1301
- /* div.description, div.content { margin-left: 43px; }*/
1302
- }
1303
- li.replied_to {
1304
- div.content {
1305
- a.thumbnail, a.logo { margin-top: 7px; }
1306
- }
1307
- }
1308
- li.replied_to.ad {
1309
- div.content {
1310
- div.comment { margin-left: 52px; }
1311
- }
1312
- }
1313
- li.replied_to.brand {
1314
- div.content {
1315
- div.comment { margin-left: 42px; }
1316
- }
1317
- }
1318
- li.voted div.description span.action { .border_radius(2); color: @dark_grey; padding: 0 3px; white-space: nowrap; }
1319
- li.voted.for div.description span.action { background: @colour_positive * 0.15 + @white * 0.85; }
1320
- li.voted.against div.description span.action { background: @colour_negative * 0.15 + @white * 0.85; }
1321
- li:first-child { padding-top: 0; }
1322
- li:last-child { border-bottom: none; }
1323
- li:hover div.content div.comment blockquote span.view_comment {
1324
- }
1325
- }
1326
- }
1327
- }
1328
-
1329
- /* Login/Register Modal */
1330
- #login_register {
1331
- div.location_select,
1332
- div.location_search { margin-left: 130px; }
1333
- h3 {
1334
- small { font-size: 14px; font-weight: normal; display: block; color: @grey; text-align: left; margin: 0; display: block; }
1335
- }
1336
- }
1337
-
1338
- /* Contact Form in Pages */
1339
- #pages_controller {
1340
- #sidebar {
1341
- #contact {
1342
- margin: 15px 0 0;
1343
- form {
1344
- label { text-align: left; float: none; width: auto; font-size: 12px; font-weight: bold; line-height: 1; margin: 0 0 5px; }
1345
- p.submit.indent {
1346
- margin: 0;
1347
- span.with_cancel { display: none; }
1348
- }
1349
- }
1350
- }
1351
- }
1352
- }
1353
-
1354
- /* Exclusive Offers */
1355
- #offers {
1356
- div.content {
1357
- a.gift {
1358
- display: block; text-align: center;
1359
- img { height: 100px; }
1360
- }
1361
- }
1362
- }
1363
-
1364
- div.browse {
1365
- margin: 0 0 20px;
1366
- &.class {
1367
- padding: 0;
1368
- }
1369
- div.header {
1370
- padding: 10px 10px 9px; text-align: left; background: @bg url('/images/panel_header_bg.png') repeat-x top left;
1371
- border-bottom: 1px solid (@bg * 0.66 + @black * 0.33); line-height: 1; height: 18px;
1372
- .border_radius_top(3); color: @light_grey;
1373
- h3 { font-size: 16px; margin: 0; color: @white; .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33); }
1374
- span.filter {
1375
- float: left; display: block; overflow: hidden; position: relative; z-index: 5;
1376
- a {
1377
- margin: 0 1px 0 0; display: block; float: left; padding: 0 8px; height: 18px; font-weight: bold; font-size: 10px; line-height: 18px;
1378
- text-transform: uppercase; background: url('/images/transparent_backgrounds/black_50.png'); color: @light_grey; text-decoration: none; position: relative; z-index: 3;
1379
- .active {
1380
- background: @white; color: @black; z-index: 4;
1381
- :hover { color: @black; }
1382
- }
1383
- :hover { color: @white; }
1384
- :first-child { .border_radius_left(2); }
1385
- :last-child { .border_radius_right(2); margin-right: 0; }
1386
- }
1387
- }
1388
-
1389
- span.filter.dropdown {
1390
- margin: 0; position: relative; overflow: visible;
1391
- a {
1392
- .border_radius(2); background: @white; color: @black; margin: 0; position: relative; padding-right: 25px;
1393
- img { float: left; margin: 4px 5px 0 0; }
1394
- b.arrow {
1395
- float: right; display: block; height: 0; width: 0; border: 5px solid transparent; border-top: 5px solid @black; border-bottom: none;
1396
- position: absolute; top: 6px; right: 10px;
1397
- }
1398
- :hover {
1399
- background: @accent_colour; color: @white;
1400
- b.arrow { border-top: 5px solid @white; }
1401
- }
1402
- }
1403
- ul {
1404
- position: absolute; top: 100%; left: 0; margin: 1px 0 0; padding: 0; background: @white; .border_radius(2);
1405
- .box_shadow(0, 1, 1, @black);
1406
- li {
1407
- list-style: none; display: block; padding: 0; margin: 0;
1408
- a {
1409
- display: block; height: 18px; line-height: 18px; color: @black; font-size: 10px; text-transform: uppercase; background: transparent;
1410
- border-bottom: 1px solid (@light_grey * 0.66 + @white * 0.33); float: none; margin: 0; .border_radius(0); white-space: nowrap;
1411
- :hover { background: url('/images/transparent_backgrounds/accent_colour_25.png'); color: @black; }
1412
- }
1413
- :last-child {
1414
- a { border: none; }
1415
- }
1416
- }
1417
- }
1418
- }
1419
- span.filter.dropdown.sort { float: left; margin: 0 0 0 10px; }
1420
- span.filter.dropdown.localisation { float: left; margin: 0 0 0 10px; }
1421
- a.more {
1422
- float: right; color: @white; .text_shadow(1, 1, 0, @bg * 0.66 + @black * 0.33); font-size: 14px; font-weight: bold;
1423
- position: relative; top: 2px;
1424
- :hover { text-decoration: none; }
1425
- }
1426
- }
1427
- > ul {
1428
- margin: 0; background: @white; padding: 10px 0 0 10px; .border_radius(3); position: relative;
1429
- li {
1430
- display: block; float: left; list-style: none; margin: 0 10px 10px 0; padding: 5px; position: relative;
1431
- background: @white; width: 130px; border: 1px solid (@light_grey * 0.33 + @white * 0.66); .border_radius(2);
1432
- a.remove {
1433
- position: absolute; height: 16px; width: 16px; padding: 3px; background: @accent_colour;
1434
- .border_radius(99); display: none; z-index: 3; top: -8px; right: -8px;
1435
- img { vertical-align: middle; }
1436
- }
1437
- div.thumbnail {
1438
- .border_radius_top(3); position: relative; z-index: 3;
1439
- .marker {
1440
- position: absolute; padding: 2px; .border_radius(2); z-index: 3;
1441
- background: url('/images/transparent_backgrounds/white_75.png'); height: 12px; width: 12px;
1442
- }
1443
- .marker.coupon {
1444
- height: auto; width: auto; top: 10px; right: -3px; padding: 0; background: transparent; overflow: hidden; position: absolute;
1445
- b {
1446
- display: block; height: 0; width: 0; float: left; border: 14px solid transparent; border-top: 14px solid @accent_colour;
1447
- border-bottom: none; border-right: none; float: left;
1448
- }
1449
- span {
1450
- color: @white; font-size: 10px; font-weight: bold; text-transform: uppercase; height: 14px; line-height: 14px; display: block;
1451
- padding: 0 4px 0 2px; background: @accent_colour; .text_shadow(1, 1, 0px, (@accent_colour * 0.75 + @black * 0.25)); margin: 0 0 0 14px;
1452
- }
1453
- }
1454
- .marker.video {
1455
- position: absolute; left: 50%; top: 50%; background: @white; width: 10px; height: 10px;
1456
- b { display: block; width: 0; height: 0; border: 5px solid transparent; border-left: 10px solid @black; border-right: none; }
1457
- }
1458
- .marker.endorsed_by_me { background: none; padding: 0; right: 0; bottom: -32px; .border_radius(2); background: @white; }
1459
- a.thumbnail {
1460
- display: block; overflow: hidden; position: relative; text-align: center;
1461
- img { position: relative; display: block; margin: auto; }
1462
- }
1463
- }
1464
- div.text {
1465
- margin: 3px 0 0; display: block;
1466
- a { text-decoration: none; }
1467
- a.title {
1468
- display: block; text-decoration: none; font-weight: bold; font-size: 12px; line-height: 16px;
1469
- white-space: nowrap; height: 16px; overflow: hidden;
1470
- :before {
1471
- display: block; height: 32px; width: 20px; content: " "; float: right; right: -15px; top: -8px;
1472
- background: @white; position: relative; z-index: 1; .box_shadow(-5, 0, 10, @white);
1473
- }
1474
- }
1475
- small {
1476
- font-size: 11px; line-height: 13px; color: @grey; display: block; height: 13px; overflow: hidden; white-space: nowrap;
1477
- a { font-weight: bold; }
1478
- :before {
1479
- display: block; height: 32px; width: 20px; content: " "; float: right; right: -15px; top: -8px;
1480
- background: @white; position: relative; z-index: 1; .box_shadow(-5, 0, 10, @white);
1481
- }
1482
- }
1483
- }
1484
- :hover {
1485
- background: @accent_colour;
1486
- a.remove { display: block; }
1487
- div.thumbnail {
1488
- a.marker.remove, a.marker.video {
1489
- b { display: inline-block; }
1490
- }
1491
- a.marker.video { .box_shadow(0, 0, 2, @black); }
1492
- }
1493
- div.text {
1494
- a { color: @white; }
1495
- a.title:before { background: @accent_colour; .box_shadow(-5, 0, 10, @accent_colour); }
1496
- small {
1497
- color: @white * 0.75 + @accent_colour * 0.25;
1498
- :before { background: @accent_colour; .box_shadow(-5, 0, 10, @accent_colour); }
1499
- }
1500
- }
1501
- div.footer a { color: @white; }
1502
- }
1503
- }
1504
- > li.ad div.thumbnail a.thumbnail {
1505
- width: 130px; height: 97px;
1506
- img { width: 100%; height: 100%; }
1507
- }
1508
- > li.brand div.thumbnail a.thumbnail {
1509
- width: 120px; height: 87px; padding: 5px; background: @white; .border_radius(2);
1510
- img { max-width: 120px; max-height: 87px; }
1511
- }
1512
- li.paginate {
1513
- margin-bottom: 0;
1514
- a {
1515
- display: block; position: relative; text-decoration: none; height: 131px;
1516
- div.arrow {
1517
- background: #81c153 url('/images/button_bg.png') repeat-x left top; border: 1px solid (@accent_colour * 0.75 + @black * 0.25);
1518
- height: 44px; .border_radius(99); width: 44px; margin: 0 auto; position: relative; top: 32px;
1519
- b { text-indent: -9000px; display: block; border: 10px solid transparent; width: 0; height: 0; position: relative; top: 12px; }
1520
- }
1521
- div.label {
1522
- position: absolute; bottom: 5px; left: 0; right: 0; line-height: 13px;
1523
- color: @accent_colour * 0.85 + @black * 0.15; text-decoration: none;
1524
- font-weight: bold; font-size: 12px; text-align: center;
1525
- }
1526
- :hover {
1527
- div.arrow { background: #abd56e url('/images/button_bg.png') repeat-x left -44px; }
1528
- }
1529
- }
1530
- :hover { background: transparent; }
1531
- }
1532
- li.paginate.previous a div b { border-right: 15px solid @white; border-left: none; left: 12px; }
1533
- li.paginate.next a div b { border-left: 15px solid @white; border-right: none; left: 16px; }
1534
- }
1535
- > div.footer {
1536
- padding: 9px 10px 10px; background: @light_grey * 0.75 + @white * 0.25; overflow: hidden;
1537
- border-top: 1px solid @light_grey; .border_radius_bottom(3);
1538
- div.info {
1539
- float: left; color: @grey;
1540
- strong { color: @black; font-weight: normal; }
1541
- }
1542
- div.pagination {
1543
- float: right;
1544
- > * {
1545
- display: inline-block; line-height: 1; padding: 0 6px; line-height: 18px; height: 18px; background: @white;
1546
- .border_radius(3); text-decoration: none; font-weight: bold;
1547
- font-size: 10px; text-transform: uppercase;
1548
- }
1549
- a { color: @grey; }
1550
- a:hover { color: @black; }
1551
- span.disabled { color: @light_grey; }
1552
- span.current { color: @white; background: @bg; border: none; }
1553
- span.current:hover { color: @white; }
1554
- }
1555
- }
1556
- }
1557
- div.browse.with_categories { margin: 0 0 0 160px; }
1558
- div.browse.with_options > ul { .border_radius_top(0); }
1559
- div.browse.with_footer > ul { .border_radius_bottom(0); }
1560
- /* Browse List */
1561
- div.browse.list {
1562
- > ul {
1563
- margin: 0; min-height: 320px;
1564
- padding: 10px 0 0 10px; overflow: hidden;
1565
- > li {
1566
- display: block; list-style: none; margin: 0 10px 10px 0; padding: 5px;
1567
- .border_radius(3); position: relative; line-height: normal;
1568
- .marker {
1569
- position: absolute; padding: 2px; .border_radius(2);
1570
- background: url('/images/transparent_backgrounds/white_75.png');
1571
- img { height: 12px; width: 12px; }
1572
- }
1573
- img.marker { height: 12px; width: 12px; }
1574
- span.marker.new {
1575
- color: black; left: -5px; top: -5px; background: none; background-color: @white * 0.1 + @yellow * 0.6 + @red * 0.3; line-height: 1; padding: 2px 5px;
1576
- font-weight: bold;
1577
- }
1578
- a.marker.media_type {
1579
- display: inline-block; text-decoration: none; top: 39px; left: 8px;
1580
- font-size: 10px;
1581
- b { font-weight: normal; margin: 0 0 0 2px; line-height: 1; display: none; }
1582
- img { vertical-align: middle; }
1583
- }
1584
- a.thumbnail {
1585
- float: left;
1586
- width: 68px; display: block; overflow: hidden;
1587
- border: 1px solid @light_grey;
1588
- :hover { border-color: @accent_colour; }
1589
- }
1590
- span.title_brand {
1591
- display: block; margin: 0 0 2px 75px;
1592
- a { margin: 0; display: inline; }
1593
- a.brand_name { font-weight: normal; font-size: 12px; }
1594
- }
1595
- a.ad_title {
1596
- font-weight: bold; font-size: 14px; margin: 0 0 0 75px; display: block;
1597
- }
1598
- a.brand_name {
1599
- font-weight: bold; font-size: 14px; margin: 0 0 0 75px; display: block;
1600
- }
1601
- small {
1602
- display: block; color: @grey; margin: 0 0 0 75px; font-size: 12px;
1603
- }
1604
- small.brand_name { display: inline; margin: 0; }
1605
- ul.chart {
1606
- margin: 0 0 0 80px;
1607
- height: 39px;
1608
- }
1609
- ul.networks {
1610
- margin: 3px 0 0 75px; padding: 0; overflow: hidden;
1611
- li { display: block; float: left; margin: 0 5px 0 0; line-height: 1; }
1612
- }
1613
- div.points {
1614
- display: none;
1615
- font-size: 12px; text-align: right;
1616
- label { color: @grey; }
1617
- }
1618
- a.remove { bottom: -3px; right: -3px; }
1619
- }
1620
- li.ad {
1621
- a.thumbnail { height: 51px; }
1622
- span.title_brand {
1623
- small.brand_name {
1624
- display: block;
1625
- }
1626
- }
1627
- }
1628
- li.brand {
1629
- a.thumbnail { height: 68px; }
1630
- }
1631
- }
1632
- }
1633
- div.browse.list.with_options ul { .border_radius_top(0); }
1634
- div.browse.list.with_footer ul { .border_radius_bottom(0); }
1635
- div.browse.list.cols_2 {
1636
- > ul {
1637
- > li {
1638
- width: 285px; float: left;
1639
- :hover {
1640
- background: @white;
1641
- }
1642
- }
1643
- }
1644
- }
1645
- div.browse.ads.list {
1646
- > ul {
1647
- > li {
1648
- height: 53px;
1649
- a.thumbnail {
1650
- height: 51px;
1651
- }
1652
- }
1653
- }
1654
- }
1655
- div.browse.brands.list {
1656
- > ul {
1657
- > li {
1658
- height: 68px;
1659
- a.thumbnail {
1660
- height: 66px;
1661
- }
1662
- }
1663
- }
1664
- }
1665
-
1666
- /* Categories List */
1667
- #categories {
1668
- margin: 40px 0 0; width: 160px; float: left; position: relative; z-index: 1;
1669
- ul {
1670
- margin: 0; padding: 10px 0 0;
1671
- li {
1672
- list-style: none; margin: 0; padding: 0; font-size: 14px;
1673
- a { color: @grey; display: block; padding: 5px 10px 5px 15px; text-decoration: none; .border_radius_left(3); }
1674
- a:hover { color: @black; background: @light_grey * 0.15 + @white * 0.85; }
1675
- }
1676
- .all a { font-weight: bold; }
1677
- .current a {
1678
- background: @white; color: @black; border: 1px solid (@light_grey * 0.25 + @white * 0.75); border-right: none; border-left: 5px solid @bg;
1679
- padding-left: 10px;
1680
- }
1681
- }
1682
- }
1683
-
1684
- /* Ads > Show */
1685
- #ad {
1686
- div.header {
1687
- overflow: hidden;
1688
- h3 { font-size: 16px; margin: 0 0 3px; }
1689
- small {
1690
- a.category { font-weight: bold; color: @accent_colour; }
1691
- span.networks img { position: relative; top: 3px; }
1692
- }
1693
- span.brand {
1694
- float: right; color: @white;
1695
- a.brand_name { font-weight: bold; color: @accent_colour; }
1696
- }
1697
- }
1698
- div.content {
1699
- padding: 0; position: relative;
1700
- a.toggle_size {
1701
- display: block; .border_radius(3); background-color: @black; padding: 0 5px 0 26px;
1702
- background-position: 5px center; background-repeat: no-repeat; text-decoration: none; margin: 5px 5px 0 0;
1703
- position: absolute; top: 0; right: 0; line-height: 25px; z-index: 45;
1704
- }
1705
- img.creative { margin: 0 auto; max-width: 540px; display: block; }
1706
- object { position: relative; z-index: 44; }
1707
- object.video { line-height: 0; font-size: 0; }
1708
- object embed { position: relative; z-index: 45; line-height: 0; font-size: 0; }
1709
- }
1710
- div.content.not_video {
1711
- padding: 40px; text-align: center;
1712
- * { margin-left: auto; margin-right: auto; }
1713
- object.flash { margin-bottom: 0; }
1714
- }
1715
- div.footer {
1716
- padding: 0;
1717
- div.vote_views {
1718
- padding: 5px 10px; overflow: hidden;
1719
- div.share { float: right; margin: 2px 0 0 0; }
1720
- #login_register_msg, #encourage_vote_msg { line-height: 22px; font-weight: bold; color: @black; }
1721
- }
1722
- }
1723
- }
1724
- #sidebar {
1725
- #meta {
1726
- table {
1727
- margin: 0;
1728
- tr:last-child td { padding-bottom: 0; }
1729
- td {
1730
- padding: 0 0 5px;
1731
- ul.networks {
1732
- margin: 0; padding: 0;
1733
- li {
1734
- list-style: none; display: inline;
1735
- }
1736
- li {
1737
- }
1738
- }
1739
- }
1740
- td.label { color: @grey; white-space: nowrap; width: 1%; text-align: right; padding-right: 5px; }
1741
- }
1742
- }
1743
- }
1744
-
1745
- /* Voting */
1746
- div.voted {
1747
- font-size: 12px; line-height: 22px; color: @black; display: inline-block; font-weight: bold;
1748
- img { float: left; margin-right: 5px; padding: 3px; .border_radius(3); }
1749
- }
1750
- #voted_up {
1751
- img { background: @colour_positive * 0.66 + @bg * 0.15; }
1752
- }
1753
- #voted_down {
1754
- img { background: @colour_negative * 0.66 + @bg * 0.15; }
1755
- }
1756
- #encourage_comment {
1757
- display: inline-block; line-height: 22px; font-weight: bold;
1758
- }
1759
- #vote {
1760
- overflow: hidden; font-size: 12px; line-height: 22px; color: @black; float: left;
1761
- a {
1762
- color: @white; font-weight: bold; overflow: hidden; display: block;
1763
- width: 16px; text-decoration: none; text-align: center; font-size: 10px; padding: 3px; text-transform: uppercase;
1764
- }
1765
- a.up {
1766
- float: left; background: @colour_positive * 0.66 + @bg * 0.15; .border_radius_left(3);
1767
- :hover { background: @colour_positive * 0.85 + @bg * 0.15; }
1768
- }
1769
- a.down {
1770
- float: left; background: @colour_negative * 0.66 + @bg * 0.15; .border_radius_right(3);
1771
- margin: 0 5px 0 1px;
1772
- :hover { background: @colour_negative * 0.85 + @bg * 0.15; }
1773
- }
1774
- }
1775
- #vote.disabled {
1776
- a.up {
1777
- background: (@colour_positive * 0.66 + @bg * 0.15) * 0.15 + @grey * 0.85;
1778
- :hover { background: (@colour_positive * 0.85 + @bg * 0.15) * 0.25 + @grey * 0.75; }
1779
- }
1780
- a.down {
1781
- background: (@colour_negative * 0.66 + @bg * 0.15) * 0.15 + @grey * 0.85;
1782
- :hover { background: (@colour_negative * 0.85 + @bg * 0.15) * 0.25 + @grey * 0.75; }
1783
- }
1784
- }
1785
- #sidebar {
1786
- #ads > ul li, #recommendations > ul li {
1787
- width: 81px;
1788
- div.thumbnail {
1789
- a.thumbnail { height: 60px; width: 81px; }
1790
- }
1791
- div.text {
1792
- a.title { font-size: 11px; height: 14px; line-height: 14px; }
1793
- small { display: none; }
1794
- }
1795
- }
1796
- #brands > ul li {
1797
- width: 55px;
1798
- div.thumbnail {
1799
- a.thumbnail {
1800
- height: 45px; width: 45px;
1801
- img { max-height: 45px; max-width: 45px; }
1802
- }
1803
- }
1804
- div.text { display: none; }
1805
- }
1806
- }
1807
-
1808
- /* My Account */
1809
- #accounts_controller {
1810
- #top {
1811
- #page_title {
1812
- #page_options {
1813
- a.button.public_profile {
1814
- float: right; font-size: 16px; line-height: 1; height: auto; padding: 8px 35px 8px 15px; position: relative;
1815
- b.arrow { display: block; height: 0; width: 0; position: absolute; top: 10px; right: 15px; border: 6px solid transparent; border-right: none; border-left: 6px solid @white; margin: 0; }
1816
- }
1817
- a.button.goto_dashboard {
1818
- float: right; font-size: 16px; line-height: 1; height: auto; padding: 8px 15px 8px 35px; margin-right: 5px; position: relative;
1819
- b.arrow { display: block; height: 0; width: 0; position: absolute; top: 10px; left: 15px; border: 6px solid transparent; border-left: none; border-right: 6px solid @white; margin: 0; }
1820
- }
1821
- }
1822
- }
1823
- }
1824
- #account_nav {
1825
- float: left; width: 200px; margin: 0 20px 0 0;
1826
- ul.nav {
1827
- margin: 0; padding: 0;
1828
- li {
1829
- margin: 0 0 5px; display: block; list-style: none; padding: 0;
1830
- a {
1831
- display: block; height: 30px; text-decoration: none; color: @white;
1832
- b {
1833
- border: 15px solid transparent; border-right: none; border-left: 10px solid transparent; width: 0;
1834
- height: 0; float: right; display: none;
1835
- }
1836
- span {
1837
- .border_radius(3); background: @bg; display: block;
1838
- line-height: 30px; padding: 0 10px; font-size: 14px; font-weight: bold; margin: 0 10px 0 0;
1839
- }
1840
- }
1841
- :hover {
1842
- a {
1843
- color: @white;
1844
- b { border-left-color: @bg; display: block; }
1845
- span { background: @bg; .border_radius_right(0); }
1846
- }
1847
- }
1848
- }
1849
- li.current a {
1850
- b { border-left-color: @accent_colour; display: block; }
1851
- span { background: @accent_colour; color: @white; .border_radius_right(0); }
1852
- }
1853
- }
1854
- }
1855
- #main {
1856
- > div {
1857
- margin: 0 0 20px;
1858
- form { margin: 0; }
1859
- }
1860
- #profile {
1861
- a.avatar {
1862
- float: left; display: block;
1863
- width: 70px; overflow: hidden; position: relative; text-decoration: none;
1864
- img { width: 100%; }
1865
- span {
1866
- display: block; line-height: 1; padding: 3px; margin: 5px 0 0; color: @white; background: @accent_colour;
1867
- .border_radius(3); .text_shadow(1, 1, 0, @grey);
1868
- text-align: center; font-size: 10px; font-weight: bold; text-transform: uppercase;
1869
- }
1870
- }
1871
- form {
1872
- margin: 0 0 0 90px;
1873
- h4 { margin: 10px 0 20px; border-bottom: 1px solid (@light_grey * 0.5 + @white * 0.5); padding: 0; color: @bg; font-size: 16px; }
1874
- ul.choices {
1875
- li { width: 30%; }
1876
- }
1877
- div.extra { margin-top: 20px; }
1878
- }
1879
- }
1880
-
1881
- #networks {
1882
- ul { margin: 0 -10px -10px 0; padding: 0; overflow: hidden;
1883
- li:hover
1884
- {
1885
- background: @light_grey; display: block; float: left; width: 180px;
1886
- padding: 10px; margin: 0 10px 10px 0; list-style: none; .border_radius(3);
1887
- position: relative;
1888
- * { line-height: normal; }
1889
- img { vertical-align: middle; float: left; }
1890
- .name { font-weight: bold; font-size: 14px; display: block; margin: -2px 0 0 42px; }
1891
- small {
1892
- font-size: 12px; color: @grey; display: block; margin-left: 42px;
1893
- strong { color: @black; font-weight: normal; }
1894
- }
1895
- :hover {
1896
- }
1897
- }
1898
- li.installed {
1899
- background: @white;
1900
- border: 2px solid @accent_colour; padding: 8px;
1901
- }
1902
- li.unavailable {
1903
- .name { color: @black; }
1904
- :hover {
1905
- background: @light_grey;
1906
- }
1907
- }
1908
- li:hover {
1909
- background: @light_grey * 0.5 + @white * 0.5;
1910
- }
1911
- }
1912
- }
1913
- }
1914
- }
1915
-
1916
- /* Shopping Style Panel */
1917
- #shopping_style {
1918
- div.header a.button.small { float: right; }
1919
- div.content {
1920
- p {
1921
- margin: 0 0 10px;
1922
- label { text-transform: uppercase; font-size: 11px; display: block; color: @bg; font-weight: bold; }
1923
- span { color: @black; }
1924
- span.toggle { white-space: nowrap; color: @grey; }
1925
- :last-child { margin: 0; }
1926
- }
1927
- p.more { text-align: left; font-weight: normal; }
1928
- p.less { display: none; margin: 0; }
1929
- }
1930
- }
1931
-
1932
- /* People Controller */
1933
- #people_controller.index {
1934
- #main {
1935
- div.panel {
1936
- float: left; width: 300px; margin: 0 20px 0 0;
1937
- :last-child { margin-right: 0; }
1938
- }
1939
- }
1940
- }
1941
- #people_controller.show {
1942
- #person_overview, #shopping_style {
1943
- a.button.small {
1944
- }
1945
- }
1946
- #content {
1947
- #shopping_style {
1948
- float: left; width: 240px; margin: 0 20px 0 0;
1949
- }
1950
- #main { width: 360px; }
1951
- }
1952
- }
1953
-
1954
- /* Search Results */
1955
- #search_results {
1956
- margin: 0 0 20px;
1957
- li {
1958
- :hover {
1959
- small { color: @white * 0.75 + @accent_colour * 0.25; }
1960
- }
1961
- }
1962
- }
1963
- #search {
1964
- div.content {
1965
- padding: 20px;
1966
- form {
1967
- margin: 0; float: none;
1968
- span.submit_and_options {
1969
- display: block;
1970
- }
1971
- }
1972
- p { margin: 0 0 15px; }
1973
- h4 { font-weight: normal; margin: 0 0 5px; }
1974
- }
1975
- }
1976
-
1977
- /* Recommendations */
1978
- #recommendations {
1979
- div.browse {
1980
- margin: 0; padding: 0; background: none;
1981
- ul { min-height: 0; .border_radius(0); }
1982
- }
1983
- }
1984
-
1985
- /* Blank States */
1986
- div.blank {
1987
- padding: 20px; background: @bg * 0.05 + @blue * 0.05 + @white * 0.9; position: relative;
1988
- border: 1px solid (@bg * 0.1 + @blue * 0.1 + @white * 0.8); z-index: 1;
1989
- h4 { font-size: 18px; margin: 0 0 10px; }
1990
- h4:last-child { margin: 0; }
1991
- p { font-size: 16px; margin: 0 0 10px; }
1992
- p:last-child { margin: 0; }
1993
- p.with_list_number.large {
1994
- span { margin-left: 48px; display: block; color: @white; }
1995
- }
1996
- p.earn span { font-size: 22px; color: @white; line-height: 48px; font-weight: bold; }
1997
- a { white-space: nowrap; }
1998
- a.hide {
1999
- position: absolute; top: -5px; right: -5px; display: block; height: 16px; width: 16px; padding: 3px; background: #E7E9F6; .border_radius(99);
2000
- }
2001
- }
2002
-
2003
- div.blank.small {
2004
- padding: 10px 20px;
2005
- h4 { font-weight: normal; font-size: 16px; }
2006
- p { margin: 0; }
2007
- }
2008
- div.blank.tiny {
2009
- padding: 10px 20px;
2010
- h4 { font-weight: normal; font-size: 14px; }
2011
- p { margin: 0; font-size: 12px; }
2012
- }
2013
- div.blank.rounded {
2014
- .border_radius(3); margin: 0 0 20px;
2015
- }
2016
- div.blank.rounded.bottom { .border_radius_top(0); }
2017
- div.blank.with_border_bottom { border-bottom: 1px solid (@bg * 0.1 + @blue * 0.1 + @white * 0.8); }
2018
- div.blank.no_border_top { border-top: none; }
2019
- div.blank.no_border_bottom { border-bottom: none; }
2020
- div.blank.no_side_borders { border-right: none; border-left: none; }
2021
- div.panel {
2022
- div.blank {
2023
- padding: 10px 20px; overflow: hidden; margin: 0;
2024
- h4 { font-weight: normal; font-size: 14px; }
2025
- p, ul { margin: 0 0 10px; font-size: 12px; }
2026
- p:last-child, ul:last-child { margin: 0; }
2027
- }
2028
- }
2029
-
2030
- #yelow {
2031
- #short {
2032
- color: #fea;
2033
- }
2034
- #long {
2035
- color: #ffeeaa;
2036
- }
2037
- #rgba {
2038
- color: rgba(255, 238, 170, 0.1);
2039
- }
2040
- }
2041
-
2042
- #blue {
2043
- #short {
2044
- color: #00f;
2045
- }
2046
- #long {
2047
- color: #0000ff;
2048
- }
2049
- #rgba {
2050
- color: rgba(0, 0, 255, 0.1);
2051
- }
2052
- }
2053
-
2054
- #overflow {
2055
- .a { color: #111111 - #444444; } // #000000
2056
- .b { color: #eee + #fff; } // #ffffff
2057
- .c { color: #aaa * 3; } // #ffffff
2058
- .d { color: #00ee00 + #009900; } // #00ff00
2059
- }
2060
-
2061
- #grey {
2062
- color: rgb(200, 200, 200);
2063
- }
2064
-
2065
- #808080 {
2066
- color: hsl(50, 0%, 50%);
2067
- }
2068
-
2069
- #00ff00 {
2070
- color: hsl(120, 100%, 50%);
2071
- }
2072
- /******************\
2073
- * *
2074
- * Comment Header *
2075
- * *
2076
- \******************/
2077
-
2078
- /*
2079
-
2080
- Comment
2081
-
2082
- */
2083
-
2084
- /*
2085
- * Comment Test
2086
- *
2087
- * - cloudhead (http://cloudhead.net)
2088
- *
2089
- */
2090
-
2091
- ////////////////
2092
- @var: "content";
2093
- ////////////////
2094
-
2095
- /* Colors
2096
- * ------
2097
- * #EDF8FC (background blue)
2098
- * #166C89 (darkest blue)
2099
- *
2100
- * Text:
2101
- * #333 (standard text) // A comment within a comment!
2102
- * #1F9EC9 (standard link)
2103
- *
2104
- */
2105
-
2106
- /* @group Variables
2107
- ------------------- */
2108
- #comments /* boo */ {
2109
- /**/ // An empty comment
2110
- color: red; /* A C-style comment */
2111
- background-color: orange; // A little comment
2112
- font-size: 12px;
2113
-
2114
- /* lost comment */ content: @var;
2115
-
2116
- border: 1px solid black;
2117
-
2118
- // padding & margin //
2119
- padding: 0;
2120
- margin: 2em;
2121
- } //
2122
-
2123
- /* commented out
2124
- #more-comments {
2125
- color: grey;
2126
- }
2127
- */
2128
-
2129
- #last { color: blue }
2130
- //
2131
- .comma-delimited {
2132
- background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg);
2133
- text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
2134
- -moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset,
2135
- 0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
2136
- }
2137
- @font-face {
2138
- font-family: Headline;
2139
- src: local(Futura-Medium),
2140
- url(fonts.svg#MyGeometricModern) format("svg");
2141
- }
2142
- .other {
2143
- -moz-transform: translate(0, 11em) rotate(-90deg);
2144
- }
2145
- p:not([class*="lead"]) {
2146
- color: black;
2147
- }
2148
-
2149
- input[type="text"].class#id[attr=32]:not(1) {
2150
- color: white;
2151
- }
2152
-
2153
- div#id.class[a=1][b=2].class:not(1) {
2154
- color: white;
2155
- }
2156
-
2157
- ul.comma > li:not(:only-child)::after {
2158
- color: white;
2159
- }
2160
-
2161
- ol.comma > li:nth-last-child(2)::after {
2162
- color: white;
2163
- }
2164
-
2165
- li:nth-child(4n+1),
2166
- li:nth-child(-5n),
2167
- li:nth-child(-n+2) {
2168
- color: white;
2169
- }
2170
-
2171
- a[href^="http://"] {
2172
- color: black;
2173
- }
2174
-
2175
- a[href$="http://"] {
2176
- color: black;
2177
- }
2178
-
2179
- form[data-disabled] {
2180
- color: black;
2181
- }
2182
-
2183
- p::before {
2184
- color: black;
2185
- }
2186
- @charset "utf-8";
2187
- div { color: black; }
2188
- div { width: 99%; }
2189
-
2190
- * {
2191
- min-width: 45em;
2192
- }
2193
-
2194
- h1, h2 > a > p, h3 {
2195
- color: none;
2196
- }
2197
-
2198
- div.class {
2199
- color: blue;
2200
- }
2201
-
2202
- div#id {
2203
- color: green;
2204
- }
2205
-
2206
- .class#id {
2207
- color: purple;
2208
- }
2209
-
2210
- .one.two.three {
2211
- color: grey;
2212
- }
2213
-
2214
- @media print {
2215
- font-size: 3em;
2216
- }
2217
-
2218
- @media screen {
2219
- font-size: 10px;
2220
- }
2221
-
2222
- @font-face {
2223
- font-family: 'Garamond Pro';
2224
- src: url("/fonts/garamond-pro.ttf");
2225
- }
2226
-
2227
- a:hover, a:link {
2228
- color: #999;
2229
- }
2230
-
2231
- p, p:first-child {
2232
- text-transform: none;
2233
- }
2234
-
2235
- q:lang(no) {
2236
- quotes: none;
2237
- }
2238
-
2239
- p + h1 {
2240
- font-size: 2.2em;
2241
- }
2242
-
2243
- #shorthands {
2244
- border: 1px solid #000;
2245
- font: 12px/16px Arial;
2246
- margin: 1px 0;
2247
- padding: 0 auto;
2248
- background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
2249
- }
2250
-
2251
- #more-shorthands {
2252
- margin: 0;
2253
- padding: 1px 0 2px 0;
2254
- font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
2255
- }
2256
-
2257
- .misc {
2258
- -moz-border-radius: 2px;
2259
- display: -moz-inline-stack;
2260
- width: .1em;
2261
- background-color: #009998;
2262
- background-image: url(images/image.jpg);
2263
- background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
2264
- margin: ;
2265
- }
2266
-
2267
- #important {
2268
- color: red !important;
2269
- width: 100%!important;
2270
- height: 20px ! important;
2271
- }
2272
-
2273
- #functions {
2274
- @var: 10;
2275
- color: color("evil red"); // #660000
2276
- width: increment(15);
2277
- height: undefined("self");
2278
- border-width: add(2, 3);
2279
- variable: increment(@var);
2280
- }
2281
-
2282
- #built-in {
2283
- @r: 32;
2284
- escaped: e("-Some::weird(#thing, y)");
2285
- lighten: lighten(#ff0000, 50%);
2286
- darken: darken(#ff0000, 50%);
2287
- saturate: saturate(#29332f, 20%);
2288
- desaturate: desaturate(#203c31, 20%);
2289
- greyscale: greyscale(#203c31);
2290
- format: %("rgb(%d, %d, %d)", @r, 128, 64);
2291
- format-string: %("hello %s", "world");
2292
- eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
2293
- }
2294
-
2295
- @var: @a;
2296
- @a: 100%;
2297
-
2298
- .lazy-eval {
2299
- width: @var;
2300
- }
2301
- .mixin (@a: 1px, @b: 50%) {
2302
- width: @a * 5;
2303
- height: @b - 1%;
2304
- }
2305
-
2306
- .mixina (@style, @width, @color: black) {
2307
- border: @width @style @color;
2308
- }
2309
-
2310
- .mixiny
2311
- (@a: 0, @b: 0) {
2312
- margin: @a;
2313
- padding: @b;
2314
- }
2315
-
2316
- .hidden() {
2317
- color: transparent;
2318
- }
2319
-
2320
- .two-args {
2321
- color: blue;
2322
- .mixin(2px, 100%);
2323
- .mixina(dotted, 2px);
2324
- }
2325
-
2326
- .one-arg {
2327
- .mixin(3px);
2328
- }
2329
-
2330
- .no-parens {
2331
- .mixin;
2332
- }
2333
-
2334
- .no-args {
2335
- .mixin();
2336
- }
2337
-
2338
- .var-args {
2339
- @var: 9;
2340
- .mixin(@var, @var * 2);
2341
- }
2342
-
2343
- .multi-mix {
2344
- .mixin(2px, 30%);
2345
- .mixiny(4, 5);
2346
- }
2347
-
2348
- .maxa(@arg1: 10, @arg2: #f00) {
2349
- padding: @arg1 * 2px;
2350
- color: @arg2;
2351
- }
2352
-
2353
- body {
2354
- .maxa(15);
2355
- }
2356
-
2357
- @glob: 5;
2358
- .global-mixin(@a:2) {
2359
- width: @glob + @a;
2360
- }
2361
-
2362
- .scope-mix {
2363
- .global-mixin(3);
2364
- }
2365
-
2366
- .nested-ruleset (@width: 200px) {
2367
- width: @width;
2368
- .column { margin: @width; }
2369
- }
2370
- .content {
2371
- .nested-ruleset(600px);
2372
- }
2373
-
2374
- //
2375
-
2376
- .same-var-name2(@radius) {
2377
- radius: @radius;
2378
- }
2379
- .same-var-name(@radius) {
2380
- .same-var-name2(@radius);
2381
- }
2382
- #same-var-name {
2383
- .same-var-name(5px);
2384
- }
2385
-
2386
- //
2387
-
2388
- .var-inside () {
2389
- @var: 10px;
2390
- width: @var;
2391
- }
2392
- #var-inside { .var-inside; }
2393
- .mix-inner (@var) {
2394
- border-width: @var;
2395
- }
2396
-
2397
- .mix (@a: 10) {
2398
- .inner {
2399
- height: @a * 10;
2400
-
2401
- .innest {
2402
- width: @a;
2403
- .mix-inner(@a * 2);
2404
- }
2405
- }
2406
- }
2407
-
2408
- .class {
2409
- .mix(30);
2410
- }
2411
- .mixin () {
2412
- zero: 0;
2413
- }
2414
- .mixin (@a: 1px) {
2415
- one: 1;
2416
- }
2417
- .mixin (@a) {
2418
- one-req: 1;
2419
- }
2420
- .mixin (@a: 1px, @b: 2px) {
2421
- two: 2;
2422
- }
2423
-
2424
- .mixin (@a, @b, @c) {
2425
- three-req: 3;
2426
- }
2427
-
2428
- .mixin (@a: 1px, @b: 2px, @c: 3px) {
2429
- three: 3;
2430
- }
2431
-
2432
- .zero {
2433
- .mixin();
2434
- }
2435
-
2436
- .one {
2437
- .mixin(1);
2438
- }
2439
-
2440
- .two {
2441
- .mixin(1, 2);
2442
- }
2443
-
2444
- .three {
2445
- .mixin(1, 2, 3);
2446
- }
2447
-
2448
- //
2449
-
2450
- .mixout ('left') {
2451
- left: 1;
2452
- }
2453
-
2454
- .mixout ('right') {
2455
- right: 1;
2456
- }
2457
-
2458
- .left {
2459
- .mixout('left');
2460
- }
2461
- .right {
2462
- .mixout('right');
2463
- }
2464
-
2465
- //
2466
-
2467
- .border (@side, @width) {
2468
- color: black;
2469
- .border-side(@side, @width);
2470
- }
2471
- .border-side (left, @w) {
2472
- border-left: @w;
2473
- }
2474
- .border-side (right, @w) {
2475
- border-right: @w;
2476
- }
2477
-
2478
- .border-right {
2479
- .border(right, 4px);
2480
- }
2481
- .border-left {
2482
- .border(left, 4px);
2483
- }
2484
-
2485
- //
2486
-
2487
-
2488
- .border-radius (@r) {
2489
- both: @r * 10;
2490
- }
2491
- .border-radius (@r, left) {
2492
- left: @r;
2493
- }
2494
- .border-radius (@r, right) {
2495
- right: @r;
2496
- }
2497
-
2498
- .only-right {
2499
- .border-radius(33, right);
2500
- }
2501
- .only-left {
2502
- .border-radius(33, left);
2503
- }
2504
- .left-right {
2505
- .border-radius(33);
2506
- }
2507
- .mixin { border: 1px solid black; }
2508
- .mixout { border-color: orange; }
2509
- .borders { border-style: dashed; }
2510
-
2511
- #namespace {
2512
- .borders {
2513
- border-style: dotted;
2514
- }
2515
- .biohazard {
2516
- content: "death";
2517
- .man {
2518
- color: transparent;
2519
- }
2520
- }
2521
- }
2522
- #theme {
2523
- > .mixin {
2524
- background-color: grey;
2525
- }
2526
- }
2527
- #container {
2528
- color: black;
2529
- .mixin;
2530
- .mixout;
2531
- #theme > .mixin;
2532
- }
2533
-
2534
- #header {
2535
- .milk {
2536
- color: white;
2537
- .mixin;
2538
- #theme > .mixin;
2539
- }
2540
- #cookie {
2541
- .chips {
2542
- #namespace .borders;
2543
- .calories {
2544
- #container;
2545
- }
2546
- }
2547
- .borders;
2548
- }
2549
- }
2550
- .secure-zone { #namespace .biohazard .man; }
2551
- .direct {
2552
- #namespace > .borders;
2553
- }
2554
- #operations {
2555
- color: #110000 + #000011 + #001100; // #111111
2556
- height: 10px / 2px + 6px - 1px * 2; // 9px
2557
- width: 2 * 4 - 5em; // 3em
2558
- .spacing {
2559
- height: 10px / 2px+6px-1px*2;
2560
- width: 2 * 4-5em;
2561
- }
2562
- substraction: 20 - 10 - 5 - 5; // 0
2563
- division: 20 / 5 / 4; // 1
2564
- }
2565
-
2566
- @x: 4;
2567
- @y: 12em;
2568
-
2569
- .with-variables {
2570
- height: @x + @y; // 16em
2571
- width: 12 + @y; // 24em
2572
- size: 5cm - @x; // 1cm
2573
- }
2574
-
2575
- @z: -2;
2576
-
2577
- .negative {
2578
- height: 2px + @z; // 0px
2579
- width: 2px - @z; // 4px
2580
- }
2581
-
2582
- .shorthands {
2583
- padding: -1px 2px 0 -4px; //
2584
- }
2585
-
2586
- .colors {
2587
- color: #123; // #112233
2588
- border-color: #234 + #111111; // #334455
2589
- background-color: #222222 - #fff; // #000000
2590
- .other {
2591
- color: 2 * #111; // #222222
2592
- border-color: #333333 / 3 + #111; // #222222
2593
- }
2594
- }
2595
- .parens {
2596
- @var: 1px;
2597
- border: (@var * 2) solid black;
2598
- margin: (@var * 1) (@var + 2) (4 * 4) 3;
2599
- width: (6 * 6);
2600
- padding: 2px (6px * 6px);
2601
- }
2602
-
2603
- .more-parens {
2604
- @var: (2 * 2);
2605
- padding: (2 * @var) 4 4 (@var * 1px);
2606
- width: (@var * @var) * 6;
2607
- height: (7 * 7) + (8 * 8);
2608
- margin: 4 * (5 + 5) / 2 - (@var * 2);
2609
- //margin: (6 * 6)px;
2610
- }
2611
-
2612
- .nested-parens {
2613
- width: 2 * (4 * (2 + (1 + 6))) - 1;
2614
- height: ((2+3)*(2+3) / (9-4)) + 1;
2615
- }
2616
-
2617
- .mixed-units {
2618
- margin: 2px 4em 1 5pc;
2619
- padding: (2px + 4px) 1em 2px 2;
2620
- }
2621
- #first > .one {
2622
- > #second .two > #deux {
2623
- width: 50%;
2624
- #third {
2625
- &:focus {
2626
- color: black;
2627
- #fifth {
2628
- > #sixth {
2629
- .seventh #eighth {
2630
- + #ninth {
2631
- color: purple;
2632
- }
2633
- }
2634
- }
2635
- }
2636
- }
2637
- height: 100%;
2638
- }
2639
- #fourth, #five, #six {
2640
- color: #110000;
2641
- .seven, .eight > #nine {
2642
- border: 1px solid black;
2643
- }
2644
- #ten {
2645
- color: red;
2646
- }
2647
- }
2648
- }
2649
- font-size: 2em;
2650
- }
2651
- @x: blue;
2652
- @z: transparent;
2653
- @mix: none;
2654
-
2655
- .mixin {
2656
- @mix: #989;
2657
- }
2658
-
2659
- .tiny-scope {
2660
- color: @mix; // #989
2661
- .mixin;
2662
- }
2663
-
2664
- .scope1 {
2665
- @y: orange;
2666
- @z: black;
2667
- color: @x; // blue
2668
- border-color: @z; // black
2669
- .hidden {
2670
- @x: #131313;
2671
- }
2672
- .scope2 {
2673
- @y: red;
2674
- color: @x; // blue
2675
- .scope3 {
2676
- @local: white;
2677
- color: @y; // red
2678
- border-color: @z; // black
2679
- background-color: @local; // white
2680
- }
2681
- }
2682
- }h1, h2, h3 {
2683
- a, p {
2684
- &:hover {
2685
- color: red;
2686
- }
2687
- }
2688
- }
2689
-
2690
- #all { color: blue; }
2691
- #the { color: blue; }
2692
- #same { color: blue; }
2693
-
2694
- ul, li, div, q, blockquote, textarea {
2695
- margin: 0;
2696
- }
2697
-
2698
- td {
2699
- margin: 0;
2700
- padding: 0;
2701
- }
2702
-
2703
- td, input {
2704
- line-height: 1em;
2705
- }
2706
- #strings {
2707
- background-image: url("http://son-of-a-banana.com");
2708
- quotes: "~" "~";
2709
- content: "#*%:&^,)!.(~*})";
2710
- empty: "";
2711
- brackets: "{" "}";
2712
- }
2713
- #comments {
2714
- content: "/* hello */ // not-so-secret";
2715
- }
2716
- #single-quote {
2717
- quotes: "'" "'";
2718
- content: '""#!&""';
2719
- empty: '';
2720
- }
2721
- @a: 2;
2722
- @x: @a * @a;
2723
- @y: @x + 1;
2724
- @z: @x * 2 + @y;
2725
-
2726
- .variables {
2727
- width: @z + 1cm; // 14cm
2728
- }
2729
-
2730
- @b: @a * 10;
2731
- @c: #888;
2732
-
2733
- @fonts: "Trebuchet MS", Verdana, sans-serif;
2734
- @f: @fonts;
2735
-
2736
- @quotes: "~" "~";
2737
- @q: @quotes;
2738
-
2739
- .variables {
2740
- height: @b + @x + 0px; // 24px
2741
- color: @c;
2742
- font-family: @f;
2743
- quotes: @q;
2744
- }
2745
-
2746
- .redefinition {
2747
- @var: 4;
2748
- @var: 2;
2749
- @var: 3;
2750
- three: @var;
2751
- }
2752
-
2753
- .values {
2754
- @a: 'Trebuchet';
2755
- font-family: @a, @a, @a;
2756
- }
2757
-
2758
-
2759
- .whitespace
2760
- { color: white; }
2761
-
2762
- .whitespace
2763
- {
2764
- color: white;
2765
- }
2766
- .whitespace
2767
- { color: white; }
2768
-
2769
- .whitespace{color:white;}
2770
- .whitespace { color : white ; }
2771
-
2772
- .white,
2773
- .space,
2774
- .mania
2775
- { color: white; }
2776
-
2777
- .no-semi-column { color: white }
2778
- .no-semi-column {
2779
- color: white;
2780
- white-space: pre
2781
- }
2782
- .no-semi-column {border: 2px solid white}
2783
- .newlines {
2784
- background: the,
2785
- great,
2786
- wall;
2787
- border: 2px
2788
- solid
2789
- black;
2790
- }
2791
- .empty {
2792
-
2793
- }
2794
- #yelow {
2795
- #short {
2796
- color: #fea;
2797
- }
2798
- #long {
2799
- color: #ffeeaa;
2800
- }
2801
- #rgba {
2802
- color: rgba(255, 238, 170, 0.1);
2803
- }
2804
- }
2805
-
2806
- #blue {
2807
- #short {
2808
- color: #00f;
2809
- }
2810
- #long {
2811
- color: #0000ff;
2812
- }
2813
- #rgba {
2814
- color: rgba(0, 0, 255, 0.1);
2815
- }
2816
- }
2817
-
2818
- #overflow {
2819
- .a { color: #111111 - #444444; } // #000000
2820
- .b { color: #eee + #fff; } // #ffffff
2821
- .c { color: #aaa * 3; } // #ffffff
2822
- .d { color: #00ee00 + #009900; } // #00ff00
2823
- }
2824
-
2825
- #grey {
2826
- color: rgb(200, 200, 200);
2827
- }
2828
-
2829
- #808080 {
2830
- color: hsl(50, 0%, 50%);
2831
- }
2832
-
2833
- #00ff00 {
2834
- color: hsl(120, 100%, 50%);
2835
- }
2836
- /******************\
2837
- * *
2838
- * Comment Header *
2839
- * *
2840
- \******************/
2841
-
2842
- /*
2843
-
2844
- Comment
2845
-
2846
- */
2847
-
2848
- /*
2849
- * Comment Test
2850
- *
2851
- * - cloudhead (http://cloudhead.net)
2852
- *
2853
- */
2854
-
2855
- ////////////////
2856
- @var: "content";
2857
- ////////////////
2858
-
2859
- /* Colors
2860
- * ------
2861
- * #EDF8FC (background blue)
2862
- * #166C89 (darkest blue)
2863
- *
2864
- * Text:
2865
- * #333 (standard text) // A comment within a comment!
2866
- * #1F9EC9 (standard link)
2867
- *
2868
- */
2869
-
2870
- /* @group Variables
2871
- ------------------- */
2872
- #comments /* boo */ {
2873
- /**/ // An empty comment
2874
- color: red; /* A C-style comment */
2875
- background-color: orange; // A little comment
2876
- font-size: 12px;
2877
-
2878
- /* lost comment */ content: @var;
2879
-
2880
- border: 1px solid black;
2881
-
2882
- // padding & margin //
2883
- padding: 0;
2884
- margin: 2em;
2885
- } //
2886
-
2887
- /* commented out
2888
- #more-comments {
2889
- color: grey;
2890
- }
2891
- */
2892
-
2893
- #last { color: blue }
2894
- //
2895
- .comma-delimited {
2896
- background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg);
2897
- text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
2898
- -moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset,
2899
- 0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
2900
- }
2901
- @font-face {
2902
- font-family: Headline;
2903
- src: local(Futura-Medium),
2904
- url(fonts.svg#MyGeometricModern) format("svg");
2905
- }
2906
- .other {
2907
- -moz-transform: translate(0, 11em) rotate(-90deg);
2908
- }
2909
- p:not([class*="lead"]) {
2910
- color: black;
2911
- }
2912
-
2913
- input[type="text"].class#id[attr=32]:not(1) {
2914
- color: white;
2915
- }
2916
-
2917
- div#id.class[a=1][b=2].class:not(1) {
2918
- color: white;
2919
- }
2920
-
2921
- ul.comma > li:not(:only-child)::after {
2922
- color: white;
2923
- }
2924
-
2925
- ol.comma > li:nth-last-child(2)::after {
2926
- color: white;
2927
- }
2928
-
2929
- li:nth-child(4n+1),
2930
- li:nth-child(-5n),
2931
- li:nth-child(-n+2) {
2932
- color: white;
2933
- }
2934
-
2935
- a[href^="http://"] {
2936
- color: black;
2937
- }
2938
-
2939
- a[href$="http://"] {
2940
- color: black;
2941
- }
2942
-
2943
- form[data-disabled] {
2944
- color: black;
2945
- }
2946
-
2947
- p::before {
2948
- color: black;
2949
- }
2950
- @charset "utf-8";
2951
- div { color: black; }
2952
- div { width: 99%; }
2953
-
2954
- * {
2955
- min-width: 45em;
2956
- }
2957
-
2958
- h1, h2 > a > p, h3 {
2959
- color: none;
2960
- }
2961
-
2962
- div.class {
2963
- color: blue;
2964
- }
2965
-
2966
- div#id {
2967
- color: green;
2968
- }
2969
-
2970
- .class#id {
2971
- color: purple;
2972
- }
2973
-
2974
- .one.two.three {
2975
- color: grey;
2976
- }
2977
-
2978
- @media print {
2979
- font-size: 3em;
2980
- }
2981
-
2982
- @media screen {
2983
- font-size: 10px;
2984
- }
2985
-
2986
- @font-face {
2987
- font-family: 'Garamond Pro';
2988
- src: url("/fonts/garamond-pro.ttf");
2989
- }
2990
-
2991
- a:hover, a:link {
2992
- color: #999;
2993
- }
2994
-
2995
- p, p:first-child {
2996
- text-transform: none;
2997
- }
2998
-
2999
- q:lang(no) {
3000
- quotes: none;
3001
- }
3002
-
3003
- p + h1 {
3004
- font-size: 2.2em;
3005
- }
3006
-
3007
- #shorthands {
3008
- border: 1px solid #000;
3009
- font: 12px/16px Arial;
3010
- margin: 1px 0;
3011
- padding: 0 auto;
3012
- background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
3013
- }
3014
-
3015
- #more-shorthands {
3016
- margin: 0;
3017
- padding: 1px 0 2px 0;
3018
- font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
3019
- }
3020
-
3021
- .misc {
3022
- -moz-border-radius: 2px;
3023
- display: -moz-inline-stack;
3024
- width: .1em;
3025
- background-color: #009998;
3026
- background-image: url(images/image.jpg);
3027
- background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
3028
- margin: ;
3029
- }
3030
-
3031
- #important {
3032
- color: red !important;
3033
- width: 100%!important;
3034
- height: 20px ! important;
3035
- }
3036
-
3037
- #functions {
3038
- @var: 10;
3039
- color: color("evil red"); // #660000
3040
- width: increment(15);
3041
- height: undefined("self");
3042
- border-width: add(2, 3);
3043
- variable: increment(@var);
3044
- }
3045
-
3046
- #built-in {
3047
- @r: 32;
3048
- escaped: e("-Some::weird(#thing, y)");
3049
- lighten: lighten(#ff0000, 50%);
3050
- darken: darken(#ff0000, 50%);
3051
- saturate: saturate(#29332f, 20%);
3052
- desaturate: desaturate(#203c31, 20%);
3053
- greyscale: greyscale(#203c31);
3054
- format: %("rgb(%d, %d, %d)", @r, 128, 64);
3055
- format-string: %("hello %s", "world");
3056
- eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
3057
- }
3058
-
3059
- @var: @a;
3060
- @a: 100%;
3061
-
3062
- .lazy-eval {
3063
- width: @var;
3064
- }
3065
- .mixin (@a: 1px, @b: 50%) {
3066
- width: @a * 5;
3067
- height: @b - 1%;
3068
- }
3069
-
3070
- .mixina (@style, @width, @color: black) {
3071
- border: @width @style @color;
3072
- }
3073
-
3074
- .mixiny
3075
- (@a: 0, @b: 0) {
3076
- margin: @a;
3077
- padding: @b;
3078
- }
3079
-
3080
- .hidden() {
3081
- color: transparent;
3082
- }
3083
-
3084
- .two-args {
3085
- color: blue;
3086
- .mixin(2px, 100%);
3087
- .mixina(dotted, 2px);
3088
- }
3089
-
3090
- .one-arg {
3091
- .mixin(3px);
3092
- }
3093
-
3094
- .no-parens {
3095
- .mixin;
3096
- }
3097
-
3098
- .no-args {
3099
- .mixin();
3100
- }
3101
-
3102
- .var-args {
3103
- @var: 9;
3104
- .mixin(@var, @var * 2);
3105
- }
3106
-
3107
- .multi-mix {
3108
- .mixin(2px, 30%);
3109
- .mixiny(4, 5);
3110
- }
3111
-
3112
- .maxa(@arg1: 10, @arg2: #f00) {
3113
- padding: @arg1 * 2px;
3114
- color: @arg2;
3115
- }
3116
-
3117
- body {
3118
- .maxa(15);
3119
- }
3120
-
3121
- @glob: 5;
3122
- .global-mixin(@a:2) {
3123
- width: @glob + @a;
3124
- }
3125
-
3126
- .scope-mix {
3127
- .global-mixin(3);
3128
- }
3129
-
3130
- .nested-ruleset (@width: 200px) {
3131
- width: @width;
3132
- .column { margin: @width; }
3133
- }
3134
- .content {
3135
- .nested-ruleset(600px);
3136
- }
3137
-
3138
- //
3139
-
3140
- .same-var-name2(@radius) {
3141
- radius: @radius;
3142
- }
3143
- .same-var-name(@radius) {
3144
- .same-var-name2(@radius);
3145
- }
3146
- #same-var-name {
3147
- .same-var-name(5px);
3148
- }
3149
-
3150
- //
3151
-
3152
- .var-inside () {
3153
- @var: 10px;
3154
- width: @var;
3155
- }
3156
- #var-inside { .var-inside; }
3157
- .mix-inner (@var) {
3158
- border-width: @var;
3159
- }
3160
-
3161
- .mix (@a: 10) {
3162
- .inner {
3163
- height: @a * 10;
3164
-
3165
- .innest {
3166
- width: @a;
3167
- .mix-inner(@a * 2);
3168
- }
3169
- }
3170
- }
3171
-
3172
- .class {
3173
- .mix(30);
3174
- }
3175
- .mixin () {
3176
- zero: 0;
3177
- }
3178
- .mixin (@a: 1px) {
3179
- one: 1;
3180
- }
3181
- .mixin (@a) {
3182
- one-req: 1;
3183
- }
3184
- .mixin (@a: 1px, @b: 2px) {
3185
- two: 2;
3186
- }
3187
-
3188
- .mixin (@a, @b, @c) {
3189
- three-req: 3;
3190
- }
3191
-
3192
- .mixin (@a: 1px, @b: 2px, @c: 3px) {
3193
- three: 3;
3194
- }
3195
-
3196
- .zero {
3197
- .mixin();
3198
- }
3199
-
3200
- .one {
3201
- .mixin(1);
3202
- }
3203
-
3204
- .two {
3205
- .mixin(1, 2);
3206
- }
3207
-
3208
- .three {
3209
- .mixin(1, 2, 3);
3210
- }
3211
-
3212
- //
3213
-
3214
- .mixout ('left') {
3215
- left: 1;
3216
- }
3217
-
3218
- .mixout ('right') {
3219
- right: 1;
3220
- }
3221
-
3222
- .left {
3223
- .mixout('left');
3224
- }
3225
- .right {
3226
- .mixout('right');
3227
- }
3228
-
3229
- //
3230
-
3231
- .border (@side, @width) {
3232
- color: black;
3233
- .border-side(@side, @width);
3234
- }
3235
- .border-side (left, @w) {
3236
- border-left: @w;
3237
- }
3238
- .border-side (right, @w) {
3239
- border-right: @w;
3240
- }
3241
-
3242
- .border-right {
3243
- .border(right, 4px);
3244
- }
3245
- .border-left {
3246
- .border(left, 4px);
3247
- }
3248
-
3249
- //
3250
-
3251
-
3252
- .border-radius (@r) {
3253
- both: @r * 10;
3254
- }
3255
- .border-radius (@r, left) {
3256
- left: @r;
3257
- }
3258
- .border-radius (@r, right) {
3259
- right: @r;
3260
- }
3261
-
3262
- .only-right {
3263
- .border-radius(33, right);
3264
- }
3265
- .only-left {
3266
- .border-radius(33, left);
3267
- }
3268
- .left-right {
3269
- .border-radius(33);
3270
- }
3271
- .mixin { border: 1px solid black; }
3272
- .mixout { border-color: orange; }
3273
- .borders { border-style: dashed; }
3274
-
3275
- #namespace {
3276
- .borders {
3277
- border-style: dotted;
3278
- }
3279
- .biohazard {
3280
- content: "death";
3281
- .man {
3282
- color: transparent;
3283
- }
3284
- }
3285
- }
3286
- #theme {
3287
- > .mixin {
3288
- background-color: grey;
3289
- }
3290
- }
3291
- #container {
3292
- color: black;
3293
- .mixin;
3294
- .mixout;
3295
- #theme > .mixin;
3296
- }
3297
-
3298
- #header {
3299
- .milk {
3300
- color: white;
3301
- .mixin;
3302
- #theme > .mixin;
3303
- }
3304
- #cookie {
3305
- .chips {
3306
- #namespace .borders;
3307
- .calories {
3308
- #container;
3309
- }
3310
- }
3311
- .borders;
3312
- }
3313
- }
3314
- .secure-zone { #namespace .biohazard .man; }
3315
- .direct {
3316
- #namespace > .borders;
3317
- }
3318
- #operations {
3319
- color: #110000 + #000011 + #001100; // #111111
3320
- height: 10px / 2px + 6px - 1px * 2; // 9px
3321
- width: 2 * 4 - 5em; // 3em
3322
- .spacing {
3323
- height: 10px / 2px+6px-1px*2;
3324
- width: 2 * 4-5em;
3325
- }
3326
- substraction: 20 - 10 - 5 - 5; // 0
3327
- division: 20 / 5 / 4; // 1
3328
- }
3329
-
3330
- @x: 4;
3331
- @y: 12em;
3332
-
3333
- .with-variables {
3334
- height: @x + @y; // 16em
3335
- width: 12 + @y; // 24em
3336
- size: 5cm - @x; // 1cm
3337
- }
3338
-
3339
- @z: -2;
3340
-
3341
- .negative {
3342
- height: 2px + @z; // 0px
3343
- width: 2px - @z; // 4px
3344
- }
3345
-
3346
- .shorthands {
3347
- padding: -1px 2px 0 -4px; //
3348
- }
3349
-
3350
- .colors {
3351
- color: #123; // #112233
3352
- border-color: #234 + #111111; // #334455
3353
- background-color: #222222 - #fff; // #000000
3354
- .other {
3355
- color: 2 * #111; // #222222
3356
- border-color: #333333 / 3 + #111; // #222222
3357
- }
3358
- }
3359
- .parens {
3360
- @var: 1px;
3361
- border: (@var * 2) solid black;
3362
- margin: (@var * 1) (@var + 2) (4 * 4) 3;
3363
- width: (6 * 6);
3364
- padding: 2px (6px * 6px);
3365
- }
3366
-
3367
- .more-parens {
3368
- @var: (2 * 2);
3369
- padding: (2 * @var) 4 4 (@var * 1px);
3370
- width: (@var * @var) * 6;
3371
- height: (7 * 7) + (8 * 8);
3372
- margin: 4 * (5 + 5) / 2 - (@var * 2);
3373
- //margin: (6 * 6)px;
3374
- }
3375
-
3376
- .nested-parens {
3377
- width: 2 * (4 * (2 + (1 + 6))) - 1;
3378
- height: ((2+3)*(2+3) / (9-4)) + 1;
3379
- }
3380
-
3381
- .mixed-units {
3382
- margin: 2px 4em 1 5pc;
3383
- padding: (2px + 4px) 1em 2px 2;
3384
- }
3385
- #first > .one {
3386
- > #second .two > #deux {
3387
- width: 50%;
3388
- #third {
3389
- &:focus {
3390
- color: black;
3391
- #fifth {
3392
- > #sixth {
3393
- .seventh #eighth {
3394
- + #ninth {
3395
- color: purple;
3396
- }
3397
- }
3398
- }
3399
- }
3400
- }
3401
- height: 100%;
3402
- }
3403
- #fourth, #five, #six {
3404
- color: #110000;
3405
- .seven, .eight > #nine {
3406
- border: 1px solid black;
3407
- }
3408
- #ten {
3409
- color: red;
3410
- }
3411
- }
3412
- }
3413
- font-size: 2em;
3414
- }
3415
- @x: blue;
3416
- @z: transparent;
3417
- @mix: none;
3418
-
3419
- .mixin {
3420
- @mix: #989;
3421
- }
3422
-
3423
- .tiny-scope {
3424
- color: @mix; // #989
3425
- .mixin;
3426
- }
3427
-
3428
- .scope1 {
3429
- @y: orange;
3430
- @z: black;
3431
- color: @x; // blue
3432
- border-color: @z; // black
3433
- .hidden {
3434
- @x: #131313;
3435
- }
3436
- .scope2 {
3437
- @y: red;
3438
- color: @x; // blue
3439
- .scope3 {
3440
- @local: white;
3441
- color: @y; // red
3442
- border-color: @z; // black
3443
- background-color: @local; // white
3444
- }
3445
- }
3446
- }h1, h2, h3 {
3447
- a, p {
3448
- &:hover {
3449
- color: red;
3450
- }
3451
- }
3452
- }
3453
-
3454
- #all { color: blue; }
3455
- #the { color: blue; }
3456
- #same { color: blue; }
3457
-
3458
- ul, li, div, q, blockquote, textarea {
3459
- margin: 0;
3460
- }
3461
-
3462
- td {
3463
- margin: 0;
3464
- padding: 0;
3465
- }
3466
-
3467
- td, input {
3468
- line-height: 1em;
3469
- }
3470
- #strings {
3471
- background-image: url("http://son-of-a-banana.com");
3472
- quotes: "~" "~";
3473
- content: "#*%:&^,)!.(~*})";
3474
- empty: "";
3475
- brackets: "{" "}";
3476
- }
3477
- #comments {
3478
- content: "/* hello */ // not-so-secret";
3479
- }
3480
- #single-quote {
3481
- quotes: "'" "'";
3482
- content: '""#!&""';
3483
- empty: '';
3484
- }
3485
- @a: 2;
3486
- @x: @a * @a;
3487
- @y: @x + 1;
3488
- @z: @x * 2 + @y;
3489
-
3490
- .variables {
3491
- width: @z + 1cm; // 14cm
3492
- }
3493
-
3494
- @b: @a * 10;
3495
- @c: #888;
3496
-
3497
- @fonts: "Trebuchet MS", Verdana, sans-serif;
3498
- @f: @fonts;
3499
-
3500
- @quotes: "~" "~";
3501
- @q: @quotes;
3502
-
3503
- .variables {
3504
- height: @b + @x + 0px; // 24px
3505
- color: @c;
3506
- font-family: @f;
3507
- quotes: @q;
3508
- }
3509
-
3510
- .redefinition {
3511
- @var: 4;
3512
- @var: 2;
3513
- @var: 3;
3514
- three: @var;
3515
- }
3516
-
3517
- .values {
3518
- @a: 'Trebuchet';
3519
- font-family: @a, @a, @a;
3520
- }
3521
-
3522
-
3523
- .whitespace
3524
- { color: white; }
3525
-
3526
- .whitespace
3527
- {
3528
- color: white;
3529
- }
3530
- .whitespace
3531
- { color: white; }
3532
-
3533
- .whitespace{color:white;}
3534
- .whitespace { color : white ; }
3535
-
3536
- .white,
3537
- .space,
3538
- .mania
3539
- { color: white; }
3540
-
3541
- .no-semi-column { color: white }
3542
- .no-semi-column {
3543
- color: white;
3544
- white-space: pre
3545
- }
3546
- .no-semi-column {border: 2px solid white}
3547
- .newlines {
3548
- background: the,
3549
- great,
3550
- wall;
3551
- border: 2px
3552
- solid
3553
- black;
3554
- }
3555
- .empty {
3556
-
3557
- }
3558
- #yelow {
3559
- #short {
3560
- color: #fea;
3561
- }
3562
- #long {
3563
- color: #ffeeaa;
3564
- }
3565
- #rgba {
3566
- color: rgba(255, 238, 170, 0.1);
3567
- }
3568
- }
3569
-
3570
- #blue {
3571
- #short {
3572
- color: #00f;
3573
- }
3574
- #long {
3575
- color: #0000ff;
3576
- }
3577
- #rgba {
3578
- color: rgba(0, 0, 255, 0.1);
3579
- }
3580
- }
3581
-
3582
- #overflow {
3583
- .a { color: #111111 - #444444; } // #000000
3584
- .b { color: #eee + #fff; } // #ffffff
3585
- .c { color: #aaa * 3; } // #ffffff
3586
- .d { color: #00ee00 + #009900; } // #00ff00
3587
- }
3588
-
3589
- #grey {
3590
- color: rgb(200, 200, 200);
3591
- }
3592
-
3593
- #808080 {
3594
- color: hsl(50, 0%, 50%);
3595
- }
3596
-
3597
- #00ff00 {
3598
- color: hsl(120, 100%, 50%);
3599
- }
3600
- /******************\
3601
- * *
3602
- * Comment Header *
3603
- * *
3604
- \******************/
3605
-
3606
- /*
3607
-
3608
- Comment
3609
-
3610
- */
3611
-
3612
- /*
3613
- * Comment Test
3614
- *
3615
- * - cloudhead (http://cloudhead.net)
3616
- *
3617
- */
3618
-
3619
- ////////////////
3620
- @var: "content";
3621
- ////////////////
3622
-
3623
- /* Colors
3624
- * ------
3625
- * #EDF8FC (background blue)
3626
- * #166C89 (darkest blue)
3627
- *
3628
- * Text:
3629
- * #333 (standard text) // A comment within a comment!
3630
- * #1F9EC9 (standard link)
3631
- *
3632
- */
3633
-
3634
- /* @group Variables
3635
- ------------------- */
3636
- #comments /* boo */ {
3637
- /**/ // An empty comment
3638
- color: red; /* A C-style comment */
3639
- background-color: orange; // A little comment
3640
- font-size: 12px;
3641
-
3642
- /* lost comment */ content: @var;
3643
-
3644
- border: 1px solid black;
3645
-
3646
- // padding & margin //
3647
- padding: 0;
3648
- margin: 2em;
3649
- } //
3650
-
3651
- /* commented out
3652
- #more-comments {
3653
- color: grey;
3654
- }
3655
- */
3656
-
3657
- #last { color: blue }
3658
- //
3659
- .comma-delimited {
3660
- background: url(bg.jpg) no-repeat, url(bg.png) repeat-x top left, url(bg);
3661
- text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
3662
- -moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset,
3663
- 0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
3664
- }
3665
- @font-face {
3666
- font-family: Headline;
3667
- src: local(Futura-Medium),
3668
- url(fonts.svg#MyGeometricModern) format("svg");
3669
- }
3670
- .other {
3671
- -moz-transform: translate(0, 11em) rotate(-90deg);
3672
- }
3673
- p:not([class*="lead"]) {
3674
- color: black;
3675
- }
3676
-
3677
- input[type="text"].class#id[attr=32]:not(1) {
3678
- color: white;
3679
- }
3680
-
3681
- div#id.class[a=1][b=2].class:not(1) {
3682
- color: white;
3683
- }
3684
-
3685
- ul.comma > li:not(:only-child)::after {
3686
- color: white;
3687
- }
3688
-
3689
- ol.comma > li:nth-last-child(2)::after {
3690
- color: white;
3691
- }
3692
-
3693
- li:nth-child(4n+1),
3694
- li:nth-child(-5n),
3695
- li:nth-child(-n+2) {
3696
- color: white;
3697
- }
3698
-
3699
- a[href^="http://"] {
3700
- color: black;
3701
- }
3702
-
3703
- a[href$="http://"] {
3704
- color: black;
3705
- }
3706
-
3707
- form[data-disabled] {
3708
- color: black;
3709
- }
3710
-
3711
- p::before {
3712
- color: black;
3713
- }
3714
- @charset "utf-8";
3715
- div { color: black; }
3716
- div { width: 99%; }
3717
-
3718
- * {
3719
- min-width: 45em;
3720
- }
3721
-
3722
- h1, h2 > a > p, h3 {
3723
- color: none;
3724
- }
3725
-
3726
- div.class {
3727
- color: blue;
3728
- }
3729
-
3730
- div#id {
3731
- color: green;
3732
- }
3733
-
3734
- .class#id {
3735
- color: purple;
3736
- }
3737
-
3738
- .one.two.three {
3739
- color: grey;
3740
- }
3741
-
3742
- @media print {
3743
- font-size: 3em;
3744
- }
3745
-
3746
- @media screen {
3747
- font-size: 10px;
3748
- }
3749
-
3750
- @font-face {
3751
- font-family: 'Garamond Pro';
3752
- src: url("/fonts/garamond-pro.ttf");
3753
- }
3754
-
3755
- a:hover, a:link {
3756
- color: #999;
3757
- }
3758
-
3759
- p, p:first-child {
3760
- text-transform: none;
3761
- }
3762
-
3763
- q:lang(no) {
3764
- quotes: none;
3765
- }
3766
-
3767
- p + h1 {
3768
- font-size: 2.2em;
3769
- }
3770
-
3771
- #shorthands {
3772
- border: 1px solid #000;
3773
- font: 12px/16px Arial;
3774
- margin: 1px 0;
3775
- padding: 0 auto;
3776
- background: url("http://www.lesscss.org/spec.html") no-repeat 0 4px;
3777
- }
3778
-
3779
- #more-shorthands {
3780
- margin: 0;
3781
- padding: 1px 0 2px 0;
3782
- font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
3783
- }
3784
-
3785
- .misc {
3786
- -moz-border-radius: 2px;
3787
- display: -moz-inline-stack;
3788
- width: .1em;
3789
- background-color: #009998;
3790
- background-image: url(images/image.jpg);
3791
- background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
3792
- margin: ;
3793
- }
3794
-
3795
- #important {
3796
- color: red !important;
3797
- width: 100%!important;
3798
- height: 20px ! important;
3799
- }
3800
-
3801
- #functions {
3802
- @var: 10;
3803
- color: color("evil red"); // #660000
3804
- width: increment(15);
3805
- height: undefined("self");
3806
- border-width: add(2, 3);
3807
- variable: increment(@var);
3808
- }
3809
-
3810
- #built-in {
3811
- @r: 32;
3812
- escaped: e("-Some::weird(#thing, y)");
3813
- lighten: lighten(#ff0000, 50%);
3814
- darken: darken(#ff0000, 50%);
3815
- saturate: saturate(#29332f, 20%);
3816
- desaturate: desaturate(#203c31, 20%);
3817
- greyscale: greyscale(#203c31);
3818
- format: %("rgb(%d, %d, %d)", @r, 128, 64);
3819
- format-string: %("hello %s", "world");
3820
- eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
3821
- }
3822
-
3823
- @var: @a;
3824
- @a: 100%;
3825
-
3826
- .lazy-eval {
3827
- width: @var;
3828
- }
3829
- .mixin (@a: 1px, @b: 50%) {
3830
- width: @a * 5;
3831
- height: @b - 1%;
3832
- }
3833
-
3834
- .mixina (@style, @width, @color: black) {
3835
- border: @width @style @color;
3836
- }
3837
-
3838
- .mixiny
3839
- (@a: 0, @b: 0) {
3840
- margin: @a;
3841
- padding: @b;
3842
- }
3843
-
3844
- .hidden() {
3845
- color: transparent;
3846
- }
3847
-
3848
- .two-args {
3849
- color: blue;
3850
- .mixin(2px, 100%);
3851
- .mixina(dotted, 2px);
3852
- }
3853
-
3854
- .one-arg {
3855
- .mixin(3px);
3856
- }
3857
-
3858
- .no-parens {
3859
- .mixin;
3860
- }
3861
-
3862
- .no-args {
3863
- .mixin();
3864
- }
3865
-
3866
- .var-args {
3867
- @var: 9;
3868
- .mixin(@var, @var * 2);
3869
- }
3870
-
3871
- .multi-mix {
3872
- .mixin(2px, 30%);
3873
- .mixiny(4, 5);
3874
- }
3875
-
3876
- .maxa(@arg1: 10, @arg2: #f00) {
3877
- padding: @arg1 * 2px;
3878
- color: @arg2;
3879
- }
3880
-
3881
- body {
3882
- .maxa(15);
3883
- }
3884
-
3885
- @glob: 5;
3886
- .global-mixin(@a:2) {
3887
- width: @glob + @a;
3888
- }
3889
-
3890
- .scope-mix {
3891
- .global-mixin(3);
3892
- }
3893
-
3894
- .nested-ruleset (@width: 200px) {
3895
- width: @width;
3896
- .column { margin: @width; }
3897
- }
3898
- .content {
3899
- .nested-ruleset(600px);
3900
- }
3901
-
3902
- //
3903
-
3904
- .same-var-name2(@radius) {
3905
- radius: @radius;
3906
- }
3907
- .same-var-name(@radius) {
3908
- .same-var-name2(@radius);
3909
- }
3910
- #same-var-name {
3911
- .same-var-name(5px);
3912
- }
3913
-
3914
- //
3915
-
3916
- .var-inside () {
3917
- @var: 10px;
3918
- width: @var;
3919
- }
3920
- #var-inside { .var-inside; }
3921
- .mix-inner (@var) {
3922
- border-width: @var;
3923
- }
3924
-
3925
- .mix (@a: 10) {
3926
- .inner {
3927
- height: @a * 10;
3928
-
3929
- .innest {
3930
- width: @a;
3931
- .mix-inner(@a * 2);
3932
- }
3933
- }
3934
- }
3935
-
3936
- .class {
3937
- .mix(30);
3938
- }
3939
- .mixin () {
3940
- zero: 0;
3941
- }
3942
- .mixin (@a: 1px) {
3943
- one: 1;
3944
- }
3945
- .mixin (@a) {
3946
- one-req: 1;
3947
- }
3948
- .mixin (@a: 1px, @b: 2px) {
3949
- two: 2;
3950
- }
3951
-
3952
- .mixin (@a, @b, @c) {
3953
- three-req: 3;
3954
- }
3955
-
3956
- .mixin (@a: 1px, @b: 2px, @c: 3px) {
3957
- three: 3;
3958
- }
3959
-
3960
- .zero {
3961
- .mixin();
3962
- }
3963
-
3964
- .one {
3965
- .mixin(1);
3966
- }
3967
-
3968
- .two {
3969
- .mixin(1, 2);
3970
- }
3971
-
3972
- .three {
3973
- .mixin(1, 2, 3);
3974
- }
3975
-
3976
- //
3977
-
3978
- .mixout ('left') {
3979
- left: 1;
3980
- }