rapido-css 0.2.2 → 0.2.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.
@@ -119,7 +119,7 @@ Horizzontally center an element.
119
119
 
120
120
  Become:
121
121
 
122
- display: block;
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: block;
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: block;
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
- @include inline-block;
485
+ @extend %display-inline-block;
486
486
  line-height: 0;
487
487
  position: relative;
488
488
 
489
489
  &:before,
490
490
  &:after {
491
- // border: 0;
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: inline-block;
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
- * `palm`: Only Palm
611
- * `lap`: Only Lap
612
- * `lap-and-up`: Lap + Desktop
613
- * `portable`: Lap + Palm
614
- * `desk`: Only Desktop
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
- @if $media-query == palm or $media-query == lap or $media-query == lap-and-up or $media-query == portable or $media-query == desk {
624
-
625
- @if $media-query == palm {
626
- @media only screen and (max-width:$palm-end) {
627
- @content;
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
- @else {
657
- @media only screen and ($media-query) {
658
- @content;
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
- @include media($media) {
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.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-15 00:00:00.000000000 Z
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: []