mice 0.0.11 → 0.0.12

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: f7030505c8ae8c2bf4d35e15765650d0bbd62bad
4
- data.tar.gz: de86ea62bc99ecc36d99456a8f725f1498a2a451
3
+ metadata.gz: 3c137a9797635bd9d1ceaa7ee1fba371293bc692
4
+ data.tar.gz: 072a1aeb8dff35ff1f689bb0fc2a940158a9b532
5
5
  SHA512:
6
- metadata.gz: 63632da323b3f90436ba43901907fc6305e2f059fa3ca667ca32213843aa4eb461bb94e6d58c1a8ffdc2336d781cb4f854f8b7112ab406430e9d0795161e166d
7
- data.tar.gz: b2aed92d7f2704cf20ce2428d4d36dcc1124c741fe85b29d73ea8c007f0970feb5dc6b13fda2f117bfdb12273103de1f35f1cdc52d2aadef1fde13da931e32ec
6
+ metadata.gz: f641c5b830796b21a610bba89a1a500c431ad64af13bfeeb075ee82b40131567d0b39493c0d81ef5a97edbb7f149deb19c14522da7e5e07820f6c603ffc892fa
7
+ data.tar.gz: 6130746c921791b9ce1e438e951318b7a675370e0ab486601f863ca9fac1f862223c62beee446853faba33004744499288ede2bfc9ad94afde6461f404d6e0cf
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mice (0.0.11)
4
+ mice (0.0.12)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module Mice
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -8,6 +8,7 @@
8
8
  // Base CSS
9
9
  @import "mice/scaffolding";
10
10
  @import "mice/typography";
11
+ @import "mice/code";
11
12
  @import "mice/grid";
12
13
 
13
14
  @import "mice/buttons";
@@ -0,0 +1,63 @@
1
+ //
2
+ // Code (inline and block)
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Inline and block code styles
7
+ code,
8
+ kbd,
9
+ pre,
10
+ samp {
11
+ font-family: $font-family-monospace;
12
+ }
13
+
14
+ // Inline code
15
+ code {
16
+ padding: 2px 4px;
17
+ font-size: 90%;
18
+ color: $code-color;
19
+ background-color: $code-background;
20
+ border-radius: $border-radius;
21
+ }
22
+
23
+ // User input typically entered via keyboard
24
+ kbd {
25
+ padding: 2px 4px;
26
+ font-size: 90%;
27
+ color: $kbd-color;
28
+ background-color: $kbd-background;
29
+ border-radius: $border-radius-small;
30
+ box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
31
+ }
32
+
33
+ // Blocks of code
34
+ pre {
35
+ display: block;
36
+ padding: (($line-height-computed - 1) / 2);
37
+ margin: 0 0 ($line-height-computed / 2);
38
+ font-size: ($font-size-base - 1); // 14px to 13px
39
+ line-height: $line-height-base;
40
+ word-break: break-all;
41
+ word-wrap: break-word;
42
+ color: $pre-color;
43
+ background-color: $pre-background;
44
+ border: 1px solid $pre-border-color;
45
+ border-radius: $border-radius;
46
+
47
+ // Account for some code outputs that place code tags in pre tags
48
+ code {
49
+ padding: 0;
50
+ font-size: inherit;
51
+ color: inherit;
52
+ white-space: pre-wrap;
53
+ background-color: transparent;
54
+ border-radius: 0;
55
+ }
56
+
57
+ // Enable scrollable blocks of code
58
+ &.scrollable {
59
+ max-height: $pre-scrollable-max-height;
60
+ overflow-y: scroll;
61
+ }
62
+ }
63
+
@@ -7,6 +7,7 @@ img {
7
7
 
8
8
  &.responsive{
9
9
  max-width: 100%;
10
+ height: auto;
10
11
  }
11
12
 
12
13
  &.rounded { border-radius: $border-radius-large; }
@@ -30,6 +31,7 @@ img {
30
31
  }
31
32
 
32
33
  &.fluid{
34
+ display: block;
33
35
  width: 100%;
34
36
  }
35
37
  }
@@ -50,9 +50,6 @@
50
50
 
51
51
 
52
52
  // Drop shadows
53
- //
54
- // Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's
55
- // supported browsers that have box shadow capabilities now support it.
56
53
 
57
54
  @mixin box-shadow($shadow...) {
58
55
  -webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1
@@ -118,6 +118,21 @@ $blockquote-border-color: $gray-lighter !default;
118
118
  $page-header-border-color: $gray-lighter !default;
119
119
 
120
120
 
121
+ //== Code
122
+ //
123
+ //##
124
+
125
+ $code-color: #c7254e !default;
126
+ $code-background: #f9f2f4 !default;
127
+
128
+ $kbd-color: #fff !default;
129
+ $kbd-background: #333 !default;
130
+
131
+ $pre-background: #f5f5f5 !default;
132
+ $pre-color: $gray-dark !default;
133
+ $pre-border-color: #ccc !default;
134
+ $pre-scrollable-max-height: 340px !default;
135
+
121
136
 
122
137
  //== Forms
123
138
  // -------------------------
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.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - miclle
@@ -54,6 +54,7 @@ files:
54
54
  - vendor/assets/javascripts/mice/jquery.min.map
55
55
  - vendor/assets/stylesheets/mice.scss
56
56
  - vendor/assets/stylesheets/mice/_buttons.scss
57
+ - vendor/assets/stylesheets/mice/_code.scss
57
58
  - vendor/assets/stylesheets/mice/_components.scss
58
59
  - vendor/assets/stylesheets/mice/_forms.scss
59
60
  - vendor/assets/stylesheets/mice/_grid.scss