rapido-css 0.0.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.
- data/README.mkdn +21 -0
- data/lib/rapido-css.rb +3 -0
- data/stylesheets/_components.scss +24 -0
- data/stylesheets/_default-styles.scss +480 -0
- data/stylesheets/_functions.scss +50 -0
- data/stylesheets/_normalize.scss +513 -0
- data/stylesheets/_rapido.scss +12 -0
- data/stylesheets/_settings.scss +5 -0
- data/stylesheets/_susy.scss +16 -0
- data/stylesheets/_utilities.scss +8 -0
- data/stylesheets/components/_alerts.scss +24 -0
- data/stylesheets/components/_breadcrumbs.scss +15 -0
- data/stylesheets/components/_button-groups.scss +65 -0
- data/stylesheets/components/_buttons.scss +121 -0
- data/stylesheets/components/_captions.scss +54 -0
- data/stylesheets/components/_close.scss +27 -0
- data/stylesheets/components/_dropdowns.scss +190 -0
- data/stylesheets/components/_forms.scss +579 -0
- data/stylesheets/components/_images.scss +0 -0
- data/stylesheets/components/_modals.scss +271 -0
- data/stylesheets/components/_navs.scss +102 -0
- data/stylesheets/components/_pager.scss +56 -0
- data/stylesheets/components/_pagination.scss +90 -0
- data/stylesheets/components/_pills.scss +91 -0
- data/stylesheets/components/_responsive-navs.scss +166 -0
- data/stylesheets/components/_sliders.scss +86 -0
- data/stylesheets/components/_tables.scss +109 -0
- data/stylesheets/components/_tabs.scss +55 -0
- data/stylesheets/components/_type.scss +266 -0
- data/stylesheets/settings/_base.scss +32 -0
- data/stylesheets/settings/_colors.scss +16 -0
- data/stylesheets/settings/_components.scss +45 -0
- data/stylesheets/settings/_dimensions.scss +103 -0
- data/stylesheets/settings/_effects.scss +15 -0
- data/stylesheets/susy/_susy_background.scss +18 -0
- data/stylesheets/susy/_susy_functions.scss +376 -0
- data/stylesheets/susy/_susy_grid.scss +286 -0
- data/stylesheets/susy/_susy_isolation.scss +50 -0
- data/stylesheets/susy/_susy_margin.scss +93 -0
- data/stylesheets/susy/_susy_media.scss +112 -0
- data/stylesheets/susy/_susy_padding.scss +92 -0
- data/stylesheets/susy/_susy_settings.scss +56 -0
- data/stylesheets/susy/_susy_support.scss +198 -0
- data/stylesheets/susy/_susy_units.scss +159 -0
- data/stylesheets/utilities/_animations.scss +672 -0
- data/stylesheets/utilities/_debug.scss +41 -0
- data/stylesheets/utilities/_helper-classes.scss +32 -0
- data/stylesheets/utilities/_icon-fonts.scss +111 -0
- data/stylesheets/utilities/_media-queries.scss +45 -0
- data/stylesheets/utilities/_mixins.scss +372 -0
- data/stylesheets/utilities/_retina-sprites.scss +70 -0
- data/stylesheets/utilities/_sprites.scss +26 -0
- data/templates/project/manifest.rb +2 -0
- data/templates/project/screen.scss +2 -0
- metadata +116 -0
@@ -0,0 +1,121 @@
|
|
1
|
+
//
|
2
|
+
// Buttons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base styles
|
7
|
+
// --------------------------------------------------
|
8
|
+
|
9
|
+
@if $buttons {
|
10
|
+
// Core
|
11
|
+
// .btn, a[class*="btn"], button[class*="btn"], input[class*="btn"] {
|
12
|
+
// [class^="btn"] {
|
13
|
+
[class*="btn"] {
|
14
|
+
@include border-radius($base-border-radius);
|
15
|
+
border-style: solid;
|
16
|
+
border-width: $input-border;
|
17
|
+
cursor: pointer;
|
18
|
+
display: inline-block;
|
19
|
+
line-height: 1em;
|
20
|
+
margin-bottom: 0;
|
21
|
+
text-align: center;
|
22
|
+
vertical-align: middle;
|
23
|
+
|
24
|
+
&:hover, &:focus { text-decoration: none; }
|
25
|
+
|
26
|
+
&:focus { @include tab-focus(); }
|
27
|
+
|
28
|
+
&.active, &:active {outline: 0; }
|
29
|
+
|
30
|
+
&.disabled, &[disabled] {
|
31
|
+
cursor: default;
|
32
|
+
background-image: none;
|
33
|
+
@include opacity(65);
|
34
|
+
@include box-shadow(none);
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
// Button Colors
|
39
|
+
// --------------------------------------------------
|
40
|
+
& { @extend %btn !optional; }
|
41
|
+
&[class*="-primary"] { @extend %btn-primary !optional; }
|
42
|
+
&[class*="-secondary"] { @extend %btn-secondary !optional; }
|
43
|
+
&[class*="-warning"] { @extend %btn-warning !optional; }
|
44
|
+
&[class*="-danger"] { @extend %btn-danger !optional; }
|
45
|
+
&[class*="-info"] { @extend %btn-info !optional; }
|
46
|
+
&[class*="-success"] { @extend %btn-success !optional; }
|
47
|
+
&[class*="-inverse"] { @extend %btn-inverse !optional; }
|
48
|
+
|
49
|
+
// Button Sizes
|
50
|
+
// --------------------------------------------------
|
51
|
+
& {
|
52
|
+
height: $input-height;
|
53
|
+
padding: $btn-padding;
|
54
|
+
}
|
55
|
+
|
56
|
+
&[class*="-large"],
|
57
|
+
&[class*="-small"],
|
58
|
+
&[class*="-mini"] {
|
59
|
+
height: auto;
|
60
|
+
}
|
61
|
+
|
62
|
+
&[class*="-large"] {
|
63
|
+
@include adjust-font-size-to($h5-size);
|
64
|
+
padding: $btn-large-padding;
|
65
|
+
}
|
66
|
+
|
67
|
+
&[class*="-small"] {
|
68
|
+
@include adjust-font-size-to($milli-size);
|
69
|
+
padding: $btn-small-padding;
|
70
|
+
}
|
71
|
+
|
72
|
+
&[class*="-mini"] {
|
73
|
+
@include adjust-font-size-to($micro-size);
|
74
|
+
padding: $btn-mini-padding;
|
75
|
+
}
|
76
|
+
|
77
|
+
// Block button
|
78
|
+
// -------------------------
|
79
|
+
|
80
|
+
&[class*="-block"] {
|
81
|
+
display: block;
|
82
|
+
width: 100%;
|
83
|
+
padding-left: 0;
|
84
|
+
padding-right: 0;
|
85
|
+
}
|
86
|
+
|
87
|
+
&[class*="-block"] + [class^="btn"][class*="-block"] {
|
88
|
+
margin-top: rhythm(.5);
|
89
|
+
}
|
90
|
+
|
91
|
+
// Link buttons
|
92
|
+
// --------------------------------------------------
|
93
|
+
&[class*="-link"],
|
94
|
+
&[class*="-link"]:active,
|
95
|
+
&[class*="-link"][disabled] {
|
96
|
+
background-color: transparent;
|
97
|
+
background-image: none;
|
98
|
+
@include box-shadow(none);
|
99
|
+
}
|
100
|
+
&[class*="-link"] {
|
101
|
+
border-color: transparent;
|
102
|
+
cursor: pointer;
|
103
|
+
color: $link-color;
|
104
|
+
@include border-radius(0);
|
105
|
+
}
|
106
|
+
&[class*="-link"]:hover,
|
107
|
+
&[class*="-link"]:focus {
|
108
|
+
color: $link-color-hover;
|
109
|
+
text-decoration: underline;
|
110
|
+
background-color: transparent;
|
111
|
+
}
|
112
|
+
&[class*="-link"][disabled]:hover,
|
113
|
+
&[class*="-link"][disabled]:focus {
|
114
|
+
color: $grayDark;
|
115
|
+
text-decoration: none;
|
116
|
+
}
|
117
|
+
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
@if $captions {
|
2
|
+
[class^="caption-"] {
|
3
|
+
position: relative;
|
4
|
+
display: inline-block;
|
5
|
+
width: auto;
|
6
|
+
overflow: hidden;
|
7
|
+
line-height: 0;
|
8
|
+
|
9
|
+
&:after {
|
10
|
+
@extend %caption !optional;
|
11
|
+
display: inline-block;
|
12
|
+
content: attr(data-content);
|
13
|
+
position: absolute;
|
14
|
+
line-height: rhythm();
|
15
|
+
}
|
16
|
+
|
17
|
+
&[class*="top"]:after { top:0; }
|
18
|
+
&[class*="bottom"]:after { bottom:0; }
|
19
|
+
&[class*="left"]:after { left:0; }
|
20
|
+
&[class*="right"]:after { right:0; }
|
21
|
+
|
22
|
+
&[class$="top"]:after,
|
23
|
+
&[class$="bottom"]:after { left: 0; right: 0; }
|
24
|
+
|
25
|
+
// Animations
|
26
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
27
|
+
&[class*="fade"],
|
28
|
+
&[class*="float"] {
|
29
|
+
|
30
|
+
&:after {
|
31
|
+
@include transition();
|
32
|
+
opacity: 0;
|
33
|
+
visibility: hidden;
|
34
|
+
}
|
35
|
+
|
36
|
+
&:hover:after {
|
37
|
+
opacity: 1;
|
38
|
+
visibility: visible;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// Float Animation
|
43
|
+
&[class*="float"][class*="top"] {
|
44
|
+
&:after { top: -10px; }
|
45
|
+
&:hover:after { top: 0; }
|
46
|
+
}
|
47
|
+
|
48
|
+
&[class*="float"][class*="bottom"] {
|
49
|
+
&:after { bottom: -10px; }
|
50
|
+
&:hover:after { bottom: 0; }
|
51
|
+
}
|
52
|
+
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
//
|
2
|
+
// Close icons
|
3
|
+
// --------------------------------------------------
|
4
|
+
@if $close {
|
5
|
+
.close {
|
6
|
+
float: right;
|
7
|
+
font-size: 1em;
|
8
|
+
font-weight: bold;
|
9
|
+
color: $black;
|
10
|
+
@include opacity(20);
|
11
|
+
&:hover,
|
12
|
+
&:focus {
|
13
|
+
color: $black;
|
14
|
+
text-decoration: none;
|
15
|
+
cursor: pointer;
|
16
|
+
@include opacity(40);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
button.close {
|
21
|
+
padding: 0;
|
22
|
+
cursor: pointer;
|
23
|
+
background: transparent;
|
24
|
+
border: 0;
|
25
|
+
-webkit-appearance: none;
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,190 @@
|
|
1
|
+
//
|
2
|
+
// Dropdown menus
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
@if $dropdowns {
|
6
|
+
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
7
|
+
.dropdown {
|
8
|
+
position: relative;
|
9
|
+
display: inline-block;
|
10
|
+
|
11
|
+
}
|
12
|
+
.dropdown-toggle {
|
13
|
+
line-height: 1em;
|
14
|
+
}
|
15
|
+
|
16
|
+
.dropdown-toggle:active,
|
17
|
+
.open .dropdown-toggle {
|
18
|
+
outline: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
// Dropdown arrow/caret
|
22
|
+
// --------------------
|
23
|
+
.caret {
|
24
|
+
display: inline-block;
|
25
|
+
@extend %caret !optional;
|
26
|
+
|
27
|
+
}
|
28
|
+
|
29
|
+
// The dropdown menu (ul)
|
30
|
+
// ----------------------
|
31
|
+
.dropdown-menu {
|
32
|
+
@extend %dropdown !optional;
|
33
|
+
@include border-bottom-radius($base-border-radius);
|
34
|
+
border-style: solid;
|
35
|
+
border-width: $input-border;
|
36
|
+
float: left;
|
37
|
+
left: 0;
|
38
|
+
list-style: none;
|
39
|
+
margin: -$input-border 0 0 0;
|
40
|
+
min-width: em(160px);
|
41
|
+
position: absolute;
|
42
|
+
top: 100%;
|
43
|
+
z-index: $zindex-dropdown;
|
44
|
+
|
45
|
+
&[data-content] { min-width: em(600px); }
|
46
|
+
|
47
|
+
|
48
|
+
// Aligns the dropdown menu to right
|
49
|
+
&.pull-right {
|
50
|
+
right: 0;
|
51
|
+
left: auto;
|
52
|
+
}
|
53
|
+
|
54
|
+
|
55
|
+
// Semplice lista di links dentro al dropdown
|
56
|
+
> li > a {
|
57
|
+
@include adjust-font-size-to($base-font-size);
|
58
|
+
display: block;
|
59
|
+
padding: $dropdowns-padding;
|
60
|
+
line-height: 1em;
|
61
|
+
clear: both;
|
62
|
+
font-weight: normal;
|
63
|
+
white-space: nowrap;
|
64
|
+
}
|
65
|
+
|
66
|
+
> li:last-child > a {
|
67
|
+
@include border-bottom-radius($base-border-radius);
|
68
|
+
border-bottom: 0;
|
69
|
+
}
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
// Hover/Focus state
|
74
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
75
|
+
.dropdown-menu > li > a:hover,
|
76
|
+
.dropdown-menu > li > a:focus,
|
77
|
+
.dropdown-submenu:hover > a,
|
78
|
+
.dropdown-submenu:focus > a {
|
79
|
+
text-decoration: none;
|
80
|
+
}
|
81
|
+
|
82
|
+
// Active state
|
83
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
84
|
+
.dropdown-menu > .active > a,
|
85
|
+
.dropdown-menu > .active > a:hover,
|
86
|
+
.dropdown-menu > .active > a:focus {
|
87
|
+
text-decoration: none;
|
88
|
+
outline: 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
// Disabled state
|
92
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
93
|
+
.dropdown-menu > .disabled > a,
|
94
|
+
.dropdown-menu > .disabled > a:hover,
|
95
|
+
.dropdown-menu > .disabled > a:focus {
|
96
|
+
color: $grayLight;
|
97
|
+
}
|
98
|
+
// Nuke hover/focus effects
|
99
|
+
.dropdown-menu > .disabled > a:hover,
|
100
|
+
.dropdown-menu > .disabled > a:focus {
|
101
|
+
text-decoration: none;
|
102
|
+
background-color: transparent;
|
103
|
+
background-image: none; // Remove CSS gradient
|
104
|
+
// @include reset-filter();
|
105
|
+
cursor: default;
|
106
|
+
}
|
107
|
+
|
108
|
+
// Open state for the dropdown
|
109
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
110
|
+
.open {
|
111
|
+
*z-index: $zindex-dropdown ;
|
112
|
+
|
113
|
+
.btn.dropdown-toggle[data-toggle=dropdown] {
|
114
|
+
@extend %dropdown-open !optional;
|
115
|
+
@include border-bottom-radius(0);
|
116
|
+
z-index: $zindex-dropdown + 1 !important;
|
117
|
+
|
118
|
+
&:after {
|
119
|
+
content: "";
|
120
|
+
position: absolute;
|
121
|
+
bottom: -1px; left: 0; right: 0;
|
122
|
+
height: 2px ;
|
123
|
+
z-index: $zindex-dropdown + 2;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
& > .dropdown-menu {}
|
128
|
+
}
|
129
|
+
|
130
|
+
// Right aligned dropdowns
|
131
|
+
// ---------------------------
|
132
|
+
.pull-right > .dropdown-menu {
|
133
|
+
right: 0;
|
134
|
+
left: auto;
|
135
|
+
}
|
136
|
+
|
137
|
+
|
138
|
+
// Stili per tutti gli allineamenti
|
139
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
140
|
+
|
141
|
+
|
142
|
+
// // Sub menus
|
143
|
+
// // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
144
|
+
// .dropdown-submenu {
|
145
|
+
// position: relative;
|
146
|
+
// }
|
147
|
+
|
148
|
+
// .dropdown-submenu > .dropdown-menu {
|
149
|
+
// top: 0;
|
150
|
+
// left: 100%;
|
151
|
+
// @include border-radius(0 $base-border-radius $base-border-radius $base-border-radius);
|
152
|
+
// }
|
153
|
+
|
154
|
+
// .dropdown-submenu:hover > .dropdown-menu {
|
155
|
+
// // display: block;
|
156
|
+
// // @extend %fadeIn;
|
157
|
+
// }
|
158
|
+
|
159
|
+
// .dropdown-submenu > a {
|
160
|
+
// @extend %caret-side !optional;
|
161
|
+
// &:after {margin-left: em(10px);}
|
162
|
+
// }
|
163
|
+
|
164
|
+
|
165
|
+
// Animazione Apertura / Chiusura
|
166
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
167
|
+
|
168
|
+
.dropdown-menu {
|
169
|
+
@include transition();
|
170
|
+
opacity: 0;
|
171
|
+
overflow: hidden;
|
172
|
+
max-height: 0;
|
173
|
+
}
|
174
|
+
|
175
|
+
// .dropdown-submenu:hover > .dropdown-menu,
|
176
|
+
.open > .dropdown-menu {
|
177
|
+
opacity: 1;
|
178
|
+
max-height: 600px;
|
179
|
+
}
|
180
|
+
|
181
|
+
// Apertura on hover per dropdown se dentro <nav>
|
182
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
183
|
+
// nav {
|
184
|
+
// .dropdown:hover > .dropdown-menu {
|
185
|
+
// // display: block;
|
186
|
+
// // @extend .open > .dropdown-menu;
|
187
|
+
// opacity: 1;
|
188
|
+
// }
|
189
|
+
// }
|
190
|
+
}
|