Skip to content

Commit 4c50a1c

Browse files
committed
Scaffolding v1.0.0 with default filter styles and easily set variables for all CSS filter and iso IDs, and filter colors.
1 parent 9f5de70 commit 4c50a1c

1 file changed

Lines changed: 58 additions & 16 deletions

File tree

less/jquery.isolate.less

Lines changed: 58 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,67 +7,109 @@
77
* http://opensource.org/licenses/MIT
88
*
99
* Author: Adam J De Lucia
10-
* Scaffolding Version: 0.3.0 (Isolate 1.0.4)
11-
* Date: May 25 2014
10+
* Scaffolding Version: 1.0.0 (Isolate 1.0.4)
11+
* Date: June 1 2014
1212
*
1313
*/
1414

15-
.bs-2-row-start {
15+
@isosID: ~"#iso-els";
16+
@filtersID: ~"#iso-filters";
17+
@bgColor: #fff;
18+
@bgHoverColor: rgb(48,120,144);
19+
@activeColor: lighten(rgb(144,216,240), 20%);
20+
@activeBG: darken(rgb(0,72,96), 5%);
21+
22+
@{filtersID} .filters-header {
23+
font-size: 18px;
24+
font-style: italic;
25+
text-transform: uppercase;
26+
margin: 0 0 15px;
27+
}
28+
29+
@{filtersID} .filter {
30+
cursor: pointer;
31+
font-size: 14px;
32+
color: @bgHoverColor;
33+
text-align: center;
34+
vertical-align: middle;
35+
background-color: @bgColor;
36+
border: solid 1px @bgHoverColor;
37+
-webkit-border-radius: 6px;
38+
-moz-border-radius: 6px;
39+
-ms-border-radius: 6px;
40+
-o-border-radius: 6px;
41+
border-radius: 6px;
42+
display: block;
43+
margin-bottom: 15px;
44+
padding: 6px 8px;
45+
46+
&:hover {
47+
color: @bgColor;
48+
background-color: @bgHoverColor;
49+
}
50+
51+
&.active {
52+
color: @activeColor;
53+
background-color: @activeBG;
54+
}
55+
}
56+
57+
@{isosID} .bs-2-row-start {
1658
margin-left: 0;
1759
}
1860

19-
[class*="iso-col-"] {
61+
@{isosID} [class*="iso-col-"] {
2062
position: relative;
2163
min-height: 1px;
2264
float: left;
2365
padding-left: 15px;
2466
padding-right: 15px;
2567
}
2668

27-
.iso-col-1 {
69+
@{isosID} .iso-col-1 {
2870
width: 8.33333333%;
2971
}
3072

31-
.iso-col-2 {
73+
@{isosID} .iso-col-2 {
3274
width: 16.66666667%;
3375
}
3476

35-
.iso-col-3 {
77+
@{isosID} .iso-col-3 {
3678
width: 25%;
3779
}
3880

39-
.iso-col-4 {
81+
@{isosID} .iso-col-4 {
4082
width: 33.33333333%;
4183
}
4284

43-
.iso-col-5 {
85+
@{isosID} .iso-col-5 {
4486
width: 20%;
4587
}
4688

47-
.iso-col-6 {
89+
@{isosID} .iso-col-6 {
4890
width: 50%;
4991
}
5092

51-
.iso-col-7 {
93+
@{isosID} .iso-col-7 {
5294
width: 58.33333333%;
5395
}
5496

55-
.iso-col-8 {
97+
@{isosID} .iso-col-8 {
5698
width: 66.66666667%;
5799
}
58100

59-
.iso-col-9 {
101+
@{isosID} .iso-col-9 {
60102
width: 75%;
61103
}
62104

63-
.iso-col-10 {
105+
@{isosID} .iso-col-10 {
64106
width: 83.33333333%;
65107
}
66108

67-
.iso-col-11 {
109+
@{isosID} .iso-col-11 {
68110
width: 91.66666667%;
69111
}
70112

71-
.iso-col-12 {
113+
@{isosID} .iso-col-12 {
72114
width: 100%;
73115
}

0 commit comments

Comments
 (0)