particle 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +53 -0
- data/lib/particle.rb +3 -0
- data/stylesheets/_particle.scss +2 -0
- data/stylesheets/particle/_css3.scss +5 -0
- data/stylesheets/particle/_layout.scss +5 -0
- data/stylesheets/particle/_typography.scss +3 -0
- data/stylesheets/particle/css3/_blend-modes.scss +367 -0
- data/stylesheets/particle/css3/_drop-shadow.scss +18 -0
- data/stylesheets/particle/css3/_gradient.scss +41 -0
- data/stylesheets/particle/css3/_noise.scss +13 -0
- data/stylesheets/particle/css3/_rotate.scss +12 -0
- data/stylesheets/particle/layout/_apprise.scss +66 -0
- data/stylesheets/particle/layout/_images.scss +25 -0
- data/stylesheets/particle/layout/_jquery-ui.scss +142 -0
- data/stylesheets/particle/layout/_slider.scss +4 -0
- data/stylesheets/particle/layout/_ui.scss +178 -0
- data/stylesheets/particle/layout/slider/_anything.scss +347 -0
- data/stylesheets/particle/layout/slider/_jcarousel.scss +220 -0
- data/stylesheets/particle/layout/slider/_nivo.scss +563 -0
- data/stylesheets/particle/layout/slider/_tiny.scss +186 -0
- data/stylesheets/particle/typography/_legible-color-text.scss +6 -0
- data/stylesheets/particle/typography/_render-fix.scss +19 -0
- data/stylesheets/particle/typography/_text-replacement.scss +32 -0
- data/templates/project/manifest.rb +12 -0
- data/templates/project/style.scss +10 -0
- metadata +85 -0
@@ -0,0 +1,220 @@
|
|
1
|
+
@import "compass/css3/border-radius";
|
2
|
+
|
3
|
+
$default-carousel-path: "images" !default;
|
4
|
+
$items: 5;
|
5
|
+
$default-carousel-orientation: horizontal !default;
|
6
|
+
$default-carousel-bg-color: transparent !default;
|
7
|
+
$default-carousel-title-color: #000000 !default;
|
8
|
+
$default-carousel-item-size: 120px !default;
|
9
|
+
$default-carousel-height: $default-carousel-item-size !default;
|
10
|
+
$default-carousel-margin: 40px !default;
|
11
|
+
$default-carousel-compound-item-size: $default-carousel-item-size + $default-carousel-margin;
|
12
|
+
$default-carousel-width: $default-carousel-compound-item-size * $items !default;
|
13
|
+
|
14
|
+
@mixin jcarousel-skin-tango(
|
15
|
+
$carousel-path: $default-carousel-path,
|
16
|
+
$carousel-orientation: $default-carousel-orientation,
|
17
|
+
$carousel-bg-color: $default-carousel-bg-color,
|
18
|
+
$carousel-title-color: $default-carousel-title-color,
|
19
|
+
$carousel-item-size: $default-carousel-item-size,
|
20
|
+
$carousel-height: $default-carousel-height,
|
21
|
+
$carousel-margin: $default-carousel-margin,
|
22
|
+
$carousel-width: $default-carousel-width
|
23
|
+
) {
|
24
|
+
.jcarousel-skin-tango {
|
25
|
+
> div {
|
26
|
+
@include border-radius(10px);
|
27
|
+
background: $carousel-bg-color;
|
28
|
+
margin: 0 auto;
|
29
|
+
@if $carousel-orientation == horizontal {
|
30
|
+
width: $carousel-width;
|
31
|
+
padding: 20px 40px;
|
32
|
+
}
|
33
|
+
@if $carousel-orientation == vertical {
|
34
|
+
width: $carousel-height;
|
35
|
+
height: $carousel-width;
|
36
|
+
padding: 40px 20px;
|
37
|
+
}
|
38
|
+
.jcarousel-direction-rtl {
|
39
|
+
direction: rtl;
|
40
|
+
@if $carousel-orientation == horizontal {
|
41
|
+
.jcarousel-item {
|
42
|
+
margin-left: 10px;
|
43
|
+
margin-right: 0;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
.jcarousel-clip {
|
48
|
+
overflow: hidden;
|
49
|
+
@if $carousel-orientation == horizontal {
|
50
|
+
width: $carousel-width;
|
51
|
+
height: $carousel-height+5px;
|
52
|
+
}
|
53
|
+
@if $carousel-orientation == vertical {
|
54
|
+
width: $carousel-height;
|
55
|
+
height: $carousel-width;
|
56
|
+
}
|
57
|
+
.jcarousel-list {
|
58
|
+
height: $carousel-height+5px;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
> div {
|
62
|
+
> ul {
|
63
|
+
> li { //.jcarousel-item {
|
64
|
+
&, > div {
|
65
|
+
width: $carousel-item-size;
|
66
|
+
height: $carousel-item-size;
|
67
|
+
}
|
68
|
+
a span {
|
69
|
+
cursor: pointer;
|
70
|
+
}
|
71
|
+
@if $carousel-orientation == horizontal {
|
72
|
+
margin-left: $carousel-margin/2;
|
73
|
+
margin-right: $carousel-margin/2;
|
74
|
+
a span {
|
75
|
+
width: $carousel-item-size;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
@if $carousel-orientation == vertical {
|
79
|
+
margin-bottom: 10px;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
.jcarousel-item-placeholder {
|
86
|
+
background-color: $carousel-bg-color;
|
87
|
+
color: $carousel-title-color;
|
88
|
+
}
|
89
|
+
|
90
|
+
.jcarousel-next {
|
91
|
+
position: absolute;
|
92
|
+
width: 32px;
|
93
|
+
height: 32px;
|
94
|
+
cursor: pointer;
|
95
|
+
background-color: transparent;
|
96
|
+
background-repeat: no-repeat;
|
97
|
+
background-position: 0 0;
|
98
|
+
@if $carousel-orientation == horizontal {
|
99
|
+
top: $carousel-item-size/2;
|
100
|
+
right: 5px;
|
101
|
+
background-image: url("$carousel-path/images/next-horizontal.png");
|
102
|
+
.jcarousel-direction-rtl & {
|
103
|
+
left: 5px;
|
104
|
+
right: auto;
|
105
|
+
background-image: url("$carousel-path/images/prev-horizontal.png");
|
106
|
+
}
|
107
|
+
&:hover, &:focus {
|
108
|
+
background-position: -32px 0;
|
109
|
+
}
|
110
|
+
&:active {
|
111
|
+
background-position: -64px 0;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
@if $carousel-orientation == vertical {
|
115
|
+
bottom: 5px;
|
116
|
+
left: $carousel-item-size/2;
|
117
|
+
background-image: url("$carousel-path/images/next-vertical.png");
|
118
|
+
&:hover, &:focus {
|
119
|
+
background-position: 0 -32px;
|
120
|
+
}
|
121
|
+
&:active {
|
122
|
+
background-position: 0 -64px;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
.jcarousel-next-disabled-horizontal {
|
128
|
+
&, &:hover, &:focus, &:active {
|
129
|
+
cursor: default;
|
130
|
+
background-position: -96px 0;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
.jcarousel-next-disabled-vertical {
|
135
|
+
&, &:hover, &:focus, &:active {
|
136
|
+
cursor: default;
|
137
|
+
background-position: 0 -96px;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
.jcarousel-prev {
|
142
|
+
position: absolute;
|
143
|
+
width: 32px;
|
144
|
+
height: 32px;
|
145
|
+
cursor: pointer;
|
146
|
+
background-color: transparent;
|
147
|
+
background-repeat: no-repeat;
|
148
|
+
background-position: 0 0;
|
149
|
+
@if $carousel-orientation == horizontal {
|
150
|
+
top: $carousel-item-size/2;
|
151
|
+
left: 5px;
|
152
|
+
background-image: url("$carousel-path/images/prev-horizontal.png");
|
153
|
+
.jcarousel-direction-rtl & {
|
154
|
+
left: auto;
|
155
|
+
right: 5px;
|
156
|
+
background-image: url("$carousel-path/images/next-horizontal.png");
|
157
|
+
}
|
158
|
+
&:hover, &:focus {
|
159
|
+
background-position: -32px 0;
|
160
|
+
}
|
161
|
+
&:active {
|
162
|
+
background-position: -64px 0;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
@if $carousel-orientation == vertical {
|
166
|
+
top: 5px;
|
167
|
+
left: $carousel-item-size/2;
|
168
|
+
background-image: url("$carousel-path/images/prev-vertical.png");
|
169
|
+
&:hover, &:focus {
|
170
|
+
background-position: 0 -32px;
|
171
|
+
}
|
172
|
+
&:active {
|
173
|
+
background-position: 0 -64px;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
.jcarousel-prev-disabled-horizontal {
|
179
|
+
&, &:hover, &:focus, &:active {
|
180
|
+
cursor: default;
|
181
|
+
background-position: -96px 0;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
.jcarousel-prev-disabled-vertical {
|
186
|
+
&, &:hover, &:focus, &:active {
|
187
|
+
cursor: default;
|
188
|
+
background-position: 0 -96px;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
@mixin jcarousel-box-model {
|
196
|
+
.jcarousel-skin-tango {
|
197
|
+
ul li { //.jcarousel-item {
|
198
|
+
> div {
|
199
|
+
position: relative;
|
200
|
+
}
|
201
|
+
a span {
|
202
|
+
position: absolute;
|
203
|
+
bottom: 0;
|
204
|
+
font-size: 18px;
|
205
|
+
display: block;
|
206
|
+
padding: 5px 0;
|
207
|
+
}
|
208
|
+
a img {
|
209
|
+
width: $default-carousel-item-size;
|
210
|
+
height: $default-carousel-item-size;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|