rapido-css 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,10 @@ Modals
4
4
 
5
5
  For modals is used the excellent [**fancyBox**](http://fancyapps.com/fancybox/) jQuery plugin, see full documentation for more in depth examples.
6
6
 
7
+ Script required:
8
+
9
+ <script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
10
+
7
11
  Markup:
8
12
  <a class="open__modal btn btn--default" href="#modal">Open modal</a>
9
13
  <div id="modal" class="modal">
@@ -12,7 +16,9 @@ Markup:
12
16
  </div>
13
17
  <script type="text/javascript">
14
18
  $(document).ready(function() {
15
- $(".open__modal").fancybox();
19
+ $(".open__modal").fancybox({
20
+ margin: [20, 60, 20, 60],
21
+ });
16
22
  });
17
23
  </script>
18
24
 
@@ -78,7 +84,7 @@ Styleguide 11
78
84
  &.fancybox-type-ajax {
79
85
 
80
86
  .fancybox-close {
81
- @extend %modal__close--alt !optional;
87
+ @extend %modal__close !optional;
82
88
  }
83
89
  }
84
90
 
@@ -141,6 +147,8 @@ Styleguide 11
141
147
  .fancybox-image {
142
148
  max-width: 100%;
143
149
  max-height: 100%;
150
+ z-index:($zindex-modal + 5);
151
+ position: relative;
144
152
  // @include border-radius($base-border-radius);
145
153
  }
146
154
 
@@ -149,14 +157,14 @@ Styleguide 11
149
157
  @include position(fixed, 50% 0 0 50%);
150
158
  @extend %modal__loading !optional;
151
159
  cursor: pointer;
152
- z-index: $zindex-modal +4;
160
+ z-index: ($zindex-modal + 4);
153
161
  }
154
162
 
155
163
 
156
164
  // Buttons and Navigation
157
165
 
158
166
  .fancybox-close {
159
- @extend %modal__btn !optional;
167
+ /*@extend %modal__btn !optional;*/
160
168
  @extend %modal__close !optional;
161
169
  // @include border-radius($base-border-radius);
162
170
  z-index: ($zindex-modal + 3);
@@ -172,19 +180,19 @@ Styleguide 11
172
180
  @extend %modal__btn !optional;
173
181
  @extend %modal__nav !optional;
174
182
  @include position(absolute, 50% 0 0 0);
175
- @include opacity(0);
183
+ /*@include opacity(0);*/
176
184
  z-index: ($zindex-modal + 2);
177
185
  }
178
186
 
179
- &:hover span { @include opacity(1); }
187
+ /*&:hover span { @include opacity(1); }*/
180
188
 
181
189
  &.fancybox-prev {
182
- left: 0;
190
+ left: -60px;
183
191
  span { left: 0; }
184
192
  }
185
193
 
186
194
  &.fancybox-next {
187
- right: 0;
195
+ right: -60px;
188
196
  span { right: 0; }
189
197
  }
190
198
  }
@@ -238,6 +246,10 @@ Styleguide 11
238
246
 
239
247
  Modal Buttons
240
248
 
249
+ Script required:
250
+
251
+ <script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/helpers/jquery.fancybox-buttons.min.js"></script>
252
+
241
253
  Markup:
242
254
  <a class="fancybox-button" rel="fancybox-button" href="http://placehold.it/600x400/c7e843/fff.jpg">
243
255
  <img src="http://placehold.it/60x60/c7e843/fff.jpg"/>
@@ -254,6 +266,7 @@ Markup:
254
266
  prevEffect : 'none',
255
267
  nextEffect : 'none',
256
268
  closeBtn : false,
269
+ margin: [20, 60, 20, 60],
257
270
  helpers : {
258
271
  title : { type : 'inside' },
259
272
  buttons : {}
@@ -298,6 +311,10 @@ Styleguide 11.1
298
311
 
299
312
  Modal Thumbs
300
313
 
314
+ Script required:
315
+
316
+ <script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/helpers/jquery.fancybox-thumbs.js"></script>
317
+
301
318
  Markup:
302
319
  <a class="fancybox-thumb" rel="fancybox-thumb" href="http://placehold.it/600x400/c7e843/fff.jpg">
303
320
  <img src="http://placehold.it/60x60/c7e843/fff.jpg"/>
@@ -313,6 +330,7 @@ Markup:
313
330
  $(".fancybox-thumb").fancybox({
314
331
  prevEffect : 'none',
315
332
  nextEffect : 'none',
333
+ margin: [20, 60, 20, 60],
316
334
  helpers : {
317
335
  title : {
318
336
  type: 'outside'
@@ -362,4 +380,4 @@ Styleguide 11.2
362
380
  }
363
381
  }
364
382
  }
365
- }
383
+ }
@@ -13,7 +13,14 @@ Markup:
13
13
  <ul class="nav {$modifiers}">
14
14
  <li class="nav__title">Nav header</li>
15
15
  <li class="current"><a href="#">Home</a></li>
16
- <li><a href="#">Messages</a></li>
16
+ <li><a href="#">Messages</a>
17
+ <ul>
18
+ <li><a href="#">Submenu title</a></li>
19
+ <li><a href="#">Submenu title</a></li>
20
+ <li><a href="#">Submenu title</a></li>
21
+ <li><a href="#">Submenu title</a></li>
22
+ </ul>
23
+ </li>
17
24
  <li><a href="#">Friends</a></li>
18
25
  <li class="disabled"><a href="#">Profile</a></li>
19
26
  </ul>
@@ -34,20 +41,16 @@ Styleguide 12
34
41
  margin-bottom: rhythm();
35
42
  position: relative;
36
43
 
37
- &, > ul {
44
+ &, ul {
38
45
  @extend .clearfix;
39
- list-style: none;
40
- margin-left: 0;
41
- padding-left: 0;
42
- }
43
-
44
- > ul {
45
- margin-bottom: 0;
46
+ @extend .list-style-none;
46
47
  }
47
48
 
48
49
  li {
50
+ position: relative;
49
51
 
50
52
  > a {
53
+ @extend .transition;
51
54
  display: inline-block;
52
55
  line-height: 1em;
53
56
 
@@ -64,9 +67,40 @@ Styleguide 12
64
67
  background-color: transparent;
65
68
  cursor: default;
66
69
  }
70
+
71
+ // Disabled
72
+ &.disabled > a { @extend %nav--btn__disabled !optional; }
73
+
74
+ }
75
+
76
+ // Dropdown
77
+
78
+ li ul {
79
+ @extend .transition;
80
+ @include opacity(0);
81
+ display/*\**/: none\9; // Ugly IE8 Hack
82
+ max-height: 0;
83
+ overflow: hidden;
84
+ z-index: 2;
85
+ }
86
+
87
+ li:hover ul,
88
+ li ul:hover {
89
+ @include opacity(1);
90
+ display/*\**/: block\9; // Ugly IE8 Hack
91
+ max-height: $dropdowns-height;
67
92
  }
93
+
94
+ li ul,
95
+ li:hover > a {
96
+ @extend %nav--btn__hover !optional;
97
+ }
98
+
68
99
  }
69
100
 
101
+
102
+
103
+
70
104
  // Nav Title
71
105
 
72
106
  .nav__title {
@@ -84,6 +118,16 @@ Styleguide 12
84
118
  .nav--inline {
85
119
  & > li,
86
120
  > ul > li { float: left;}
121
+
122
+
123
+ li ul {
124
+ @include position(absolute, 100% 0 0 0px);
125
+ min-width: 10em;
126
+ }
127
+
128
+
129
+
130
+
87
131
  }
88
132
 
89
133
  // Vertical nav
@@ -110,14 +154,14 @@ Styleguide 12
110
154
  }
111
155
  }
112
156
 
157
+ ul a { display: block; }
158
+
113
159
  &.current > a,
114
160
  &.current > a:hover,
115
161
  &.current > a:focus {
116
162
  @extend %nav--btn__current !optional;
117
163
  }
118
164
 
119
- // Disabled
120
- &.disabled > a { @extend %nav--btn__disabled !optional; }
121
165
  }
122
166
  }
123
167
 
@@ -134,4 +178,4 @@ Styleguide 12
134
178
  &[class*="vertical"] > li:last-child > a { margin-bottom: 0; }
135
179
  }
136
180
 
137
- }
181
+ }
@@ -0,0 +1,264 @@
1
+ /*
2
+
3
+ Off-Canvas
4
+
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
+
7
+ <div id="st-container" class="st-container">
8
+ <nav class="st-menu">
9
+ [...nav content...]
10
+ </nav>
11
+ <div class="st-pusher">
12
+ <div class="st-content">
13
+ [...main content...]
14
+ </div>
15
+ </div>
16
+ </div>
17
+
18
+ Download and link at the top of the page the following scripts:
19
+
20
+ * https://github.com/raffone/SidebarTransitions/blob/master/js/modernizr.custom.js
21
+
22
+ Download and link at the bottom of the page the following scripts:
23
+
24
+ * https://github.com/raffone/SidebarTransitions/blob/master/js/classie.js
25
+ * https://github.com/raffone/SidebarTransitions/blob/master/js/sidebarEffects.js
26
+
27
+ For opening and closing the sidebar add the class `st-menu-toggle` to a link or button.
28
+
29
+ Styleguide 15
30
+
31
+ */
32
+
33
+
34
+ @if $offcanvas {
35
+
36
+ $if-left: null;
37
+ $if-right: null;
38
+ $if-3d: null;
39
+ $if-width: null;
40
+
41
+ @if $offcanvas-direction == 'left' {
42
+ $if-left: 0px;
43
+ $if-right: 0;
44
+ $if-3d: -100%;
45
+ $if-width: $offcanvas-width;
46
+ } @else {
47
+ $if-left: 0;
48
+ $if-right: 0px;
49
+ $if-3d: 100%;
50
+ $if-width: neg($offcanvas-width);
51
+ }
52
+
53
+ html,
54
+ body,
55
+ .st-container,
56
+ .st-pusher,
57
+ .st-content {
58
+ height: 100%;
59
+
60
+ }
61
+
62
+ .st-container {
63
+ overflow: hidden;
64
+ position: relative;
65
+ }
66
+
67
+ // ----------------------------------------------------------------------------
68
+
69
+ .st-pusher {
70
+ @include position(relative, 0 $if-right 0 $if-left);
71
+ @include transition(transform $offcanvas-animations-duration);
72
+ z-index: $zindex-offcanvas;
73
+
74
+
75
+ &::after {
76
+ @include opacity(0);
77
+ @include position(absolute, 0px $if-left 0 $if-right);
78
+ @include square(0);
79
+ @include transition(opacity $offcanvas-animations-duration, width $offcanvas-animations-duration/4 $offcanvas-animations-duration);
80
+ content: '';
81
+
82
+ @if $offcanvas-dim {
83
+ @extend %nav--offcanvas__dim;
84
+ }
85
+ }
86
+ }
87
+
88
+ .st-content {
89
+ overflow-y: auto;
90
+ position: relative;
91
+ background: $body-color;
92
+ }
93
+
94
+ // .st-content-inner {
95
+ // position: relative;
96
+ // }
97
+
98
+ // ----------------------------------------------------------------------------
99
+
100
+ .st-menu-toggle {
101
+ @extend %nav--offcanvas__toggle !optional;
102
+ }
103
+
104
+ .st-menu-open {
105
+
106
+ .st-pusher::after {
107
+ @include opacity(1);
108
+ @include square(100%);
109
+ @include transition(opacity $offcanvas-animations-duration);
110
+ }
111
+
112
+ .st-menu::after {
113
+ @include opacity(0);
114
+ @include square(0);
115
+ @include transition(opacity $offcanvas-animations-duration, width $offcanvas-animations-duration/4 $offcanvas-animations-duration);
116
+ }
117
+ }
118
+
119
+ .st-menu {
120
+ @extend %nav--offcanvas;
121
+ @include position(absolute, 0px $if-right 0 $if-left);
122
+ @include size(100%, $offcanvas-width);
123
+ @include transition(all $offcanvas-animations-duration);
124
+ overflow-y: auto;
125
+ visibility: hidden;
126
+ z-index: $zindex-offcanvas+1;
127
+
128
+ &::after {
129
+ @include opacity(1);
130
+ @include position(absolute, 0px $if-left 0 $if-right);
131
+ @include square(100%);
132
+ @include transition(opacity $offcanvas-animations-duration);
133
+ content: '';
134
+
135
+ @if $offcanvas-dim {
136
+ @extend %nav--offcanvas__dim;
137
+ }
138
+ }
139
+
140
+ }
141
+
142
+ // ----------------------------------------------------------------------------
143
+
144
+ @if $offcanvas-effect == 'cover' {
145
+
146
+ .st-container {
147
+
148
+ .st-menu {
149
+ @include translate3d($if-3d, 0, 0);
150
+ visibility: visible;
151
+
152
+ &::after {
153
+ display: none;
154
+ }
155
+ }
156
+
157
+ &.st-menu-open {
158
+
159
+ .st-menu {
160
+ @include translate3d(0, 0, 0);
161
+ visibility: visible;
162
+ }
163
+ }
164
+ }
165
+ }
166
+
167
+ // ----------------------------------------------------------------------------
168
+
169
+ @if $offcanvas-effect == 'reveal' {
170
+
171
+ .st-container {
172
+
173
+ &.st-menu-open {
174
+
175
+ .st-pusher {
176
+ @include translate3d($if-width, 0, 0);
177
+ }
178
+
179
+ .st-menu {
180
+ @include transition(transform $offcanvas-animations-duration);
181
+ visibility: visible;
182
+ }
183
+ }
184
+
185
+ .st-menu {
186
+ z-index: 1;
187
+
188
+ &::after {
189
+ display: none;
190
+ }
191
+ }
192
+ }
193
+ }
194
+
195
+ // ----------------------------------------------------------------------------
196
+
197
+ @if $offcanvas-effect == 'push' {
198
+
199
+ .st-container {
200
+
201
+ &.st-menu-open {
202
+
203
+ .st-pusher {
204
+ @include translate3d($if-width, 0, 0);
205
+ }
206
+
207
+ .st-menu {
208
+ @include transition(transform $offcanvas-animations-duration);
209
+ visibility: visible;
210
+ @include translate3d(0, 0, 0);
211
+ }
212
+ }
213
+
214
+ .st-menu {
215
+ @include translate3d($if-3d, 0, 0);
216
+
217
+ &::after {
218
+ display: none;
219
+ }
220
+ }
221
+ }
222
+ }
223
+
224
+ // ----------------------------------------------------------------------------
225
+
226
+ @if $offcanvas-effect == 'slide' {
227
+
228
+ .st-container {
229
+
230
+ &.st-menu-open {
231
+
232
+ .st-pusher {
233
+ @include translate3d($if-width, 0, 0);
234
+ }
235
+
236
+ .st-menu {
237
+ @include transition(transform $offcanvas-animations-duration);
238
+ @include translate3d(0, 0, 0);
239
+ visibility: visible;
240
+ }
241
+ }
242
+
243
+ .st-menu {
244
+ z-index: 1;
245
+ @include translate3d($if-3d/2, 0, 0);
246
+
247
+ &::after {
248
+ display: none;
249
+ }
250
+ }
251
+ }
252
+ }
253
+
254
+ // ----------------------------------------------------------------------------
255
+
256
+ .no-csstransforms3d .st-pusher {
257
+ padding-left: $offcanvas-width;
258
+ }
259
+
260
+ .no-js .st-pusher {
261
+ padding-left: $offcanvas-width;
262
+ }
263
+
264
+ }
@@ -5,6 +5,10 @@ Sliders
5
5
  For modals is used the excellent [**BxSlider**](http://bxslider.com/) jQuery plugin,
6
6
  see full documentation for more in depth examples.
7
7
 
8
+ Script required:
9
+
10
+ <script src="//cdn.jsdelivr.net/bxslider/4.1.1/jquery.bxslider.js"></script>
11
+
8
12
  Markup:
9
13
  <ul class="slider">
10
14
  <li><img src="http://placehold.it/800x300/c7e843/fff.jpg" /></li>
@@ -5,6 +5,10 @@ Tabs
5
5
  For tabs is used the excellent [**EasyTabs**](http://os.alfajango.com/easytabs/) jQuery plugin,
6
6
  see full documentation for more in depth examples.
7
7
 
8
+ Script required:
9
+
10
+ <script src="//cdnjs.cloudflare.com/ajax/libs/jquery.easytabs/3.2.0/jquery.easytabs.min.js"></script>
11
+
8
12
  Markup:
9
13
  <div id="tabs" class="tabs">
10
14
  <ul class='etabs'>
@@ -94,4 +98,4 @@ Styleguide 18
94
98
 
95
99
  }
96
100
 
97
- }
101
+ }
@@ -34,7 +34,10 @@ body {
34
34
  color: $text-color;
35
35
  }
36
36
 
37
- img {max-width: 100%;}
37
+ img {
38
+ max-width: 100%;
39
+ display: inline-block;
40
+ }
38
41
 
39
42
  a, button, textarea, input { outline: none; }
40
43
 
@@ -97,7 +100,6 @@ h1, h2, h3, h4, h5, h6 {
97
100
  margin: 0 0 rhythm();
98
101
  text-rendering: optimizelegibility;
99
102
  font-family: $titles-font-family;
100
- color: $title-color;
101
103
 
102
104
  small {
103
105
  font-weight: normal;
@@ -0,0 +1 @@
1
+ @import "rapido";
@@ -43,7 +43,7 @@
43
43
  @import "components/close";
44
44
 
45
45
  @import "components/navs";
46
- @import "components/responsive-navs";
46
+ @import "components/off-canvas";
47
47
  @import "components/breadcrumbs";
48
48
  @import "components/pagination";
49
49
  @import "components/pager";
@@ -57,4 +57,4 @@
57
57
 
58
58
  // Default styles
59
59
 
60
- @import "default-styles";
60
+ @import "default-styles";
@@ -10,14 +10,16 @@ Styleguide 25
10
10
 
11
11
  Debug Mode
12
12
 
13
- $debug-mode: false # Enable debug mode
13
+ $debug-html: false # Enable debug html mode
14
+ $debug-outlines: false # Enable debug outlines mode
14
15
  $default-styles: true # Use default styles in _default-styles.scss
15
16
 
16
17
  Styleguide 25.1
17
18
 
18
19
  */
19
20
 
20
- $debug-mode: false !default;
21
+ $debug-html: false !default;
22
+ $debug-outlines: false !default;
21
23
  $default-styles: true !default;
22
24
 
23
25
 
@@ -67,6 +69,32 @@ $font-mono: Monaco, Menlo, Consolas, "Courier New",
67
69
  $base-font-family: $font-sans !default;
68
70
  $titles-font-family: $font-sans !default;
69
71
 
72
+ /*
73
+
74
+ Prefixes
75
+
76
+ Enable or disable specific broweser prefixes used by Compass mixins.
77
+
78
+ $experimental-support-for-mozilla: true
79
+ $experimental-support-for-webkit: true
80
+ $support-for-original-webkit-gradients: false
81
+ $experimental-support-for-opera: false
82
+ $experimental-support-for-microsoft: true
83
+ $experimental-support-for-khtml: false
84
+
85
+
86
+ Styleguide 25.4
87
+
88
+ */
89
+
90
+ $experimental-support-for-mozilla: true !default;
91
+ $experimental-support-for-webkit: true !default;
92
+ $support-for-original-webkit-gradients: false !default;
93
+ $experimental-support-for-opera: false !default;
94
+ $experimental-support-for-microsoft: true !default;
95
+ $experimental-support-for-khtml: false !default;
96
+
97
+
70
98
 
71
99
  /*
72
100
 
@@ -82,4 +110,4 @@ Styleguide 24.1
82
110
 
83
111
  @function em($to-size, $from-size: $base-font-size) {
84
112
  @return ($to-size / $from-size) + 0em;
85
- }
113
+ }
@@ -28,6 +28,7 @@ $white: lighten($black, 100);
28
28
 
29
29
  Default colors
30
30
 
31
+ $body-color: #FFFFFF
31
32
  $text-color: #333
32
33
 
33
34
  $link-color: #0066cc
@@ -37,8 +38,8 @@ Styleguide 26.1
37
38
 
38
39
  */
39
40
 
41
+ $body-color: #FFFFFF !default;
40
42
  $text-color: #333 !default;
41
- $title-color: #333 !default;
42
43
 
43
44
  $link-color: #0066cc !default;
44
45
  $link-color-hover: darken($link-color, 10) !default;