diff --git a/_posts/demos/2011-03-29-combination-filters.html b/_posts/demos/2011-03-29-combination-filters.html
new file mode 100644
index 0000000..98d45c7
--- /dev/null
+++ b/_posts/demos/2011-03-29-combination-filters.html
@@ -0,0 +1,94 @@
+---
+title: Combination filters
+layout: demo
+category: demos
+related: filtering
+schema:
+ - name: color
+ filters: [ red, blue, yellow ]
+ - name: size
+ filters: [ small, wide, tall, big ]
+ - name: shape
+ filters : [ round, square ]
+---
+
+
+ Filters can be combined. In addition to filtering for just .red
or .tall
, you can pass in a filter selector of both: .red.tall
.
+
+
+
+
+ Filters
+
+ {% for group in page.schema %}
+
+ {% endfor %}
+
+
+
+
+ {% for size in page.schema[1].filters %}
+ {% for shape in page.schema[2].filters %}
+ {% for color in page.schema[0].filters %}
+
+ {% endfor %}
+ {% endfor %}
+ {% endfor %}
+
+
+ {% for color in page.schema[0].filters %}
+ {% for shape in page.schema[2].filters %}
+ {% for size in page.schema[1].filters %}
+
+ {% endfor %}
+ {% endfor %}
+ {% endfor %}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/css/style.css b/css/style.css
index d53d437..b57abd2 100644
--- a/css/style.css
+++ b/css/style.css
@@ -247,6 +247,11 @@ body {
#options h3 {
margin-bottom: 0.2em;
+ font-size: 15px;
+}
+
+#options h4 {
+ font-weight: bold;
}
#options ul {
@@ -312,6 +317,58 @@ body {
color: white;
}
+/* Combination filter options*/
+
+#options .option-combo {
+ display: inline-block;
+ float: left;
+ margin-right: 10px;
+}
+
+#options .option-combo ul {
+ margin-right: 20px;
+ display: inline-block;
+}
+
+#options .option-combo h2,
+#options .option-combo h4 {
+ line-height: 34px;
+ margin-bottom: 0;
+ margin-right: 5px;
+ display: inline-block;
+ vertical-align: top;
+}
+
+/* Color shapes */
+
+.color-shape {
+ width: 70px;
+ height: 70px;
+ margin: 5px;
+ float: left;
+}
+
+.color-shape.round {
+ -webkit-border-radius: 35px;
+ -moz-border-radius: 35px;
+ border-radius: 35px;
+}
+
+.color-shape.big.round {
+ -webkit-border-radius: 75px;
+ -moz-border-radius: 75px;
+ border-radius: 75px;
+}
+
+.color-shape.red { background: red; }
+.color-shape.blue { background: blue; }
+.color-shape.yellow { background: yellow; }
+
+.color-shape.wide, .color-shape.big { width: 150px; }
+.color-shape.tall, .color-shape.big { height: 150px; }
+
+
+
/**** Horizontal ****/
.horizontal #container {
diff --git a/index.html b/index.html
index 8943f9b..6f57e89 100644
--- a/index.html
+++ b/index.html
@@ -11,31 +11,6 @@ layout: nil
-
-