File: sass

package info (click to toggle)
ruby-rouge 4.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,836 kB
  • sloc: ruby: 38,168; sed: 2,071; perl: 152; makefile: 8
file content (408 lines) | stat: -rw-r--r-- 7,538 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
@for $i from 1 through 3
  .item-#{$i}
    width: 2em * $i

%a-placeholder
  @extend #foo%another-placeholder

// mixins.sass
$yellow: #fc0

=bordered
  :border
    :top
      :width 2px
      :color $yellow
    :left
      :width 1px
      :color #000
  -moz-border-radius: 10px

=header-font
  :color #f00
  :font
    :size 20px

=compound
  +header-font
  +bordered

=complex
  +header-font
  text:
    decoration: none
  &:after
    content: "."
    display: block
    height: 0
    clear: both
    visibility: hidden
  * html &
    height: 1px
    +header-font
=deep
  a:hover
    :text-decoration underline
    +compound

#main
  :width 15em
  :color #0000ff
  p
    +bordered
    :border
      :style dotted
      :width 2px
  .cool
    :width 100px

  a
    &[href^="mailto:"]
      :white-space nowrap

  div
    a[href^="mailto:"]
      :white-space nowrap

#left
  +bordered
  :font
    :size 2em
    :weight bold
  :float left

#right
  +bordered
  +header-font
  :float right

.bordered
  +bordered

.complex
  +complex

.more-complex
  +complex
  +deep
  display: inline
  -webkit-nonsense:
    top-right: 1px
    bottom-left: 1px
// complex.sass

body
  :margin 0
  :font   0.85em "Lucida Grande", "Trebuchet MS", Verdana, sans-serif
  :color #fff
  :background url(/images/global_bg.gif)

#page
  :width      900px
  :margin     0 auto
  :background #440008
  :border-top
    :width 5px
    :style solid
    :color #ff8500

#header
  :height  75px
  :padding 0
  h1
    :float  left
    :width  274px
    :height 75px
    :margin 0
    :background
      :image url(/images/global_logo.gif)
      /* Crazy nested comment
      :repeat no-repeat
    :text-indent -9999px
  .status
    :float   right
    :padding
      :top .5em
      :left .5em
      :right .5em
      :bottom 0
    p
      :float  left
      :margin
        :top 0
        :right 0.5em
        :bottom 0
        :left 0
    ul
      :float   left
      :margin  0
      :padding 0
    li
      :list-style-type none
      :display inline
      :margin 0 5px
    a:link, a:visited
      :color #ff8500
      :text-decoration none
    a:hover
      :text-decoration underline
  .search
    :float  right
    :clear  right
    :margin 12px 0 0 0
    form
      :margin 0
    input
      :margin 0 3px 0 0
      :padding 2px
      :border none

#menu
  :clear both
  :text-align right
  :height 20px
  :border-bottom 5px solid #006b95
  :background #00a4e4
  .contests
    ul
      :margin 0 5px 0 0
      :padding 0
      li
        :list-style-type none
        :margin 0 5px
        :padding 5px 5px 0 5px
        :display inline
        :font-size 1.1em
        // This comment is properly indented
        :color #fff
        :background #00a4e4
    a:link, a:visited
      :color #fff
      :text-decoration none
      :font-weight bold
    a:hover
      :text-decoration underline

//General content information
#content
  :clear both
  .container
    :clear both
    .column
      :float left
      .right
        :float right
  a:link, a:visited
    :color #93d700
    :text-decoration none
  a:hover
    :text-decoration underline

// A hard tab:


#content
  p, div
    :width 40em
    li, dt, dd
      :color #ddffdd
      :background-color #4792bb
  .container.video
    .column.left
      :width 200px
      .box
        :margin-top 10px
        p
          :margin 0 1em auto 1em
      .box.participants
        img
          :float  left
          :margin 0 1em auto 1em
          :border 1px solid #6e000d
            :style solid
        h2
          :margin 0 0 10px 0
          :padding 0.5em
          /* The background image is a gif!
          :background #6e000d url(/images/hdr_participant.gif) 2px 2px no-repeat
          /* Okay check this out
            Multiline comments
            Wow dude
            I mean seriously, WOW
          :text-indent -9999px
          // And also...
            Multiline comments that don't output!
            Snazzy, no?
          :border
            :top
              :width 5px
              :style solid
              :color #a20013
            :right
              :width 1px
              :style dotted
    .column.middle
      :width 500px
    .column.right
      :width 200px
      .box
        :margin-top 0
        p
          :margin 0 1em auto 1em
    .column
      p
        :margin-top 0

#content.contests
  .container.information
    .column.right
      .box
        :margin 1em 0
      .box.videos
        .thumbnail img
          :width         200px
          :height        150px
          :margin-bottom 5px
        a:link, a:visited
          :color #93d700
          :text-decoration none
        a:hover
          :text-decoration underline
      .box.votes
        a
          :display block
          :width  200px
          :height 60px
          :margin 15px 0
          :background url(/images/btn_votenow.gif) no-repeat
          :text-indent -9999px
          :outline none
          :border  none
        h2
          :margin  52px 0 10px 0
          :padding 0.5em
          :background #6e000d url(/images/hdr_videostats.gif) 2px 2px no-repeat
          :text-indent -9999px
          :border-top 5px solid #a20013

#content.contests
  .container.video
    .box.videos
      h2
        :margin  0
        :padding 0.5em
        :background #6e000d url(/images/hdr_newestclips.gif) 2px 2px no-repeat
        :text-indent -9999px
        :border-top 5px solid #a20013
      table
        :width 100
        td
          :padding 1em
          :width 25
          :vertical-align top
          p
            :margin 0 0 5px 0
          a:link, a:visited
            :color #93d700
            :text-decoration none
          a:hover
            :text-decoration underline
      .thumbnail
        :float left
        img
          :width  80px
          :height 60px
          :margin 0 10px 0 0
          :border 1px solid #6e000d

#content
  .container.comments
    .column
      :margin-top 15px
    .column.left
      :width 600px
      .box
        ol
          :margin  0
          :padding 0
        li
          :list-style-type none
          :padding 10px
          :margin 0 0 1em 0
          :background #6e000d
          :border-top 5px solid #a20013
          div
            :margin-bottom 1em
          ul
            :text-align right
            li
              :display inline
              :border none
              :padding 0
    .column.right
      :width        290px
      :padding-left 10px
      h2
        :margin 0
        :padding 0.5em
        :background #6e000d url(/images/hdr_addcomment.gif) 2px 2px no-repeat
        :text-indent -9999px
        :border-top 5px solid #a20013
      .box
        textarea
          :width  290px
          :height 100px
          :border none

#footer
  :margin-top 10px
  :padding    1.2em 1.5em
  :background #ff8500
  ul
    :margin 0
    :padding 0
    :list-style-type none
    li
      :display inline
      :margin  0 0.5em
      :color   #440008
  ul.links
    :float left
    a:link, a:visited
      :color #440008
      :text-decoration none
    a:hover
      :text-decoration underline
  ul.copyright
    :float right


.clear
  :clear both

.centered
  :text-align center

img
  :border none

button.short
  :width   60px
  :height  22px
  :padding 0 0 2px 0
  :color   #fff
  :border  none
  :background url(/images/btn_short.gif) no-repeat

table
  :border-collapse collapse

body
  &.open > button::after
    color: red

body
  &::after
    color: red

// Comment at EOF (#797)