mice 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +18 -2
- data/lib/mice/version.rb +1 -1
- data/vendor/assets/stylesheets/mice.scss +1 -0
- data/vendor/assets/stylesheets/mice/_callouts.scss +1 -1
- data/vendor/assets/stylesheets/mice/_forms.scss +83 -0
- data/vendor/assets/stylesheets/mice/_lists.scss +1 -0
- data/vendor/assets/stylesheets/mice/_pagination.scss +171 -0
- data/vendor/assets/stylesheets/mice/_variables.scss +34 -1
- data/vendor/assets/stylesheets/mobile/bars.scss +13 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 492557d2c8d1e3c1f5503ac34470c4edc2b128b9
|
4
|
+
data.tar.gz: bb31b639abaad968d7035283001efdc8cfc1f8bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d637a04cfc17897f89a7ff9068fa2960e6796246a779c36989a0931a22b96cd895f31d5eeaf4a1df04b43631c55e0b6cf68755a25f61f4bb463261d0d5a66ce2
|
7
|
+
data.tar.gz: e11072e2a495c591c3b4e4a823a42fe04016e47e16a267ae21a88e0fc188f1e44b4b05e695601cbe9989f990b8efdde944aaab19311545a45108cc3fed2b015f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -24,9 +24,9 @@ Or install it yourself as:
|
|
24
24
|
`$ gem install mice`
|
25
25
|
|
26
26
|
|
27
|
-
|
27
|
+
## mice with Rails
|
28
28
|
|
29
|
-
|
29
|
+
### CSS
|
30
30
|
|
31
31
|
Import Mice in an SCSS file (for example, `application.css.scss`) to get all of Mice's styles
|
32
32
|
|
@@ -45,6 +45,22 @@ or
|
|
45
45
|
For mobile
|
46
46
|
@import "mice-mobile"
|
47
47
|
|
48
|
+
|
49
|
+
## Documentation
|
50
|
+
|
51
|
+
Ratchet's documentation is built with [Middleman](http://middlemanapp.com/) and publicly hosted on GitHub Pages at <http://mice.miclle.com/>. The docs may also be run locally.
|
52
|
+
|
53
|
+
### Running documentation locally
|
54
|
+
|
55
|
+
1. If necessary, `gem install bundler`.
|
56
|
+
2. From the root `/mice` directory, run `bundle install`
|
57
|
+
3. Run `middleman server` in the command line.
|
58
|
+
3. Open <http://localhost:4567> in your browser, and boom!
|
59
|
+
|
60
|
+
Learn more about using Middleman by reading its [documentation](http://middlemanapp.com/basics/getting-started/).
|
61
|
+
|
62
|
+
|
63
|
+
|
48
64
|
## Contributing
|
49
65
|
|
50
66
|
1. Fork it ( http://github.com/miclle/mice/fork )
|
data/lib/mice/version.rb
CHANGED
@@ -49,7 +49,7 @@ blockquote:after, .callout:after {
|
|
49
49
|
}
|
50
50
|
|
51
51
|
blockquote, .callout{
|
52
|
-
&.primary { border-color: $border-color-primary; background-color: $state-primary-background; }
|
52
|
+
&.primary { border-color: $border-color-primary; background-color: $state-primary-background; color: #FFF; }
|
53
53
|
&.success { border-color: $border-color-success; background-color: $state-success-background; }
|
54
54
|
&.info { border-color: $border-color-info; background-color: $state-info-background; }
|
55
55
|
&.warning { border-color: $border-color-warning; background-color: $state-warning-background; }
|
@@ -316,4 +316,87 @@ form.horizontal{
|
|
316
316
|
}
|
317
317
|
|
318
318
|
|
319
|
+
.inputs{
|
320
|
+
position: relative; // For dropdowns
|
321
|
+
display: table;
|
322
|
+
border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
|
323
|
+
|
324
|
+
.addon{
|
325
|
+
display: table-cell;
|
326
|
+
padding: $padding-base-vertical $padding-base-horizontal;
|
327
|
+
font-size: $font-size-base;
|
328
|
+
font-weight: normal;
|
329
|
+
line-height: 1;
|
330
|
+
// color: $input-color;
|
331
|
+
text-align: center;
|
332
|
+
background-color: $input-group-addon-background;
|
333
|
+
border: 1px solid $input-group-addon-border-color;
|
334
|
+
border-radius: $border-radius;
|
335
|
+
|
336
|
+
width: 1%;
|
337
|
+
white-space: nowrap;
|
338
|
+
vertical-align: middle;
|
339
|
+
|
340
|
+
&:not(:first-child):not(:last-child) {
|
341
|
+
border-radius: 0;
|
342
|
+
}
|
343
|
+
|
344
|
+
// Nuke default margins from checkboxes and radios to vertically center within.
|
345
|
+
input[type="radio"],
|
346
|
+
input[type="checkbox"] {
|
347
|
+
margin-top: 0;
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
> input{
|
352
|
+
display: table-cell !important;
|
353
|
+
width: 100%;
|
354
|
+
&:focus{
|
355
|
+
box-shadow: none !important;
|
356
|
+
}
|
357
|
+
}
|
358
|
+
|
359
|
+
> .buttons{
|
360
|
+
display: table-cell;
|
361
|
+
width: 1%;
|
362
|
+
white-space: nowrap;
|
363
|
+
vertical-align: middle; // Match the inputs
|
364
|
+
|
365
|
+
&:first-child{
|
366
|
+
button:first-child,
|
367
|
+
.button:first-child{
|
368
|
+
@include border-right-radius(0);
|
369
|
+
border-right: 0;
|
370
|
+
}
|
371
|
+
}
|
372
|
+
|
373
|
+
&:last-child{
|
374
|
+
button:first-child,
|
375
|
+
.button:first-child{
|
376
|
+
@include border-left-radius(0);
|
377
|
+
border-left: 0;
|
378
|
+
}
|
379
|
+
}
|
380
|
+
|
381
|
+
button, .button{
|
382
|
+
box-shadow: none;
|
383
|
+
}
|
384
|
+
}
|
385
|
+
|
386
|
+
> input, .addon, .buttons{
|
387
|
+
&:first-child {
|
388
|
+
@include border-right-radius(0);
|
389
|
+
border-bottom-right-radius: 0 !important;
|
390
|
+
border-top-right-radius: 0 !important;
|
391
|
+
border-right: 0;
|
392
|
+
}
|
393
|
+
&:last-child {
|
394
|
+
@include border-left-radius(0);
|
395
|
+
border-bottom-left-radius: 0 !important;
|
396
|
+
border-top-left-radius: 0 !important;
|
397
|
+
border-left: 0;
|
398
|
+
}
|
399
|
+
}
|
400
|
+
}
|
401
|
+
|
319
402
|
|
@@ -0,0 +1,171 @@
|
|
1
|
+
//
|
2
|
+
// Pagination (multiple pages)
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// mixin
|
6
|
+
@mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
|
7
|
+
> li {
|
8
|
+
> a,
|
9
|
+
> span {
|
10
|
+
padding: $padding-vertical $padding-horizontal;
|
11
|
+
font-size: $font-size;
|
12
|
+
}
|
13
|
+
&:first-child {
|
14
|
+
> a,
|
15
|
+
> span {
|
16
|
+
@include border-left-radius($border-radius);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
&:last-child {
|
20
|
+
> a,
|
21
|
+
> span {
|
22
|
+
@include border-right-radius($border-radius);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
|
29
|
+
.pagination {
|
30
|
+
display: inline-block;
|
31
|
+
padding-left: 0;
|
32
|
+
margin: $line-height-computed 0;
|
33
|
+
border-radius: $border-radius;
|
34
|
+
|
35
|
+
> li {
|
36
|
+
display: inline; // Remove list-style and block-level defaults
|
37
|
+
> a,
|
38
|
+
> span {
|
39
|
+
position: relative;
|
40
|
+
float: left; // Collapse white-space
|
41
|
+
padding: $padding-base-vertical $padding-base-horizontal;
|
42
|
+
line-height: $line-height-base;
|
43
|
+
text-decoration: none;
|
44
|
+
color: $pagination-color;
|
45
|
+
background-color: $pagination-background;
|
46
|
+
border: 1px solid $pagination-border;
|
47
|
+
margin-left: -1px;
|
48
|
+
}
|
49
|
+
&:first-child {
|
50
|
+
> a,
|
51
|
+
> span {
|
52
|
+
margin-left: 0;
|
53
|
+
@include border-left-radius($border-radius);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
&:last-child {
|
57
|
+
> a,
|
58
|
+
> span {
|
59
|
+
@include border-right-radius($border-radius);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
> li > a,
|
65
|
+
> li > span {
|
66
|
+
&:hover,
|
67
|
+
&:focus {
|
68
|
+
color: $pagination-hover-color;
|
69
|
+
background-color: $pagination-hover-background;
|
70
|
+
border-color: $pagination-hover-border;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
> .active > a,
|
75
|
+
> .active > span {
|
76
|
+
&,
|
77
|
+
&:hover,
|
78
|
+
&:focus {
|
79
|
+
z-index: 2;
|
80
|
+
color: $pagination-active-color;
|
81
|
+
background-color: $pagination-active-background;
|
82
|
+
border-color: $pagination-active-border;
|
83
|
+
cursor: default;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
> .disabled {
|
88
|
+
> span,
|
89
|
+
> span:hover,
|
90
|
+
> span:focus,
|
91
|
+
> a,
|
92
|
+
> a:hover,
|
93
|
+
> a:focus {
|
94
|
+
color: $pagination-disabled-color;
|
95
|
+
background-color: $pagination-disabled-background;
|
96
|
+
border-color: $pagination-disabled-border;
|
97
|
+
cursor: not-allowed;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
// Sizing
|
103
|
+
// --------------------------------------------------
|
104
|
+
|
105
|
+
// Large
|
106
|
+
.pagination.large {
|
107
|
+
@include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $border-radius-large);
|
108
|
+
}
|
109
|
+
|
110
|
+
// Small
|
111
|
+
.pagination.small {
|
112
|
+
@include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $border-radius-small);
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
//
|
118
|
+
// Pager pagination
|
119
|
+
// --------------------------------------------------
|
120
|
+
|
121
|
+
|
122
|
+
.pager {
|
123
|
+
padding-left: 0;
|
124
|
+
margin: $line-height-computed 0;
|
125
|
+
list-style: none;
|
126
|
+
text-align: center;
|
127
|
+
@include clearfix();
|
128
|
+
li {
|
129
|
+
display: inline;
|
130
|
+
> a,
|
131
|
+
> span {
|
132
|
+
display: inline-block;
|
133
|
+
padding: 5px 14px;
|
134
|
+
background-color: $pager-background;
|
135
|
+
border: 1px solid $pager-border;
|
136
|
+
border-radius: $pager-border-radius;
|
137
|
+
}
|
138
|
+
|
139
|
+
> a:hover,
|
140
|
+
> a:focus {
|
141
|
+
text-decoration: none;
|
142
|
+
background-color: $pager-hover-background;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
.next {
|
147
|
+
> a,
|
148
|
+
> span {
|
149
|
+
float: right;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
.previous {
|
154
|
+
> a,
|
155
|
+
> span {
|
156
|
+
float: left;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
.disabled {
|
161
|
+
> a,
|
162
|
+
> a:hover,
|
163
|
+
> a:focus,
|
164
|
+
> span {
|
165
|
+
color: $pager-disabled-color;
|
166
|
+
background-color: $pager-background;
|
167
|
+
cursor: not-allowed;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
}
|
@@ -29,7 +29,7 @@ $link-hover-color: darken($link-color, 15%) !default;
|
|
29
29
|
// -------------------------
|
30
30
|
|
31
31
|
$border-radius: 2px !default;
|
32
|
-
$border-radius-small: $border-radius * 1
|
32
|
+
$border-radius-small: $border-radius * 1 !default;
|
33
33
|
$border-radius-large: $border-radius * 2 !default;
|
34
34
|
|
35
35
|
// Font family, size
|
@@ -210,6 +210,12 @@ $input-padding-small-horizontal: $padding-small-vertical !default;
|
|
210
210
|
$input-padding-large-vertical: $padding-large-vertical !default;
|
211
211
|
$input-padding-large-horizontal: $padding-large-vertical !default;
|
212
212
|
|
213
|
+
//** Background color for textual input addons
|
214
|
+
$input-group-addon-background: $gray-lighter !default;
|
215
|
+
//** Border color for textual input addons
|
216
|
+
$input-group-addon-border-color: $border-color-default !default;
|
217
|
+
|
218
|
+
|
213
219
|
|
214
220
|
// Tables
|
215
221
|
//
|
@@ -232,6 +238,33 @@ $table-background-active: $table-background-hover !default;
|
|
232
238
|
$table-border-color: #ddd !default;
|
233
239
|
|
234
240
|
|
241
|
+
// Pagination
|
242
|
+
// --------------------------------------------------
|
243
|
+
$pagination-color: $link-color !default;
|
244
|
+
$pagination-background: #fff !default;
|
245
|
+
$pagination-border: #ddd !default;
|
246
|
+
$pagination-hover-color: $link-hover-color !default;
|
247
|
+
$pagination-hover-background: $gray-lighter !default;
|
248
|
+
$pagination-hover-border: #ddd !default;
|
249
|
+
$pagination-active-color: #fff !default;
|
250
|
+
$pagination-active-background: $brand-primary !default;
|
251
|
+
$pagination-active-border: $brand-primary !default;
|
252
|
+
$pagination-disabled-color: $gray-light !default;
|
253
|
+
$pagination-disabled-background: #fff !default;
|
254
|
+
$pagination-disabled-border: #ddd !default;
|
255
|
+
|
256
|
+
|
257
|
+
// Pager
|
258
|
+
// --------------------------------------------------
|
259
|
+
$pager-background: $pagination-background !default;
|
260
|
+
$pager-border: $pagination-border !default;
|
261
|
+
$pager-border-radius: 15px !default;
|
262
|
+
$pager-hover-background: $pagination-hover-background !default;
|
263
|
+
$pager-active-background: $pagination-active-background !default;
|
264
|
+
$pager-active-color: $pagination-active-color !default;
|
265
|
+
$pager-disabled-color: $pagination-disabled-color !default;
|
266
|
+
|
267
|
+
|
235
268
|
// Labels
|
236
269
|
// --------------------------------------------------
|
237
270
|
$label-background-default: $gray-light !default;
|
@@ -41,6 +41,8 @@ nav.tab {
|
|
41
41
|
&.active,
|
42
42
|
&:active {
|
43
43
|
color: $primary-color;
|
44
|
+
.icon ~ .label,
|
45
|
+
.label{ color: $primary-color; }
|
44
46
|
}
|
45
47
|
|
46
48
|
// Tab icon
|
@@ -48,6 +50,7 @@ nav.tab {
|
|
48
50
|
top: 3px;
|
49
51
|
width: 24px;
|
50
52
|
height: 24px;
|
53
|
+
font-size: 24px;
|
51
54
|
padding-top: 0;
|
52
55
|
padding-bottom: 0;
|
53
56
|
|
@@ -55,6 +58,16 @@ nav.tab {
|
|
55
58
|
~ .label {
|
56
59
|
display: block;
|
57
60
|
font-size: 11px;
|
61
|
+
padding: 0;
|
62
|
+
font-size: 75%;
|
63
|
+
font-weight: normal;
|
64
|
+
line-height: 1;
|
65
|
+
color: #929292;
|
66
|
+
text-align: center;
|
67
|
+
white-space: nowrap;
|
68
|
+
vertical-align: baseline;
|
69
|
+
border-radius: 0;
|
70
|
+
background-color: transparent;
|
58
71
|
}
|
59
72
|
}
|
60
73
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- miclle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- vendor/assets/stylesheets/mice/_mixins.scss
|
84
84
|
- vendor/assets/stylesheets/mice/_navbar.scss
|
85
85
|
- vendor/assets/stylesheets/mice/_normalize.scss
|
86
|
+
- vendor/assets/stylesheets/mice/_pagination.scss
|
86
87
|
- vendor/assets/stylesheets/mice/_panels.scss
|
87
88
|
- vendor/assets/stylesheets/mice/_scaffolding.scss
|
88
89
|
- vendor/assets/stylesheets/mice/_sidebar.scss
|