mice 0.1.3 → 0.1.4
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/lib/mice/version.rb +1 -1
- data/vendor/assets/stylesheets/mice.scss +1 -1
- data/vendor/assets/stylesheets/mice/_labels.scss +11 -9
- data/vendor/assets/stylesheets/mice/_timeline.scss +157 -0
- data/vendor/assets/stylesheets/mice/_variables.scss +36 -8
- metadata +2 -2
- data/vendor/assets/stylesheets/mice/_components.scss +0 -76
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffefbc2cd5b26016c6c934bc5e09fb780c33c91c
|
4
|
+
data.tar.gz: 69520a13bddc0b493f32847ba2d407dd7d3503f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d610ca686a559a75ba77bd257b1d4377fdfc6f5a243c4d994a2c5d460bc19f5dfe3f3fd6a6fd207e92e21cd320dd384358e812f23175d6dfba672ec31aec2b46
|
7
|
+
data.tar.gz: 3ba91a1a12ee19efd0045fadd2529f1b87cbb2cf240c2315b655f1be9cda7d35e86faee525c60debb3950cee341e7e709acfd89190d7f4bcf07c20202e0d3b43
|
data/Gemfile.lock
CHANGED
data/lib/mice/version.rb
CHANGED
@@ -14,15 +14,6 @@
|
|
14
14
|
}
|
15
15
|
|
16
16
|
|
17
|
-
// Lable sizes
|
18
|
-
// -------------------------
|
19
|
-
@mixin label-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
|
20
|
-
padding: $padding-vertical $padding-horizontal;
|
21
|
-
font-size: $font-size;
|
22
|
-
line-height: $line-height;
|
23
|
-
border-radius: $border-radius;
|
24
|
-
}
|
25
|
-
|
26
17
|
.label {
|
27
18
|
display: inline;
|
28
19
|
padding: .2em .6em .3em;
|
@@ -76,5 +67,16 @@ a.label {
|
|
76
67
|
}
|
77
68
|
}
|
78
69
|
|
70
|
+
// $colors: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, orange, purple, red, silver, teal, white, yellow;
|
71
|
+
|
72
|
+
// @for $i from 1 through length($colors) {
|
73
|
+
// .label.#{nth($colors, $i)}{
|
74
|
+
// @include label-variant(#{nth($colors, $i)});
|
75
|
+
// }
|
76
|
+
// }
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
79
81
|
|
80
82
|
|
@@ -0,0 +1,157 @@
|
|
1
|
+
//
|
2
|
+
// Timeline
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
@mixin timeline-variant($parent, $color){
|
6
|
+
.timeline#{$parent} {
|
7
|
+
> ul, > ol{
|
8
|
+
> li{
|
9
|
+
box-shadow: 0 0 0 2px $color inset;
|
10
|
+
|
11
|
+
&:hover {
|
12
|
+
box-shadow: 0 0 0 30px $color inset;
|
13
|
+
}
|
14
|
+
|
15
|
+
&.active {
|
16
|
+
background-color: $color;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
@mixin timeline-size($parent, $size, $font-size, $border){
|
24
|
+
|
25
|
+
.timeline#{$parent}{
|
26
|
+
position: relative;
|
27
|
+
margin-top: 20px;
|
28
|
+
margin-bottom: 10px;
|
29
|
+
|
30
|
+
&:before{
|
31
|
+
height: $border;
|
32
|
+
left: 0;
|
33
|
+
z-index: 10;
|
34
|
+
top: $size / 2;
|
35
|
+
}
|
36
|
+
|
37
|
+
> ul, > ol{
|
38
|
+
> li{
|
39
|
+
z-index: 11;
|
40
|
+
height: $size;
|
41
|
+
width: $size;
|
42
|
+
border-radius: 50%;
|
43
|
+
box-shadow: 0 0 0 $border $timeline-background-default inset;
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
box-shadow: 0 0 0 $size / 2 $timeline-background-default inset;
|
47
|
+
}
|
48
|
+
|
49
|
+
> .title{
|
50
|
+
line-height: $size;
|
51
|
+
font-size: $font-size;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
.timeline{
|
60
|
+
position: relative;
|
61
|
+
margin-top: 20px;
|
62
|
+
margin-bottom: 10px;
|
63
|
+
|
64
|
+
&:before{
|
65
|
+
display: block;
|
66
|
+
content: '';
|
67
|
+
width: 100%;
|
68
|
+
height: 2px;
|
69
|
+
position: absolute;
|
70
|
+
left: 0;
|
71
|
+
z-index: 10;
|
72
|
+
top: 30px;
|
73
|
+
background-color: #EBEBEB;
|
74
|
+
}
|
75
|
+
|
76
|
+
> ul, > ol{
|
77
|
+
padding: 0;
|
78
|
+
margin: 0;
|
79
|
+
overflow: hidden;
|
80
|
+
text-align: justify;
|
81
|
+
line-height: 0;
|
82
|
+
|
83
|
+
&:after{
|
84
|
+
display: inline-block;
|
85
|
+
content: '';
|
86
|
+
height: 0;
|
87
|
+
width: 100%;
|
88
|
+
overflow: hidden;
|
89
|
+
visibility: hidden;
|
90
|
+
}
|
91
|
+
|
92
|
+
> li{
|
93
|
+
display: inline-block;
|
94
|
+
text-align: center;
|
95
|
+
position: relative;
|
96
|
+
z-index: 11;
|
97
|
+
height: 60px;
|
98
|
+
width: 60px;
|
99
|
+
border-radius: 50%;
|
100
|
+
overflow: hidden;
|
101
|
+
background-color: #FFF;
|
102
|
+
box-shadow: 0 0 0 2px $timeline-background-default inset;
|
103
|
+
-webkit-transition: all 0.25s ease;
|
104
|
+
transition: all 0.25s ease;
|
105
|
+
|
106
|
+
&:hover {
|
107
|
+
box-shadow: 0 0 0 30px $timeline-background-default inset;
|
108
|
+
color: #FFF;
|
109
|
+
}
|
110
|
+
|
111
|
+
&.active {
|
112
|
+
box-shadow: none;
|
113
|
+
background-color: $timeline-background-default;
|
114
|
+
color: #FFF;
|
115
|
+
}
|
116
|
+
|
117
|
+
&:hover,
|
118
|
+
&.active {
|
119
|
+
> .title{
|
120
|
+
color: #FFF;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
> .title{
|
125
|
+
display: block;
|
126
|
+
width: 100%;
|
127
|
+
height: 100%;
|
128
|
+
border-radius: 50%;
|
129
|
+
line-height: 60px;
|
130
|
+
font-size: 14px;
|
131
|
+
position: absolute;
|
132
|
+
left: 0;
|
133
|
+
top: 0;
|
134
|
+
text-decoration: none;
|
135
|
+
color: #333;
|
136
|
+
-webkit-transition: all 0.25s ease;
|
137
|
+
transition: all 0.25s ease;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
// Colors
|
145
|
+
|
146
|
+
@include timeline-variant(".primary", $timeline-background-primary);
|
147
|
+
@include timeline-variant(".success", $timeline-background-success);
|
148
|
+
@include timeline-variant(".info", $timeline-background-info);
|
149
|
+
@include timeline-variant(".warning", $timeline-background-warning);
|
150
|
+
@include timeline-variant(".danger", $timeline-background-danger);
|
151
|
+
|
152
|
+
|
153
|
+
// Sizing
|
154
|
+
@include timeline-size(".small", $timeline-small-size, $timeline-small-font-size, $timeline-small-border);
|
155
|
+
// @include timeline-size(".default", $timeline-default-size, $timeline-default-font-size, $timeline-default-border);
|
156
|
+
@include timeline-size(".large", $timeline-large-size, $timeline-large-font-size, $timeline-large-border);
|
157
|
+
|
@@ -25,6 +25,9 @@ $link-color: $brand-primary !default;
|
|
25
25
|
|
26
26
|
$link-hover-color: darken($link-color, 15%) !default;
|
27
27
|
|
28
|
+
// Radius
|
29
|
+
// -------------------------
|
30
|
+
|
28
31
|
$border-radius: 2px !default;
|
29
32
|
$border-radius-small: $border-radius * 1.5 !default;
|
30
33
|
$border-radius-large: $border-radius * 2 !default;
|
@@ -59,7 +62,7 @@ $line-height-large: 1.5 !default;
|
|
59
62
|
$line-height-computed: floor(($font-size-base * $line-height-base)) !default; // ~20px
|
60
63
|
|
61
64
|
|
62
|
-
|
65
|
+
// Components
|
63
66
|
//
|
64
67
|
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
|
65
68
|
|
@@ -107,7 +110,7 @@ $heading-line-height: 1.1 !default;
|
|
107
110
|
$heading-color: inherit !default;
|
108
111
|
|
109
112
|
|
110
|
-
|
113
|
+
// Type
|
111
114
|
// -------------------------
|
112
115
|
$text-muted: $gray-light !default;
|
113
116
|
$abbr-border-color: $gray-light !default;
|
@@ -141,7 +144,7 @@ $state-danger-border: darken(adjust-hue($state-danger-background,
|
|
141
144
|
|
142
145
|
|
143
146
|
|
144
|
-
|
147
|
+
// Code
|
145
148
|
//
|
146
149
|
//##
|
147
150
|
|
@@ -157,11 +160,11 @@ $pre-border-color: #ccc !default;
|
|
157
160
|
$pre-scrollable-max-height: 340px !default;
|
158
161
|
|
159
162
|
|
160
|
-
|
163
|
+
// Forms
|
161
164
|
// -------------------------
|
162
165
|
|
163
166
|
|
164
|
-
|
167
|
+
// Buttons
|
165
168
|
// -------------------------
|
166
169
|
|
167
170
|
$button-font-weight: normal !default;
|
@@ -191,7 +194,7 @@ $button-danger-background: $brand-danger !default;
|
|
191
194
|
$button-danger-border: darken($button-danger-background, 5%) !default;
|
192
195
|
|
193
196
|
|
194
|
-
|
197
|
+
// Input
|
195
198
|
// -------------------------
|
196
199
|
$input-height-default: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
|
197
200
|
$input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2) !default;
|
@@ -207,7 +210,7 @@ $input-padding-small-horizontal: $padding-small-vertical !default;
|
|
207
210
|
$input-padding-large-vertical: $padding-large-vertical !default;
|
208
211
|
$input-padding-large-horizontal: $padding-large-vertical !default;
|
209
212
|
|
210
|
-
|
213
|
+
// Tables
|
211
214
|
//
|
212
215
|
//## Customizes the `table` component with basic values, each used across all table variations.
|
213
216
|
|
@@ -228,7 +231,7 @@ $table-background-active: $table-background-hover !default;
|
|
228
231
|
$table-border-color: #ddd !default;
|
229
232
|
|
230
233
|
|
231
|
-
|
234
|
+
// Labels
|
232
235
|
// --------------------------------------------------
|
233
236
|
$label-background-default: $gray-light !default;
|
234
237
|
$label-background-primary: $brand-primary !default;
|
@@ -242,3 +245,28 @@ $label-link-hover-color: #fff !default;
|
|
242
245
|
|
243
246
|
|
244
247
|
|
248
|
+
// Timeline
|
249
|
+
$timeline-color-default: $gray-dark !default;
|
250
|
+
|
251
|
+
$timeline-background-default: $gray-light !default;
|
252
|
+
$timeline-background-primary: $brand-primary !default;
|
253
|
+
$timeline-background-success: $brand-success !default;
|
254
|
+
$timeline-background-info: $brand-info !default;
|
255
|
+
$timeline-background-warning: $brand-warning !default;
|
256
|
+
$timeline-background-danger: $brand-danger !default;
|
257
|
+
|
258
|
+
$timeline-small-size: 30px !default;
|
259
|
+
$timeline-small-font-size: 12px !default;
|
260
|
+
$timeline-small-border: 1px !default;
|
261
|
+
|
262
|
+
$timeline-default-size: 60px !default;
|
263
|
+
$timeline-default-font-size: 14px !default;
|
264
|
+
$timeline-default-border: 2px !default;
|
265
|
+
|
266
|
+
$timeline-large-size: 120px !default;
|
267
|
+
$timeline-large-font-size: 24px !default;
|
268
|
+
$timeline-large-border: 4px !default;
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- miclle
|
@@ -56,7 +56,6 @@ files:
|
|
56
56
|
- vendor/assets/stylesheets/mice/_buttons.scss
|
57
57
|
- vendor/assets/stylesheets/mice/_callouts.scss
|
58
58
|
- vendor/assets/stylesheets/mice/_code.scss
|
59
|
-
- vendor/assets/stylesheets/mice/_components.scss
|
60
59
|
- vendor/assets/stylesheets/mice/_forms.scss
|
61
60
|
- vendor/assets/stylesheets/mice/_grid.scss
|
62
61
|
- vendor/assets/stylesheets/mice/_icons.scss
|
@@ -70,6 +69,7 @@ files:
|
|
70
69
|
- vendor/assets/stylesheets/mice/_scaffolding.scss
|
71
70
|
- vendor/assets/stylesheets/mice/_sidebar.scss
|
72
71
|
- vendor/assets/stylesheets/mice/_tables.scss
|
72
|
+
- vendor/assets/stylesheets/mice/_timeline.scss
|
73
73
|
- vendor/assets/stylesheets/mice/_typography.scss
|
74
74
|
- vendor/assets/stylesheets/mice/_utilities.scss
|
75
75
|
- vendor/assets/stylesheets/mice/_variables.scss
|
@@ -1,76 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Components
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
.timeline{
|
6
|
-
position: relative;
|
7
|
-
margin-top: 20px;
|
8
|
-
margin-bottom: 10px;
|
9
|
-
|
10
|
-
&:before{
|
11
|
-
display: block;
|
12
|
-
content: '';
|
13
|
-
width: 100%;
|
14
|
-
height: 2px;
|
15
|
-
position: absolute;
|
16
|
-
left: 0;
|
17
|
-
z-index: 10;
|
18
|
-
top: 30px;
|
19
|
-
background-color: #EBEBEB;
|
20
|
-
}
|
21
|
-
|
22
|
-
> ul, > ol{
|
23
|
-
padding: 0;
|
24
|
-
margin: 0;
|
25
|
-
overflow: hidden;
|
26
|
-
text-align: justify;
|
27
|
-
line-height: 0;
|
28
|
-
|
29
|
-
&:after{
|
30
|
-
display: inline-block;
|
31
|
-
content: '';
|
32
|
-
height: 0;
|
33
|
-
width: 100%;
|
34
|
-
overflow: hidden;
|
35
|
-
visibility: hidden;
|
36
|
-
}
|
37
|
-
|
38
|
-
> li{
|
39
|
-
display: inline-block;
|
40
|
-
text-align: center;
|
41
|
-
cursor: pointer;
|
42
|
-
position: relative;
|
43
|
-
z-index: 11;
|
44
|
-
height: 60px;
|
45
|
-
width: 60px;
|
46
|
-
border-radius: 50%;
|
47
|
-
overflow: hidden;
|
48
|
-
background-color: #FFF;
|
49
|
-
box-shadow: 0 0 0 2px #F8862C inset;
|
50
|
-
-webkit-transition: all 0.25s ease;
|
51
|
-
transition: all 0.25s ease;
|
52
|
-
|
53
|
-
&:hover {
|
54
|
-
box-shadow: 0 0 0 30px #F8862C inset;
|
55
|
-
color: #FFF;
|
56
|
-
}
|
57
|
-
|
58
|
-
&.active {
|
59
|
-
box-shadow: none;
|
60
|
-
background-color: #F8862C;
|
61
|
-
color: #FFF;
|
62
|
-
}
|
63
|
-
|
64
|
-
> .title{
|
65
|
-
display: block;
|
66
|
-
width: 100%;
|
67
|
-
height: 20px;
|
68
|
-
font-size: 14px;
|
69
|
-
line-height: 60px;
|
70
|
-
position: absolute;
|
71
|
-
left: 0;
|
72
|
-
top: 0;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
}
|
76
|
-
}
|