rapido-css 0.1.0 → 0.1.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.
- checksums.yaml +8 -8
- data/stylesheets/components/_navs.scss +7 -3
- data/stylesheets/utilities/_mixins.scss +72 -45
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDI0Yzc2Y2QwYjRhNDg2NjE3Mzc1MTlmNzkxY2Y0ZGQxYmE3YTQ5Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjIxNWYwMDcxNGYzNmIyMTM3N2YyNGU5NDkwZDA4YWE1ZjYzNzg3Ng==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWVhMDQ0OWQ2ZGNhMjlhZTgwNmIwYmNlZDE1ZmViNDk5MTg5Mzg3YjU3YmM5
|
10
|
+
MmYwYTlhZWVmMjJmOGNjOGRjNTQxNDgxYTk3ODJkZGJlZmE4YmE5ZDA0NDgy
|
11
|
+
OThmYjhkOTlkMmEwY2M0YmRkM2U0MjM4Njg5ODE3ZmNiYTY3MTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTE2MWY1YjViYjYyY2ZhOWE4ZjBmZjkwMGMxYjA4NTAyNGYwM2U3NGZiYWNm
|
14
|
+
NjAwYTdiYzVhODJiYmQ0YjdiNTUyNDc2NzdhYTg4MTIzMmVkMjJiNWNiZWQ0
|
15
|
+
OGY3NjM0ZDY3YjVkZjYxNDcyMWMzODIzMDQ1YWIzYWViMTY0NWQ=
|
@@ -30,15 +30,19 @@ Styleguide 12
|
|
30
30
|
|
31
31
|
.nav {
|
32
32
|
@extend .clearfix;
|
33
|
-
position: relative;
|
34
33
|
display: inline-block;
|
34
|
+
margin-bottom: rhythm();
|
35
|
+
position: relative;
|
35
36
|
|
36
37
|
&, > ul {
|
38
|
+
@extend .clearfix;
|
37
39
|
list-style: none;
|
38
|
-
margin-bottom: rhythm();
|
39
40
|
margin-left: 0;
|
40
41
|
padding-left: 0;
|
41
|
-
|
42
|
+
}
|
43
|
+
|
44
|
+
> ul {
|
45
|
+
margin-bottom: 0;
|
42
46
|
}
|
43
47
|
|
44
48
|
li {
|
@@ -134,22 +134,17 @@ Styleguide 23.4
|
|
134
134
|
|
135
135
|
Center
|
136
136
|
|
137
|
-
Vertical and horizontal centering with absolute positioning, using the
|
137
|
+
Vertical and horizontal centering with absolute positioning, using the posiztion absolute and negative translate.
|
138
138
|
|
139
|
-
@include center(
|
140
|
-
|
141
|
-
* `$height`: Height of the element
|
142
|
-
* `$width`: Width of the element
|
139
|
+
@include center();
|
143
140
|
|
144
141
|
Styleguide 23.5
|
145
142
|
|
146
143
|
-------------------------------------------------------------------------------------------------------------------- */
|
147
144
|
|
148
|
-
@mixin center
|
149
|
-
|
150
|
-
|
151
|
-
@if $height { margin-top: -($height / 2); }
|
152
|
-
@else { margin-top: -($width / 2); }
|
145
|
+
@mixin center() {
|
146
|
+
@include position(absolute, 50% 0 0 50%);
|
147
|
+
@include translate(-50%, -50%);
|
153
148
|
}
|
154
149
|
|
155
150
|
|
@@ -457,7 +452,7 @@ Styleguide 23.14
|
|
457
452
|
|
458
453
|
Comicbook Shadow
|
459
454
|
|
460
|
-
@include shadow-comicbook($padding $color $size $distance);
|
455
|
+
@include shadow-comicbook($padding, $color, $size, $distance);
|
461
456
|
|
462
457
|
* `$padding`: Border color
|
463
458
|
* `$color`: Color of the shadow
|
@@ -509,7 +504,7 @@ Box Inset Shadow
|
|
509
504
|
|
510
505
|
Usefull for adding inset shadows to sidebars or large block where the shadow is only on one side and full width/height.
|
511
506
|
|
512
|
-
@include
|
507
|
+
@include inset-shadow($position, $size, $color);
|
513
508
|
|
514
509
|
* `$position`: top, right, bottom, left
|
515
510
|
* `$size`: Size of the shadow
|
@@ -544,11 +539,32 @@ Styleguide 23.16
|
|
544
539
|
|
545
540
|
/* --------------------------------------------------------------------------------------------------------------------
|
546
541
|
|
542
|
+
Side Shadow
|
543
|
+
|
544
|
+
Add Side Shadows to multi-line padded text for consistend side padding (Fabien Doiron's box-shadow Method).
|
545
|
+
|
546
|
+
@include side-shadow($size, $color);
|
547
|
+
|
548
|
+
* `$size`: Size of the shadow
|
549
|
+
* `$color`: Color of the shadow
|
550
|
+
|
551
|
+
Styleguide 23.17
|
552
|
+
|
553
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
554
|
+
|
555
|
+
@mixin side-shadow($size: 10px, $color: #000) {
|
556
|
+
@include box-shadow($size 0 0 $color, neg($size) 0 0 $color);
|
557
|
+
margin-left: $size;
|
558
|
+
margin-right: $size;
|
559
|
+
}
|
560
|
+
|
561
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
562
|
+
|
547
563
|
Icon Fonts
|
548
564
|
|
549
565
|
Use the unicode character from an icon font to insert it wherever you want.
|
550
566
|
|
551
|
-
@include icon-font($char $font);
|
567
|
+
@include icon-font($char, $font);
|
552
568
|
|
553
569
|
* `$char`: Unicode of the character †
|
554
570
|
* `$font`: What font to use ‡
|
@@ -558,7 +574,7 @@ Use the unicode character from an icon font to insert it wherever you want.
|
|
558
574
|
‡ Fonts available: Fontawesome, Brandico, Entypo, Fontelico, Maki, Openweb-icons, Typicons, Zocial
|
559
575
|
|
560
576
|
|
561
|
-
Styleguide 23.
|
577
|
+
Styleguide 23.18
|
562
578
|
|
563
579
|
-------------------------------------------------------------------------------------------------------------------- */
|
564
580
|
|
@@ -585,39 +601,50 @@ You can set the start/and with of each step from usins the variables `$lap-start
|
|
585
601
|
* `portable`: Lap + Palm
|
586
602
|
* `desk`: Only Desktop
|
587
603
|
|
588
|
-
Styleguide 23.
|
604
|
+
Styleguide 23.19
|
589
605
|
|
590
606
|
-------------------------------------------------------------------------------------------------------------------- */
|
591
607
|
|
592
|
-
@mixin media($media-query){
|
593
|
-
|
594
|
-
|
595
|
-
@media
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
608
|
+
@mixin media($media-query:null){
|
609
|
+
@if $media-query {
|
610
|
+
|
611
|
+
@if $media-query == palm or $media-query == lap or $media-query == lap-and-up or $media-query == portable or $media-query == desk {
|
612
|
+
|
613
|
+
@if $media-query == palm {
|
614
|
+
@media only screen and (max-width:$palm-end) {
|
615
|
+
@content;
|
616
|
+
}
|
617
|
+
}
|
618
|
+
|
619
|
+
@elseif $media-query == lap {
|
620
|
+
@media only screen and (min-width:$lap-start) and (max-width:$lap-end) {
|
621
|
+
@content;
|
622
|
+
}
|
623
|
+
}
|
624
|
+
|
625
|
+
@elseif $media-query == lap-and-up {
|
626
|
+
@media only screen and (min-width:$lap-start) {
|
627
|
+
@content;
|
628
|
+
}
|
629
|
+
}
|
630
|
+
|
631
|
+
@elseif $media-query == portable {
|
632
|
+
@media only screen and (max-width:$lap-end) {
|
633
|
+
@content;
|
634
|
+
}
|
635
|
+
}
|
636
|
+
|
637
|
+
@elseif $media-query == desk {
|
638
|
+
@media only screen and (min-width:$desk-start) {
|
639
|
+
@content;
|
640
|
+
}
|
641
|
+
}
|
615
642
|
}
|
616
|
-
}
|
617
643
|
|
618
|
-
|
619
|
-
|
620
|
-
|
644
|
+
@else {
|
645
|
+
@media only screen and ($media-query) {
|
646
|
+
@content;
|
647
|
+
}
|
621
648
|
}
|
622
649
|
}
|
623
650
|
|
@@ -653,7 +680,7 @@ Or via `@include` from the scss:
|
|
653
680
|
|
654
681
|
The result is the same.
|
655
682
|
|
656
|
-
Styleguide 23.
|
683
|
+
Styleguide 23.20
|
657
684
|
|
658
685
|
-------------------------------------------------------------------------------------------------------------------- */
|
659
686
|
|
@@ -677,7 +704,7 @@ Responsive grid
|
|
677
704
|
* `$media`: Media query to to use, for responsive grids
|
678
705
|
* `$highlight-omega`: Bolean, used for debugging nth
|
679
706
|
|
680
|
-
Styleguide 23.
|
707
|
+
Styleguide 23.21
|
681
708
|
|
682
709
|
-------------------------------------------------------------------------------------------------------------------- */
|
683
710
|
|
@@ -688,7 +715,7 @@ Styleguide 23.20
|
|
688
715
|
$nth-omega: false,
|
689
716
|
$remove-omega: false,
|
690
717
|
$from: left,
|
691
|
-
$media:
|
718
|
+
$media: null,
|
692
719
|
$highlight-omega: false
|
693
720
|
) {
|
694
721
|
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raffaele Rasini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: compass
|