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
@@ -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
|
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
|
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
|
}
|
data/lib/atlas_assets/version.rb
CHANGED