rapido-css 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rapido-css.rb +2 -0
- data/stylesheets/_default-styles.scss +5 -5
- data/stylesheets/components/_alerts.scss +1 -1
- data/stylesheets/components/_breadcrumbs.scss +1 -1
- data/stylesheets/components/_button-groups.scss +5 -5
- data/stylesheets/components/_buttons.scss +8 -8
- data/stylesheets/components/_captions.scss +8 -8
- data/stylesheets/components/_close.scss +9 -9
- data/stylesheets/components/_dropdowns.scss +8 -8
- data/stylesheets/components/_forms.scss +48 -48
- data/stylesheets/components/_grids.scss +16 -20
- data/stylesheets/components/_labels.scss +4 -4
- data/stylesheets/components/_modals.scss +17 -17
- data/stylesheets/components/_navs.scss +14 -14
- data/stylesheets/components/_off-canvas.scss +4 -4
- data/stylesheets/components/_overlay.scss +2 -2
- data/stylesheets/components/_pager.scss +7 -7
- data/stylesheets/components/_pagination.scss +8 -8
- data/stylesheets/components/_picker.scss +13 -13
- data/stylesheets/components/_sliders.scss +7 -7
- data/stylesheets/components/_tables.scss +4 -4
- data/stylesheets/components/_tabs.scss +6 -6
- data/stylesheets/components/_toggle.scss +2 -2
- data/stylesheets/components/_tooltip.scss +1 -1
- data/stylesheets/components/_type.scss +25 -24
- data/stylesheets/rapido.scss +2 -0
- data/stylesheets/settings/_dimensions.scss +11 -4
- data/stylesheets/utilities/_helper-classes.scss +13 -13
- data/stylesheets/utilities/_icon-fonts.scss +8 -8
- data/stylesheets/utilities/_mixins.scss +29 -49
- metadata +16 -2
@@ -119,7 +119,7 @@ Horizzontally center an element.
|
|
119
119
|
|
120
120
|
Become:
|
121
121
|
|
122
|
-
display
|
122
|
+
@extend %display-block;
|
123
123
|
margin-left: auto;
|
124
124
|
margin-right: auto;
|
125
125
|
|
@@ -128,7 +128,7 @@ Styleguide 26.4
|
|
128
128
|
*/
|
129
129
|
|
130
130
|
@mixin center-block() {
|
131
|
-
display
|
131
|
+
@extend %display-block;
|
132
132
|
margin-left: auto;
|
133
133
|
margin-right: auto;
|
134
134
|
}
|
@@ -328,7 +328,7 @@ Styleguide 26.10
|
|
328
328
|
|
329
329
|
&:before, &:after {
|
330
330
|
content: "";
|
331
|
-
display
|
331
|
+
@extend %display-block;
|
332
332
|
position: absolute;
|
333
333
|
top: 50%;
|
334
334
|
|
@@ -482,13 +482,13 @@ Styleguide 26.15
|
|
482
482
|
|
483
483
|
@include box-shadow(0 1px 3px $color);
|
484
484
|
border:5px solid #fff;
|
485
|
-
@
|
485
|
+
@extend %display-inline-block;
|
486
486
|
line-height: 0;
|
487
487
|
position: relative;
|
488
488
|
|
489
489
|
&:before,
|
490
490
|
&:after {
|
491
|
-
// border
|
491
|
+
// @extend %no-border;
|
492
492
|
background-color: $lightColor;
|
493
493
|
content: '';
|
494
494
|
z-index: -1;
|
@@ -591,7 +591,7 @@ Styleguide 26.18
|
|
591
591
|
*/
|
592
592
|
|
593
593
|
@mixin icon-font($char: '\f013', $font: 'FontAwesome') {
|
594
|
-
display
|
594
|
+
@extend %display-inline-block;
|
595
595
|
font-family: $font;
|
596
596
|
content: "#{$char}";
|
597
597
|
}
|
@@ -607,56 +607,28 @@ Add media queries to css width simple naming convention.
|
|
607
607
|
You can set the start/and with of each step from usins the variables `$lap-start`, `$desk-start`, `$desk-end`.
|
608
608
|
|
609
609
|
* `$media`:
|
610
|
-
*
|
611
|
-
*
|
612
|
-
*
|
613
|
-
*
|
614
|
-
*
|
610
|
+
* `$palm`: Only Palm
|
611
|
+
* `$lap`: Only Lap
|
612
|
+
* `$lap-and-up`: Lap + Desktop
|
613
|
+
* `$portable`: Lap + Palm
|
614
|
+
* `$desk`: Only Desktop
|
615
615
|
|
616
616
|
Styleguide 26.19
|
617
617
|
|
618
618
|
*/
|
619
619
|
|
620
620
|
@mixin media($media-query:null){
|
621
|
-
@if $media-query {
|
622
621
|
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
}
|
630
|
-
|
631
|
-
@elseif $media-query == lap {
|
632
|
-
@media only screen and (min-width:$lap-start) and (max-width:$lap-end) {
|
633
|
-
@content;
|
634
|
-
}
|
635
|
-
}
|
636
|
-
|
637
|
-
@elseif $media-query == lap-and-up {
|
638
|
-
@media only screen and (min-width:$lap-start) {
|
639
|
-
@content;
|
640
|
-
}
|
641
|
-
}
|
642
|
-
|
643
|
-
@elseif $media-query == portable {
|
644
|
-
@media only screen and (max-width:$lap-end) {
|
645
|
-
@content;
|
646
|
-
}
|
647
|
-
}
|
648
|
-
|
649
|
-
@elseif $media-query == desk {
|
650
|
-
@media only screen and (min-width:$desk-start) {
|
651
|
-
@content;
|
652
|
-
}
|
653
|
-
}
|
654
|
-
}
|
622
|
+
// Failback for =< 2.2.1
|
623
|
+
@if $media-query == 'palm' { $media-query: $palm }
|
624
|
+
@if $media-query == 'lap' { $media-query: $lap }
|
625
|
+
@if $media-query == 'lap-and-up'{ $media-query: $lap-and-up }
|
626
|
+
@if $media-query == 'portable' { $media-query: $portable }
|
627
|
+
@if $media-query == 'desk' { $media-query: $desk }
|
655
628
|
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
}
|
629
|
+
@if $media-query {
|
630
|
+
@include breakpoint($media-query) {
|
631
|
+
@content;
|
660
632
|
}
|
661
633
|
}
|
662
634
|
|
@@ -727,10 +699,18 @@ Styleguide 26.21
|
|
727
699
|
$media: null
|
728
700
|
) {
|
729
701
|
|
730
|
-
@
|
702
|
+
@if (type-of($media) == 'string') { // Failback for =< 2.2.1
|
703
|
+
@include media($media) {
|
731
704
|
@include span($cols of $cols-container $from);
|
732
705
|
@if $omega { @include omega; }
|
733
706
|
@if $nth-omega { @include nth-omega($nth-omega); }
|
707
|
+
}
|
708
|
+
} @else {
|
709
|
+
@include breakpoint($media) {
|
710
|
+
@include span($cols of $cols-container $from);
|
711
|
+
@if $omega { @include omega; }
|
712
|
+
@if $nth-omega { @include nth-omega($nth-omega); }
|
713
|
+
}
|
734
714
|
}
|
735
715
|
}
|
736
716
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapido-css
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raffaele Rasini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: susy
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: compass-placeholders
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.1'
|
55
69
|
description: An easy and quick Sass + Compass + Susy + OOCSS + BEM prototyping framework.
|
56
70
|
email: raffaele.rasini@gmail.com
|
57
71
|
executables: []
|