atlas_assets 0.1.3 → 0.1.4

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.
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- atlas_assets (0.1.3)
12
+ atlas_assets (0.1.4)
13
13
  handlebars_assets (~> 0.12.1)
14
14
 
15
15
  GEM
@@ -35,9 +35,11 @@ Colors
35
35
  <p><a href="#" class="btn blue">Blue</a></p>
36
36
  <p><a href="#" class="btn red">Red</a></p>
37
37
  <p><a href="#" class="btn green">Green</a></p>
38
+ <p><a href="#" class="btn disabled">Disabled</a></p>
38
39
 
39
40
  ~~~html
40
41
  <a href="#" class="btn blue">Blue</a>
41
42
  <a href="#" class="btn red">Red</a>
42
43
  <a href="#" class="btn green">Green</a>
44
+ <a href="#" class="btn disabled">Disabled</a>
43
45
  ~~~
@@ -12,10 +12,10 @@ The `atlas_assets` gem ships with a few styles you can apply to `div` elements,
12
12
  Default Box
13
13
  -----------
14
14
 
15
- Add a `.box` class to a `div` element to style as a sectioned box.
15
+ Add a `.box` class to a `<div>` element to style as a sectioned box. The box has a no-op `.box-inner` div, and an optional `<h3>` element. The heading can hold a `<small>` tag that is automatically pulled to the right.
16
16
 
17
17
  <div class="box">
18
- <h3>Heading</h3>
18
+ <h3>Heading <small>This goes to the right!</small></h3>
19
19
  <div class="box-inner">
20
20
  <p>This is a box with some content</p>
21
21
  </div>
@@ -23,9 +23,28 @@ Add a `.box` class to a `div` element to style as a sectioned box.
23
23
 
24
24
  ~~~html
25
25
  <div class="box">
26
+ <h3>Heading <small>This goes to the right!</small></h3>
27
+ <div class="box-inner">
28
+ <p>This is a box with some content</p>
29
+ </div>
30
+ </div>
31
+ ~~~
32
+
33
+
34
+ Styles
35
+ ------
36
+
37
+ Add `.box-white` to create a box with slightly better contrast.
38
+
39
+ <div class="box box-white">
26
40
  <h3>Heading</h3>
27
41
  <div class="box-inner">
28
42
  <p>This is a box with some content</p>
29
43
  </div>
30
44
  </div>
45
+
46
+ ~~~html
47
+ <div class="box box-white">
48
+ ...
49
+ </div>
31
50
  ~~~
@@ -6,6 +6,7 @@
6
6
 
7
7
  .box .box-inner {
8
8
  padding: 15px;
9
+ @include clearfix();
9
10
  }
10
11
 
11
12
  .box h3 {
@@ -14,6 +15,12 @@
14
15
  margin: 0;
15
16
  background-color: $light_gray;
16
17
  border-bottom: 1px solid $gray;
18
+ @include clearfix();
19
+ }
20
+
21
+ .box h3 small {
22
+ float: right;
23
+ font-size: 14px;
17
24
  }
18
25
 
19
26
  .box .box-inner *:first-child {
@@ -22,4 +29,19 @@
22
29
 
23
30
  .box .box-inner *:last-child {
24
31
  margin-bottom: 0;
32
+ }
33
+
34
+ /* Box Styles
35
+ --------------------------------------------------------- */
36
+
37
+ .box.box-white {
38
+ background-color: $white;
39
+ border: 2px solid $lighter_gray;
40
+ color: $darker_gray;
41
+ }
42
+
43
+ .box.box-white h3 {
44
+ background-color: $lightest_gray;
45
+ color: $darker_gray;
46
+ border-bottom-color: $lighter_gray;
25
47
  }
@@ -54,4 +54,9 @@ _________________________________________________________________ */
54
54
 
55
55
  .btn.green {
56
56
  background-color: $green;
57
+ }
58
+
59
+ .btn.disabled {
60
+ background-color: $light_gray;
61
+ color: $mid_gray;
57
62
  }
@@ -1,5 +1,5 @@
1
1
  module Atlas
2
2
  module Assets
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: