rapido-css 0.0.2.1 → 0.0.3

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.
data/README.md ADDED
@@ -0,0 +1,13 @@
1
+ ## Rapido Framework
2
+
3
+ An easy and quick sass+compass+susy prototyping framework based on Bootstrap without all the default styles.
4
+
5
+ ### Credits:
6
+ Bootstrap: https://github.com/twitter/bootstrap
7
+ Twitter Bootstrap - For Compass: https://github.com/vwall/compass-twitter-bootstrap
8
+ Susy [a Compass plugin]: https://github.com/ericam/susy
9
+ HTML5 Boilerplate: https://github.com/h5bp/html5-boilerplate
10
+
11
+ ### License
12
+
13
+ MIT License. Copyright 2013 Raffaele Rasini. http://creativebits.it
@@ -13,12 +13,13 @@
13
13
  // Inputs
14
14
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
15
15
  %input {
16
- color: $text-color;
17
16
  border-color: $gray;
18
17
  background-color: $grayLighter;
18
+ @include box-shadow(inset 0 1px 0 #fff);
19
+ @include background-image(linear-gradient(bottom, $white 0%, $grayLighter 100%));
19
20
 
20
21
  &:focus {
21
- background-color: $grayLight;
22
+ @include background-image(linear-gradient(bottom, $white 50%, $grayLighter 100%));
22
23
  }
23
24
  }
24
25
 
@@ -32,13 +33,7 @@
32
33
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
33
34
 
34
35
  %select {
35
- color: $text-color;
36
- border-color: $gray;
37
- background-color: $grayLighter;
38
-
39
- &:hover {
40
- background-color: $grayLight;
41
- }
36
+ @extend %input;
42
37
  }
43
38
 
44
39
  // Buttons
@@ -49,54 +44,77 @@
49
44
  color: $text-color;
50
45
  border-color: $gray;
51
46
  background-color: $grayLight;
47
+ @include box-shadow(inset 0 1px 0 rgba(255,255,255,.5));
48
+ @include background-image(linear-gradient(bottom, $grayLight 0%, $grayLighter 100%));
49
+
50
+ // color: #FFF;
51
+ // border-color: $link-color;
52
+ // background-color: $link-color;
53
+ // @include box-shadow(inset 0 1px 0 rgba(255,255,255, .4));
54
+ // @include background-image(linear-gradient(bottom, $link-color-hover 0%, $link-color 100%));
52
55
 
53
56
  // Hover/focus state
54
57
  &:hover,
55
58
  &:focus {
56
- background-color: darken($grayLight, 10% );
59
+ @include background-image(linear-gradient(bottom, $grayLight 0%, $white 100%));
60
+ // @include background-image(linear-gradient(bottom, $link-color-hover 0%, lighten($link-color, 10) 100%));
57
61
  }
58
62
 
59
63
  // Active state
60
64
  &.active,
61
65
  &:active {
62
- background-color: darken($grayLight, 20% );
66
+ @include background-image(linear-gradient(top, $grayLight 0%, $grayLighter 100%));
67
+ // @include background-image(linear-gradient(top, $link-color-hover 0%, $link-color 100%));
63
68
  }
64
69
  }
65
70
 
71
+ %btn_disabled {
72
+ color: $grayLight;
73
+ border-color: $grayLight;
74
+ background: #FFF;
75
+ }
76
+
77
+ %btn_current {
78
+ @include box-shadow(0 0 0);
79
+ background: $gray;
80
+ color: $white;
81
+ }
82
+
66
83
  %btn-primary {
67
84
  color: #fff;
68
85
  border-color: darken(green, 10%);
69
86
  background-color: green;
87
+ @include background-image(linear-gradient(bottom, darken(green, 10%) 0%, green 100%));
70
88
 
71
89
  // Hover/focus state
72
90
  &:hover,
73
91
  &:focus {
74
- background-color: darken(green, 5%);
92
+ @include background-image(linear-gradient(bottom, darken(green, 10%) 0%, lighten(green, 6) 100%));
75
93
  }
76
94
 
77
95
  // Active state
78
96
  &.active,
79
97
  &:active {
80
- background-color: darken(green, 10%);
98
+ @include background-image(linear-gradient(top, darken(green, 10%) 0%, green 100%));
81
99
  }
82
100
  }
83
101
 
84
-
85
102
  %btn-secondary {
86
103
  color: #fff;
87
104
  border-color: darken(red, 10%);
88
105
  background-color: red;
106
+ @include background-image(linear-gradient(bottom, darken(red, 10%) 0%, red 100%));
89
107
 
90
108
  // Hover/focus state
91
109
  &:hover,
92
110
  &:focus {
93
- background-color: darken(red, 5%);
111
+ @include background-image(linear-gradient(bottom, darken(red, 10%) 0%, lighten(red, 20) 100%));
94
112
  }
95
113
 
96
114
  // Active state
97
115
  &.active,
98
116
  &:active {
99
- background-color: darken(red, 10%);
117
+ @include background-image(linear-gradient(bottom, darken(red, 10%) 0%, red 100%));
100
118
  }
101
119
  }
102
120
 
@@ -133,7 +151,10 @@
133
151
  // Pills (Labels & Badges)
134
152
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
135
153
  %pill {
136
- background-color: $gray;
154
+ // background-color: rgba(, );
155
+ @include alpha-color(#000, .35);
156
+ @include box-shadow(inset 0px 1px 1px rgba(0,0,0,.35));
157
+ text-shadow: 0 1px 1px rgba(0,0,0,.35);
137
158
  color: $white;
138
159
  }
139
160
 
@@ -145,12 +166,11 @@
145
166
 
146
167
  .divider { @include nav-divider($gray); margin-top: -1px }
147
168
 
148
- > li > a { border-bottom: 1px dotted $gray; }
169
+ > li > a,
170
+ > li > label { border-bottom: 1px dotted $gray; }
149
171
 
150
172
  > li > a:hover,
151
173
  > li > a:focus {
152
- // .dropdown-submenu:hover > a,
153
- // .dropdown-submenu:focus > a {
154
174
  text-decoration: none;
155
175
  background-color: $grayLight;
156
176
  }
@@ -158,20 +178,16 @@
158
178
 
159
179
  %dropdown-open {
160
180
  background: $grayLighter;
161
- &:after {background-color: $grayLighter;}
181
+ border-bottom: 1px solid $grayLighter;
162
182
  }
163
183
 
164
184
 
165
185
  // Caret per Dropdown e Select
166
186
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
167
187
 
168
- $caret-width: em(12px);
169
-
170
188
  %caret {
171
- min-width: $caret-width;
172
189
  &:after {
173
- @include triangle($caret-width, $gray, down);
174
- margin-top: -($caret-width / 4);
190
+ @include icon-font(\f078);
175
191
  }
176
192
  }
177
193
 
@@ -239,43 +255,18 @@
239
255
 
240
256
  // Pagination
241
257
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
242
- %pagination_btn {
243
- background-color: $grayLight;
244
- border-color: $gray;
245
- }
246
-
247
- %pagination_btn-hover {
248
- background-color: $grayLighter;
249
- }
250
-
251
- %pagination_btn-active {
252
- color: #fff;
253
- background-color: $gray;
254
- }
255
-
256
- %pagination_btn-disabled {
257
- color: $grayLight;
258
- background-color: transparent;
259
- border-color: $grayLight;
260
- }
261
-
258
+ %pagination-btn { @extend %btn; }
259
+ %pagination-btn_hover { }
260
+ %pagination-btn_active { }
261
+ %pagination-btn_current { @extend %btn_current; }
262
+ %pagination-btn_disabled { @extend %btn_disabled; }
262
263
 
263
264
  // Pager
264
265
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
265
- %pager-btn {
266
- background-color: $grayLight;
267
- border-color: $gray;
268
- }
269
-
270
- %pager-btn_hover {
271
- background-color: $grayLighter;
272
- }
273
-
274
- %pager-btn_disabled {
275
- color: $grayLight;
276
- background-color: #fff;
277
- border-color: $grayLight;
278
- }
266
+ %pager-btn { @extend %btn;}
267
+ %pager-btn_hover { }
268
+ %pager-btn_active { }
269
+ %pager-btn_disabled { @extend %btn_disabled; }
279
270
 
280
271
 
281
272
 
@@ -433,44 +424,34 @@
433
424
  %nav-big {}
434
425
 
435
426
  %nav-small {
436
- background-color: #272c33;
437
-
438
- a {
439
- color: #fff;
440
- padding: $input-padding;
441
- // &:after { display: none;}
442
- }
427
+ background-color: $grayLighter;
443
428
 
444
- ul,
445
- ul li,
446
- ul li a {
447
- width: 100%;
448
- border: 0;
449
- margin: 0;
450
- float: none;
451
- display: block;
452
- position: static;
453
- text-align: left;
454
- @include border-radius(0);
455
- background-color: transparent;
429
+ // li,
430
+ // li * {
431
+ // @include border-radius(0);
432
+ // background: transparent;
433
+ // border: 0;
434
+ // display: block;
435
+ // float: none;
436
+ // margin: 0;
437
+ // position: static;
438
+ // text-align: left;
439
+ // width: 100%;
440
+ // }
441
+
442
+ .btn {
443
+ background: $grayLight;
456
444
  }
457
445
 
458
- .open {
459
- background-color: lighten(#272c33, 10);
460
-
461
- .btn.dropdown-toggle[data-toggle=dropdown] {
462
- background-color: darken(#272c33, 10);
463
- }
464
- }
465
446
  }
466
447
 
467
448
  %nav-toggle {
468
449
  @extend .btn;
469
- @include square($responsive-nav-toggle-size);
470
- font-size: $responsive-nav-toggle-size * .6;
471
- padding: 0;
472
- line-height: $responsive-nav-toggle-size;
473
- span {@include hide-text();}
450
+
451
+ span {
452
+ @include hide-text();
453
+ }
454
+
474
455
  &:before {
475
456
  @include icon-font(\f0c9);
476
457
  }
@@ -5,14 +5,20 @@
5
5
  .btn-group {
6
6
  @extend .clearfix;
7
7
  @include inline-block;
8
- margin-bottom: 0;
9
- position: relative;
10
- vertical-align: middle;
11
- white-space: nowrap;
12
- > li {
8
+ margin: 0;
9
+ // position: relative;
10
+
11
+ > * {
13
12
  float: left;
14
13
  list-style-type: none;
15
- display: inline-block;
14
+ // position: relative;
15
+ }
16
+
17
+ &[data-width] .btn,
18
+ > *[data-width] .btn {
19
+ @extend %width-100;
20
+ padding-left: 0;
21
+ padding-right: 0;
16
22
  }
17
23
 
18
24
  // Space multiple inline groups
@@ -22,32 +28,18 @@
22
28
  // Float button and reapply border radius
23
29
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
24
30
  > .btn,
25
- > li .btn {
31
+ > * .btn {
26
32
  @include border-radius(0);
27
33
  float: left;
28
- position: relative;
29
- }
30
-
31
- > .btn + .btn,
32
- > li + li {
33
- margin-left: -($input-border);
34
- }
35
-
36
-
37
- > .btn:first-child,
38
- > li:first-child .btn {
39
- margin-left: 0;
40
- @include border-top-left-radius($base-border-radius);
41
- @include border-bottom-left-radius($base-border-radius);
42
- }
43
-
44
- > .btn:last-child,
45
- > .dropdown-toggle,
46
- > li:last-child .btn{
47
- @include border-top-right-radius($base-border-radius);
48
- @include border-bottom-right-radius($base-border-radius);
49
34
  }
50
35
 
36
+ > * + * { margin-left: -$input-border; }
37
+ > *:first-child,
38
+ > *:first-child .btn { @include border-radius($base-border-radius 0 0 $base-border-radius); }
39
+ > *:last-child,
40
+ > *:last-child .btn { @include border-radius(0 $base-border-radius $base-border-radius 0); }
41
+ > *:last-child:first-child,
42
+ > *:last-child:first-child .btn { @include border-radius($base-border-radius); }
51
43
 
52
44
  // On hover/focus/active, bring the proper btn to front
53
45
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
@@ -59,4 +51,5 @@
59
51
  }
60
52
 
61
53
  }
62
- }
54
+ }
55
+
@@ -25,11 +25,12 @@
25
25
 
26
26
  &.active, &:active {outline: 0; }
27
27
 
28
- &.disabled, &[disabled] {
29
- cursor: default;
30
- background-image: none;
31
- @include opacity(65);
28
+ &.disabled, &.disabled:hover,
29
+ &[disabled],&[disabled]:hover {
32
30
  @include box-shadow(none);
31
+ @include opacity(65);
32
+ background-image: none;
33
+ cursor: default;
33
34
  }
34
35
  }
35
36
 
@@ -52,8 +53,8 @@
52
53
  // --------------------------------------------------------------------------------------------------------------------
53
54
 
54
55
  .btn {
55
- height: $input-height;
56
56
  padding: $btn-padding;
57
+ height: $input-height;
57
58
  }
58
59
 
59
60
  .btn--large, .btn--small, .btn--mini {
@@ -79,18 +80,26 @@
79
80
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
80
81
  // Block button
81
82
  // --------------------------------------------------------------------------------------------------------------------
82
- .button--block {
83
+ .btn--block {
83
84
  display: block;
84
85
  width: 100%;
85
86
  padding-left: 0;
86
87
  padding-right: 0;
87
88
 
88
- + .button--block {
89
+ + .btn--block {
89
90
  margin-top: rhythm(.5);
90
91
  }
91
92
 
92
93
  }
93
94
 
95
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
96
+ // Pill button
97
+ // --------------------------------------------------------------------------------------------------------------------
98
+
99
+ .btn--pill {
100
+ @include border-radius(200px);
101
+ }
102
+
94
103
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
95
104
  // Link buttons
96
105
  // --------------------------------------------------------------------------------------------------------------------
@@ -4,44 +4,37 @@
4
4
 
5
5
  @if $dropdowns {
6
6
 
7
- .dropdown {
7
+ .dropdown,
8
+ .dropdown__toggle {
8
9
  position: relative;
9
- display: inline-block;
10
10
  }
11
11
 
12
- .dropdown-toggle {
13
- line-height: 1em;
14
- }
15
-
16
- .dropdown-toggle:active,
17
- .open .dropdown-toggle {
18
- outline: 0;
19
- }
12
+ .dropdown__toggle:focus { outline: 0; }
20
13
 
21
14
  // Dropdown arrow/caret
22
15
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
23
- .caret {
24
- display: inline-block;
16
+ .dropdown__caret {
25
17
  @extend %caret !optional;
26
-
27
18
  }
28
19
 
29
20
  // The dropdown menu (ul)
30
21
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
31
- .dropdown-menu {
22
+ .dropdown__menu {
32
23
  @extend %dropdown !optional;
33
24
  @include border-bottom-radius($base-border-radius);
25
+ @include position(absolute, 100% 0 0 0px);
34
26
  border-style: solid;
35
27
  border-width: $input-border;
36
28
  float: left;
37
- left: 0;
38
29
  list-style: none;
39
30
  margin: -$input-border 0 0 0;
40
- min-width: em(160px);
41
- position: absolute;
42
- top: 100%;
43
31
  z-index: $zindex-dropdown;
44
32
 
33
+ display: none;
34
+ // @include transition();
35
+ // max-height: 0;
36
+ // opacity: 0;
37
+
45
38
  &[data-content] { min-width: em(600px); }
46
39
 
47
40
 
@@ -51,20 +44,20 @@
51
44
  left: auto;
52
45
  }
53
46
 
54
-
55
47
  // Links list inside the dropdown
56
- > li > a {
57
- @include adjust-font-size-to($base-font-size);
58
- display: block;
59
- padding: $dropdowns-padding;
60
- line-height: 1em;
48
+ > li > a,
49
+ > li > label {
61
50
  clear: both;
51
+ display: block;
62
52
  font-weight: normal;
63
53
  white-space: nowrap;
64
54
  }
65
55
 
66
- > li:last-child > a {
67
- @include border-bottom-radius($base-border-radius);
56
+ > li > a { padding: $dropdowns-padding;}
57
+ > li > label { padding: nth($dropdowns-padding, 1) nth($dropdowns-padding, 2) nth($dropdowns-padding, 1) (nth($dropdowns-padding, 2) + em($checkbox-padding-left) ) ;}
58
+
59
+ > li:last-child > a,
60
+ > li:last-child > label {
68
61
  border-bottom: 0;
69
62
  }
70
63
 
@@ -72,32 +65,30 @@
72
65
 
73
66
  // Hover/Focus state
74
67
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
75
- .dropdown-menu > li > a:hover,
76
- .dropdown-menu > li > a:focus,
77
- .dropdown-submenu:hover > a,
78
- .dropdown-submenu:focus > a {
68
+ .dropdown__menu > li > a:hover,
69
+ .dropdown__menu > li > a:focus {
79
70
  text-decoration: none;
80
71
  }
81
72
 
82
73
  // Active state
83
74
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
84
- .dropdown-menu > .active > a,
85
- .dropdown-menu > .active > a:hover,
86
- .dropdown-menu > .active > a:focus {
75
+ .dropdown__menu > .active > a,
76
+ .dropdown__menu > .active > a:hover,
77
+ .dropdown__menu > .active > a:focus {
87
78
  text-decoration: none;
88
79
  outline: 0;
89
80
  }
90
81
 
91
82
  // Disabled state
92
83
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
93
- .dropdown-menu > .disabled > a,
94
- .dropdown-menu > .disabled > a:hover,
95
- .dropdown-menu > .disabled > a:focus {
84
+ .dropdown__menu > .disabled > a,
85
+ .dropdown__menu > .disabled > a:hover,
86
+ .dropdown__menu > .disabled > a:focus {
96
87
  color: $grayLight;
97
88
  }
98
89
  // Nuke hover/focus effects
99
- .dropdown-menu > .disabled > a:hover,
100
- .dropdown-menu > .disabled > a:focus {
90
+ .dropdown__menu > .disabled > a:hover,
91
+ .dropdown__menu > .disabled > a:focus {
101
92
  text-decoration: none;
102
93
  background-color: transparent;
103
94
  background-image: none;
@@ -106,38 +97,22 @@
106
97
 
107
98
  // Open state for the dropdown
108
99
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
109
- .open {
110
- *z-index: $zindex-dropdown ;
100
+ .dropdown.open {
101
+ z-index: $zindex-dropdown ;
111
102
 
112
- .btn.dropdown-toggle[data-toggle=dropdown] {
103
+ .dropdown__toggle {
113
104
  @extend %dropdown-open !optional;
114
- @include border-bottom-radius(0);
115
- z-index: $zindex-dropdown + 1 !important;
116
-
117
- &:after {
118
- content: "";
119
- position: absolute;
120
- bottom: -1px; left: 0; right: 0;
121
- height: 2px ;
122
- z-index: $zindex-dropdown + 2;
123
- }
105
+ @include border-bottom-radius(0 !important);
106
+ z-index: $zindex-dropdown + 1;
124
107
  }
125
108
 
126
- & > .dropdown-menu {}
127
- }
109
+ .dropdown__menu {
110
+ display: block;
111
+ // max-height: 666px;
112
+ // opacity: 1;
113
+ }
128
114
 
129
- // Open/Close Animations
130
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
131
- .dropdown-menu {
132
- @include transition();
133
- opacity: 0;
134
- overflow: hidden;
135
- max-height: 0;
136
115
  }
137
116
 
138
- .open > .dropdown-menu {
139
- opacity: 1;
140
- max-height: 600px;
141
- }
142
117
 
143
118
  }