rpure-sass 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 +7 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +18 -0
- data/Rakefile +6 -0
- data/_config.yml +1 -0
- data/assets/fonts/DroidSans-Bold.ttf +0 -0
- data/assets/fonts/DroidSans.ttf +0 -0
- data/assets/javascripts/rpure/modal.js +258 -0
- data/assets/javascripts/rpure.js +1 -0
- data/assets/stylesheets/rpure/_base.scss +204 -0
- data/assets/stylesheets/rpure/_buttons.scss +188 -0
- data/assets/stylesheets/rpure/_forms.scss +286 -0
- data/assets/stylesheets/rpure/_grids-responsive.scss +603 -0
- data/assets/stylesheets/rpure/_grids.scss +190 -0
- data/assets/stylesheets/rpure/_menus.scss +176 -0
- data/assets/stylesheets/rpure/_modals.scss +164 -0
- data/assets/stylesheets/rpure/_tables.scss +55 -0
- data/assets/stylesheets/rpure.scss +18 -0
- data/bin/console +6 -0
- data/bin/setup +8 -0
- data/lib/rpure/sass/engine.rb +13 -0
- data/lib/rpure/sass/version.rb +5 -0
- data/lib/rpure-sass.rb +41 -0
- data/renovate.json +5 -0
- data/rpure-sass.gemspec +29 -0
- metadata +127 -0
@@ -0,0 +1,188 @@
|
|
1
|
+
.rpure-button {
|
2
|
+
display: inline-block;
|
3
|
+
zoom: 1;
|
4
|
+
line-height: normal;
|
5
|
+
white-space: nowrap;
|
6
|
+
vertical-align: middle;
|
7
|
+
text-align: center;
|
8
|
+
cursor: pointer;
|
9
|
+
-webkit-user-drag: none;
|
10
|
+
-webkit-user-select: none;
|
11
|
+
-moz-user-select: none;
|
12
|
+
-ms-user-select: none;
|
13
|
+
user-select: none;
|
14
|
+
box-sizing: border-box;
|
15
|
+
&::-moz-focus-inner {
|
16
|
+
padding: 0;
|
17
|
+
border: 0;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.rpure-button-group {
|
22
|
+
letter-spacing: -0.31em;
|
23
|
+
*letter-spacing: normal;
|
24
|
+
*word-spacing: -0.43em;
|
25
|
+
text-rendering: optimizespeed;
|
26
|
+
}
|
27
|
+
|
28
|
+
.opera-only :-o-prefocus {
|
29
|
+
word-spacing: -0.43em;
|
30
|
+
}
|
31
|
+
|
32
|
+
.rpure-button-group {
|
33
|
+
word-spacing: -0.43em;
|
34
|
+
.rpure-button {
|
35
|
+
letter-spacing: normal;
|
36
|
+
word-spacing: normal;
|
37
|
+
vertical-align: top;
|
38
|
+
text-rendering: auto;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.rpure-button {
|
43
|
+
font-family: inherit;
|
44
|
+
font-size: 100%;
|
45
|
+
padding: 0.5em 1em;
|
46
|
+
color: #444;
|
47
|
+
color: rgba(0, 0, 0, 0.8);
|
48
|
+
border: 1px solid #999;
|
49
|
+
border: none rgba(0, 0, 0, 0);
|
50
|
+
background-color: #E6E6E6;
|
51
|
+
text-decoration: none;
|
52
|
+
border-radius: 2px;
|
53
|
+
}
|
54
|
+
|
55
|
+
.rpure-button-hover {
|
56
|
+
filter: alpha(opacity=90);
|
57
|
+
background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
|
58
|
+
background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
|
59
|
+
}
|
60
|
+
|
61
|
+
.rpure-button {
|
62
|
+
&:hover {
|
63
|
+
filter: alpha(opacity=90);
|
64
|
+
background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
|
65
|
+
background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
|
66
|
+
}
|
67
|
+
&:focus {
|
68
|
+
filter: alpha(opacity=90);
|
69
|
+
background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
|
70
|
+
background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.1));
|
71
|
+
outline: 0;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
.rpure-button-active {
|
76
|
+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
|
77
|
+
border-color: #000 \9
|
78
|
+
;
|
79
|
+
}
|
80
|
+
|
81
|
+
.rpure-button {
|
82
|
+
&:active {
|
83
|
+
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15) inset, 0 0 6px rgba(0, 0, 0, 0.2) inset;
|
84
|
+
border-color: #000 \9
|
85
|
+
;
|
86
|
+
}
|
87
|
+
&[disabled] {
|
88
|
+
border: none;
|
89
|
+
background-image: none;
|
90
|
+
filter: alpha(opacity=40);
|
91
|
+
opacity: 0.40;
|
92
|
+
cursor: not-allowed;
|
93
|
+
box-shadow: none;
|
94
|
+
pointer-events: none;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
.rpure-button-disabled {
|
99
|
+
border: none;
|
100
|
+
background-image: none;
|
101
|
+
filter: alpha(opacity=40);
|
102
|
+
opacity: 0.40;
|
103
|
+
cursor: not-allowed;
|
104
|
+
box-shadow: none;
|
105
|
+
pointer-events: none;
|
106
|
+
&:hover, &:focus, &:active {
|
107
|
+
border: none;
|
108
|
+
background-image: none;
|
109
|
+
filter: alpha(opacity=40);
|
110
|
+
opacity: 0.40;
|
111
|
+
cursor: not-allowed;
|
112
|
+
box-shadow: none;
|
113
|
+
pointer-events: none;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
.rpure-button-hidden {
|
118
|
+
display: none;
|
119
|
+
}
|
120
|
+
|
121
|
+
.rpure-button-primary, .rpure-button-selected {
|
122
|
+
background-color: rgb(0, 120, 231);
|
123
|
+
color: #fff;
|
124
|
+
}
|
125
|
+
|
126
|
+
a {
|
127
|
+
&.rpure-button-primary, &.rpure-button-selected {
|
128
|
+
background-color: rgb(0, 120, 231);
|
129
|
+
color: #fff;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
.rpure-button-group .rpure-button {
|
134
|
+
margin: 0;
|
135
|
+
border-radius: 0;
|
136
|
+
border-right: 1px solid #111;
|
137
|
+
border-right: 1px solid rgba(0, 0, 0, 0.2);
|
138
|
+
&:first-child {
|
139
|
+
border-top-left-radius: 2px;
|
140
|
+
border-bottom-left-radius: 2px;
|
141
|
+
}
|
142
|
+
&:last-child {
|
143
|
+
border-top-right-radius: 2px;
|
144
|
+
border-bottom-right-radius: 2px;
|
145
|
+
border-right: none;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
.rpure-button-success,
|
150
|
+
.rpure-button-error,
|
151
|
+
.rpure-button-warning,
|
152
|
+
.rpure-button-secondary {
|
153
|
+
color: white;
|
154
|
+
border-radius: 4px;
|
155
|
+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
|
156
|
+
}
|
157
|
+
|
158
|
+
.rpure-button-success {
|
159
|
+
background: rgb(28, 184, 65); /* this is a green */
|
160
|
+
}
|
161
|
+
|
162
|
+
.rpure-button-error {
|
163
|
+
background: rgb(202, 60, 60); /* this is a maroon */
|
164
|
+
}
|
165
|
+
|
166
|
+
.rpure-button-warning {
|
167
|
+
background: rgb(223, 117, 20); /* this is an orange */
|
168
|
+
}
|
169
|
+
|
170
|
+
.rpure-button-secondary {
|
171
|
+
background: rgb(66, 184, 221); /* this is a light blue */
|
172
|
+
}
|
173
|
+
|
174
|
+
.rpure-button-xsmall {
|
175
|
+
font-size: 70%;
|
176
|
+
}
|
177
|
+
|
178
|
+
.rpure-button-small {
|
179
|
+
font-size: 85%;
|
180
|
+
}
|
181
|
+
|
182
|
+
.rpure-button-large {
|
183
|
+
font-size: 110%;
|
184
|
+
}
|
185
|
+
|
186
|
+
.rpure-button-xlarge {
|
187
|
+
font-size: 125%;
|
188
|
+
}
|
@@ -0,0 +1,286 @@
|
|
1
|
+
.rpure-form {
|
2
|
+
input {
|
3
|
+
&[type="text"], &[type="password"], &[type="email"], &[type="url"], &[type="date"], &[type="month"], &[type="time"], &[type="datetime"], &[type="datetime-local"], &[type="week"], &[type="number"], &[type="search"], &[type="tel"], &[type="color"] {
|
4
|
+
padding: 0.5em 0.6em;
|
5
|
+
display: inline-block;
|
6
|
+
border: 1px solid #ccc;
|
7
|
+
box-shadow: inset 0 1px 3px #ddd;
|
8
|
+
border-radius: 4px;
|
9
|
+
vertical-align: middle;
|
10
|
+
box-sizing: border-box;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
select, textarea {
|
14
|
+
padding: 0.5em 0.6em;
|
15
|
+
display: inline-block;
|
16
|
+
border: 1px solid #ccc;
|
17
|
+
box-shadow: inset 0 1px 3px #ddd;
|
18
|
+
border-radius: 4px;
|
19
|
+
vertical-align: middle;
|
20
|
+
box-sizing: border-box;
|
21
|
+
}
|
22
|
+
input {
|
23
|
+
&:not([type]) {
|
24
|
+
padding: 0.5em 0.6em;
|
25
|
+
display: inline-block;
|
26
|
+
border: 1px solid #ccc;
|
27
|
+
box-shadow: inset 0 1px 3px #ddd;
|
28
|
+
border-radius: 4px;
|
29
|
+
box-sizing: border-box;
|
30
|
+
}
|
31
|
+
&[type="color"] {
|
32
|
+
padding: 0.2em 0.5em;
|
33
|
+
}
|
34
|
+
&[type="text"]:focus, &[type="password"]:focus, &[type="email"]:focus, &[type="url"]:focus, &[type="date"]:focus, &[type="month"]:focus, &[type="time"]:focus, &[type="datetime"]:focus, &[type="datetime-local"]:focus, &[type="week"]:focus, &[type="number"]:focus, &[type="search"]:focus, &[type="tel"]:focus, &[type="color"]:focus {
|
35
|
+
outline: 0;
|
36
|
+
border-color: #129FEA;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
select:focus, textarea:focus {
|
40
|
+
outline: 0;
|
41
|
+
border-color: #129FEA;
|
42
|
+
}
|
43
|
+
input {
|
44
|
+
&:not([type]):focus {
|
45
|
+
outline: 0;
|
46
|
+
border-color: #129FEA;
|
47
|
+
}
|
48
|
+
&[type="file"]:focus, &[type="radio"]:focus, &[type="checkbox"]:focus {
|
49
|
+
outline: thin solid #129FEA;
|
50
|
+
outline: 1px auto #129FEA;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
.rpure-checkbox, .rpure-radio {
|
54
|
+
margin: 0.5em 0;
|
55
|
+
display: block;
|
56
|
+
}
|
57
|
+
input {
|
58
|
+
&[type="text"][disabled], &[type="password"][disabled], &[type="email"][disabled], &[type="url"][disabled], &[type="date"][disabled], &[type="month"][disabled], &[type="time"][disabled], &[type="datetime"][disabled], &[type="datetime-local"][disabled], &[type="week"][disabled], &[type="number"][disabled], &[type="search"][disabled], &[type="tel"][disabled], &[type="color"][disabled] {
|
59
|
+
cursor: not-allowed;
|
60
|
+
background-color: #eaeded;
|
61
|
+
color: #cad2d3;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
select[disabled], textarea[disabled] {
|
65
|
+
cursor: not-allowed;
|
66
|
+
background-color: #eaeded;
|
67
|
+
color: #cad2d3;
|
68
|
+
}
|
69
|
+
input {
|
70
|
+
&:not([type])[disabled] {
|
71
|
+
cursor: not-allowed;
|
72
|
+
background-color: #eaeded;
|
73
|
+
color: #cad2d3;
|
74
|
+
}
|
75
|
+
&[readonly] {
|
76
|
+
background-color: #eee;
|
77
|
+
color: #777;
|
78
|
+
border-color: #ccc;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
select[readonly], textarea[readonly] {
|
82
|
+
background-color: #eee;
|
83
|
+
color: #777;
|
84
|
+
border-color: #ccc;
|
85
|
+
}
|
86
|
+
input:focus:invalid, textarea:focus:invalid, select:focus:invalid {
|
87
|
+
color: #b94a48;
|
88
|
+
border-color: #e9322d;
|
89
|
+
}
|
90
|
+
input {
|
91
|
+
&[type="file"]:focus:invalid:focus, &[type="radio"]:focus:invalid:focus, &[type="checkbox"]:focus:invalid:focus {
|
92
|
+
outline-color: #e9322d;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
select {
|
96
|
+
height: 2.25em;
|
97
|
+
border: 1px solid #ccc;
|
98
|
+
background-color: white;
|
99
|
+
&[multiple] {
|
100
|
+
height: auto;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
label {
|
104
|
+
margin: 0.5em 0 0.2em;
|
105
|
+
}
|
106
|
+
fieldset {
|
107
|
+
margin: 0;
|
108
|
+
padding: 0.35em 0 0.75em;
|
109
|
+
border: 0;
|
110
|
+
}
|
111
|
+
legend {
|
112
|
+
display: block;
|
113
|
+
width: 100%;
|
114
|
+
padding: 0.3em 0;
|
115
|
+
margin-bottom: 0.3em;
|
116
|
+
color: #333;
|
117
|
+
border-bottom: 1px solid #e5e5e5;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.rpure-form-stacked {
|
122
|
+
input {
|
123
|
+
&[type="text"], &[type="password"], &[type="email"], &[type="url"], &[type="date"], &[type="month"], &[type="time"], &[type="datetime"], &[type="datetime-local"], &[type="week"], &[type="number"], &[type="search"], &[type="tel"], &[type="color"], &[type="file"] {
|
124
|
+
display: block;
|
125
|
+
margin: 0.25em 0;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
select, label, textarea, input:not([type]) {
|
129
|
+
display: block;
|
130
|
+
margin: 0.25em 0;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
.rpure-form-aligned {
|
135
|
+
input, textarea, select, .rpure-help-inline {
|
136
|
+
display: inline-block;
|
137
|
+
*display: inline;
|
138
|
+
*zoom: 1;
|
139
|
+
vertical-align: middle;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
.rpure-form-message-inline {
|
144
|
+
display: inline-block;
|
145
|
+
*display: inline;
|
146
|
+
*zoom: 1;
|
147
|
+
vertical-align: middle;
|
148
|
+
}
|
149
|
+
|
150
|
+
.rpure-form-aligned {
|
151
|
+
textarea {
|
152
|
+
vertical-align: top;
|
153
|
+
}
|
154
|
+
.rpure-control-group {
|
155
|
+
margin-bottom: 0.5em;
|
156
|
+
label {
|
157
|
+
text-align: right;
|
158
|
+
display: inline-block;
|
159
|
+
vertical-align: middle;
|
160
|
+
width: 10em;
|
161
|
+
margin: 0 1em 0 0;
|
162
|
+
}
|
163
|
+
}
|
164
|
+
.rpure-controls {
|
165
|
+
margin: 1.5em 0 0 11em;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
.rpure-form {
|
170
|
+
input.rpure-input-rounded, .rpure-input-rounded {
|
171
|
+
border-radius: 2em;
|
172
|
+
padding: 0.5em 1em;
|
173
|
+
}
|
174
|
+
.rpure-group {
|
175
|
+
fieldset {
|
176
|
+
margin-bottom: 10px;
|
177
|
+
}
|
178
|
+
input, textarea {
|
179
|
+
display: block;
|
180
|
+
padding: 10px;
|
181
|
+
margin: 0 0 -1px;
|
182
|
+
border-radius: 0;
|
183
|
+
position: relative;
|
184
|
+
top: -1px;
|
185
|
+
}
|
186
|
+
input:focus, textarea:focus {
|
187
|
+
z-index: 3;
|
188
|
+
}
|
189
|
+
input:first-child, textarea:first-child {
|
190
|
+
top: 1px;
|
191
|
+
border-radius: 4px 4px 0 0;
|
192
|
+
margin: 0;
|
193
|
+
}
|
194
|
+
input:first-child:last-child, textarea:first-child:last-child {
|
195
|
+
top: 1px;
|
196
|
+
border-radius: 4px;
|
197
|
+
margin: 0;
|
198
|
+
}
|
199
|
+
input:last-child, textarea:last-child {
|
200
|
+
top: -2px;
|
201
|
+
border-radius: 0 0 4px 4px;
|
202
|
+
margin: 0;
|
203
|
+
}
|
204
|
+
button {
|
205
|
+
margin: 0.35em 0;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
.rpure-input-1 {
|
209
|
+
width: 100%;
|
210
|
+
}
|
211
|
+
.rpure-input-3-4 {
|
212
|
+
width: 75%;
|
213
|
+
}
|
214
|
+
.rpure-input-2-3 {
|
215
|
+
width: 66%;
|
216
|
+
}
|
217
|
+
.rpure-input-1-2 {
|
218
|
+
width: 50%;
|
219
|
+
}
|
220
|
+
.rpure-input-1-3 {
|
221
|
+
width: 33%;
|
222
|
+
}
|
223
|
+
.rpure-input-1-4 {
|
224
|
+
width: 25%;
|
225
|
+
}
|
226
|
+
.rpure-help-inline {
|
227
|
+
display: inline-block;
|
228
|
+
padding-left: 0.3em;
|
229
|
+
color: #666;
|
230
|
+
vertical-align: middle;
|
231
|
+
font-size: 0.875em;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
|
235
|
+
.rpure-form-message-inline {
|
236
|
+
display: inline-block;
|
237
|
+
padding-left: 0.3em;
|
238
|
+
color: #666;
|
239
|
+
vertical-align: middle;
|
240
|
+
font-size: 0.875em;
|
241
|
+
}
|
242
|
+
|
243
|
+
.rpure-form-message {
|
244
|
+
display: block;
|
245
|
+
color: #666;
|
246
|
+
font-size: 0.875em;
|
247
|
+
}
|
248
|
+
|
249
|
+
@media only screen and (max-width: 480px) {
|
250
|
+
.rpure-form {
|
251
|
+
button[type="submit"] {
|
252
|
+
margin: 0.7em 0 0;
|
253
|
+
}
|
254
|
+
input {
|
255
|
+
&:not([type]), &[type="text"], &[type="password"], &[type="email"], &[type="url"], &[type="date"], &[type="month"], &[type="time"], &[type="datetime"], &[type="datetime-local"], &[type="week"], &[type="number"], &[type="search"], &[type="tel"], &[type="color"] {
|
256
|
+
margin-bottom: 0.3em;
|
257
|
+
display: block;
|
258
|
+
}
|
259
|
+
}
|
260
|
+
label {
|
261
|
+
margin-bottom: 0.3em;
|
262
|
+
display: block;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
.rpure-group input {
|
266
|
+
&:not([type]), &[type="text"], &[type="password"], &[type="email"], &[type="url"], &[type="date"], &[type="month"], &[type="time"], &[type="datetime"], &[type="datetime-local"], &[type="week"], &[type="number"], &[type="search"], &[type="tel"], &[type="color"] {
|
267
|
+
margin-bottom: 0;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
.rpure-form-aligned {
|
271
|
+
.rpure-control-group label {
|
272
|
+
margin-bottom: 0.3em;
|
273
|
+
text-align: left;
|
274
|
+
display: block;
|
275
|
+
width: 100%;
|
276
|
+
}
|
277
|
+
.rpure-controls {
|
278
|
+
margin: 1.5em 0 0 0;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
.rpure-form .rpure-help-inline, .rpure-form-message-inline, .rpure-form-message {
|
282
|
+
display: block;
|
283
|
+
font-size: 0.75em;
|
284
|
+
padding: 0.2em 0 0.8em;
|
285
|
+
}
|
286
|
+
}
|