atlas_assets 0.5.5 → 0.5.6
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 +8 -8
- data/Gemfile.lock +9 -9
- data/README.md +18 -1
- data/docs/_posts/2013-05-17-flash.md +1 -1
- data/docs/_posts/2013-05-17-lists.md +69 -0
- data/docs/_posts/2014-2-10-colors.md +95 -0
- data/lib/assets/stylesheets/atlas_assets/_flash.scss +4 -0
- data/lib/assets/stylesheets/atlas_assets/_lists.scss +34 -1
- data/lib/atlas_assets/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjA1MTNhNDk2YWU3NGViODQ1ODhhYzE0ZGUxNzlmZWM1NmQ5M2NmMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjI4MTVlMTA5OTdiNTA5NmYxZGMzODE5NGZmNmJkYjBhNGI2N2UwMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWY0NjJmNTBjM2FhNTQ1MjAzNzE4NmJiZTMxMDE0OTFhMGU0ZjkxYzE2MGI2
|
10
|
+
YTQ5YjBlYTBjOWMwYzA3MWU2ODhkZmQyMzAzNGM0OGY1ZjFiMWVhNGEzMWEy
|
11
|
+
MmQyMDVmYmE3ODhkYmIzYWIyZmY0N2ZkNDE5ZWNiZTVhODI2YzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWU4YTJiZTY3MGY5MmQ0ZjFhY2VjOTc0Njk2Yzg1M2NhMGMwNTc4ODI5NmY5
|
14
|
+
ZGIwNmRhZjViZGJmNTU1MzU5OWE0ODNhNjQ5ZjUyODBhMGY4NjVkYzc2NDBj
|
15
|
+
ZDUwNjRkNTdiM2Y4OTJlZjM1NjhlMDMwNDdhODk1MWQ0YzkyZTQ=
|
data/Gemfile.lock
CHANGED
@@ -9,19 +9,19 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: .
|
11
11
|
specs:
|
12
|
-
atlas_assets (0.5.
|
12
|
+
atlas_assets (0.5.5)
|
13
13
|
handlebars_assets (~> 0.12.2)
|
14
14
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
17
17
|
specs:
|
18
|
-
classifier (1.3.
|
18
|
+
classifier (1.3.4)
|
19
19
|
fast-stemmer (>= 1.0.0)
|
20
20
|
coderay (1.0.9)
|
21
21
|
coffee-script (2.2.0)
|
22
22
|
coffee-script-source
|
23
23
|
execjs
|
24
|
-
coffee-script-source (1.
|
24
|
+
coffee-script-source (1.7.0)
|
25
25
|
colorator (0.1)
|
26
26
|
commander (4.1.5)
|
27
27
|
highline (~> 1.6.11)
|
@@ -45,10 +45,10 @@ GEM
|
|
45
45
|
pygments.rb (~> 0.5.0)
|
46
46
|
safe_yaml (~> 0.7.0)
|
47
47
|
kramdown (1.0.2)
|
48
|
-
liquid (2.5.
|
49
|
-
maruku (0.7.
|
50
|
-
multi_json (1.8.
|
51
|
-
posix-spawn (0.3.
|
48
|
+
liquid (2.5.5)
|
49
|
+
maruku (0.7.1)
|
50
|
+
multi_json (1.8.4)
|
51
|
+
posix-spawn (0.3.8)
|
52
52
|
puma (2.0.1)
|
53
53
|
rack (>= 1.1, < 2.0)
|
54
54
|
pygmentize (0.0.3)
|
@@ -61,8 +61,8 @@ GEM
|
|
61
61
|
rack-rewrite (1.3.3)
|
62
62
|
rake (10.0.4)
|
63
63
|
safe_yaml (0.7.1)
|
64
|
-
sass (3.2.
|
65
|
-
sprockets (2.10.
|
64
|
+
sass (3.2.14)
|
65
|
+
sprockets (2.10.1)
|
66
66
|
hike (~> 1.2)
|
67
67
|
multi_json (~> 1.0)
|
68
68
|
rack (~> 1.0)
|
data/README.md
CHANGED
@@ -25,6 +25,23 @@ If you need to, you can import individual stylesheets from this gem in your appl
|
|
25
25
|
@import "atlas_assets/icons";
|
26
26
|
```
|
27
27
|
|
28
|
+
Local Development
|
29
|
+
-----------------
|
30
|
+
|
31
|
+
To get started on your own machine first install the required gems with bundler"
|
32
|
+
|
33
|
+
```
|
34
|
+
bundle install
|
35
|
+
```
|
36
|
+
|
37
|
+
Then to run the site and watch for changes run:
|
38
|
+
|
39
|
+
```
|
40
|
+
foreman start -f Procfile.dev
|
41
|
+
```
|
42
|
+
|
43
|
+
This will launch the jekyll command as well as a second script to watch for changes to stylesheets and write those changes to `docs/ignore` to trigger rebuilds from jekyll. That folder is ignored by git and can be safely deleted.
|
44
|
+
|
28
45
|
Adding new styles
|
29
46
|
-----------------
|
30
47
|
|
@@ -40,4 +57,4 @@ You now have the site running in your browser on `localhost:4000`. Now follow th
|
|
40
57
|
2. Implement your style by tweaking the CSS and checking the documentation on `localhost:4000`. Do not work from the specific Atlas Rails app by updating the gem constantly. All new styles should be developed using the `docs`, and should be independent from a particular application.
|
41
58
|
3. When ready, bump the version number in `lib/atlas_assets/version.rb`, run `bundle update` and send a pull request to the master branch.
|
42
59
|
4. When the pull request has been accepted, we'll publish the gem by running `gem build atlas_assets.gemspec` and `gem push [NAME].gem`.
|
43
|
-
5. Bump the `atlas_assets` gem version in your apps `Gemfile`, run `bundle`, and use the new styles.
|
60
|
+
5. Bump the `atlas_assets` gem version in your apps `Gemfile`, run `bundle`, and use the new styles.
|
@@ -45,7 +45,7 @@ Close button
|
|
45
45
|
You can add a close button with the `.flash-close` class.
|
46
46
|
|
47
47
|
<div class="flash">
|
48
|
-
<div class="flash-item">This is a message<a href="#" class="flash-close"><i class="icon-
|
48
|
+
<div class="flash-item">This is a message<a href="#" class="flash-close"><i class="icon-remove"></i></a></div>
|
49
49
|
</div>
|
50
50
|
|
51
51
|
~~~html
|
@@ -135,3 +135,72 @@ You can add a `list-icon` class to automatically flow the icon to the right of t
|
|
135
135
|
<li class="list-item list-padding"><a href="#">Item 4<i class="icon-angle-right list-icon"></i></a></li>
|
136
136
|
</ul>
|
137
137
|
~~~
|
138
|
+
|
139
|
+
|
140
|
+
Linked Lists
|
141
|
+
----
|
142
|
+
|
143
|
+
For those times when you want a link to occupy the entire list-item tag.
|
144
|
+
|
145
|
+
<ul class="list">
|
146
|
+
<li class="list-item"><a class='list-padding' href="#">Item 1 (no icon)</a></li>
|
147
|
+
<li class="list-item"><a class='list-padding' href="#">Item 2 (with icon)<i class="icon-angle-right list-icon"></i></a></li>
|
148
|
+
<li class="list-item"><a class='list-padding' href="#">Item 3<i class="icon-angle-right list-icon"></i></a></li>
|
149
|
+
<li class="list-item"><a class='list-padding' href="#">Item 4<i class="icon-angle-right list-icon"></i></a></li>
|
150
|
+
</ul>
|
151
|
+
<br />
|
152
|
+
|
153
|
+
|
154
|
+
~~~html
|
155
|
+
<ul class="list">
|
156
|
+
<li class="list-item"><a class='list-padding' href="#">Item 1 (no icon)</a></li>
|
157
|
+
<li class="list-item"><a class='list-padding' href="#">Item 2 (with icon)<i class="icon-angle-right list-icon"></i></a></li>
|
158
|
+
<li class="list-item"><a class='list-padding' href="#">Item 3<i class="icon-angle-right list-icon"></i></a></li>
|
159
|
+
<li class="list-item"><a class='list-padding' href="#">Item 4<i class="icon-angle-right list-icon"></i></a></li>
|
160
|
+
</ul>
|
161
|
+
~~~
|
162
|
+
|
163
|
+
Linked Lists + Clickable Icons
|
164
|
+
----
|
165
|
+
|
166
|
+
For those times when you want a link to occupy the entire list-item tag, *except* an icon to the right, to function as a button!
|
167
|
+
|
168
|
+
<ul class="list">
|
169
|
+
<li class="list-item has-icon-outside-link"><a class='list-padding' href="#">Item 1</a><i class="icon-trash icn-round list-icon"></i></li>
|
170
|
+
<li class="list-item has-icon-outside-link"><a class='list-padding' href="#">Item 2</a><i class="icon-trash icn-round list-icon"></i></li>
|
171
|
+
<li class="list-item has-icon-outside-link"><a class='list-padding' href="#">Item 3</a><i class="icon-trash icn-round list-icon"></i></li>
|
172
|
+
<li class="list-item"><a class='list-padding' href="#">Item 4<i class="icon-angle-right list-icon"></i></a></li>
|
173
|
+
<li class="list-item has-icon-outside-link"><a class='list-padding' href="#">Item 5</a><i class="icon-trash icn-round list-icon"></i></li>
|
174
|
+
</ul>
|
175
|
+
<br />
|
176
|
+
|
177
|
+
~~~html
|
178
|
+
<ul class="list">
|
179
|
+
<li class="list-item has-icon-outside-link"><a class='list-padding' href="#">Item 1</a><i class="icon-trash icn-round list-icon"></i></li>
|
180
|
+
<li class="list-item has-icon-outside-link"><a class='list-padding' href="#">Item 2</a><i class="icon-trash icn-round list-icon"></i></li>
|
181
|
+
<li class="list-item has-icon-outside-link"><a class='list-padding' href="#">Item 3</a><i class="icon-trash icn-round list-icon"></i></li>
|
182
|
+
<li class="list-item"><a class='list-padding' href="#">Item 4<i class="icon-angle-right list-icon"></i></a></li>
|
183
|
+
<li class="list-item has-icon-outside-link"><a class='list-padding' href="#">Item 5</a><i class="icon-trash icn-round list-icon"></i></li>
|
184
|
+
</ul>
|
185
|
+
~~~
|
186
|
+
|
187
|
+
Because the link's width is set with a percentage, this will break on lists with a width of less than about 550px. In that case, use `skinny`, as below.
|
188
|
+
|
189
|
+
<ul class="list list-small" style='width: 200px;'>
|
190
|
+
<li class="list-item has-icon-outside-link skinny"><a class='list-padding' href="#">Item 1</a><i class="icon-trash icn-round list-icon"></i></li>
|
191
|
+
<li class="list-item has-icon-outside-link skinny"><a class='list-padding' href="#">Item 2</a><i class="icon-trash icn-round list-icon"></i></li>
|
192
|
+
<li class="list-item has-icon-outside-link skinny"><a class='list-padding' href="#">Item 3</a><i class="icon-trash icn-round list-icon"></i></li>
|
193
|
+
<li class="list-item"><a class='list-padding' href="#">Item 4<i class="icon-angle-right list-icon"></i></a></li>
|
194
|
+
<li class="list-item has-icon-outside-link skinny"><a class='list-padding' href="#">Item 5</a><i class="icon-trash icn-round list-icon"></i></li>
|
195
|
+
</ul>
|
196
|
+
<br />
|
197
|
+
|
198
|
+
~~~html
|
199
|
+
<ul class="list list-small" style='width: 200px;'>
|
200
|
+
<li class="list-item has-icon-outside-link skinny"><a class='list-padding' href="#">Item 1</a><i class="icon-trash icn-round list-icon"></i></li>
|
201
|
+
<li class="list-item has-icon-outside-link skinny"><a class='list-padding' href="#">Item 2</a><i class="icon-trash icn-round list-icon"></i></li>
|
202
|
+
<li class="list-item has-icon-outside-link skinny"><a class='list-padding' href="#">Item 3</a><i class="icon-trash icn-round list-icon"></i></li>
|
203
|
+
<li class="list-item"><a class='list-padding' href="#">Item 4<i class="icon-angle-right list-icon"></i></a></li>
|
204
|
+
<li class="list-item has-icon-outside-link skinny"><a class='list-padding' href="#">Item 5</a><i class="icon-trash icn-round list-icon"></i></li>
|
205
|
+
</ul>
|
206
|
+
~~~
|
@@ -0,0 +1,95 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: "Colors"
|
4
|
+
---
|
5
|
+
|
6
|
+
<style>
|
7
|
+
.active {
|
8
|
+
background-color: black !important;
|
9
|
+
color: white;
|
10
|
+
border: 1px black solid;
|
11
|
+
}
|
12
|
+
</style>
|
13
|
+
|
14
|
+
Colors
|
15
|
+
======
|
16
|
+
|
17
|
+
$red: #ac2f3c;
|
18
|
+
|
19
|
+
$darker_red: #7E2B34;
|
20
|
+
|
21
|
+
$medium_red: #c73746;
|
22
|
+
|
23
|
+
$light_red: #C54653;
|
24
|
+
|
25
|
+
$lighter_red: #cf6262;
|
26
|
+
|
27
|
+
$lightest_red: #f1d4d4;
|
28
|
+
|
29
|
+
$blue: #417ba0;
|
30
|
+
|
31
|
+
$darker_blue: #2C5874;
|
32
|
+
|
33
|
+
$blue_gray: #739EB9;
|
34
|
+
|
35
|
+
$light_blue: #568EB3;
|
36
|
+
|
37
|
+
$lighter_blue: #a9cadf;
|
38
|
+
|
39
|
+
$lightest_blue: #e0eaed;
|
40
|
+
|
41
|
+
$green: #91b35b;
|
42
|
+
|
43
|
+
$light_green: #9FC06A;
|
44
|
+
|
45
|
+
$darker_green: #75914A;
|
46
|
+
|
47
|
+
$yellow: #D5B238;
|
48
|
+
|
49
|
+
$darker_yellow: #B89B39;
|
50
|
+
|
51
|
+
$light_yellow: #EBCF6E;
|
52
|
+
|
53
|
+
$lightest_yellow: #f3f3c3;
|
54
|
+
|
55
|
+
$black: #000000;
|
56
|
+
|
57
|
+
$darkest_gray: #242424;
|
58
|
+
|
59
|
+
$darker_gray: #333333;
|
60
|
+
|
61
|
+
$medium_gray: #808080;
|
62
|
+
|
63
|
+
$mid_gray: #aaaaaa;
|
64
|
+
|
65
|
+
$gray: #d1d1d1;
|
66
|
+
|
67
|
+
$light_gray: #e0e0e0;
|
68
|
+
|
69
|
+
$lighter_gray: #ececec;
|
70
|
+
|
71
|
+
$lightest_gray: #f7f7f7;
|
72
|
+
|
73
|
+
$white: #ffffff;
|
74
|
+
|
75
|
+
<script>
|
76
|
+
$(function() {
|
77
|
+
var color, div, p, _i, _len, _ref;
|
78
|
+
_ref = $('p');
|
79
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
80
|
+
p = _ref[_i];
|
81
|
+
color = $(p).text().slice(-8, -1);
|
82
|
+
div = $("<div class='swatch' style='background-color: " + color + "; width: 60px; height: 40px;'>" + color + "</div>");
|
83
|
+
$(p).prepend(div);
|
84
|
+
$(p).css('color', color);
|
85
|
+
}
|
86
|
+
return $('p').on('click', function() {
|
87
|
+
color = $(this).text().slice(-8, -1);
|
88
|
+
$('body').css('background-color', color);
|
89
|
+
$('.active').removeClass('active');
|
90
|
+
return $(this).addClass('active');
|
91
|
+
});
|
92
|
+
});
|
93
|
+
|
94
|
+
|
95
|
+
</script>
|
@@ -71,6 +71,36 @@
|
|
71
71
|
text-decoration: none;
|
72
72
|
}
|
73
73
|
|
74
|
+
/* Linked Lists
|
75
|
+
_________________________________________________________________ */
|
76
|
+
.list a.list-padding {
|
77
|
+
display: block;
|
78
|
+
}
|
79
|
+
|
80
|
+
/* Linked Lists + Icons outside of the link
|
81
|
+
_________________________________________________________________ */
|
82
|
+
.list .has-icon-outside-link {
|
83
|
+
padding-right: 8px;
|
84
|
+
a.list-padding {
|
85
|
+
width: 90%; // works till about 550px
|
86
|
+
display: inline-block;
|
87
|
+
}
|
88
|
+
.list-icon {
|
89
|
+
margin-top: 13px;
|
90
|
+
}
|
91
|
+
.list-icon:hover {
|
92
|
+
color: $black;
|
93
|
+
cursor: pointer;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
// for lists with width smaller than 550px
|
98
|
+
.list .has-icon-outside-link.skinny {
|
99
|
+
a.list-padding {
|
100
|
+
width: 70%;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
|
74
104
|
/* List Helpers
|
75
105
|
_________________________________________________________________ */
|
76
106
|
|
@@ -78,4 +108,7 @@ ul.clean, ul.clean li {
|
|
78
108
|
margin: 0;
|
79
109
|
padding: 0;
|
80
110
|
list-style: none;
|
81
|
-
}
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
|
data/lib/atlas_assets/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atlas_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rune Skjoldborg Madsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: handlebars_assets
|
@@ -59,6 +59,7 @@ files:
|
|
59
59
|
- docs/_posts/2013-05-30-tabs.md
|
60
60
|
- docs/_posts/2013-09-12-logo.md
|
61
61
|
- docs/_posts/2013-10-28-dropdown.md
|
62
|
+
- docs/_posts/2014-2-10-colors.md
|
62
63
|
- docs/glyphicons-license.txt
|
63
64
|
- docs/index.html
|
64
65
|
- lib/assets/fonts/fontawesome-webfont.eot
|
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
144
|
version: '0'
|
144
145
|
requirements: []
|
145
146
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.1
|
147
|
+
rubygems_version: 2.2.1
|
147
148
|
signing_key:
|
148
149
|
specification_version: 4
|
149
150
|
summary: Public repository with assets and design guide for the Atlas platform
|