mice 0.1.6 → 0.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4821ea79867d76f6531bd1e6ae77e704a51a08ba
4
- data.tar.gz: 746b70d27ddd768e287841dbffd26c19b448bb2f
3
+ metadata.gz: b000eb76f79782d204ef7686245a009231183b61
4
+ data.tar.gz: 2ca1be8e0e72383879bd13ceba49a95de4b0ed1a
5
5
  SHA512:
6
- metadata.gz: 04659d91ccff98f483e3e43f9f39ed57085442ed6a809f51a182ae080fcc3f25556fbe1f07d8044a4f081239399c2fd754eedcc7d647e8601082a1c8f667e6f8
7
- data.tar.gz: 34c2dd8c582c3b9e2d30435a294d54612120eedf8c5de269ad3cf846ecd069531194e14b49a482f9cbe547176860871c2c5ff08a6d46d67d636973072d24a378
6
+ metadata.gz: d48207edfacb617ff6cedd8ee9dec0244104c41f851a35f836471ef70a7b37b77025f8118e8e61f65a5032b5e5d0b71d8aa04a861c22c934fbf96cee9b821976
7
+ data.tar.gz: efd1aa52ef681ca9d6517d866d523e8f67c307888a63409defd546c5006a03867becd1da971d4bd6fe21d582100411490b5fd7bdc2918e6ef10889a3c3c6c5c4
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gemspec
6
6
  gem "middleman", "~>3.3.2", :require => false
7
7
 
8
8
  # Live-reloading plugin
9
- gem "middleman-livereload", "~> 3.1.0", :require => false
9
+ gem "middleman-livereload", "~> 3.3.3", :require => false
10
10
 
11
11
  # For faster file watcher updates on Windows:
12
12
  gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw], :require => false
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mice (0.1.6)
4
+ mice (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -67,11 +67,10 @@ GEM
67
67
  rack-test (~> 0.6.2)
68
68
  thor (>= 0.15.2, < 2.0)
69
69
  tilt (~> 1.4.1, < 2.0)
70
- middleman-livereload (3.1.1)
71
- em-websocket (>= 0.2.0)
72
- middleman-core (>= 3.0.2)
73
- multi_json (~> 1.0)
74
- rack-livereload
70
+ middleman-livereload (3.3.3)
71
+ em-websocket (~> 0.5.1)
72
+ middleman-core (~> 3.2)
73
+ rack-livereload (~> 0.3.15)
75
74
  middleman-sprockets (3.3.3)
76
75
  middleman-core (>= 3.2)
77
76
  sprockets (~> 2.2)
@@ -126,7 +125,7 @@ DEPENDENCIES
126
125
  bundler (~> 1.5)
127
126
  mice!
128
127
  middleman (~> 3.3.2)
129
- middleman-livereload (~> 3.1.0)
128
+ middleman-livereload (~> 3.3.3)
130
129
  middleman-syntax (~> 2.0.0)
131
130
  tzinfo-data
132
131
  wdm (~> 0.1.0)
data/lib/mice/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mice
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -27,6 +27,7 @@
27
27
  @include clearfix();
28
28
  > .column {
29
29
  display: block;
30
+ min-height: 1px;
30
31
  float: left;
31
32
  padding-left: 5px;
32
33
  padding-right: 5px;
@@ -16,7 +16,7 @@
16
16
 
17
17
  .label {
18
18
  display: inline;
19
- padding: .2em .6em .3em;
19
+ padding: .25em .6em;
20
20
  font-size: 75%;
21
21
  font-weight: bold;
22
22
  line-height: 1;
@@ -2,6 +2,34 @@
2
2
  // Lists
3
3
  // --------------------------------------------------
4
4
 
5
+ // List group variants
6
+ @mixin list-group-item-variant($state, $background, $color) {
7
+ > li.#{$state},
8
+ .item.#{$state},
9
+ > a.#{$state} {
10
+ color: $color;
11
+ background-color: $background;
12
+ }
13
+
14
+ > a.#{$state} {
15
+ .heading { color: inherit; }
16
+
17
+ &:hover,
18
+ &:focus {
19
+ color: $color;
20
+ background-color: darken($background, 5%);
21
+ }
22
+ &.active,
23
+ &.active:hover,
24
+ &.active:focus {
25
+ color: #fff;
26
+ background-color: $color;
27
+ border-color: $color;
28
+ }
29
+ }
30
+ }
31
+
32
+
5
33
  // Unordered and Ordered lists
6
34
  ul,
7
35
  ol {
@@ -64,3 +92,93 @@ dd {
64
92
  margin-left: 180px;
65
93
  }
66
94
  }
95
+
96
+
97
+ //
98
+ // List groups
99
+ // --------------------------------------------------
100
+
101
+ // Base class
102
+ // Easily usable on <ul>, <ol>, <div> or <section>.
103
+ ul, ol, div, section{
104
+ .group {
105
+ margin-bottom: 20px;
106
+ padding-left: 0;
107
+
108
+ > li,
109
+ > a,
110
+ .item {
111
+ position: relative;
112
+ display: block;
113
+ padding: 10px 15px;
114
+ margin-bottom: -1px;
115
+ background-color: $list-group-background;
116
+ border: 1px solid $list-group-border-color;
117
+
118
+ &:first-child { @include border-top-radius($list-group-border-radius); }
119
+ &:last-child { @include border-bottom-radius($list-group-border-radius); margin-bottom: 0; }
120
+
121
+ > .label { float: right;}
122
+ }
123
+
124
+ > a {
125
+ color: $list-group-link-color;
126
+ // Hover state
127
+ &:hover,
128
+ &:focus {
129
+ text-decoration: none;
130
+ color: $list-group-link-hover-color;
131
+ background-color: $list-group-hover-background;
132
+ }
133
+ }
134
+
135
+ > li,
136
+ > a,
137
+ .item {
138
+ // Disabled state
139
+ &.disabled,
140
+ &.disabled:hover,
141
+ &.disabled:focus {
142
+ background-color: $list-group-disabled-background;
143
+ color: $list-group-disabled-color;
144
+
145
+ .heading { color: inherit; }
146
+ .text { color: $list-group-disabled-text-color; }
147
+ }
148
+
149
+ // Active class on item itself, not parent
150
+ &.active,
151
+ &.active:hover,
152
+ &.active:focus {
153
+ z-index: 2;
154
+ color: $list-group-active-color;
155
+ background-color: $list-group-active-background;
156
+ border-color: $list-group-active-border;
157
+
158
+ .heading { color: inherit; }
159
+ .text { color: $list-group-active-text-color; }
160
+ }
161
+ }
162
+
163
+
164
+ // Contextual variants
165
+ // Add modifier classes to change text and background color on individual items.
166
+ // Organizationally, this must come after the `:hover` states.
167
+ @include list-group-item-variant(success, $state-success-background, $state-success-text);
168
+ @include list-group-item-variant(info, $state-info-background, $state-info-text);
169
+ @include list-group-item-variant(warning, $state-warning-background, $state-warning-text);
170
+ @include list-group-item-variant(danger, $state-danger-background, $state-danger-text);
171
+
172
+
173
+ // Custom content options
174
+ .heading {
175
+ margin-top: 0;
176
+ margin-bottom: 5px;
177
+ }
178
+ .text {
179
+ margin-bottom: 0;
180
+ line-height: 1.3;
181
+ }
182
+
183
+ }
184
+ }
@@ -2,95 +2,42 @@
2
2
  // Menu
3
3
  // --------------------------------------------------
4
4
 
5
- .navbar{
6
- min-height: 45px;
7
- background: #FFF;
8
- border-bottom: 1px solid #E8E8E8;
9
-
10
- .logo{
11
- float: left;
12
- .brand{
13
- display: block;
14
- line-height: 45px;
15
- padding: 0;
16
- color: #666;
17
- text-decoration: none;
18
- font-weight: 700;
19
- }
5
+ .menu{
6
+ list-style: none;
7
+ margin: 0 15px;
8
+ padding: 0;
9
+ position: relative;
10
+
11
+ &.righted{
12
+ float: right;
20
13
  }
21
14
 
22
15
  .menu{
23
- float: left;
24
- list-style: none;
25
- margin: 0 15px;
26
- padding: 0;
27
- position: relative;
28
-
29
- &.right{
30
- float: right;
31
- }
16
+ display: none;
17
+ }
32
18
 
33
- > li{
34
- float: left;
19
+ > li{
20
+ // float: left;
35
21
 
36
- > a{
37
- display: block;
38
- line-height: 45px;
39
- padding: 0 20px;
40
- position: relative;
41
- text-decoration: none;
42
- color: #666;
43
- position: relative;
44
- text-align: center;
22
+ > a{
23
+ display: block;
24
+ position: relative;
25
+ text-decoration: none;
26
+ color: #666;
27
+ position: relative;
28
+ }
45
29
 
46
- -webkit-transition: padding 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
47
- transition: padding 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
30
+ &.active{
31
+ a{
32
+ color: #428BCA;
33
+ background: #F5F5F5;
48
34
 
49
35
  &:after{
50
- display: block;
51
- margin: 0 auto;
52
- content: '';
53
- position: absolute;
54
- left: 0;
55
- bottom: -1px;
56
- height: 0;
57
- width: 100%;
58
-
59
- -webkit-transition: height 0.15s ease;
60
- transition: height 0.15s ease;
61
- }
62
-
63
- &:hover {
64
- color: #428BCA;
65
- background: #F5F5F5;
66
- &:after{
67
- height: 3px;
68
- background-color: #428BCA;
69
- }
70
- }
71
- &:active{ background: #F0F0F0; }
72
- }
73
-
74
- &.active{
75
- a{
76
- color: #428BCA;
77
- background: #F5F5F5;
78
- font-weight: 700;
79
-
80
- &:after{
81
- height: 3px;
82
- background-color: #428BCA;
83
- }
36
+ height: 3px;
37
+ background-color: #428BCA;
84
38
  }
85
39
  }
86
40
  }
87
-
88
- }
89
-
90
-
91
- form{
92
- float: left;
93
- padding-top: 5px;
94
41
  }
95
42
 
96
- }
43
+ }
@@ -0,0 +1,75 @@
1
+ //
2
+ // Navbar
3
+ // --------------------------------------------------
4
+
5
+ .navbar{
6
+ min-height: 45px;
7
+ background: #FFF;
8
+ border-bottom: 1px solid #E8E8E8;
9
+
10
+ .logo{
11
+ float: left;
12
+ .brand{
13
+ display: block;
14
+ line-height: 45px;
15
+ padding: 0;
16
+ color: #666;
17
+ text-decoration: none;
18
+ font-weight: 700;
19
+ }
20
+ }
21
+
22
+ .menu{
23
+ float: left;
24
+ list-style: none;
25
+ margin: 0 15px;
26
+ padding: 0;
27
+ position: relative;
28
+
29
+ .menu{
30
+ display: none;
31
+ }
32
+
33
+ > li{
34
+ float: left;
35
+
36
+ > a{
37
+ text-align: center;
38
+ padding: 0 20px;
39
+ line-height: 45px;
40
+ -webkit-transition: padding 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
41
+ transition: padding 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
42
+
43
+ &:after{
44
+ display: block;
45
+ margin: 0 auto;
46
+ content: '';
47
+ position: absolute;
48
+ left: 0;
49
+ bottom: -1px;
50
+ height: 0;
51
+ width: 100%;
52
+
53
+ -webkit-transition: height 0.15s ease;
54
+ transition: height 0.15s ease;
55
+ }
56
+
57
+ &:hover {
58
+ color: #428BCA;
59
+ background: #F5F5F5;
60
+ &:after{
61
+ height: 3px;
62
+ background-color: #428BCA;
63
+ }
64
+ }
65
+ &:active{ background: #F0F0F0; }
66
+ }
67
+ }
68
+ }
69
+
70
+ form{
71
+ float: left;
72
+ padding-top: 5px;
73
+ }
74
+
75
+ }
@@ -210,6 +210,7 @@ $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
+
213
214
  // Tables
214
215
  //
215
216
  //## Customizes the `table` component with basic values, each used across all table variations.
@@ -244,6 +245,24 @@ $label-color: #fff !default;
244
245
  $label-link-hover-color: #fff !default;
245
246
 
246
247
 
248
+ // List group
249
+ $list-group-background: #fff !default;
250
+ $list-group-border-color: #ddd !default;
251
+ $list-group-border-radius: $border-radius !default;
252
+ $list-group-hover-background: #f5f5f5 !default;
253
+
254
+ $list-group-active-color: $component-active-color !default;
255
+ $list-group-active-background: $component-active-bg !default;
256
+ $list-group-active-border: $list-group-active-background !default;
257
+ $list-group-active-text-color: lighten($list-group-active-background, 40%) !default;
258
+
259
+ $list-group-disabled-color: $gray-light !default;
260
+ $list-group-disabled-background: $gray-lighter !default;
261
+ $list-group-disabled-text-color: $list-group-disabled-color !default;
262
+
263
+ $list-group-link-color: #555 !default;
264
+ $list-group-link-hover-color: $list-group-link-color !default;
265
+
247
266
 
248
267
  // Timeline
249
268
  $timeline-color-default: $gray-dark !default;
@@ -0,0 +1,14 @@
1
+ // Core variables and mixins
2
+ @import "mice/variables";
3
+ @import "mice/mixins";
4
+
5
+ // Reset and dependencies
6
+ @import "mice/normalize";
7
+
8
+ @import "mice/icons";
9
+
10
+ // Components
11
+ @import "mice/media";
12
+
13
+ // Variables
14
+ @import "mobile/variables";
@@ -17,6 +17,7 @@
17
17
  @import "mice/icons";
18
18
 
19
19
  @import "mice/menu";
20
+ @import "mice/navbar";
20
21
  @import "mice/sidebar";
21
22
  @import "mice/lists";
22
23
  @import "mice/tables";
@@ -0,0 +1,13 @@
1
+ //
2
+ // Bars
3
+ // --------------------------------------------------
4
+
5
+ .bar {
6
+ position: fixed;
7
+ right: 0;
8
+ left: 0;
9
+ }
10
+
11
+ // Nav bar
12
+ // --------------------------------------------------
13
+ // TODO
@@ -0,0 +1,29 @@
1
+ //
2
+ // Cards
3
+ // --------------------------------------------------
4
+
5
+ .card {
6
+
7
+ }
8
+
9
+
10
+ .card{
11
+ p{
12
+ margin: 5px;
13
+ }
14
+
15
+ ul, li{
16
+ list-style: none;
17
+ margin: 0;
18
+ padding: 0;
19
+ }
20
+
21
+ ul:not(:first-child){
22
+ border-top: 1px solid #EBEBEB;
23
+ }
24
+ }
25
+
26
+ // Card Media
27
+ .card .media{
28
+ margin: 5px;
29
+ }
@@ -0,0 +1,5 @@
1
+ //
2
+ // Variables
3
+ // --------------------------------------------------
4
+
5
+ // TODO
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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - miclle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,6 +53,7 @@ files:
53
53
  - vendor/assets/javascripts/mice/jquery.js
54
54
  - vendor/assets/javascripts/mice/jquery.min.js
55
55
  - vendor/assets/javascripts/mice/jquery.min.map
56
+ - vendor/assets/stylesheets/mice-mobile.scss
56
57
  - vendor/assets/stylesheets/mice.scss
57
58
  - vendor/assets/stylesheets/mice/_buttons.scss
58
59
  - vendor/assets/stylesheets/mice/_callouts.scss
@@ -66,6 +67,7 @@ files:
66
67
  - vendor/assets/stylesheets/mice/_media.scss
67
68
  - vendor/assets/stylesheets/mice/_menu.scss
68
69
  - vendor/assets/stylesheets/mice/_mixins.scss
70
+ - vendor/assets/stylesheets/mice/_navbar.scss
69
71
  - vendor/assets/stylesheets/mice/_normalize.scss
70
72
  - vendor/assets/stylesheets/mice/_scaffolding.scss
71
73
  - vendor/assets/stylesheets/mice/_sidebar.scss
@@ -74,6 +76,9 @@ files:
74
76
  - vendor/assets/stylesheets/mice/_typography.scss
75
77
  - vendor/assets/stylesheets/mice/_utilities.scss
76
78
  - vendor/assets/stylesheets/mice/_variables.scss
79
+ - vendor/assets/stylesheets/mobile/bars.scss
80
+ - vendor/assets/stylesheets/mobile/cards.scss
81
+ - vendor/assets/stylesheets/mobile/variables.scss
77
82
  homepage: https://github.com/miclle/mice
78
83
  licenses:
79
84
  - MIT