From 31fc7015d10a724a96e6dcddc7ee572a8cc55820 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Fri, 9 Jul 2010 09:42:37 -0700 Subject: [PATCH] test case for lists. --- test/fixtures/stylesheets/compass/config.rb | 1 + .../stylesheets/compass/css/lists.css | 83 ++++++++++++++++++ .../stylesheets/compass/images/4x6.png | Bin 0 -> 875 bytes .../stylesheets/compass/sass/lists.scss | 8 ++ 4 files changed, 92 insertions(+) create mode 100644 test/fixtures/stylesheets/compass/css/lists.css create mode 100644 test/fixtures/stylesheets/compass/images/4x6.png create mode 100644 test/fixtures/stylesheets/compass/sass/lists.scss diff --git a/test/fixtures/stylesheets/compass/config.rb b/test/fixtures/stylesheets/compass/config.rb index 1b3ad842..4f5ba70d 100644 --- a/test/fixtures/stylesheets/compass/config.rb +++ b/test/fixtures/stylesheets/compass/config.rb @@ -7,3 +7,4 @@ output_style = :nested # To enable relative image paths using the images_url() function: # http_images_path = :relative http_images_path = "/images" +line_comments = false diff --git a/test/fixtures/stylesheets/compass/css/lists.css b/test/fixtures/stylesheets/compass/css/lists.css new file mode 100644 index 00000000..f14e3bd0 --- /dev/null +++ b/test/fixtures/stylesheets/compass/css/lists.css @@ -0,0 +1,83 @@ +ul.horizontal { + margin: 0; + padding: 0; + border: 0; + outline: 0; + overflow: hidden; + display: inline-block; } + ul.horizontal { + display: block; } + ul.horizontal li { + list-style-image: none; + list-style-type: none; + margin-left: 0px; + white-space: nowrap; + display: inline; + float: left; + padding-left: 4px; + padding-right: 4px; } + ul.horizontal li:first-child, ul.horizontal li.first { + padding-left: 0px; } + ul.horizontal li:last-child, ul.horizontal li.last { + padding-right: 0px; } + +ul.wide-horizontal { + margin: 0; + padding: 0; + border: 0; + outline: 0; + overflow: hidden; + display: inline-block; } + ul.wide-horizontal { + display: block; } + ul.wide-horizontal li { + list-style-image: none; + list-style-type: none; + margin-left: 0px; + white-space: nowrap; + display: inline; + float: left; + padding-left: 10px; + padding-right: 10px; } + ul.wide-horizontal li:first-child, ul.wide-horizontal li.first { + padding-left: 0px; } + ul.wide-horizontal li:last-child, ul.wide-horizontal li.last { + padding-right: 0px; } + +ul.inline { + list-style-type: none; + margin: 0px; + padding: 0px; + display: inline; } + ul.inline li { + margin: 0px; + padding: 0px; + display: inline; } + +ul.comma { + list-style-type: none; + margin: 0px; + padding: 0px; + display: inline; } + ul.comma li { + margin: 0px; + padding: 0px; + display: inline; } + ul.comma li:after { + content: ", "; } + ul.comma li:last-child:after, ul.comma li.last:after { + content: ""; } + +ul.no-bullets { + list-style: none; } + ul.no-bullets li { + list-style-image: none; + list-style-type: none; + margin-left: 0px; } + +ul.pretty { + margin-left: 0; } + ul.pretty li { + padding-left: 14px; + background: url('/images/4x6.png?1278693488') no-repeat 4px 7px; + list-style-type: none; } diff --git a/test/fixtures/stylesheets/compass/images/4x6.png b/test/fixtures/stylesheets/compass/images/4x6.png new file mode 100644 index 0000000000000000000000000000000000000000..1c57ddfe7950f577c6178ddd07949fd155ef8107 GIT binary patch literal 875 zcmV-x1C;!UP)4Tx0C)j~RL^S@K@|QrZmG~B2wH0nvUrdpNm;9CMbtL^5n^i$+aIn^?(HA4aZWV5ov6ELTdbo0FI&wK{O>*+w4vx20?>!`FrQsdJlnHR>OPy zcd~b_n$otK2Za4V;76L-DzNVtaSB-y0*E}{p()372;bw_^6ZZ}PI-92wGS&j#91PI zKs7DSe@(bk%_Y-7gGe}(^>I=@oY#w#*Bu9GZf3^F5WP>3rn}7Ut74&?PWBFvy`A)a zPP5)V!Xd&78LdA?xQ(9mjMYElVd13a#D+Z_7&Y|xU=_C-srWU*6kiZcC!$nw*)9$7 zn6CX+@=AhmkT}X@VSsa5NKe;HZuq)~1$`#h6R+ZTR#D-3j}vF!)ZOnz+5)dI4jl{{ z44Mr{P!L4~VVJN`K!!XTF*LGrKO?IK8z<8w`3e3jI8lUGNUta*C8 zn(P`s>{pjD=7Kek#B;Fw@hxAK%$F&Q6vg9J^Xf~4by_hu-=A!MJ3Znq&n~srbFGPs zH&&aMXZ>nO`|hf|ljc?VPhR!${AbO?W8x_>CU%PFA&Hm8F7cAsOREdwU~R_;ot1_u z(ruCYB-LPGn!NQdT|ZlRy+(fw^-+`=%+gee_kY4FWHg<*4sZI8+sFJD270UUORdLHO0nA4V) z%{fwsET5CQ>B?eK%uw4yQc~9?*JVo2}ze(;aRcp*ceL#HUJSllrgm5wQKR zQu+C;QrUh^8rFfA`ftFz{YAidi-`aL010qNS#tmY3ljhU3ljkVnw%H_001LNL_t&t z9b>SxwEX}7e|ma4kc6-q(D*<(24r~%8>9+NF980|FCFU+_^AK@002ovPDHLkV1iYs Bn~eYf literal 0 HcmV?d00001 diff --git a/test/fixtures/stylesheets/compass/sass/lists.scss b/test/fixtures/stylesheets/compass/sass/lists.scss new file mode 100644 index 00000000..f9acf4b4 --- /dev/null +++ b/test/fixtures/stylesheets/compass/sass/lists.scss @@ -0,0 +1,8 @@ +@import "compass/utilities/lists"; + +ul.horizontal { @include horizontal-list; } +ul.wide-horizontal { @include horizontal-list(10px); } +ul.inline { @include inline-list; } +ul.comma { @include comma-delimited-list; } +ul.no-bullets { @include no-bullets; } +ul.pretty { @include pretty-bullets("4x6.png"); } \ No newline at end of file