rapido-css 0.2.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.
- checksums.yaml +8 -8
- data/stylesheets/_default-styles.scss +29 -0
- data/stylesheets/components/_buttons.scss +0 -1
- data/stylesheets/components/_forms.scss +30 -15
- data/stylesheets/components/_picker.scss +192 -0
- data/stylesheets/rapido.scss +1 -0
- data/stylesheets/settings/_components.scss +2 -0
- data/stylesheets/settings/_dimensions.scss +2 -0
- data/stylesheets/utilities/_mixins.scss +0 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDFmZDgxMTA4ZTBkYzEyY2RhZDc1ZGQ4ZDQ0N2RmMWUyZjQyOWZhMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWFkNjhlNjQwZmE4OGE3M2QyN2Q5OTMxMzNlYmU1ZDA5MGJkMDJiOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjRmOTJiZTllOGYzODgzNWVmZjY5MGFhOGNhNjZkYjcwNjAzYThiMjI1NTBm
|
10
|
+
MTQ0YTMyZmJiODZmNjc4ZDFjODhiMTcyMGQ3ZGIwODRiMjQ0MGM3ZGVmZjg4
|
11
|
+
Y2JlODUyM2ExNmE5MDgzYTAyZWE4YTIwM2E3YmMyNTM4Yzc5MTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzI0YzdhNGE1OTVlMWYyNzZhYmM1NTU1N2FlYmU3NmQwZjFkMDg0YjcyOGJm
|
14
|
+
Y2I2ODFhZWFhZjJmMWJiNWU1NGE4MWYyYzY5NDJhZWQzMjZiMTEyOWY3NzFh
|
15
|
+
YTllMTNlZTQ0Njc2M2VkNTA3Zjk5MmI3ZWRhYzFjZTdmZjliYzg=
|
@@ -46,6 +46,13 @@ Inputs and Selects
|
|
46
46
|
%form__select # Custom select style, by default it use %input
|
47
47
|
%form__suggest # Styling for suggest dropdowns
|
48
48
|
|
49
|
+
%form__picker # Styling for date picker
|
50
|
+
%form__picker--hover # For :hover state of links
|
51
|
+
%form__picker--highlighted # For selected day
|
52
|
+
%form__picker--disabled # For disabled days
|
53
|
+
%picker__nav--prev # Character to use for the "prev" arrow
|
54
|
+
%picker__nav--next # Character to use for the "next" arrow
|
55
|
+
|
49
56
|
Styleguide 32.2
|
50
57
|
|
51
58
|
*/
|
@@ -87,6 +94,28 @@ Styleguide 32.2
|
|
87
94
|
|
88
95
|
}
|
89
96
|
|
97
|
+
%form__picker {
|
98
|
+
border-color: $gray;
|
99
|
+
background-color: $white;
|
100
|
+
@include box-shadow(0 6px 18px 1px rgba(0, 0, 0, 0.12));
|
101
|
+
}
|
102
|
+
|
103
|
+
%form__picker--hover {
|
104
|
+
background: lighten($link-color, 50);
|
105
|
+
}
|
106
|
+
|
107
|
+
%form__picker--highlighted {
|
108
|
+
background: $link-color;
|
109
|
+
color: $white;
|
110
|
+
}
|
111
|
+
|
112
|
+
%form__picker--disabled {
|
113
|
+
background: $grayLighter;
|
114
|
+
color: $grayLight;
|
115
|
+
}
|
116
|
+
|
117
|
+
%picker__nav--prev:before { content: "◀"; }
|
118
|
+
%picker__nav--next:before { content: "▶"; }
|
90
119
|
|
91
120
|
/*
|
92
121
|
|
@@ -228,7 +228,6 @@ Styleguide 8.2
|
|
228
228
|
.form__radio,
|
229
229
|
.form__checkbox,
|
230
230
|
.form__select {
|
231
|
-
min-height: em($base-line-height);
|
232
231
|
padding-left: em($checkbox-padding-left);
|
233
232
|
font-weight: normal;
|
234
233
|
cursor: pointer;
|
@@ -486,7 +485,7 @@ Markup:
|
|
486
485
|
<button type="submit" class="btn btn--default form__addon">Search</button>
|
487
486
|
</div>
|
488
487
|
|
489
|
-
Styleguide 8.
|
488
|
+
Styleguide 8.8
|
490
489
|
|
491
490
|
*/
|
492
491
|
|
@@ -544,7 +543,7 @@ Markup:
|
|
544
543
|
<button type="button" class="btn btn--default btn--secondary">Cancel</button>
|
545
544
|
</div>
|
546
545
|
|
547
|
-
Styleguide 8.
|
546
|
+
Styleguide 8.9
|
548
547
|
|
549
548
|
*/
|
550
549
|
|
@@ -613,7 +612,7 @@ Markup:
|
|
613
612
|
.form--aligned - Right align labels and float them to the left to make them appear on the same line as controls.
|
614
613
|
.form--inline - For left-aligned labels and inline-block controls for a compact layout. This layout doesn't support `.form__group`, `.form__addon`, `.form__actions`
|
615
614
|
|
616
|
-
Styleguide 8.
|
615
|
+
Styleguide 8.10
|
617
616
|
|
618
617
|
*/
|
619
618
|
|
@@ -626,17 +625,28 @@ Styleguide 8.9
|
|
626
625
|
margin: 0 0 em($control-margin-bottom) 0;
|
627
626
|
}
|
628
627
|
|
629
|
-
.
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
628
|
+
.form__multi,
|
629
|
+
.form__controls,
|
630
|
+
.input-text,
|
631
|
+
.form__select,
|
632
|
+
textarea,
|
633
|
+
input[type="text"],
|
634
|
+
input[type="password"],
|
635
|
+
input[type="datetime"],
|
636
|
+
input[type="datetime-local"],
|
637
|
+
input[type="date"],
|
638
|
+
input[type="month"],
|
639
|
+
input[type="time"],
|
640
|
+
input[type="week"],
|
641
|
+
input[type="number"],
|
642
|
+
input[type="email"],
|
643
|
+
input[type="url"],
|
644
|
+
input[type="search"],
|
645
|
+
input[type="tel"],
|
646
|
+
input[type="color"] {
|
647
|
+
width: 100%;
|
635
648
|
}
|
636
649
|
|
637
|
-
.form__multi { width: 100%; }
|
638
|
-
|
639
|
-
|
640
650
|
}
|
641
651
|
}
|
642
652
|
|
@@ -717,7 +727,7 @@ Markup:
|
|
717
727
|
|
718
728
|
</form>
|
719
729
|
|
720
|
-
Styleguide 8.
|
730
|
+
Styleguide 8.10.1
|
721
731
|
|
722
732
|
*/
|
723
733
|
|
@@ -733,7 +743,8 @@ Styleguide 8.9.1
|
|
733
743
|
|
734
744
|
.form__label {
|
735
745
|
@include inline-block;
|
736
|
-
padding-right: 1em
|
746
|
+
padding-right: 1em;
|
747
|
+
margin-bottom: 0;
|
737
748
|
}
|
738
749
|
|
739
750
|
.input-text,
|
@@ -765,6 +776,10 @@ Styleguide 8.9.1
|
|
765
776
|
@include inline-block;
|
766
777
|
}
|
767
778
|
|
779
|
+
.form__group + .form__group {
|
780
|
+
margin-top: 0;
|
781
|
+
}
|
782
|
+
|
768
783
|
.form__actions {
|
769
784
|
border: 0;
|
770
785
|
padding: 0;
|
@@ -0,0 +1,192 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Date picker
|
4
|
+
|
5
|
+
Add support for the excellent [**pickadate.js**](http://amsul.ca/pickadate.js/)
|
6
|
+
date picker.
|
7
|
+
|
8
|
+
Markup:
|
9
|
+
<input class="datepicker" type="text">
|
10
|
+
<script type="text/javascript">
|
11
|
+
$(document).ready(function() {
|
12
|
+
$('.datepicker').pickadate()
|
13
|
+
});
|
14
|
+
</script>
|
15
|
+
|
16
|
+
Styleguide 8.7
|
17
|
+
|
18
|
+
*/
|
19
|
+
|
20
|
+
@if $picker {
|
21
|
+
|
22
|
+
.picker {
|
23
|
+
position: relative;
|
24
|
+
width: 100%;
|
25
|
+
z-index: $zindex-dropdown;
|
26
|
+
}
|
27
|
+
|
28
|
+
.picker__input { cursor: default; }
|
29
|
+
|
30
|
+
.picker__holder {
|
31
|
+
-webkit-overflow-scrolling: touch;
|
32
|
+
@extend %form__picker !optional;
|
33
|
+
@include border-radius(0 0 $base-border-radius $base-border-radius);
|
34
|
+
@include opacity(0);
|
35
|
+
@include transition(all 0.15s ease-out, max-height 0 0.15s, border-width 0 0.15s);
|
36
|
+
border-style: solid;
|
37
|
+
border-width: $input-border;
|
38
|
+
margin-top: neg($input-border);
|
39
|
+
max-height: 0;
|
40
|
+
max-width: 466px;
|
41
|
+
min-width: 176px;
|
42
|
+
overflow-y: auto;
|
43
|
+
position: absolute;
|
44
|
+
transform: translateY(-1em) perspective(600px) rotateX(10deg);
|
45
|
+
width: 100%;
|
46
|
+
}
|
47
|
+
|
48
|
+
.picker--opened .picker__holder {
|
49
|
+
@include opacity(1);
|
50
|
+
max-height: 25em;
|
51
|
+
transform: translateY(0) perspective(600px) rotateX(0);
|
52
|
+
}
|
53
|
+
|
54
|
+
// Box
|
55
|
+
|
56
|
+
.picker__box { padding: $picker-padding }
|
57
|
+
|
58
|
+
.picker__header {
|
59
|
+
position: relative;
|
60
|
+
text-align: center;
|
61
|
+
}
|
62
|
+
|
63
|
+
.picker__year,
|
64
|
+
.picker__month,
|
65
|
+
.picker__select--year
|
66
|
+
.picker__select--month {
|
67
|
+
display: inline-block;
|
68
|
+
margin: 0 .25em;
|
69
|
+
}
|
70
|
+
|
71
|
+
.picker__month {
|
72
|
+
font-weight: bold;
|
73
|
+
@include adjust-font-size-to($h5-size);
|
74
|
+
}
|
75
|
+
|
76
|
+
.picker__year {
|
77
|
+
color: $gray;
|
78
|
+
font-style: italic;
|
79
|
+
@include adjust-font-size-to($small-size);
|
80
|
+
}
|
81
|
+
|
82
|
+
.picker__select--month,
|
83
|
+
.picker__select--year {
|
84
|
+
padding: .5em .25em;
|
85
|
+
height: 2.5em;
|
86
|
+
}
|
87
|
+
|
88
|
+
.picker__select--month { width: 35% }
|
89
|
+
.picker__select--year { width: 22.5% }
|
90
|
+
|
91
|
+
// Navigation
|
92
|
+
|
93
|
+
.picker__nav--prev,
|
94
|
+
.picker__nav--next {
|
95
|
+
@include position(absolute, 0em 0 0em 0);
|
96
|
+
@extend .btn--link;
|
97
|
+
@extend .btn;
|
98
|
+
color: $text-color;
|
99
|
+
width: (100% / 7);
|
100
|
+
|
101
|
+
&:hover { @extend %form__picker--hover }
|
102
|
+
&:before { @include center(); }
|
103
|
+
}
|
104
|
+
|
105
|
+
.picker__nav--prev { left: 0; @extend %picker__nav--prev }
|
106
|
+
.picker__nav--next { right: 0; @extend %picker__nav--next }
|
107
|
+
|
108
|
+
.picker__nav--disabled,
|
109
|
+
.picker__nav--disabled:hover,
|
110
|
+
.picker__nav--disabled:before,
|
111
|
+
.picker__nav--disabled:before:hover {
|
112
|
+
cursor: default;
|
113
|
+
background: none;
|
114
|
+
}
|
115
|
+
|
116
|
+
// Table
|
117
|
+
|
118
|
+
.picker__table {
|
119
|
+
margin: nth($picker-padding, 1) 0;
|
120
|
+
width: 100%;
|
121
|
+
table-layout: fixed;
|
122
|
+
text-align: center;
|
123
|
+
border-collapse: collapse;
|
124
|
+
border-spacing: 0;
|
125
|
+
td {
|
126
|
+
margin: 0;
|
127
|
+
padding: 0;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
.picker__weekday {
|
132
|
+
padding-bottom: .25em;
|
133
|
+
color: $gray;
|
134
|
+
}
|
135
|
+
|
136
|
+
.picker__day {
|
137
|
+
padding: .25em 0;
|
138
|
+
}
|
139
|
+
|
140
|
+
.picker__day--today {
|
141
|
+
position: relative;
|
142
|
+
&:before {
|
143
|
+
@include position(absolute, 2px 2px 0 0);
|
144
|
+
@include triangle(8px, rgba(0,0,0,.3), up-right);
|
145
|
+
display: block;
|
146
|
+
content: "";
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
.picker__day--outfocus {
|
151
|
+
color: $grayLight;
|
152
|
+
}
|
153
|
+
|
154
|
+
.picker__day--highlighted,
|
155
|
+
.picker__day--infocus:hover,
|
156
|
+
.picker__day--outfocus:hover {
|
157
|
+
@extend %form__picker--hover;
|
158
|
+
cursor: pointer;
|
159
|
+
}
|
160
|
+
|
161
|
+
.picker__day--highlighted:hover,
|
162
|
+
.picker--focused .picker__day--highlighted {
|
163
|
+
@extend %form__picker--highlighted;
|
164
|
+
}
|
165
|
+
|
166
|
+
.picker__day--disabled,
|
167
|
+
.picker__day--disabled:hover {
|
168
|
+
@extend %form__picker--disabled;
|
169
|
+
cursor: default;
|
170
|
+
}
|
171
|
+
|
172
|
+
.picker__day--highlighted.picker__day--disabled,
|
173
|
+
.picker__day--highlighted.picker__day--disabled:hover {
|
174
|
+
background: $gray;
|
175
|
+
}
|
176
|
+
|
177
|
+
// Footer
|
178
|
+
|
179
|
+
.picker__footer { text-align: center }
|
180
|
+
|
181
|
+
.picker__button--today,
|
182
|
+
.picker__button--clear {
|
183
|
+
@extend .btn;
|
184
|
+
@extend .btn--link;
|
185
|
+
color: $text-color;
|
186
|
+
font-weight: bold;
|
187
|
+
width: 50%;
|
188
|
+
|
189
|
+
&:hover { @extend %form__picker--hover }
|
190
|
+
}
|
191
|
+
|
192
|
+
}
|
data/stylesheets/rapido.scss
CHANGED
@@ -27,6 +27,7 @@ Enable or disable components, so you can have in the css only what you need.
|
|
27
27
|
$overlays: true # components/_overlay.scss
|
28
28
|
$pager: true # components/_pager.scss
|
29
29
|
$pagination: true # components/_pagination.scss
|
30
|
+
$picker: true # components/_picker.scss
|
30
31
|
$slider: true # components/_slider.scss
|
31
32
|
$sprites: true # components/_sprites.scss
|
32
33
|
$tables: true # components/_tables.scss
|
@@ -63,6 +64,7 @@ $offcanvas: true !default;
|
|
63
64
|
$overlays: true !default;
|
64
65
|
$pager: true !default;
|
65
66
|
$pagination: true !default;
|
67
|
+
$picker: true !default;
|
66
68
|
$slider: true !default;
|
67
69
|
$sprites: true !default;
|
68
70
|
$tables: true !default;
|
@@ -149,6 +149,7 @@ Components
|
|
149
149
|
$tabs-content-padding: $input-padding # Tabs padding
|
150
150
|
$tabs-tab-padding: $input-padding # Tabs padding
|
151
151
|
$tooltips-padding: $input-padding # Tooltips padding
|
152
|
+
$picker-padding: 1em 1em # Date picker padding
|
152
153
|
|
153
154
|
|
154
155
|
Styleguide 31.3
|
@@ -178,6 +179,7 @@ $tables-padding: $input-padding
|
|
178
179
|
$tabs-content-padding: $input-padding !default;
|
179
180
|
$tabs-tab-padding: $input-padding !default;
|
180
181
|
$tooltips-padding: $input-padding !default;
|
182
|
+
$picker-padding: 1em 1em !default;
|
181
183
|
|
182
184
|
|
183
185
|
/*
|
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.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: 2014-02-
|
11
|
+
date: 2014-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: susy
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- stylesheets/components/_overlay.scss
|
66
66
|
- stylesheets/components/_pager.scss
|
67
67
|
- stylesheets/components/_pagination.scss
|
68
|
+
- stylesheets/components/_picker.scss
|
68
69
|
- stylesheets/components/_sliders.scss
|
69
70
|
- stylesheets/components/_tables.scss
|
70
71
|
- stylesheets/components/_tabs.scss
|