rapido-css 0.0.1 → 0.0.2.1

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.
Files changed (40) hide show
  1. data/README.mkdn +1 -2
  2. data/stylesheets/_rapido.scss +50 -3
  3. data/stylesheets/_susy.scss +1 -1
  4. data/stylesheets/components/_alerts.scss +8 -8
  5. data/stylesheets/components/_breadcrumbs.scss +3 -3
  6. data/stylesheets/components/_button-groups.scss +6 -9
  7. data/stylesheets/components/_buttons.scss +75 -74
  8. data/stylesheets/components/_captions.scss +4 -0
  9. data/stylesheets/components/_close.scss +3 -3
  10. data/stylesheets/components/_dropdowns.scss +10 -57
  11. data/stylesheets/components/_forms.scss +279 -439
  12. data/stylesheets/components/_labels.scss +39 -0
  13. data/stylesheets/components/_modals.scss +29 -13
  14. data/stylesheets/components/_navs.scss +55 -57
  15. data/stylesheets/components/_pager.scss +13 -10
  16. data/stylesheets/components/_pagination.scss +29 -24
  17. data/stylesheets/components/_responsive-navs.scss +5 -0
  18. data/stylesheets/components/_sliders.scss +40 -35
  19. data/stylesheets/components/_tables.scss +29 -31
  20. data/stylesheets/components/_tabs.scss +4 -0
  21. data/stylesheets/components/_type.scss +76 -60
  22. data/stylesheets/settings/_base.scss +17 -10
  23. data/stylesheets/settings/_colors.scss +4 -4
  24. data/stylesheets/settings/_components.scss +7 -8
  25. data/stylesheets/settings/_dimensions.scss +9 -7
  26. data/stylesheets/settings/_effects.scss +8 -5
  27. data/stylesheets/utilities/_animations.scss +15 -7
  28. data/stylesheets/utilities/_debug.scss +4 -0
  29. data/stylesheets/utilities/_helper-classes.scss +14 -1
  30. data/stylesheets/utilities/_icon-fonts.scss +33 -8
  31. data/stylesheets/utilities/_media-queries.scss +5 -0
  32. data/stylesheets/utilities/_mixins.scss +78 -103
  33. data/stylesheets/utilities/_sprites.scss +5 -9
  34. metadata +3 -8
  35. data/stylesheets/_components.scss +0 -24
  36. data/stylesheets/_settings.scss +0 -5
  37. data/stylesheets/_utilities.scss +0 -8
  38. data/stylesheets/components/_images.scss +0 -0
  39. data/stylesheets/components/_pills.scss +0 -91
  40. data/stylesheets/utilities/_retina-sprites.scss +0 -70
@@ -1,7 +1,10 @@
1
+ // ====================================================================================================================
2
+ // SPRITES
3
+ // ====================================================================================================================
4
+
5
+
1
6
  .s {
2
- // position:relative;
3
7
  content: "";
4
- // top:-1px;
5
8
  display: inline-block;
6
9
  overflow:hidden;
7
10
  vertical-align:middle;
@@ -9,13 +12,6 @@
9
12
  font-style:normal;
10
13
  zoom:1;
11
14
  *text-indent:-9999px;
12
-
13
- // &:before{
14
- // display:block;
15
- // width:0;
16
- // height:100%;
17
- // content:"";
18
- // }
19
15
  }
20
16
 
21
17
  @include all-s-sprites(true);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rapido-css
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-01 00:00:00.000000000 Z
12
+ date: 2013-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: compass
@@ -37,14 +37,11 @@ extra_rdoc_files: []
37
37
  files:
38
38
  - README.mkdn
39
39
  - lib/rapido-css.rb
40
- - stylesheets/_components.scss
41
40
  - stylesheets/_default-styles.scss
42
41
  - stylesheets/_functions.scss
43
42
  - stylesheets/_normalize.scss
44
43
  - stylesheets/_rapido.scss
45
- - stylesheets/_settings.scss
46
44
  - stylesheets/_susy.scss
47
- - stylesheets/_utilities.scss
48
45
  - stylesheets/components/_alerts.scss
49
46
  - stylesheets/components/_breadcrumbs.scss
50
47
  - stylesheets/components/_button-groups.scss
@@ -53,12 +50,11 @@ files:
53
50
  - stylesheets/components/_close.scss
54
51
  - stylesheets/components/_dropdowns.scss
55
52
  - stylesheets/components/_forms.scss
56
- - stylesheets/components/_images.scss
53
+ - stylesheets/components/_labels.scss
57
54
  - stylesheets/components/_modals.scss
58
55
  - stylesheets/components/_navs.scss
59
56
  - stylesheets/components/_pager.scss
60
57
  - stylesheets/components/_pagination.scss
61
- - stylesheets/components/_pills.scss
62
58
  - stylesheets/components/_responsive-navs.scss
63
59
  - stylesheets/components/_sliders.scss
64
60
  - stylesheets/components/_tables.scss
@@ -85,7 +81,6 @@ files:
85
81
  - stylesheets/utilities/_icon-fonts.scss
86
82
  - stylesheets/utilities/_media-queries.scss
87
83
  - stylesheets/utilities/_mixins.scss
88
- - stylesheets/utilities/_retina-sprites.scss
89
84
  - stylesheets/utilities/_sprites.scss
90
85
  - templates/project/manifest.rb
91
86
  - templates/project/screen.scss
@@ -1,24 +0,0 @@
1
- @import "components/type";
2
- @import "components/forms";
3
- @import "components/tables";
4
- @import "components/images";
5
- @import "components/captions";
6
-
7
- @import "components/buttons";
8
- @import "components/button-groups";
9
- @import "components/dropdowns";
10
- @import "components/pills";
11
- @import "components/close";
12
-
13
- @import "components/navs";
14
- @import "components/responsive-navs";
15
- @import "components/breadcrumbs";
16
- @import "components/pagination";
17
- @import "components/pager";
18
-
19
- @import "components/alerts";
20
-
21
- // Scripts
22
- @import "components/modals";
23
- @import "components/sliders";
24
- @import "components/tabs";
@@ -1,5 +0,0 @@
1
- @import "settings/base";
2
- @import "settings/colors";
3
- @import "settings/dimensions";
4
- @import "settings/components";
5
- @import "settings/effects";
@@ -1,8 +0,0 @@
1
-
2
- @import "utilities/mixins";
3
- @import "utilities/media-queries";
4
- @import "utilities/helper-classes";
5
- @import "utilities/debug";
6
- @import "utilities/animations";
7
- // @import "utilities/sprites";
8
- @import "utilities/icon-fonts";
File without changes
@@ -1,91 +0,0 @@
1
- //
2
- // Labels and badges
3
- // --------------------------------------------------
4
-
5
- @if $pills {
6
-
7
- // Base classes
8
- .label,
9
- .badge {
10
- // font-size: $baseFontSize * .846;
11
- // font-weight: bold;
12
- // line-height: 14px; // ensure proper line-height if floated
13
- // text-shadow: 0 -1px 0 rgba(0,0,0,.25);
14
- @extend %pill !optional;
15
- display: inline-block;
16
- padding: $pills-padding;
17
- vertical-align: baseline;
18
- white-space: nowrap;
19
- }
20
- // Set unique padding and border-radii
21
- .label {
22
- @include border-radius($base-border-radius);
23
- }
24
- .badge {
25
- // padding-left: 9px;
26
- // padding-right: 9px;
27
- @include border-radius(20px);
28
- }
29
-
30
- // Empty labels/badges collapse
31
- .label,
32
- .badge {
33
- &:empty {
34
- display: none;
35
- }
36
- }
37
-
38
- // Hover/focus state, but only for links
39
- a {
40
- &.label:hover,
41
- &.label:focus,
42
- &.badge:hover,
43
- &.badge:focus {
44
- color: $white;
45
- text-decoration: none;
46
- cursor: pointer;
47
- }
48
- }
49
-
50
- // Colors
51
- // Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
52
- // @each $item in label, badge {
53
- // // Important (red)
54
- // .#{$item}-important { background-color: $errorText; }
55
- // .#{$item}-important[href] { background-color: darken($errorText, 10%); }
56
- // // Warnings (orange)
57
- // .#{$item}-warning { background-color: $orange; }
58
- // .#{$item}-warning[href] { background-color: darken($orange, 10%); }
59
- // // Success (green)
60
- // .#{$item}-success { background-color: $successText; }
61
- // .#{$item}-success[href] { background-color: darken($successText, 10%); }
62
- // // Info (turquoise)
63
- // .#{$item}-info { background-color: $infoText; }
64
- // .#{$item}-info[href] { background-color: darken($infoText, 10%); }
65
- // // Inverse (black)
66
- // .#{$item}-inverse { background-color: $grayDark; }
67
- // .#{$item}-inverse[href] { background-color: darken($grayDark, 10%); }
68
- // }
69
-
70
- // Quick fix for labels/badges in buttons
71
- .btn {
72
- .label,
73
- .badge {
74
- margin: -.2em -.35em 0 .35em ;
75
- }
76
- }
77
-
78
- // .btn {
79
- // .label,
80
- // .badge {
81
- // position: relative;
82
- // top: -1px;
83
- // }
84
- // }
85
- // .btn-mini {
86
- // .label,
87
- // .badge {
88
- // top: 0;
89
- // }
90
- // }
91
- }
@@ -1,70 +0,0 @@
1
- // @import "compass/utilities/sprites"; // Include compass sprite helpers
2
- // @import "compass/css3/background-size"; // Include helper to calc background size
3
-
4
-
5
- @mixin retina-sprite($name, $hover: false, $active: false) {
6
- @include _retina-sprite($name, $sprites, $sprites2x, $hover, $active);
7
- }
8
-
9
- // The general purpose retina sprite mixin.
10
- //
11
- // @include retina-sprite(name, $spritemap1, $spritemap2)
12
- // @include retina-sprite(name, $spritemap1, $spritemap2[, $dimensions: true, $pad: 0])
13
- //
14
- // If `dimensions` is true, then width/height will also be set.
15
- //
16
- // if `pad` is non-zero, then that's how much padding the element will have (requires
17
- // $spacing on the sprite maps). Great for iPhone interfaces to make hit areas bigger.
18
- //
19
- @mixin _retina-sprite($name, $sprites, $sprites2x, $hover, $active, $dimensions: true, $pad: 0) {
20
- @if $dimensions == true {
21
- @include sprite-dimensions($sprites, $name);
22
- }
23
- background-image: sprite-url($sprites);
24
- background-position: sprite-position($sprites, $name, -$pad, -$pad);
25
- background-repeat: no-repeat;
26
-
27
- @if $hover == true {
28
- $name_hover: $name + _hover;
29
- &:hover {
30
- background-position: sprite-position($sprites, $name_hover, -$pad, -$pad);
31
- }
32
- }
33
- @if $active == true {
34
- $name_active: $name + _active;
35
- &:active {
36
- background-position: sprite-position($sprites, $name_active, -$pad, -$pad);
37
- }
38
- }
39
-
40
- @if $pad > 0 {
41
- padding: $pad;
42
- }
43
-
44
- @media (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-device-pixel-ratio: 1.5) {
45
- & {
46
- $pos: sprite-position($sprites2x, $name, -$pad * 2, -$pad * 2);
47
- background-image: sprite-url($sprites2x);
48
- background-position: nth($pos, 1) nth($pos, 2) / 2;
49
- @include background-size(ceil(image-width(sprite-path($sprites2x)) / 2) auto);
50
- // sprite-path() returns the path of the generated sprite sheet, which
51
- // image-width() calculates the width of. the ceil() is in place in case
52
- // you have sprites that have an odd-number of pixels in width
53
-
54
- @if $hover == true {
55
- $name_hover: $name + _hover; // create myButton_hover and assign it
56
- &:hover{
57
- $pos: sprite-position($sprites2x, $name_hover, -$pad * 2, -$pad * 2);
58
- background-position: nth($pos, 1) nth($pos, 2) / 2;
59
- }
60
- }
61
- @if $active == true {
62
- $name_active: $name + _active; // create myButton_active and assign it
63
- &:active{
64
- $pos: sprite-position($sprites2x, $name_active, -$pad * 2, -$pad * 2);
65
- background-position: nth($pos, 1) nth($pos, 2) / 2;
66
- }
67
- }
68
- }
69
- }
70
- }