rapido-css 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,29 +4,40 @@ Off-Canvas
4
4
 
5
5
  There's available a nice off-canvas sidebar functionality adapted from [Codrops](http://tympanus.net/codrops/2013/08/28/transitions-for-off-canvas-navigations).
6
6
 
7
- <div id="st-container" class="st-container">
8
- <nav class="st-menu">
7
+ Script required: **rapido.js**.
8
+
9
+ <div id="offcanvas__container" class="offcanvas__container">
10
+ <nav class="offcanvas__menu">
9
11
  [...nav content...]
10
12
  </nav>
11
- <div class="st-pusher">
12
- <div class="st-content">
13
+ <div class="offcanvas__pusher">
14
+ <div class="offcanvas__content">
13
15
  [...main content...]
14
16
  </div>
15
17
  </div>
16
18
  </div>
17
19
 
18
- Download and link at the top of the page the following scripts:
20
+ Styleguide 15
19
21
 
20
- * https://github.com/raffone/SidebarTransitions/blob/master/js/modernizr.custom.js
22
+ */
21
23
 
22
- Download and link at the bottom of the page the following scripts:
24
+ /*
23
25
 
24
- * https://github.com/raffone/SidebarTransitions/blob/master/js/classie.js
25
- * https://github.com/raffone/SidebarTransitions/blob/master/js/sidebarEffects.js
26
+ Off-Canvas JS
26
27
 
27
- For opening and closing the sidebar add the class `st-menu-toggle` to a link or button.
28
+ Include this js after including rapido.js.
28
29
 
29
- Styleguide 15
30
+ $('.offcanvas__menu--toggle').rapido_Offcanvas();
31
+
32
+ **Options** (with defaul values):
33
+
34
+ toggleClass: offcanvas__menu--open
35
+ containerClass: .offcanvas__container
36
+ menuClass: .offcanvas__menu
37
+
38
+ For opening and closing the sidebar add the class `offcanvas__menu--toggle` to a link or button.
39
+
40
+ Styleguide 15.2
30
41
 
31
42
  */
32
43
 
@@ -52,21 +63,21 @@ Styleguide 15
52
63
 
53
64
  html,
54
65
  body,
55
- .st-container,
56
- .st-pusher,
57
- .st-content {
66
+ .offcanvas__container,
67
+ .offcanvas__pusher,
68
+ .offcanvas__content {
58
69
  height: 100%;
59
70
 
60
71
  }
61
72
 
62
- .st-container {
73
+ .offcanvas__container {
63
74
  overflow: hidden;
64
75
  position: relative;
65
76
  }
66
77
 
67
78
  // ----------------------------------------------------------------------------
68
79
 
69
- .st-pusher {
80
+ .offcanvas__pusher {
70
81
  @include position(relative, 0 $if-right 0 $if-left);
71
82
  @include transition(transform $offcanvas-animations-duration);
72
83
  z-index: $zindex-offcanvas;
@@ -80,44 +91,44 @@ Styleguide 15
80
91
  content: '';
81
92
 
82
93
  @if $offcanvas-dim {
83
- @extend %nav--offcanvas__dim;
94
+ @extend %nav--offcanvas__dim !optional;
84
95
  }
85
96
  }
86
97
  }
87
98
 
88
- .st-content {
99
+ .offcanvas__content {
89
100
  overflow-y: auto;
90
101
  position: relative;
91
102
  background: $body-color;
92
103
  }
93
104
 
94
- // .st-content-inner {
105
+ // .offcanvas__content-inner {
95
106
  // position: relative;
96
107
  // }
97
108
 
98
109
  // ----------------------------------------------------------------------------
99
110
 
100
- .st-menu-toggle {
111
+ .offcanvas__menu--toggle {
101
112
  @extend %nav--offcanvas__toggle !optional;
102
113
  }
103
114
 
104
- .st-menu-open {
115
+ .offcanvas__menu--open {
105
116
 
106
- .st-pusher::after {
117
+ .offcanvas__pusher::after {
107
118
  @include opacity(1);
108
119
  @include square(100%);
109
120
  @include transition(opacity $offcanvas-animations-duration);
110
121
  }
111
122
 
112
- .st-menu::after {
123
+ .offcanvas__menu::after {
113
124
  @include opacity(0);
114
125
  @include square(0);
115
126
  @include transition(opacity $offcanvas-animations-duration, width $offcanvas-animations-duration/4 $offcanvas-animations-duration);
116
127
  }
117
128
  }
118
129
 
119
- .st-menu {
120
- @extend %nav--offcanvas;
130
+ .offcanvas__menu {
131
+ @extend %nav--offcanvas !optional;
121
132
  @include position(absolute, 0px $if-right 0 $if-left);
122
133
  @include size(100%, $offcanvas-width);
123
134
  @include transition(all $offcanvas-animations-duration);
@@ -133,7 +144,7 @@ Styleguide 15
133
144
  content: '';
134
145
 
135
146
  @if $offcanvas-dim {
136
- @extend %nav--offcanvas__dim;
147
+ @extend %nav--offcanvas__dim !optional;
137
148
  }
138
149
  }
139
150
 
@@ -143,9 +154,9 @@ Styleguide 15
143
154
 
144
155
  @if $offcanvas-effect == 'cover' {
145
156
 
146
- .st-container {
157
+ .offcanvas__container {
147
158
 
148
- .st-menu {
159
+ .offcanvas__menu {
149
160
  @include translate3d($if-3d, 0, 0);
150
161
  visibility: visible;
151
162
 
@@ -154,9 +165,9 @@ Styleguide 15
154
165
  }
155
166
  }
156
167
 
157
- &.st-menu-open {
168
+ &.offcanvas__menu--open {
158
169
 
159
- .st-menu {
170
+ .offcanvas__menu {
160
171
  @include translate3d(0, 0, 0);
161
172
  visibility: visible;
162
173
  }
@@ -168,21 +179,21 @@ Styleguide 15
168
179
 
169
180
  @if $offcanvas-effect == 'reveal' {
170
181
 
171
- .st-container {
182
+ .offcanvas__container {
172
183
 
173
- &.st-menu-open {
184
+ &.offcanvas__menu--open {
174
185
 
175
- .st-pusher {
186
+ .offcanvas__pusher {
176
187
  @include translate3d($if-width, 0, 0);
177
188
  }
178
189
 
179
- .st-menu {
190
+ .offcanvas__menu {
180
191
  @include transition(transform $offcanvas-animations-duration);
181
192
  visibility: visible;
182
193
  }
183
194
  }
184
195
 
185
- .st-menu {
196
+ .offcanvas__menu {
186
197
  z-index: 1;
187
198
 
188
199
  &::after {
@@ -196,22 +207,22 @@ Styleguide 15
196
207
 
197
208
  @if $offcanvas-effect == 'push' {
198
209
 
199
- .st-container {
210
+ .offcanvas__container {
200
211
 
201
- &.st-menu-open {
212
+ &.offcanvas__menu--open {
202
213
 
203
- .st-pusher {
214
+ .offcanvas__pusher {
204
215
  @include translate3d($if-width, 0, 0);
205
216
  }
206
217
 
207
- .st-menu {
218
+ .offcanvas__menu {
208
219
  @include transition(transform $offcanvas-animations-duration);
209
220
  visibility: visible;
210
221
  @include translate3d(0, 0, 0);
211
222
  }
212
223
  }
213
224
 
214
- .st-menu {
225
+ .offcanvas__menu {
215
226
  @include translate3d($if-3d, 0, 0);
216
227
 
217
228
  &::after {
@@ -225,22 +236,22 @@ Styleguide 15
225
236
 
226
237
  @if $offcanvas-effect == 'slide' {
227
238
 
228
- .st-container {
239
+ .offcanvas__container {
229
240
 
230
- &.st-menu-open {
241
+ &.offcanvas__menu--open {
231
242
 
232
- .st-pusher {
243
+ .offcanvas__pusher {
233
244
  @include translate3d($if-width, 0, 0);
234
245
  }
235
246
 
236
- .st-menu {
247
+ .offcanvas__menu {
237
248
  @include transition(transform $offcanvas-animations-duration);
238
249
  @include translate3d(0, 0, 0);
239
250
  visibility: visible;
240
251
  }
241
252
  }
242
253
 
243
- .st-menu {
254
+ .offcanvas__menu {
244
255
  z-index: 1;
245
256
  @include translate3d($if-3d/2, 0, 0);
246
257
 
@@ -253,11 +264,11 @@ Styleguide 15
253
264
 
254
265
  // ----------------------------------------------------------------------------
255
266
 
256
- .no-csstransforms3d .st-pusher {
267
+ .no-csstransforms3d .offcanvas__pusher {
257
268
  padding-left: $offcanvas-width;
258
269
  }
259
270
 
260
- .no-js .st-pusher {
271
+ .no-js .offcanvas__pusher {
261
272
  padding-left: $offcanvas-width;
262
273
  }
263
274
 
@@ -29,6 +29,7 @@ Styleguide 14
29
29
 
30
30
  .pagination {
31
31
  margin: rhythm() 0;
32
+ clear: both;
32
33
 
33
34
  > * {
34
35
  @extend .clearfix;
@@ -56,7 +57,7 @@ Styleguide 14
56
57
 
57
58
  li:first-child > a,
58
59
  li:first-child > span {
59
- border-left-width: 1px;
60
+ border-left-width: $input-border;
60
61
  }
61
62
 
62
63
  li > a:hover {
@@ -113,4 +114,4 @@ Styleguide 14
113
114
  }
114
115
  }
115
116
 
116
- }
117
+ }
@@ -29,7 +29,7 @@ Markup:
29
29
  .table--hover - Enable a hover state on table rows within a `<tbody>`.
30
30
  .table--condensed - Makes tables more compact by cutting cell padding in half.
31
31
 
32
- Styleguide 17
32
+ Styleguide 18
33
33
 
34
34
  */
35
35
 
@@ -38,7 +38,7 @@ Markup:
38
38
  });
39
39
  </script>
40
40
 
41
- Styleguide 18
41
+ Styleguide 19
42
42
 
43
43
  */
44
44
 
@@ -0,0 +1,43 @@
1
+ /*
2
+
3
+ Toggle
4
+
5
+ Toggle visibility using `.open` class between elements of a container.
6
+
7
+ Script required: **rapido.js**.
8
+
9
+ <section class="news">
10
+ <article>
11
+ <h3 data-toggle-name="news_1">News title</h3>
12
+ <p data-toggle-content="news_1">News content</p>
13
+ </article>
14
+ <article>
15
+ <h3 data-toggle-name="news_2">News title</h4>
16
+ <p data-toggle-content="news_2">News content</p>
17
+ </article>
18
+ </section>
19
+
20
+ Include this js after including rapido.js.
21
+
22
+ $('.toggle').rapido_Toggle();
23
+
24
+ You can also pass a delay between the removing and adding the class, usefull
25
+ when you have two animation that you don't wont to start at the same time.
26
+
27
+ **Options** (with defaul values):
28
+
29
+ titleClass: [data-toggle-name]
30
+ contentClass: [data-toggle-content]
31
+ delay: 0
32
+
33
+ Remeber to add closed and open state in the css, this module doesn't have
34
+ default styling, es:
35
+
36
+ [data-toggle-content] { display: none; }
37
+ [data-toggle-content].open { display: block; }
38
+
39
+ Styleguide 17
40
+
41
+ */
42
+
43
+
@@ -2,7 +2,7 @@
2
2
 
3
3
  Type
4
4
 
5
- Styleguide 19
5
+ Styleguide 20
6
6
 
7
7
  */
8
8
 
@@ -56,6 +56,17 @@ a {
56
56
  }
57
57
 
58
58
 
59
+ // Selection color
60
+
61
+ ::selection {
62
+ background: $selection-color;
63
+ }
64
+
65
+ ::-moz-selection {
66
+ background: $selection-color;
67
+ }
68
+
69
+
59
70
  /*
60
71
 
61
72
  Body text
@@ -65,7 +76,7 @@ Markup:
65
76
  <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec id elit non mi porta gravida at eget metus.</p>
66
77
  <small><p>Tight pants next level keffiyeh. Photo booth beard raw denim letterpress vegan messenger bag stumptown.</small>
67
78
 
68
- Styleguide 19.1
79
+ Styleguide 20.1
69
80
 
70
81
  */
71
82
 
@@ -92,7 +103,7 @@ Markup:
92
103
  <h5>h5. This is a small header. h1.</h5>
93
104
  <h6>h6. This is a tiny header. h1.</h6>
94
105
 
95
- Styleguide 19.2
106
+ Styleguide 20.2
96
107
 
97
108
  */
98
109
 
@@ -159,7 +170,7 @@ Markup:
159
170
  <li>Ordered list item</li>
160
171
  </ol>
161
172
 
162
- Styleguide 19.3
173
+ Styleguide 20.3
163
174
 
164
175
  */
165
176
 
@@ -210,7 +221,7 @@ Markup:
210
221
  <dd>A geologist’s hammer, rock hammer, rock pick or geological pick is a hammer used for splitting and breaking rocks.</dd>
211
222
  </dl>
212
223
 
213
- Styleguide 19.4
224
+ Styleguide 20.4
214
225
 
215
226
  */
216
227
 
@@ -231,7 +242,7 @@ Markup:
231
242
  <dd>A geologist’s hammer, rock hammer, rock pick or geological pick is a hammer used for splitting and breaking rocks.</dd>
232
243
  </dl>
233
244
 
234
- Styleguide 19.4.1
245
+ Styleguide 20.4.1
235
246
 
236
247
  */
237
248
 
@@ -254,7 +265,7 @@ Horizontal line
254
265
 
255
266
  Markup: <hr />
256
267
 
257
- Styleguide 19.5
268
+ Styleguide 20.5
258
269
 
259
270
  */
260
271
 
@@ -286,7 +297,7 @@ Markup:
286
297
  <small><cite>Rock Hammer</cite></small>
287
298
  </blockquote>
288
299
 
289
- Styleguide 19.6
300
+ Styleguide 20.6
290
301
 
291
302
  */
292
303
 
@@ -31,29 +31,26 @@
31
31
 
32
32
  // Components
33
33
 
34
- @import "components/type";
35
- @import "components/forms";
36
- @import "components/tables";
37
- @import "components/captions";
38
-
39
- @import "components/buttons";
34
+ @import "components/alerts";
40
35
  @import "components/button-groups";
41
- @import "components/dropdowns";
42
- @import "components/labels";
36
+ @import "components/buttons";
43
37
  @import "components/close";
44
-
38
+ @import "components/dropdowns";
39
+ @import "components/forms";
40
+ @import "components/modals";
45
41
  @import "components/navs";
46
42
  @import "components/off-canvas";
47
- @import "components/breadcrumbs";
48
- @import "components/pagination";
49
- @import "components/pager";
50
-
51
- @import "components/alerts";
52
-
53
- @import "components/grids";
54
- @import "components/modals";
55
43
  @import "components/sliders";
44
+ @import "components/tables";
56
45
  @import "components/tabs";
46
+ @import "components/toggle";
47
+ @import "components/type";
48
+ @import "components/breadcrumbs";
49
+ @import "components/captions";
50
+ @import "components/grids";
51
+ @import "components/labels";
52
+ @import "components/pager";
53
+ @import "components/pagination";
57
54
 
58
55
  // Default styles
59
56
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Base Settings
4
4
 
5
- Styleguide 25
5
+ Styleguide 26
6
6
 
7
7
  */
8
8
 
@@ -14,7 +14,7 @@ Debug Mode
14
14
  $debug-outlines: false # Enable debug outlines mode
15
15
  $default-styles: true # Use default styles in _default-styles.scss
16
16
 
17
- Styleguide 25.1
17
+ Styleguide 26.1
18
18
 
19
19
  */
20
20
 
@@ -36,7 +36,7 @@ on `palm` (smartphone) change the base size to 16px, it will be automatically co
36
36
 
37
37
  $responsive-font-size: lap-and-up $base-font-size, palm 16px
38
38
 
39
- Styleguide 25.2
39
+ Styleguide 26.2
40
40
 
41
41
  */
42
42
 
@@ -58,7 +58,7 @@ Font families
58
58
  $base-font-family: $font-sans # Default font family for body text
59
59
  $titles-font-family: $font-sans # Default font family for titles
60
60
 
61
- Styleguide 25.3
61
+ Styleguide 26.3
62
62
 
63
63
  */
64
64
 
@@ -83,7 +83,7 @@ Enable or disable specific broweser prefixes used by Compass mixins.
83
83
  $experimental-support-for-khtml: false
84
84
 
85
85
 
86
- Styleguide 25.4
86
+ Styleguide 26.4
87
87
 
88
88
  */
89
89
 
@@ -104,7 +104,7 @@ To convert `PX` to `EM` using the `$base-font-size` as font size.
104
104
 
105
105
  width: em(20px);
106
106
 
107
- Styleguide 24.1
107
+ Styleguide 25.1
108
108
 
109
109
  */
110
110
 
@@ -12,7 +12,7 @@ Used for scaffolding
12
12
  $grayLighter: lighten($black, 95)
13
13
  $white: #fff
14
14
 
15
- Styleguide 26
15
+ Styleguide 27
16
16
 
17
17
  */
18
18
 
@@ -34,7 +34,7 @@ Default colors
34
34
  $link-color: #0066cc
35
35
  $link-color-hover: darken($link-color, 10%)
36
36
 
37
- Styleguide 26.1
37
+ Styleguide 27.1
38
38
 
39
39
  */
40
40
 
@@ -45,4 +45,5 @@ $link-color: #0066cc
45
45
  $link-color-hover: darken($link-color, 10) !default;
46
46
 
47
47
  $placeholder-color: $gray !default;
48
+ $selection-color: $gray !default;
48
49
 
@@ -33,7 +33,7 @@ Enable or disable components, so you can have in the css only what you need.
33
33
 
34
34
  $width-helper-classes: true # "Elements width" helper class
35
35
 
36
- Styleguide 27
36
+ Styleguide 28
37
37
 
38
38
  */
39
39
 
@@ -77,7 +77,7 @@ Sprites
77
77
  $s-sprite-dimensions: true;
78
78
  $s-layout: smart;
79
79
 
80
- Styleguide 27.1
80
+ Styleguide 28.1
81
81
 
82
82
  */
83
83
 
@@ -103,7 +103,7 @@ Font files are not required, is used the [We Love Icon Fonts](http://weloveiconf
103
103
  $use-typicons: false # http://typicons.com/
104
104
  $use-zocial: false # http://zocial.smcllns.com/
105
105
 
106
- Styleguide 27.2
106
+ Styleguide 28.2
107
107
 
108
108
  */
109
109
 
@@ -5,7 +5,7 @@ Base Dimensions
5
5
  $base-border-radius: 4px # Border radius used as a standard on all elements.
6
6
  $horizontal-offset: 180px # Labels width in horizontal forms.
7
7
 
8
- Styleguide 28
8
+ Styleguide 29
9
9
 
10
10
  */
11
11
 
@@ -35,7 +35,7 @@ Font sizes you can used with the compass mixin `adjust-font-size-to()`. Naming c
35
35
  $smaller-size: $base-font-size * .7 # 10px
36
36
  $smallest-size: $base-font-size * .5 # 7px
37
37
 
38
- Styleguide 28.1
38
+ Styleguide 29.1
39
39
 
40
40
  */
41
41
 
@@ -78,7 +78,7 @@ These values mean: n times the base line-height.
78
78
  $h5-line-height: 1.5
79
79
  $h6-line-height: 1.5
80
80
 
81
- Styleguide 28.1.1
81
+ Styleguide 29.1.1
82
82
 
83
83
  */
84
84
 
@@ -102,7 +102,7 @@ Base padding and margins used in the forms.
102
102
  $input-padding-side: 10px # Base side padding
103
103
  $checkbox-padding-left: 20px # Side padding used for checkboxes and radios
104
104
 
105
- Styleguide 28.2
105
+ Styleguide 29.2
106
106
 
107
107
  */
108
108
 
@@ -150,7 +150,7 @@ Components
150
150
  $tabs-content-padding: $input-padding # Tabs padding
151
151
  $tabs-tab-padding: $input-padding # Tabs padding
152
152
 
153
- Styleguide 28.3
153
+ Styleguide 29.3
154
154
 
155
155
  */
156
156
 
@@ -186,7 +186,7 @@ Sizes
186
186
  $modal-btn-size: em(30px) # Size of buttons used with the modals
187
187
  $slider-btn-size: em(30px) # Size of buttons used with the sliders
188
188
 
189
- Styleguide 28.4
189
+ Styleguide 29.4
190
190
 
191
191
  */
192
192
 
@@ -203,7 +203,7 @@ Some elements need to have a max-height specified for smoother animations, like
203
203
 
204
204
  $dropdowns-height: em(600px);
205
205
 
206
- Styleguide 28.5
206
+ Styleguide 29.5
207
207
 
208
208
  */
209
209
 
@@ -220,7 +220,7 @@ Set the width of the three steps of the layout.
220
220
  $desk-start: 768px # Max width for tablet
221
221
  $desk-end: 1080px # Max width for desktop
222
222
 
223
- Styleguide 28.6
223
+ Styleguide 29.6
224
224
 
225
225
  */
226
226
 
@@ -243,7 +243,7 @@ Default settings for susy grid. More info: [Susy](http://susy.oddbird.net/).
243
243
  $gutter-width: 30px # Gutter width
244
244
  $container-style: fluid # Grid style
245
245
 
246
- Styleguide 28.7
246
+ Styleguide 29.7
247
247
 
248
248
  */
249
249
 
@@ -285,7 +285,7 @@ Default settings for overlay components, taken from Bootstrap.
285
285
  $zindex-slider: 1040 # Sliders
286
286
  $zindex-modal: 1050 # Modals
287
287
 
288
- Styleguide 28.9
288
+ Styleguide 29.9
289
289
 
290
290
  */
291
291
 
@@ -29,7 +29,7 @@ Durations specifics for some modules.
29
29
  $caption-animations-duration: .50s
30
30
 
31
31
 
32
- Styleguide 20.1
32
+ Styleguide 21.1
33
33
 
34
34
  */
35
35