rapido-css 0.0.1 → 0.0.2.1

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,39 @@
1
+ // ====================================================================================================================
2
+ // LABELS & BADGES
3
+ // ====================================================================================================================
4
+
5
+ @if $labels {
6
+
7
+ .label,
8
+ .badge {
9
+ @extend %pill !optional;
10
+ display: inline-block;
11
+ padding: $pills-padding;
12
+ vertical-align: baseline;
13
+ white-space: nowrap;
14
+ }
15
+
16
+ .label { @include border-radius($base-border-radius); }
17
+ .badge { @include border-radius(20px); }
18
+
19
+ .label, .badge {
20
+ &:empty { display: none; }
21
+ }
22
+
23
+ a {
24
+ &.label:hover,
25
+ &.label:focus,
26
+ &.badge:hover,
27
+ &.badge:focus {
28
+ color: $white;
29
+ text-decoration: none;
30
+ cursor: pointer;
31
+ }
32
+ }
33
+
34
+ .btn {
35
+ .label, .badge {
36
+ margin: -.2em -.35em 0 .35em ;
37
+ }
38
+ }
39
+ }
@@ -1,9 +1,14 @@
1
+ // ====================================================================================================================
2
+ // MODALS
3
+ // ====================================================================================================================
4
+
1
5
  .modal { display: none; }
2
6
 
3
7
  @if $modal {
4
8
 
5
- // Resets
6
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
9
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
10
+ // Resets
11
+ // --------------------------------------------------------------------------------------------------------------------
7
12
  %modal-reset {
8
13
  padding: 0;
9
14
  margin: 0;
@@ -24,9 +29,9 @@
24
29
  @extend %modal-reset;
25
30
  }
26
31
 
27
-
28
- // Container
29
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
32
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
33
+ // Container
34
+ // --------------------------------------------------------------------------------------------------------------------
30
35
 
31
36
  // Overlay | 1st level
32
37
  .fancybox-overlay {
@@ -80,9 +85,10 @@
80
85
  } // 2nd
81
86
  } // 1st
82
87
 
88
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
89
+ // Backtground temp
90
+ // --------------------------------------------------------------------------------------------------------------------
83
91
 
84
- // Backtground temp
85
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
86
92
  .fancybox-tmp {
87
93
  @include position(absolute, -9999px 0 0 -9999px);
88
94
  visibility: hidden;
@@ -99,9 +105,10 @@
99
105
  overflow-y: scroll;
100
106
  }
101
107
 
108
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
109
+ // Content
110
+ // --------------------------------------------------------------------------------------------------------------------
102
111
 
103
- // Content
104
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
105
112
  .fancybox-error {
106
113
  margin: 0;
107
114
  padding: $modals-error-padding;
@@ -128,9 +135,10 @@
128
135
  z-index: $zindex-modal +4;
129
136
  }
130
137
 
138
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
139
+ // Buttons and Navigation
140
+ // --------------------------------------------------------------------------------------------------------------------
131
141
 
132
- // Buttons and Navigation
133
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
134
142
  .fancybox-close {
135
143
  @extend %modal-btn !optional;
136
144
  @extend %modal-close !optional;
@@ -166,8 +174,10 @@
166
174
 
167
175
  }
168
176
 
169
- // Titles
170
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
177
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
178
+ // Titles
179
+ // --------------------------------------------------------------------------------------------------------------------
180
+
171
181
  .fancybox-title {
172
182
  visibility: hidden;
173
183
  position: relative;
@@ -210,6 +220,9 @@
210
220
 
211
221
  }
212
222
 
223
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
224
+ // Modal Buttons
225
+ // --------------------------------------------------------------------------------------------------------------------
213
226
  @if $modal-buttons {
214
227
  #fancybox-buttons {
215
228
  @include position(fixed, 0 0 0 0px);
@@ -237,6 +250,9 @@
237
250
  }
238
251
  }
239
252
 
253
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
254
+ // Modal Thumbs
255
+ // --------------------------------------------------------------------------------------------------------------------
240
256
  @if $modal-thumbs {
241
257
  #fancybox-thumbs {
242
258
  @include position(fixed, 0 0 0 0px);
@@ -1,9 +1,14 @@
1
+ // ====================================================================================================================
2
+ // NAVS
3
+ // ====================================================================================================================
1
4
 
2
5
  @if $navs {
3
6
 
4
- // Navs
5
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
6
- [class^="nav"] {
7
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
8
+ // Base
9
+ // --------------------------------------------------------------------------------------------------------------------
10
+
11
+ .nav {
7
12
  @extend .clearfix;
8
13
  list-style: none;
9
14
  margin-bottom: rhythm();
@@ -11,7 +16,6 @@
11
16
  padding-left: 0;
12
17
 
13
18
  li {
14
-
15
19
  > a {
16
20
  display: block;
17
21
  line-height: 1em;
@@ -30,73 +34,67 @@
30
34
  cursor: default;
31
35
  }
32
36
  }
37
+ }
33
38
 
34
- &[class*="-btn"] {
35
-
36
- li {
39
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
40
+ // Horizontal nav
41
+ // --------------------------------------------------------------------------------------------------------------------
42
+ .nav--inline {
43
+ li { float: left;}
44
+ }
37
45
 
38
- > a {
39
- padding: $navs-padding;
40
- @extend %nav-btn;
46
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
47
+ // Vertical nav
48
+ // --------------------------------------------------------------------------------------------------------------------
49
+ .nav--vertical {
50
+ .title {
51
+ @include adjust-font-size-to($milli-size);
52
+ color: $gray;
53
+ display: block;
54
+ font-weight: bold;
55
+ padding: $input-padding;
56
+ text-transform: uppercase;
57
+ }
41
58
 
42
- &:hover, &:focus {
43
- @extend %nav-btn_hover;
44
- }
59
+ .divider { @include nav-divider(); }
60
+ }
45
61
 
46
- }
62
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
63
+ // Nav with blocky links
64
+ // --------------------------------------------------------------------------------------------------------------------
65
+ .nav--btn {
66
+ li {
67
+ > a {
68
+ padding: $navs-padding;
69
+ @extend %nav-btn;
47
70
 
48
- &.active > a,
49
- &.active > a:hover,
50
- &.active > a:focus {
51
- @extend %nav-btn_active;
71
+ &:hover, &:focus {
72
+ @extend %nav-btn_hover;
52
73
  }
53
-
54
- // Disabled
55
- &.disabled > a { @extend %nav-btn_disabled; }
56
74
  }
57
75
 
58
- }
59
-
60
-
61
- // Horizontal nav
62
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
63
- &[class*="-o"] {
64
- li { float: left;}
65
- }
66
-
67
- // Vertical nav
68
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
69
- &[class*="-v"] {
70
-
71
- .title {
72
- @include adjust-font-size-to($milli-size);
73
- color: $gray;
74
- display: block;
75
- font-weight: bold;
76
- padding: $input-padding;
77
- text-transform: uppercase;
76
+ &.active > a,
77
+ &.active > a:hover,
78
+ &.active > a:focus {
79
+ @extend %nav-btn_active;
78
80
  }
79
81
 
80
- .divider { @include nav-divider(); }
82
+ // Disabled
83
+ &.disabled > a { @extend %nav-btn_disabled; }
81
84
  }
85
+ }
82
86
 
83
- // Pills
84
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
85
- &[class*="-pills"] {
86
- > li > a {
87
- @include border-radius($base-border-radius);
88
- margin-right: em(4px);
89
- }
90
-
91
- &[class*="-v-"] > li > a { margin-bottom: em(4px); }
92
- &[class*="-v-"] > li:last-child > a { margin-bottom: 0; }
87
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
88
+ // Nav with pills as links
89
+ // --------------------------------------------------------------------------------------------------------------------
90
+ .nav--pills {
91
+ > li > a {
92
+ @include border-radius($base-border-radius);
93
+ margin-right: em(4px);
93
94
  }
94
95
 
95
- // Position
96
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
97
- &[class$="-right"]{ float: right; }
98
-
99
-
96
+ &[class*="vertical"] > li > a { margin-bottom: em(4px); }
97
+ &[class*="vertical"] > li:last-child > a { margin-bottom: 0; }
100
98
  }
101
99
 
102
100
  }
@@ -1,28 +1,31 @@
1
- //
2
- // Pager pagination
3
- // --------------------------------------------------
1
+ // ====================================================================================================================
2
+ // PAGER PAGINATION
3
+ // ====================================================================================================================
4
4
 
5
5
  @if $pager {
6
6
 
7
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
8
+ // Base
9
+ // --------------------------------------------------------------------------------------------------------------------
10
+
7
11
  .pager {
8
- margin: rhythm() 0;
12
+ @include clearfix();
9
13
  list-style: none;
14
+ margin: rhythm() 0;
10
15
  text-align: center;
11
- @include clearfix();
12
-
13
16
 
14
17
  li {
15
18
  display: inline;
16
19
 
17
20
  a,
18
21
  span {
22
+ @include border-radius($base-border-radius);
23
+ border-style: solid;
24
+ border-width: 1px;
19
25
  display: inline-block;
20
- padding: $pager-padding;
21
26
  line-height: 1em;
22
- border-width: 1px;
23
- border-style: solid;
27
+ padding: $pager-padding;
24
28
  @extend %pager-btn !optional;
25
- @include border-radius($base-border-radius);
26
29
  }
27
30
 
28
31
  a:hover,
@@ -1,9 +1,14 @@
1
- //
2
- // Pagination (multiple pages)
3
- // --------------------------------------------------
1
+ // ====================================================================================================================
2
+ // PAGINATION (multiple pages)
3
+ // ====================================================================================================================
4
+
4
5
  @if $pagination {
5
6
 
6
- [class^="pagination"] {
7
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
8
+ // Base
9
+ // --------------------------------------------------------------------------------------------------------------------
10
+
11
+ .pagination {
7
12
  margin: rhythm() 0;
8
13
 
9
14
  > * {
@@ -15,10 +20,8 @@
15
20
 
16
21
  li {
17
22
  display: inline-block;
18
- // float: left;
19
23
 
20
- a,
21
- span {
24
+ a, span {
22
25
  display: inline-block;
23
26
  padding: $pagination-padding;
24
27
  line-height: 1em;
@@ -65,26 +68,28 @@
65
68
  cursor: default;
66
69
  }
67
70
  }
71
+ }
68
72
 
69
- // Alignment
70
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
71
- &[class*="-center"] {text-align: center; }
72
- &[class*="-right"] {text-align: right; }
73
-
74
- // Rounded sides
75
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
76
- &[class*="-rounded"] {
77
- li:first-child > a,
78
- li:first-child > span {
79
- border-left-width: 1px;
80
- @include border-left-radius($base-border-radius);
81
- }
73
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
74
+ // Alignment
75
+ // --------------------------------------------------------------------------------------------------------------------
76
+ .pagination--center {text-align: center; }
77
+ .pagination--right {text-align: right; }
82
78
 
83
- li:last-child > a,
84
- li:last-child > span {
85
- @include border-right-radius($base-border-radius);
86
- }
79
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
80
+ // Rounded sides
81
+ // --------------------------------------------------------------------------------------------------------------------
82
+ .pagination--rounded {
83
+ li:first-child > a,
84
+ li:first-child > span {
85
+ border-left-width: 1px;
86
+ @include border-left-radius($base-border-radius);
87
87
  }
88
88
 
89
+ li:last-child > a,
90
+ li:last-child > span {
91
+ @include border-right-radius($base-border-radius);
92
+ }
89
93
  }
94
+
90
95
  }
@@ -1,3 +1,8 @@
1
+ // ====================================================================================================================
2
+ // RESPONSIVE NAVS w/ ResposnivNav,js (https://github.com/raffone/responsive-nav.js)
3
+ // ====================================================================================================================
4
+
5
+
1
6
  @if $responsive-navs {
2
7
  .responsive-nav {
3
8
  position: relative;
@@ -1,6 +1,12 @@
1
+ // ====================================================================================================================
2
+ // SLIDERS w/ BxSlider (https://github.com/wandoledzep/bxslider-4)
3
+ // ====================================================================================================================
4
+
1
5
  @if $slider {
2
6
 
3
- // Wrapper | 1st level
7
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
8
+ // Base
9
+ // --------------------------------------------------------------------------------------------------------------------
4
10
  .bx-wrapper {
5
11
  position: relative;
6
12
  padding: 0;
@@ -14,57 +20,54 @@
14
20
  }
15
21
 
16
22
  ul {@extend .list_style_none;}
17
- // ul, li {margin: 0;}
18
23
  }
19
24
 
20
- // Viewport | 2nd level
21
25
  .bx-viewport { }
22
26
 
27
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
28
+ // Directions
29
+ // --------------------------------------------------------------------------------------------------------------------
30
+ .bx-controls-direction {
23
31
 
24
- // Controls | 2nd level
25
- // .bx-controls {
26
-
27
- // Directions
28
- //--------------------------------
29
- .bx-controls-direction {
30
-
31
- a {
32
- @extend %slider-btn !optional;
33
- @include position(absolute, 50% 0 0 0);
32
+ a {
33
+ @extend %slider-btn !optional;
34
+ @include position(absolute, 50% 0 0 0);
34
35
 
35
- z-index: 200;
36
+ z-index: 200;
36
37
 
37
- i {font-style: normal;}
38
- span {@include hide-text;}
38
+ i {font-style: normal;}
39
+ span {@include hide-text;}
39
40
 
40
- &.disabled { display: none; }
41
+ &.disabled { display: none; }
41
42
 
42
- &.bx-prev { left: 0; }
43
- &.bx-next { right: 0; }
44
- }
43
+ &.bx-prev { left: 0; }
44
+ &.bx-next { right: 0; }
45
+ }
45
46
 
46
47
 
47
- }
48
+ }
48
49
 
49
- // Pager
50
- //--------------------------------
51
- .bx-pager {
52
- width: 100%;
53
- text-align: center;
54
- @extend %slider-pager !optional;
50
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
51
+ // Pager
52
+ // --------------------------------------------------------------------------------------------------------------------
53
+ .bx-pager {
54
+ width: 100%;
55
+ text-align: center;
56
+ @extend %slider-pager !optional;
55
57
 
56
- .bx-pager-item {
58
+ .bx-pager-item {
59
+ display: inline-block;
60
+ a {
57
61
  display: inline-block;
58
- a {
59
- display: inline-block;
60
- // @include hide-text;
61
- }
62
+ // @include hide-text;
62
63
  }
63
64
  }
64
- // }
65
+ }
65
66
 
66
67
 
67
- // Loading
68
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
69
+ // Loading
70
+ // --------------------------------------------------------------------------------------------------------------------
68
71
  .bx-loading {
69
72
  @include square(100%);
70
73
  @include position(absolute, 0px 0 0 0px);
@@ -72,6 +75,9 @@
72
75
  z-index: 2000;
73
76
  }
74
77
 
78
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
79
+ // Captions
80
+ // --------------------------------------------------------------------------------------------------------------------
75
81
  .bx-caption {
76
82
  @include position(absolute, 0 0 0px 0px);
77
83
  width: 100%;
@@ -82,5 +88,4 @@
82
88
  }
83
89
  }
84
90
 
85
-
86
91
  }