mice 0.1.2 → 0.1.3

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: c60dfc221ed557ba14a762a84d681362e959b2a3
4
- data.tar.gz: 4e5086461bed72f38c2d6b972f1c07c094459b61
3
+ metadata.gz: 18b86bc1b61f85200fe69cd3a0a589b17b1b0b67
4
+ data.tar.gz: df3fbae99c9bc309d918d1a3d99e73039f8757a2
5
5
  SHA512:
6
- metadata.gz: bfefd64a0880aa90b0a90c9824ad29ac9fcb3c328fb95bdd2602fbcc5aadd13d3c51245647727f10d61751d3a2956403a3c3e0e64c7937d2b62df953f9ee04b7
7
- data.tar.gz: f03cf754f2f74900743cd4aae684c63436d102c6a091457b75bf0979612fe80b61b9918dc389fd5c6cd64afb34a4cae7f8cd5b964bc5910f4ed9840292eb1d75
6
+ metadata.gz: 876789d6075f686e8ab9f82f8bde62df28cc0e1da98955760817f661669ade35bfb4675d2651d6de6a807c6152de2508495edf9173a7d2c5fef24759697f6ee4
7
+ data.tar.gz: 9ec72ce83076ba8ff9c5a9b42f543c102846fc65b85e356f74bdb0c114e5ce2521378f1f424ca81938313cd52e12373ce2fbc7fee1f84ba5aab4383dfba5873c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mice (0.1.2)
4
+ mice (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module Mice
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -24,6 +24,7 @@
24
24
  // Components
25
25
  @import "mice/components";
26
26
  @import "mice/media";
27
+ @import "mice/labels";
27
28
 
28
29
  // Form
29
30
  @import "mice/forms";
@@ -0,0 +1,80 @@
1
+ //
2
+ // Lables
3
+ // --------------------------------------------------
4
+
5
+ @mixin label-variant($color) {
6
+ background-color: $color;
7
+
8
+ &[href] {
9
+ &:hover,
10
+ &:focus {
11
+ background-color: darken($color, 10%);
12
+ }
13
+ }
14
+ }
15
+
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
+ .label {
27
+ display: inline;
28
+ padding: .2em .6em .3em;
29
+ font-size: 75%;
30
+ font-weight: bold;
31
+ line-height: 1;
32
+ color: $label-color;
33
+ text-align: center;
34
+ white-space: nowrap;
35
+ vertical-align: baseline;
36
+ border-radius: $border-radius;
37
+
38
+ // [converter] extracted a& to a.label
39
+
40
+ // Empty labels collapse automatically (not available in IE8)
41
+ &:empty {
42
+ display: none;
43
+ }
44
+
45
+ // Quick fix for labels in buttons
46
+ .button & {
47
+ position: relative;
48
+ top: -1px;
49
+ }
50
+ }
51
+
52
+ // Add hover effects, but only for links
53
+ a.label {
54
+ &:hover,
55
+ &:focus {
56
+ color: $label-link-hover-color;
57
+ text-decoration: none;
58
+ cursor: pointer;
59
+ }
60
+ }
61
+
62
+ // Colors
63
+ // Contextual variations (linked labels get darker on :hover)
64
+ .label { @include label-variant($label-background-default); }
65
+ .label.primary { @include label-variant($label-background-primary); }
66
+ .label.success { @include label-variant($label-background-success); }
67
+ .label.info { @include label-variant($label-background-info); }
68
+ .label.warning { @include label-variant($label-background-warning); }
69
+ .label.danger { @include label-variant($label-background-danger); }
70
+
71
+ .label{
72
+ &.large {
73
+ padding: .4em .8em .5em;
74
+ font-size: 120%;
75
+ border-radius: $border-radius;
76
+ }
77
+ }
78
+
79
+
80
+
@@ -212,18 +212,33 @@ $input-padding-large-horizontal: $padding-large-vertical !default;
212
212
  //## Customizes the `table` component with basic values, each used across all table variations.
213
213
 
214
214
  //** Padding for `<th>`s and `<td>`s.
215
- $table-cell-padding: 8px !default;
215
+ $table-cell-padding: 8px !default;
216
216
  //** Padding for cells in `.table-condensed`.
217
- $table-condensed-cell-padding: 5px !default;
217
+ $table-condensed-cell-padding: 5px !default;
218
218
 
219
219
  //** Default background color used for all tables.
220
- $table-background: transparent !default;
220
+ $table-background: transparent !default;
221
221
  //** Background color used for `.table-striped`.
222
- $table-background-accent: #f9f9f9 !default;
222
+ $table-background-accent: #f9f9f9 !default;
223
223
  //** Background color used for `.table-hover`.
224
- $table-background-hover: #f5f5f5 !default;
225
- $table-background-active: $table-background-hover !default;
224
+ $table-background-hover: #f5f5f5 !default;
225
+ $table-background-active: $table-background-hover !default;
226
226
 
227
227
  //** Border color for table and cell borders.
228
- $table-border-color: #ddd !default;
228
+ $table-border-color: #ddd !default;
229
+
230
+
231
+ //== Labels
232
+ // --------------------------------------------------
233
+ $label-background-default: $gray-light !default;
234
+ $label-background-primary: $brand-primary !default;
235
+ $label-background-success: $brand-success !default;
236
+ $label-background-info: $brand-info !default;
237
+ $label-background-warning: $brand-warning !default;
238
+ $label-background-danger: $brand-danger !default;
239
+
240
+ $label-color: #fff !default;
241
+ $label-link-hover-color: #fff !default;
242
+
243
+
229
244
 
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - miclle
@@ -61,6 +61,7 @@ files:
61
61
  - vendor/assets/stylesheets/mice/_grid.scss
62
62
  - vendor/assets/stylesheets/mice/_icons.scss
63
63
  - vendor/assets/stylesheets/mice/_images.scss
64
+ - vendor/assets/stylesheets/mice/_labels.scss
64
65
  - vendor/assets/stylesheets/mice/_lists.scss
65
66
  - vendor/assets/stylesheets/mice/_media.scss
66
67
  - vendor/assets/stylesheets/mice/_menu.scss