compass 0.13.alpha.12 → 1.0.0.alpha.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +61 -89
- data/VERSION +1 -0
- data/features/command_line.feature +1 -1
- data/features/step_definitions/command_line_steps.rb +0 -2
- data/lib/compass.rb +21 -2
- data/lib/compass/commands.rb +2 -0
- data/lib/compass/commands/print_version.rb +1 -12
- data/lib/compass/compiler.rb +1 -0
- data/lib/compass/configuration/adapters.rb +3 -0
- data/lib/compass/configuration/comments.rb +4 -1
- data/lib/compass/configuration/helpers.rb +1 -58
- data/lib/compass/configuration/serialization.rb +3 -0
- data/lib/compass/errors.rb +1 -3
- data/lib/compass/frameworks.rb +26 -4
- data/lib/compass/sass_extensions.rb +0 -1
- data/lib/compass/sass_extensions/functions.rb +2 -26
- data/lib/compass/sass_extensions/functions/sprites.rb +23 -23
- data/lib/compass/sass_extensions/sprites/image.rb +24 -29
- data/lib/compass/sprite_importer/content.erb +1 -1
- data/lib/compass/util.rb +1 -1
- data/lib/compass/version.rb +18 -35
- data/test/fixtures/stylesheets/compass/css/fonts.css +2 -2
- data/test/fixtures/stylesheets/envtest/tmp/env.css +2 -2
- data/test/fixtures/stylesheets/valid/css/another_simple.css +4 -0
- data/test/fixtures/stylesheets/valid/css/simple.css +4 -0
- data/test/integrations/sprites_test.rb +86 -79
- data/test/test_helper.rb +7 -5
- data/test/units/caniuse_test.rb +4 -4
- data/test/units/command_line_test.rb +5 -4
- data/test/units/configuration_test.rb +35 -2
- data/test/units/sass_extensions_test.rb +2 -2
- data/test/units/sass_extenstions/gradients_test.rb +3 -3
- data/test/units/sprites/sprite_map_test.rb +5 -2
- metadata +21 -506
- data/README.markdown +0 -30
- data/VERSION.yml +0 -6
- data/data/caniuse.json +0 -1
- data/data/caniuse_extras/css-placeholder.json +0 -171
- data/examples/README.markdown +0 -4
- data/examples/blueprint_default/config.rb +0 -7
- data/examples/blueprint_default/images/grid.png +0 -0
- data/examples/blueprint_default/index.html.haml +0 -85
- data/examples/blueprint_default/parts/elements.html.haml +0 -282
- data/examples/blueprint_default/parts/forms.html.haml +0 -200
- data/examples/blueprint_default/parts/grid.html.haml +0 -274
- data/examples/blueprint_default/parts/test-small.jpg +0 -0
- data/examples/blueprint_default/parts/test.jpg +0 -0
- data/examples/blueprint_default/parts/valid.png +0 -0
- data/examples/blueprint_default/src/ie.scss +0 -3
- data/examples/blueprint_default/src/images/grid.png +0 -0
- data/examples/blueprint_default/src/print.scss +0 -3
- data/examples/blueprint_default/src/screen.scss +0 -9
- data/examples/blueprint_plugins/config.rb +0 -8
- data/examples/blueprint_plugins/images/buttons/cross.png +0 -0
- data/examples/blueprint_plugins/images/buttons/key.png +0 -0
- data/examples/blueprint_plugins/images/buttons/tick.png +0 -0
- data/examples/blueprint_plugins/images/grid.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/doc.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/email.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/external.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/feed.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/im.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/pdf.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/visited.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/xls.png +0 -0
- data/examples/blueprint_plugins/images/test-small.jpg +0 -0
- data/examples/blueprint_plugins/images/test.jpg +0 -0
- data/examples/blueprint_plugins/images/valid.png +0 -0
- data/examples/blueprint_plugins/index.html.haml +0 -96
- data/examples/blueprint_plugins/plugins/buttons.html.haml +0 -67
- data/examples/blueprint_plugins/plugins/fancy_type.html.haml +0 -100
- data/examples/blueprint_plugins/plugins/link_icons.html.haml +0 -61
- data/examples/blueprint_plugins/plugins/rtl.html.haml +0 -100
- data/examples/blueprint_plugins/src/buttons.scss +0 -47
- data/examples/blueprint_plugins/src/ie.scss +0 -3
- data/examples/blueprint_plugins/src/images/grid.png +0 -0
- data/examples/blueprint_plugins/src/link_icons.scss +0 -13
- data/examples/blueprint_plugins/src/print.scss +0 -3
- data/examples/blueprint_plugins/src/rtl_screen.scss +0 -15
- data/examples/blueprint_plugins/src/screen.scss +0 -12
- data/examples/blueprint_scoped/images/grid.png +0 -0
- data/examples/blueprint_scoped/src/ie.scss +0 -4
- data/examples/blueprint_scoped/src/print.scss +0 -4
- data/examples/blueprint_scoped/src/screen.scss +0 -5
- data/examples/blueprint_scoped_form/images/grid.png +0 -0
- data/examples/blueprint_scoped_form/src/ie.scss +0 -3
- data/examples/blueprint_scoped_form/src/print.scss +0 -3
- data/examples/blueprint_scoped_form/src/screen.scss +0 -15
- data/examples/blueprint_semantic/config.rb +0 -7
- data/examples/blueprint_semantic/images/grid.png +0 -0
- data/examples/blueprint_semantic/index.html.haml +0 -86
- data/examples/blueprint_semantic/parts/fancy_type.html.haml +0 -100
- data/examples/blueprint_semantic/parts/liquid.html.haml +0 -100
- data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
- data/examples/blueprint_semantic/parts/test.jpg +0 -0
- data/examples/blueprint_semantic/parts/valid.png +0 -0
- data/examples/blueprint_semantic/src/ie.scss +0 -3
- data/examples/blueprint_semantic/src/images/grid.png +0 -0
- data/examples/blueprint_semantic/src/liquid.scss +0 -69
- data/examples/blueprint_semantic/src/print.scss +0 -3
- data/examples/blueprint_semantic/src/screen.scss +0 -69
- data/examples/compass/bootstrap.rb +0 -4
- data/examples/compass/clean.rb +0 -2
- data/examples/compass/compass.html.haml +0 -39
- data/examples/compass/config.rb +0 -8
- data/examples/compass/headers.txt +0 -7
- data/examples/compass/images/blue_arrow.gif +0 -0
- data/examples/compass/images/border2.png +0 -0
- data/examples/compass/images/emblem/favorite.png +0 -0
- data/examples/compass/images/emblem/important.png +0 -0
- data/examples/compass/images/emblem/photos.png +0 -0
- data/examples/compass/images/emblem/readonly.png +0 -0
- data/examples/compass/images/emblem/symbolic-link.png +0 -0
- data/examples/compass/images/emblem/system.png +0 -0
- data/examples/compass/images/emblem/unreadable.png +0 -0
- data/examples/compass/images/flag/ad.png +0 -0
- data/examples/compass/images/flag/ae.png +0 -0
- data/examples/compass/images/flag/af.png +0 -0
- data/examples/compass/images/flag/ag.png +0 -0
- data/examples/compass/images/flag/ai.png +0 -0
- data/examples/compass/images/flag/al.png +0 -0
- data/examples/compass/images/flag/am.png +0 -0
- data/examples/compass/images/flag/an.png +0 -0
- data/examples/compass/images/flag/ao.png +0 -0
- data/examples/compass/images/flag/ar.png +0 -0
- data/examples/compass/images/flag/as.png +0 -0
- data/examples/compass/images/flag/at.png +0 -0
- data/examples/compass/images/flag/au.png +0 -0
- data/examples/compass/images/flag/aw.png +0 -0
- data/examples/compass/images/flag/ax.png +0 -0
- data/examples/compass/images/flag/az.png +0 -0
- data/examples/compass/images/flag/ba.png +0 -0
- data/examples/compass/images/flag/bb.png +0 -0
- data/examples/compass/images/flag/bd.png +0 -0
- data/examples/compass/images/flag/be.png +0 -0
- data/examples/compass/images/flag/bf.png +0 -0
- data/examples/compass/images/flag/bg.png +0 -0
- data/examples/compass/images/flag/bh.png +0 -0
- data/examples/compass/images/flag/bi.png +0 -0
- data/examples/compass/images/flag/bj.png +0 -0
- data/examples/compass/images/flag/bm.png +0 -0
- data/examples/compass/images/flag/bn.png +0 -0
- data/examples/compass/images/flag/bo.png +0 -0
- data/examples/compass/images/flag/br.png +0 -0
- data/examples/compass/images/flag/bs.png +0 -0
- data/examples/compass/images/flag/bt.png +0 -0
- data/examples/compass/images/flag/bv.png +0 -0
- data/examples/compass/images/flag/bw.png +0 -0
- data/examples/compass/images/flag/by.png +0 -0
- data/examples/compass/images/flag/bz.png +0 -0
- data/examples/compass/images/flag/ca.png +0 -0
- data/examples/compass/images/flag/catalonia.png +0 -0
- data/examples/compass/images/flag/cc.png +0 -0
- data/examples/compass/images/flag/cd.png +0 -0
- data/examples/compass/images/flag/cf.png +0 -0
- data/examples/compass/images/flag/cg.png +0 -0
- data/examples/compass/images/flag/ch.png +0 -0
- data/examples/compass/images/flag/ci.png +0 -0
- data/examples/compass/images/flag/ck.png +0 -0
- data/examples/compass/images/flag/cl.png +0 -0
- data/examples/compass/images/flag/cm.png +0 -0
- data/examples/compass/images/flag/cn.png +0 -0
- data/examples/compass/images/flag/co.png +0 -0
- data/examples/compass/images/flag/cr.png +0 -0
- data/examples/compass/images/flag/cs.png +0 -0
- data/examples/compass/images/flag/cu.png +0 -0
- data/examples/compass/images/flag/cv.png +0 -0
- data/examples/compass/images/flag/cx.png +0 -0
- data/examples/compass/images/flag/cy.png +0 -0
- data/examples/compass/images/flag/cz.png +0 -0
- data/examples/compass/images/flag/de.png +0 -0
- data/examples/compass/images/flag/dj.png +0 -0
- data/examples/compass/images/flag/dk.png +0 -0
- data/examples/compass/images/flag/dm.png +0 -0
- data/examples/compass/images/flag/do.png +0 -0
- data/examples/compass/images/flag/dz.png +0 -0
- data/examples/compass/images/flag/ec.png +0 -0
- data/examples/compass/images/flag/ee.png +0 -0
- data/examples/compass/images/flag/eg.png +0 -0
- data/examples/compass/images/flag/eh.png +0 -0
- data/examples/compass/images/flag/england.png +0 -0
- data/examples/compass/images/flag/er.png +0 -0
- data/examples/compass/images/flag/es.png +0 -0
- data/examples/compass/images/flag/et.png +0 -0
- data/examples/compass/images/flag/europeanunion.png +0 -0
- data/examples/compass/images/flag/fam.png +0 -0
- data/examples/compass/images/flag/fi.png +0 -0
- data/examples/compass/images/flag/fj.png +0 -0
- data/examples/compass/images/flag/fk.png +0 -0
- data/examples/compass/images/flag/fm.png +0 -0
- data/examples/compass/images/flag/fo.png +0 -0
- data/examples/compass/images/flag/fr.png +0 -0
- data/examples/compass/images/flag/ga.png +0 -0
- data/examples/compass/images/flag/gb.png +0 -0
- data/examples/compass/images/flag/gd.png +0 -0
- data/examples/compass/images/flag/ge.png +0 -0
- data/examples/compass/images/flag/gf.png +0 -0
- data/examples/compass/images/flag/gh.png +0 -0
- data/examples/compass/images/flag/gi.png +0 -0
- data/examples/compass/images/flag/gl.png +0 -0
- data/examples/compass/images/flag/gm.png +0 -0
- data/examples/compass/images/flag/gn.png +0 -0
- data/examples/compass/images/flag/gp.png +0 -0
- data/examples/compass/images/flag/gq.png +0 -0
- data/examples/compass/images/flag/gr.png +0 -0
- data/examples/compass/images/flag/gs.png +0 -0
- data/examples/compass/images/flag/gt.png +0 -0
- data/examples/compass/images/flag/gu.png +0 -0
- data/examples/compass/images/flag/gw.png +0 -0
- data/examples/compass/images/flag/gy.png +0 -0
- data/examples/compass/images/flag/hk.png +0 -0
- data/examples/compass/images/flag/hm.png +0 -0
- data/examples/compass/images/flag/hn.png +0 -0
- data/examples/compass/images/flag/hr.png +0 -0
- data/examples/compass/images/flag/ht.png +0 -0
- data/examples/compass/images/flag/hu.png +0 -0
- data/examples/compass/images/flag/id-2.png +0 -0
- data/examples/compass/images/flag/ie.png +0 -0
- data/examples/compass/images/flag/il.png +0 -0
- data/examples/compass/images/flag/in.png +0 -0
- data/examples/compass/images/flag/io.png +0 -0
- data/examples/compass/images/flag/iq.png +0 -0
- data/examples/compass/images/flag/ir.png +0 -0
- data/examples/compass/images/flag/is.png +0 -0
- data/examples/compass/images/flag/it.png +0 -0
- data/examples/compass/images/flag/jm.png +0 -0
- data/examples/compass/images/flag/jo.png +0 -0
- data/examples/compass/images/flag/jp.png +0 -0
- data/examples/compass/images/flag/ke.png +0 -0
- data/examples/compass/images/flag/kg.png +0 -0
- data/examples/compass/images/flag/kh.png +0 -0
- data/examples/compass/images/flag/ki.png +0 -0
- data/examples/compass/images/flag/km.png +0 -0
- data/examples/compass/images/flag/kn.png +0 -0
- data/examples/compass/images/flag/kp.png +0 -0
- data/examples/compass/images/flag/kr.png +0 -0
- data/examples/compass/images/flag/kw.png +0 -0
- data/examples/compass/images/flag/ky.png +0 -0
- data/examples/compass/images/flag/kz.png +0 -0
- data/examples/compass/images/flag/la.png +0 -0
- data/examples/compass/images/flag/lb.png +0 -0
- data/examples/compass/images/flag/lc.png +0 -0
- data/examples/compass/images/flag/li.png +0 -0
- data/examples/compass/images/flag/lk.png +0 -0
- data/examples/compass/images/flag/lr.png +0 -0
- data/examples/compass/images/flag/ls.png +0 -0
- data/examples/compass/images/flag/lt.png +0 -0
- data/examples/compass/images/flag/lu.png +0 -0
- data/examples/compass/images/flag/lv.png +0 -0
- data/examples/compass/images/flag/ly.png +0 -0
- data/examples/compass/images/flag/ma.png +0 -0
- data/examples/compass/images/flag/mc.png +0 -0
- data/examples/compass/images/flag/md.png +0 -0
- data/examples/compass/images/flag/me.png +0 -0
- data/examples/compass/images/flag/mg.png +0 -0
- data/examples/compass/images/flag/mh.png +0 -0
- data/examples/compass/images/flag/mk.png +0 -0
- data/examples/compass/images/flag/ml.png +0 -0
- data/examples/compass/images/flag/mm.png +0 -0
- data/examples/compass/images/flag/mn.png +0 -0
- data/examples/compass/images/flag/mo.png +0 -0
- data/examples/compass/images/flag/mp.png +0 -0
- data/examples/compass/images/flag/mq.png +0 -0
- data/examples/compass/images/flag/mr.png +0 -0
- data/examples/compass/images/flag/ms.png +0 -0
- data/examples/compass/images/flag/mt.png +0 -0
- data/examples/compass/images/flag/mu.png +0 -0
- data/examples/compass/images/flag/mv.png +0 -0
- data/examples/compass/images/flag/mw.png +0 -0
- data/examples/compass/images/flag/mx.png +0 -0
- data/examples/compass/images/flag/my.png +0 -0
- data/examples/compass/images/flag/mz.png +0 -0
- data/examples/compass/images/flag/na.png +0 -0
- data/examples/compass/images/flag/nc.png +0 -0
- data/examples/compass/images/flag/ne.png +0 -0
- data/examples/compass/images/flag/nf.png +0 -0
- data/examples/compass/images/flag/ng.png +0 -0
- data/examples/compass/images/flag/ni.png +0 -0
- data/examples/compass/images/flag/nl.png +0 -0
- data/examples/compass/images/flag/no.png +0 -0
- data/examples/compass/images/flag/np.png +0 -0
- data/examples/compass/images/flag/nr.png +0 -0
- data/examples/compass/images/flag/nu.png +0 -0
- data/examples/compass/images/flag/nz.png +0 -0
- data/examples/compass/images/flag/om.png +0 -0
- data/examples/compass/images/flag/pa.png +0 -0
- data/examples/compass/images/flag/pe.png +0 -0
- data/examples/compass/images/flag/pf.png +0 -0
- data/examples/compass/images/flag/pg.png +0 -0
- data/examples/compass/images/flag/ph.png +0 -0
- data/examples/compass/images/flag/pk.png +0 -0
- data/examples/compass/images/flag/pl.png +0 -0
- data/examples/compass/images/flag/pm.png +0 -0
- data/examples/compass/images/flag/pn.png +0 -0
- data/examples/compass/images/flag/pr.png +0 -0
- data/examples/compass/images/flag/ps.png +0 -0
- data/examples/compass/images/flag/pt.png +0 -0
- data/examples/compass/images/flag/pw.png +0 -0
- data/examples/compass/images/flag/py.png +0 -0
- data/examples/compass/images/flag/qa.png +0 -0
- data/examples/compass/images/flag/re.png +0 -0
- data/examples/compass/images/flag/ro.png +0 -0
- data/examples/compass/images/flag/rs.png +0 -0
- data/examples/compass/images/flag/ru.png +0 -0
- data/examples/compass/images/flag/rw.png +0 -0
- data/examples/compass/images/flag/sa.png +0 -0
- data/examples/compass/images/flag/sb.png +0 -0
- data/examples/compass/images/flag/sc.png +0 -0
- data/examples/compass/images/flag/scotland.png +0 -0
- data/examples/compass/images/flag/sd.png +0 -0
- data/examples/compass/images/flag/se.png +0 -0
- data/examples/compass/images/flag/sg.png +0 -0
- data/examples/compass/images/flag/sh.png +0 -0
- data/examples/compass/images/flag/si.png +0 -0
- data/examples/compass/images/flag/sj.png +0 -0
- data/examples/compass/images/flag/sk.png +0 -0
- data/examples/compass/images/flag/sl.png +0 -0
- data/examples/compass/images/flag/sm.png +0 -0
- data/examples/compass/images/flag/sn.png +0 -0
- data/examples/compass/images/flag/so.png +0 -0
- data/examples/compass/images/flag/sr.png +0 -0
- data/examples/compass/images/flag/st.png +0 -0
- data/examples/compass/images/flag/sv.png +0 -0
- data/examples/compass/images/flag/sy.png +0 -0
- data/examples/compass/images/flag/sz.png +0 -0
- data/examples/compass/images/flag/tc.png +0 -0
- data/examples/compass/images/flag/td.png +0 -0
- data/examples/compass/images/flag/tf.png +0 -0
- data/examples/compass/images/flag/tg.png +0 -0
- data/examples/compass/images/flag/th.png +0 -0
- data/examples/compass/images/flag/tj.png +0 -0
- data/examples/compass/images/flag/tk.png +0 -0
- data/examples/compass/images/flag/tl.png +0 -0
- data/examples/compass/images/flag/tm.png +0 -0
- data/examples/compass/images/flag/tn.png +0 -0
- data/examples/compass/images/flag/to.png +0 -0
- data/examples/compass/images/flag/tr.png +0 -0
- data/examples/compass/images/flag/tt.png +0 -0
- data/examples/compass/images/flag/tv.png +0 -0
- data/examples/compass/images/flag/tw.png +0 -0
- data/examples/compass/images/flag/tz.png +0 -0
- data/examples/compass/images/flag/ua.png +0 -0
- data/examples/compass/images/flag/ug.png +0 -0
- data/examples/compass/images/flag/um.png +0 -0
- data/examples/compass/images/flag/us.png +0 -0
- data/examples/compass/images/flag/uy.png +0 -0
- data/examples/compass/images/flag/uz.png +0 -0
- data/examples/compass/images/flag/va.png +0 -0
- data/examples/compass/images/flag/vc.png +0 -0
- data/examples/compass/images/flag/ve.png +0 -0
- data/examples/compass/images/flag/vg.png +0 -0
- data/examples/compass/images/flag/vi.png +0 -0
- data/examples/compass/images/flag/vn.png +0 -0
- data/examples/compass/images/flag/vu.png +0 -0
- data/examples/compass/images/flag/wales.png +0 -0
- data/examples/compass/images/flag/wf.png +0 -0
- data/examples/compass/images/flag/ws.png +0 -0
- data/examples/compass/images/flag/ye.png +0 -0
- data/examples/compass/images/flag/yt.png +0 -0
- data/examples/compass/images/flag/za.png +0 -0
- data/examples/compass/images/flag/zm.png +0 -0
- data/examples/compass/images/flag/zw.png +0 -0
- data/examples/compass/images/icon-chrome.png +0 -0
- data/examples/compass/images/icon-firefox.png +0 -0
- data/examples/compass/images/icon-ie.png +0 -0
- data/examples/compass/images/icon-opera.png +0 -0
- data/examples/compass/images/icon-safari.png +0 -0
- data/examples/compass/pie.html.haml +0 -73
- data/examples/compass/sprites.html.haml +0 -37
- data/examples/compass/src/bp_layout.scss +0 -18
- data/examples/compass/src/compass.scss +0 -46
- data/examples/compass/src/images/blue_arrow.gif +0 -0
- data/examples/compass/src/sprites.scss +0 -25
- data/examples/compass/src/sticky_footer.scss +0 -11
- data/examples/compass/src/utilities.scss +0 -108
- data/examples/compass/sticky_footer.html.haml +0 -14
- data/examples/compass/utilities.html.haml +0 -189
- data/examples/css3/bootstrap.rb +0 -3
- data/examples/css3/clean.rb +0 -2
- data/examples/css3/config.rb +0 -6
- data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +0 -10
- data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +0 -6
- data/examples/css3/gradients.html.haml +0 -68
- data/examples/css3/images/button_bg.png +0 -0
- data/examples/css3/images/example.png +0 -0
- data/examples/css3/index.html.haml +0 -57
- data/examples/css3/src/_base.scss +0 -13
- data/examples/css3/src/fancy-fonts.scss +0 -13
- data/examples/css3/src/gradients.scss +0 -86
- data/examples/css3/src/main.scss +0 -108
- data/examples/downloader.rb +0 -58
- data/examples/ninesixty/bootstrap.rb +0 -4
- data/examples/ninesixty/clean.rb +0 -2
- data/examples/ninesixty/config.rb +0 -10
- data/examples/ninesixty/src/grid.scss +0 -15
- data/examples/ninesixty/src/text.scss +0 -8
- data/examples/susy/bootstrap.rb +0 -3
- data/examples/susy/clean.rb +0 -2
- data/examples/susy/config.rb +0 -10
- data/examples/susy/src/_base.scss +0 -61
- data/examples/susy/src/_defaults.scss +0 -140
- data/examples/susy/src/screen.scss +0 -100
- data/examples/yui/bootstrap.rb +0 -3
- data/examples/yui/clean.rb +0 -2
- data/examples/yui/config.rb +0 -1
- data/examples/yui/divisions.html.haml +0 -179
- data/examples/yui/index.html.haml +0 -19
- data/examples/yui/src/screen.scss +0 -13
- data/examples/yui/sub_divisions.html.haml +0 -169
- data/examples/yui/templates.html.haml +0 -54
- data/examples/yui/test.jpg +0 -0
- data/examples/yui/typography.html.haml +0 -132
- data/frameworks/compass/stylesheets/_compass.scss +0 -3
- data/frameworks/compass/stylesheets/_lemonade.scss +0 -38
- data/frameworks/compass/stylesheets/compass/_css3.scss +0 -21
- data/frameworks/compass/stylesheets/compass/_layout.scss +0 -3
- data/frameworks/compass/stylesheets/compass/_reset-legacy.scss +0 -3
- data/frameworks/compass/stylesheets/compass/_reset.scss +0 -3
- data/frameworks/compass/stylesheets/compass/_support.scss +0 -432
- data/frameworks/compass/stylesheets/compass/_typography.scss +0 -4
- data/frameworks/compass/stylesheets/compass/_utilities.scss +0 -9
- data/frameworks/compass/stylesheets/compass/css3/_animation.scss +0 -122
- data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +0 -17
- data/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +0 -35
- data/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +0 -37
- data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +0 -19
- data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +0 -107
- data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +0 -88
- data/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +0 -15
- data/frameworks/compass/stylesheets/compass/css3/_box.scss +0 -85
- data/frameworks/compass/stylesheets/compass/css3/_columns.scss +0 -210
- data/frameworks/compass/stylesheets/compass/css3/_deprecated-support.scss +0 -272
- data/frameworks/compass/stylesheets/compass/css3/_filter.scss +0 -50
- data/frameworks/compass/stylesheets/compass/css3/_flexbox.scss +0 -156
- data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +0 -48
- data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +0 -71
- data/frameworks/compass/stylesheets/compass/css3/_images.scss +0 -139
- data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +0 -31
- data/frameworks/compass/stylesheets/compass/css3/_opacity.scss +0 -23
- data/frameworks/compass/stylesheets/compass/css3/_pie.scss +0 -1
- data/frameworks/compass/stylesheets/compass/css3/_regions.scss +0 -27
- data/frameworks/compass/stylesheets/compass/css3/_selection.scss +0 -59
- data/frameworks/compass/stylesheets/compass/css3/_shared.scss +0 -5
- data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +0 -82
- data/frameworks/compass/stylesheets/compass/css3/_transform.scss +0 -590
- data/frameworks/compass/stylesheets/compass/css3/_transition.scss +0 -171
- data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +0 -71
- data/frameworks/compass/stylesheets/compass/layout/_grid-background.scss +0 -178
- data/frameworks/compass/stylesheets/compass/layout/_sticky-footer.scss +0 -23
- data/frameworks/compass/stylesheets/compass/layout/_stretching.scss +0 -24
- data/frameworks/compass/stylesheets/compass/reset/_utilities-legacy.scss +0 -135
- data/frameworks/compass/stylesheets/compass/reset/_utilities.scss +0 -142
- data/frameworks/compass/stylesheets/compass/typography/_links.scss +0 -3
- data/frameworks/compass/stylesheets/compass/typography/_lists.scss +0 -4
- data/frameworks/compass/stylesheets/compass/typography/_text.scss +0 -4
- data/frameworks/compass/stylesheets/compass/typography/_units.scss +0 -152
- data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +0 -300
- data/frameworks/compass/stylesheets/compass/typography/links/_hover-link.scss +0 -5
- data/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss +0 -28
- data/frameworks/compass/stylesheets/compass/typography/links/_unstyled-link.scss +0 -7
- data/frameworks/compass/stylesheets/compass/typography/lists/_bullets.scss +0 -34
- data/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss +0 -63
- data/frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss +0 -50
- data/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss +0 -47
- data/frameworks/compass/stylesheets/compass/typography/text/_ellipsis.scss +0 -25
- data/frameworks/compass/stylesheets/compass/typography/text/_force-wrap.scss +0 -12
- data/frameworks/compass/stylesheets/compass/typography/text/_nowrap.scss +0 -2
- data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +0 -68
- data/frameworks/compass/stylesheets/compass/utilities/_color.scss +0 -1
- data/frameworks/compass/stylesheets/compass/utilities/_general.scss +0 -6
- data/frameworks/compass/stylesheets/compass/utilities/_links.scss +0 -5
- data/frameworks/compass/stylesheets/compass/utilities/_lists.scss +0 -6
- data/frameworks/compass/stylesheets/compass/utilities/_print.scss +0 -17
- data/frameworks/compass/stylesheets/compass/utilities/_sprites.scss +0 -2
- data/frameworks/compass/stylesheets/compass/utilities/_tables.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/_text.scss +0 -5
- data/frameworks/compass/stylesheets/compass/utilities/color/_brightness.scss +0 -12
- data/frameworks/compass/stylesheets/compass/utilities/color/_contrast.scss +0 -52
- data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +0 -44
- data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +0 -38
- data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +0 -65
- data/frameworks/compass/stylesheets/compass/utilities/general/_min.scss +0 -16
- data/frameworks/compass/stylesheets/compass/utilities/general/_reset.scss +0 -2
- data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.scss +0 -1
- data/frameworks/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +0 -18
- data/frameworks/compass/stylesheets/compass/utilities/links/_hover-link.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +0 -92
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +0 -81
- data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +0 -22
- data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +0 -38
- data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +0 -9
- data/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +0 -3
- data/frameworks/compass/templates/ellipsis/ellipsis.sass +0 -9
- data/frameworks/compass/templates/ellipsis/manifest.rb +0 -27
- data/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +0 -14
- data/frameworks/compass/templates/extension/manifest.rb +0 -26
- data/frameworks/compass/templates/extension/stylesheets/main.sass +0 -1
- data/frameworks/compass/templates/extension/templates/project/manifest.rb +0 -2
- data/frameworks/compass/templates/extension/templates/project/screen.sass +0 -2
- data/frameworks/compass/templates/project/USAGE.markdown +0 -32
- data/frameworks/compass/templates/project/ie.sass +0 -6
- data/frameworks/compass/templates/project/manifest.rb +0 -4
- data/frameworks/compass/templates/project/print.sass +0 -6
- data/frameworks/compass/templates/project/screen.sass +0 -7
- data/lib/compass/browser_support.rb +0 -62
- data/lib/compass/caniuse.rb +0 -283
- data/lib/compass/configuration.rb +0 -91
- data/lib/compass/configuration/data.rb +0 -193
- data/lib/compass/configuration/defaults.rb +0 -187
- data/lib/compass/configuration/inheritance.rb +0 -304
- data/lib/compass/configuration/paths.rb +0 -19
- data/lib/compass/exec/switch_ui.rb +0 -179
- data/lib/compass/sass_extensions/functions/colors.rb +0 -67
- data/lib/compass/sass_extensions/functions/constants.rb +0 -74
- data/lib/compass/sass_extensions/functions/cross_browser_support.rb +0 -269
- data/lib/compass/sass_extensions/functions/display.rb +0 -32
- data/lib/compass/sass_extensions/functions/enumerate.rb +0 -7
- data/lib/compass/sass_extensions/functions/env.rb +0 -59
- data/lib/compass/sass_extensions/functions/font_files.rb +0 -41
- data/lib/compass/sass_extensions/functions/gradient_support.rb +0 -611
- data/lib/compass/sass_extensions/functions/image_size.rb +0 -114
- data/lib/compass/sass_extensions/functions/inline_image.rb +0 -64
- data/lib/compass/sass_extensions/functions/lists.rb +0 -101
- data/lib/compass/sass_extensions/functions/math.rb +0 -93
- data/lib/compass/sass_extensions/functions/selectors.rb +0 -64
- data/lib/compass/sass_extensions/functions/urls.rb +0 -297
- data/lib/compass/sass_extensions/monkey_patches.rb +0 -3
- data/lib/compass/sass_extensions/monkey_patches/browser_support.rb +0 -124
- data/lib/compass/sass_extensions/monkey_patches/traversal.rb +0 -23
@@ -1,85 +0,0 @@
|
|
1
|
-
// Flexible Box
|
2
|
-
@import "deprecated-support";
|
3
|
-
|
4
|
-
@warn "The compass/css3/box module is DEPRECATED and will be removed in the next release. Please use compass/css3/flexbox instead.";
|
5
|
-
|
6
|
-
// @private css3-feature-support variables must always include a list of five boolean values
|
7
|
-
$legacy-box-support: -moz, -webkit, not -o, -ms, not -khtml;
|
8
|
-
|
9
|
-
// Default box orientation, assuming that the user wants something less block-like
|
10
|
-
$default-box-orient : horizontal !default;
|
11
|
-
|
12
|
-
// Default box-align
|
13
|
-
$default-box-align : stretch !default;
|
14
|
-
|
15
|
-
// Default box flex
|
16
|
-
$default-box-flex : 0 !default;
|
17
|
-
|
18
|
-
// Default flex group
|
19
|
-
$default-box-flex-group : 1 !default;
|
20
|
-
|
21
|
-
// Box direction default value
|
22
|
-
$default-box-direction : normal !default;
|
23
|
-
|
24
|
-
// Default ordinal group
|
25
|
-
$default-box-ordinal-group : 1 !default;
|
26
|
-
|
27
|
-
// Default box lines
|
28
|
-
$default-box-lines : single !default;
|
29
|
-
|
30
|
-
// Default box pack
|
31
|
-
$default-box-pack : start !default;
|
32
|
-
|
33
|
-
|
34
|
-
// Apply 'display:box;' to an element.
|
35
|
-
// - must be used for any of the other flexbox mixins to work properly
|
36
|
-
@mixin display-box {
|
37
|
-
@include experimental-value(display, box, $legacy-box-support...);
|
38
|
-
}
|
39
|
-
|
40
|
-
// Box orientation [ horizontal | vertical | inline-axis | block-axis | inherit ]
|
41
|
-
@mixin box-orient($orientation: $default-box-orient) {
|
42
|
-
$orientation : unquote($orientation);
|
43
|
-
@include experimental(box-orient, $orientation, $legacy-box-support...);
|
44
|
-
}
|
45
|
-
|
46
|
-
// Box align [ start | end | center | baseline | stretch ]
|
47
|
-
@mixin box-align($alignment: $default-box-align) {
|
48
|
-
$alignment : unquote($alignment);
|
49
|
-
@include experimental(box-align, $alignment, $legacy-box-support...);
|
50
|
-
}
|
51
|
-
|
52
|
-
// Takes an int argument for box flex. Apply this to the children inside the box.
|
53
|
-
//
|
54
|
-
// For example: "div.display-box > div.child-box" would get the box flex mixin.
|
55
|
-
@mixin box-flex($flex: $default-box-flex) {
|
56
|
-
@include experimental(box-flex, $flex, $legacy-box-support...);
|
57
|
-
}
|
58
|
-
|
59
|
-
// Takes an int argument for flexible grouping
|
60
|
-
@mixin box-flex-group($group: $default-box-flex-group) {
|
61
|
-
@include experimental(box-flex-group, $group, $legacy-box-support...);
|
62
|
-
}
|
63
|
-
|
64
|
-
// Takes an int argument for ordinal grouping and rearranging the order
|
65
|
-
@mixin box-ordinal-group($group: $default-box-ordinal-group) {
|
66
|
-
@include experimental(box-ordinal-group, $group, $legacy-box-support...);
|
67
|
-
}
|
68
|
-
|
69
|
-
// Box direction [ normal | reverse | inherit ]
|
70
|
-
@mixin box-direction($direction: $default-box-direction) {
|
71
|
-
$direction: unquote($direction);
|
72
|
-
@include experimental(box-direction, $direction, $legacy-box-support...);
|
73
|
-
}
|
74
|
-
|
75
|
-
// Box lines [ single | multiple ]
|
76
|
-
@mixin box-lines($lines: $default-box-lines) {
|
77
|
-
$lines: unquote($lines);
|
78
|
-
@include experimental(box-lines, $lines, $legacy-box-support...);
|
79
|
-
}
|
80
|
-
|
81
|
-
// Box pack [ start | end | center | justify ]
|
82
|
-
@mixin box-pack($pack: $default-box-pack) {
|
83
|
-
$pack: unquote($pack);
|
84
|
-
@include experimental(box-pack, $pack, $legacy-box-support...);
|
85
|
-
}
|
@@ -1,210 +0,0 @@
|
|
1
|
-
// Columns
|
2
|
-
@import "compass/support";
|
3
|
-
|
4
|
-
// The prefixed support threshold for columns.
|
5
|
-
// Defaults to the $critical-usage-threshold.
|
6
|
-
$multicolumn-support-threshold: $critical-usage-threshold !default;
|
7
|
-
|
8
|
-
|
9
|
-
// Specify the shorthand `columns` property.
|
10
|
-
//
|
11
|
-
// Example:
|
12
|
-
//
|
13
|
-
// @include columns(20em 2);
|
14
|
-
@mixin columns($width-and-count) {
|
15
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
16
|
-
columns: $width-and-count
|
17
|
-
));
|
18
|
-
}
|
19
|
-
|
20
|
-
// Specify the number of columns
|
21
|
-
@mixin column-count($count) {
|
22
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
23
|
-
column-count: $count
|
24
|
-
));
|
25
|
-
}
|
26
|
-
|
27
|
-
// Specify the gap between columns e.g. `20px`
|
28
|
-
@mixin column-gap($width) {
|
29
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
30
|
-
column-gap: $width
|
31
|
-
));
|
32
|
-
}
|
33
|
-
|
34
|
-
// Specify the width of columns e.g. `100px`
|
35
|
-
@mixin column-width($width) {
|
36
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
37
|
-
column-width: $width
|
38
|
-
));
|
39
|
-
}
|
40
|
-
|
41
|
-
// Specify how many columns an element should span across.
|
42
|
-
//
|
43
|
-
// * legal values are 1, all
|
44
|
-
@mixin column-span($columns) {
|
45
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
46
|
-
column-span: $columns
|
47
|
-
));
|
48
|
-
}
|
49
|
-
|
50
|
-
// Specify the width of the rule between columns e.g. `1px`
|
51
|
-
@mixin column-rule-width($width) {
|
52
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
53
|
-
rule-width: $width
|
54
|
-
));
|
55
|
-
}
|
56
|
-
|
57
|
-
// Specify the style of the rule between columns e.g. `dotted`.
|
58
|
-
// This works like border-style.
|
59
|
-
@mixin column-rule-style($style) {
|
60
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
61
|
-
rule-style: $style
|
62
|
-
));
|
63
|
-
}
|
64
|
-
|
65
|
-
// Specify the color of the rule between columns e.g. `blue`.
|
66
|
-
// This works like border-color.
|
67
|
-
@mixin column-rule-color($color) {
|
68
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
69
|
-
rule-color: $color
|
70
|
-
));
|
71
|
-
}
|
72
|
-
|
73
|
-
// Mixin encompassing all column rule properties
|
74
|
-
// For example:
|
75
|
-
//
|
76
|
-
// @include column-rule(1px, solid, #c00)
|
77
|
-
//
|
78
|
-
// Or the values can be space separated:
|
79
|
-
//
|
80
|
-
// @include column-rule(1px solid #c00)
|
81
|
-
@mixin column-rule($width, $style: null, $color: null) {
|
82
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
83
|
-
column-rule: $width $style $color
|
84
|
-
));
|
85
|
-
}
|
86
|
-
|
87
|
-
// All-purpose mixin for setting column breaks.
|
88
|
-
//
|
89
|
-
// * legal values for $type : before, after, inside
|
90
|
-
// * legal values for '$value' are dependent on $type
|
91
|
-
// * when $type = before, legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
|
92
|
-
// * when $type = after, legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
|
93
|
-
// * when $type = inside, legal values are auto, avoid, avoid-page, avoid-column
|
94
|
-
//
|
95
|
-
// Examples:
|
96
|
-
// h2.before {@include column-break(before, always);}
|
97
|
-
// h2.after {@include column-break(after, always); }
|
98
|
-
// h2.inside {@include column-break(inside); }
|
99
|
-
//
|
100
|
-
// Which generates:
|
101
|
-
// h2.before {
|
102
|
-
// -webkit-column-break-before: always;
|
103
|
-
// break-before: always;}
|
104
|
-
//
|
105
|
-
// h2.after {
|
106
|
-
// -webkit-column-break-after: always;
|
107
|
-
// break-after: always; }
|
108
|
-
//
|
109
|
-
// h2.inside {
|
110
|
-
// -webkit-column-break-inside: auto;
|
111
|
-
// break-inside: auto;}
|
112
|
-
|
113
|
-
@mixin column-break($type: before, $value: auto){
|
114
|
-
@include with-each-prefix(multicolumn, $multicolumn-support-threshold) {
|
115
|
-
@if $current-prefix == -webkit {
|
116
|
-
// Webkit uses non-standard syntax
|
117
|
-
-webkit-column-break-#{$type}: $value;
|
118
|
-
} @else {
|
119
|
-
// Official syntax
|
120
|
-
break-#{$type}: $value;
|
121
|
-
}
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
|
-
// Mixin for setting break-before
|
126
|
-
//
|
127
|
-
// * legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
|
128
|
-
//
|
129
|
-
// Example:
|
130
|
-
// h2.before {@include break-before(always);}
|
131
|
-
//
|
132
|
-
// Which generates:
|
133
|
-
//
|
134
|
-
// h2.before {
|
135
|
-
// -webkit-column-break-before: always;
|
136
|
-
// break-before: always;}
|
137
|
-
@mixin break-before($value: auto){
|
138
|
-
@include column-break(before, $value);
|
139
|
-
}
|
140
|
-
|
141
|
-
@mixin column-break-before($value: auto){
|
142
|
-
@include column-break(before, $value);
|
143
|
-
@warn '"column-break-before" has been deprecated in favor of the official syntax: "break-before".';
|
144
|
-
}
|
145
|
-
|
146
|
-
// Mixin for setting break-after
|
147
|
-
//
|
148
|
-
// * legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
|
149
|
-
//
|
150
|
-
// Example:
|
151
|
-
// h2.after {@include break-after(always); }
|
152
|
-
//
|
153
|
-
// Which generates:
|
154
|
-
//
|
155
|
-
// h2.after {
|
156
|
-
// -webkit-column-break-after: always;
|
157
|
-
// break-after: always; }
|
158
|
-
@mixin break-after($value: auto){
|
159
|
-
@include column-break(after, $value);
|
160
|
-
}
|
161
|
-
|
162
|
-
@mixin column-break-after($value: auto){
|
163
|
-
@include column-break(after, $value);
|
164
|
-
@warn '"column-break-after" has been deprecated in favor of the official syntax: "break-after".';
|
165
|
-
}
|
166
|
-
|
167
|
-
// Mixin for setting break-inside
|
168
|
-
//
|
169
|
-
// * legal values are auto, avoid, avoid-page, avoid-column
|
170
|
-
//
|
171
|
-
// Example:
|
172
|
-
// h2.inside {@include break-inside();}
|
173
|
-
//
|
174
|
-
// Which generates:
|
175
|
-
//
|
176
|
-
// h2.inside {
|
177
|
-
// -webkit-column-break-inside: auto;
|
178
|
-
// break-inside: auto;}
|
179
|
-
@mixin break-inside($value: auto){
|
180
|
-
@include column-break(inside, $value);
|
181
|
-
}
|
182
|
-
|
183
|
-
@mixin column-break-inside($value: auto){
|
184
|
-
@include column-break(inside, $value);
|
185
|
-
@warn '"column-break-inside" has been deprecated in favor of the official syntax: "break-inside".';
|
186
|
-
}
|
187
|
-
|
188
|
-
// Mixin for setting column-span
|
189
|
-
//
|
190
|
-
// * legal values: none, all
|
191
|
-
//
|
192
|
-
// Example:
|
193
|
-
// h2.span {@include column-span();}
|
194
|
-
@mixin column-span($span: all){
|
195
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
196
|
-
column-span: $span
|
197
|
-
));
|
198
|
-
}
|
199
|
-
|
200
|
-
// Mixin for setting column-fill
|
201
|
-
//
|
202
|
-
// * legal values: auto, balance
|
203
|
-
//
|
204
|
-
// Example:
|
205
|
-
// h2.fill {@include column-fill();}
|
206
|
-
@mixin column-fill($fill: balance){
|
207
|
-
@include prefixed-properties(multicolumn, $multicolumn-support-threshold,(
|
208
|
-
column-fill: $fill
|
209
|
-
));
|
210
|
-
}
|
@@ -1,272 +0,0 @@
|
|
1
|
-
@import "compass/support";
|
2
|
-
|
3
|
-
// XXX Remove these
|
4
|
-
$experimental-support-for-mozilla: true !default;
|
5
|
-
$experimental-support-for-webkit: true !default;
|
6
|
-
$experimental-support-for-opera: true !default;
|
7
|
-
$experimental-support-for-microsoft: true !default;
|
8
|
-
$experimental-support-for-khtml: false !default;
|
9
|
-
$experimental-support-for-svg: false !default;
|
10
|
-
$legacy-support-for-ie6: true !default;
|
11
|
-
$legacy-support-for-ie7: true !default;
|
12
|
-
$legacy-support-for-ie8: true !default;
|
13
|
-
$legacy-support-for-mozilla: true !default;
|
14
|
-
$legacy-support-for-webkit: true !default;
|
15
|
-
|
16
|
-
// This mixin provides basic support for CSS3 properties and
|
17
|
-
// their corresponding experimental CSS2 properties when
|
18
|
-
// the implementations are identical except for the property
|
19
|
-
// prefix.
|
20
|
-
@mixin experimental($property, $value,
|
21
|
-
$moz : $experimental-support-for-mozilla,
|
22
|
-
$webkit : $experimental-support-for-webkit,
|
23
|
-
$o : $experimental-support-for-opera,
|
24
|
-
$ms : $experimental-support-for-microsoft,
|
25
|
-
$khtml : $experimental-support-for-khtml,
|
26
|
-
$official : true
|
27
|
-
) {
|
28
|
-
@if $webkit and $experimental-support-for-webkit { -webkit-#{$property} : $value; }
|
29
|
-
@if $khtml and $experimental-support-for-khtml { -khtml-#{$property} : $value; }
|
30
|
-
@if $moz and $experimental-support-for-mozilla { -moz-#{$property} : $value; }
|
31
|
-
@if $ms and $experimental-support-for-microsoft { -ms-#{$property} : $value; }
|
32
|
-
@if $o and $experimental-support-for-opera { -o-#{$property} : $value; }
|
33
|
-
@if $official { #{$property} : $value; }
|
34
|
-
}
|
35
|
-
|
36
|
-
// This mixin is a shortcut for applying only a single experimental value
|
37
|
-
@mixin experimental-only-for($property, $value,
|
38
|
-
$moz : false,
|
39
|
-
$webkit : false,
|
40
|
-
$o : false,
|
41
|
-
$ms : false,
|
42
|
-
$khtml : false,
|
43
|
-
$official : false
|
44
|
-
) {
|
45
|
-
@include experimental($property, $value, $moz, $webkit, $o, $ms, $khtml, $official);
|
46
|
-
}
|
47
|
-
|
48
|
-
// Same as experimental(), but for cases when the property is the same and the value is vendorized
|
49
|
-
@mixin experimental-value($property, $value,
|
50
|
-
$moz : $experimental-support-for-mozilla,
|
51
|
-
$webkit : $experimental-support-for-webkit,
|
52
|
-
$o : $experimental-support-for-opera,
|
53
|
-
$ms : $experimental-support-for-microsoft,
|
54
|
-
$khtml : $experimental-support-for-khtml,
|
55
|
-
$official : true
|
56
|
-
) {
|
57
|
-
@if $webkit and $experimental-support-for-webkit { #{$property} : -webkit-#{$value}; }
|
58
|
-
@if $khtml and $experimental-support-for-khtml { #{$property} : -khtml-#{$value}; }
|
59
|
-
@if $moz and $experimental-support-for-mozilla { #{$property} : -moz-#{$value}; }
|
60
|
-
@if $ms and $experimental-support-for-microsoft { #{$property} : -ms-#{$value}; }
|
61
|
-
@if $o and $experimental-support-for-opera { #{$property} : -o-#{$value}; }
|
62
|
-
@if $official { #{$property} : #{$value}; }
|
63
|
-
}
|
64
|
-
|
65
|
-
// @private
|
66
|
-
// Check a given support list for support of a particular browser
|
67
|
-
@function supported(
|
68
|
-
$prefix,
|
69
|
-
$support-list
|
70
|
-
) {
|
71
|
-
$keys: moz, webkit, o, ms, khtml, official;
|
72
|
-
$index: index($keys, $prefix);
|
73
|
-
|
74
|
-
@if $index {
|
75
|
-
@if $index == 6 and length($support-list) == 5 {
|
76
|
-
@return official;
|
77
|
-
} @else {
|
78
|
-
@return nth($support-list, $index);
|
79
|
-
}
|
80
|
-
} @else {
|
81
|
-
@warn 'Please pass a valid browser for $prefix: moz, webkit, o, ms, khtml, or official.';
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
// A debug tool for checking browser support
|
86
|
-
@mixin debug-support-matrix($experimental: true, $ie: true) {
|
87
|
-
@debug #{'$moz-'}$experimental-support-for-mozilla
|
88
|
-
#{'$webkit-'}$experimental-support-for-webkit
|
89
|
-
#{'$opera-'}$experimental-support-for-opera
|
90
|
-
#{'$microsoft-'}$experimental-support-for-microsoft
|
91
|
-
#{'$khtml-'}$experimental-support-for-khtml;
|
92
|
-
@debug #{'$ie6-'}$legacy-support-for-ie6
|
93
|
-
#{'$ie7-'}$legacy-support-for-ie7
|
94
|
-
#{'$ie8-'}$legacy-support-for-ie8;
|
95
|
-
}
|
96
|
-
|
97
|
-
// Capture the current exerimental support settings
|
98
|
-
@function capture-experimental-matrix() {
|
99
|
-
@return $experimental-support-for-mozilla
|
100
|
-
$experimental-support-for-webkit
|
101
|
-
$experimental-support-for-opera
|
102
|
-
$experimental-support-for-microsoft
|
103
|
-
$experimental-support-for-khtml;
|
104
|
-
}
|
105
|
-
|
106
|
-
// Capture the current legacy-ie support settings
|
107
|
-
@function capture-legacy-ie-matrix() {
|
108
|
-
@return $legacy-support-for-ie6
|
109
|
-
$legacy-support-for-ie7
|
110
|
-
$legacy-support-for-ie8;
|
111
|
-
}
|
112
|
-
|
113
|
-
// Capture and store support
|
114
|
-
$experimental-matrix: capture-experimental-matrix();
|
115
|
-
$legacy-ie-matrix: capture-legacy-ie-matrix();
|
116
|
-
|
117
|
-
@mixin capture-experimental-matrix {
|
118
|
-
$experimental-matrix: capture-experimental-matrix();
|
119
|
-
}
|
120
|
-
|
121
|
-
@mixin capture-legacy-ie-matrix {
|
122
|
-
$legacy-ie-matrix: capture-legacy-ie-matrix();
|
123
|
-
}
|
124
|
-
|
125
|
-
@mixin capture-support-matrix {
|
126
|
-
@include capture-experimental-matrix;
|
127
|
-
@include capture-legacy-ie-matrix;
|
128
|
-
}
|
129
|
-
|
130
|
-
// Change the experimental-support settings in specific contexts.
|
131
|
-
@mixin set-experimental-support(
|
132
|
-
$moz : false,
|
133
|
-
$webkit : false,
|
134
|
-
$o : false,
|
135
|
-
$ms : false,
|
136
|
-
$khtml : false
|
137
|
-
) {
|
138
|
-
$experimental-support-for-mozilla : $moz;
|
139
|
-
$experimental-support-for-webkit : $webkit;
|
140
|
-
$experimental-support-for-opera : $o;
|
141
|
-
$experimental-support-for-microsoft : $ms;
|
142
|
-
$experimental-support-for-khtml : $khtml;
|
143
|
-
}
|
144
|
-
|
145
|
-
@mixin capture-and-set-experimental(
|
146
|
-
$moz : false,
|
147
|
-
$webkit : false,
|
148
|
-
$o : false,
|
149
|
-
$ms : false,
|
150
|
-
$khtml : false
|
151
|
-
) {
|
152
|
-
@include capture-experimental-matrix;
|
153
|
-
@include set-experimental-support($moz, $webkit, $o, $ms, $khtml);
|
154
|
-
}
|
155
|
-
|
156
|
-
@mixin capture-and-adjust-experimental(
|
157
|
-
$moz : $experimental-support-for-mozilla,
|
158
|
-
$webkit : $experimental-support-for-webkit,
|
159
|
-
$o : $experimental-support-for-opera,
|
160
|
-
$ms : $experimental-support-for-microsoft,
|
161
|
-
$khtml : $experimental-support-for-khtml
|
162
|
-
) {
|
163
|
-
@include capture-experimental-matrix;
|
164
|
-
@include set-experimental-support($moz, $webkit, $o, $ms, $khtml);
|
165
|
-
}
|
166
|
-
|
167
|
-
// Change the legacy-support-for-ie* settings in specific contexts.
|
168
|
-
@mixin set-legacy-ie-support(
|
169
|
-
$ie6: false,
|
170
|
-
$ie7: false,
|
171
|
-
$ie8: false
|
172
|
-
) {
|
173
|
-
$legacy-support-for-ie6: $ie6;
|
174
|
-
$legacy-support-for-ie7: $ie7;
|
175
|
-
$legacy-support-for-ie8: $ie8;
|
176
|
-
}
|
177
|
-
|
178
|
-
@mixin capture-and-set-legacy-ie(
|
179
|
-
$ie6: false,
|
180
|
-
$ie7: false,
|
181
|
-
$ie8: false
|
182
|
-
) {
|
183
|
-
@include capture-legacy-ie-matrix;
|
184
|
-
@include set-legacy-ie-support($ie6, $ie7, $ie8);
|
185
|
-
}
|
186
|
-
|
187
|
-
@mixin capture-and-adjust-legacy-ie(
|
188
|
-
$ie6: $legacy-support-for-ie6,
|
189
|
-
$ie7: $legacy-support-for-ie7,
|
190
|
-
$ie8: $legacy-support-for-ie8
|
191
|
-
) {
|
192
|
-
@include capture-and-set-legacy-ie($ie6, $ie7, $ie8);
|
193
|
-
}
|
194
|
-
|
195
|
-
// Capture current browser support matrix, and set a new matrix of support.
|
196
|
-
@mixin capture-and-set-support(
|
197
|
-
$moz : false,
|
198
|
-
$webkit : false,
|
199
|
-
$o : false,
|
200
|
-
$ms : false,
|
201
|
-
$khtml : false,
|
202
|
-
$ie6 : false,
|
203
|
-
$ie7 : false,
|
204
|
-
$ie8 : false
|
205
|
-
) {
|
206
|
-
// Capture the current state
|
207
|
-
@include capture-support-matrix;
|
208
|
-
|
209
|
-
// Change support settings
|
210
|
-
@include set-experimental-support($moz, $webkit, $o, $ms, $khtml);
|
211
|
-
@include set-legacy-ie-support($ie6, $ie7, $ie8);
|
212
|
-
}
|
213
|
-
|
214
|
-
// Capture current browser support matrix, and set a new matrix of support.
|
215
|
-
@mixin capture-and-adjust-support(
|
216
|
-
$moz : $experimental-support-for-mozilla,
|
217
|
-
$webkit : $experimental-support-for-webkit,
|
218
|
-
$o : $experimental-support-for-opera,
|
219
|
-
$ms : $experimental-support-for-microsoft,
|
220
|
-
$khtml : $experimental-support-for-khtml,
|
221
|
-
$ie6 : $legacy-support-for-ie6,
|
222
|
-
$ie7 : $legacy-support-for-ie7,
|
223
|
-
$ie8 : $legacy-support-for-ie8
|
224
|
-
) {
|
225
|
-
@include capture-and-set-support($moz, $webkit, $o, $ms, $khtml, $ie6, $ie7, $ie8);
|
226
|
-
}
|
227
|
-
|
228
|
-
|
229
|
-
// This mixin allows you to change the experimental support settings for
|
230
|
-
// child (@content) styles.
|
231
|
-
@mixin with-only-support-for(
|
232
|
-
$moz : false,
|
233
|
-
$webkit : false,
|
234
|
-
$o : false,
|
235
|
-
$ms : false,
|
236
|
-
$khtml : false,
|
237
|
-
$ie6 : false,
|
238
|
-
$ie7 : false,
|
239
|
-
$ie8 : false
|
240
|
-
) {
|
241
|
-
// Capture current state
|
242
|
-
$wo-experimental-matrix : capture-experimental-matrix();
|
243
|
-
$wo-legacy-ie-matrix : capture-legacy-ie-matrix();
|
244
|
-
|
245
|
-
// Set new states
|
246
|
-
@include set-experimental-support($moz, $webkit, $o, $ms, $khtml);
|
247
|
-
@include set-legacy-ie-support($ie6, $ie7, $ie8);
|
248
|
-
|
249
|
-
// Apply styles
|
250
|
-
@content;
|
251
|
-
|
252
|
-
// Return to original support settings
|
253
|
-
@include set-experimental-support($wo-experimental-matrix...);
|
254
|
-
@include set-legacy-ie-support($wo-legacy-ie-matrix...);
|
255
|
-
}
|
256
|
-
|
257
|
-
// This mixin is a shortcut for making slight adjustments to browser support
|
258
|
-
// for child (@content) styles
|
259
|
-
@mixin adjust-support-for(
|
260
|
-
$moz : $experimental-support-for-mozilla,
|
261
|
-
$webkit : $experimental-support-for-webkit,
|
262
|
-
$o : $experimental-support-for-opera,
|
263
|
-
$ms : $experimental-support-for-microsoft,
|
264
|
-
$khtml : $experimental-support-for-khtml,
|
265
|
-
$ie6 : $legacy-support-for-ie6,
|
266
|
-
$ie7 : $legacy-support-for-ie7,
|
267
|
-
$ie8 : $legacy-support-for-ie8
|
268
|
-
) {
|
269
|
-
@include with-only-support-for($moz, $webkit, $o, $ms, $khtml, $ie6, $ie7, $ie8) {
|
270
|
-
@content;
|
271
|
-
}
|
272
|
-
}
|