Skip to content

Commit 3fa8a94

Browse files
authored
Merge pull request #8 from chrisrhymes/feature/has-icon
Add has-icon
2 parents fd755ba + 01555cb commit 3fa8a94

File tree

10 files changed

+202
-31
lines changed

10 files changed

+202
-31
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

changelog.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# 0.5
2+
* Added has-icon
3+
4+
# 0.4.2
5+
* Add default styles for is-outlined
6+
7+
# 0.4.1
8+
* Fix for li.is-outlined
9+
10+
# 0.3
11+
* Added list item overrides
12+
13+
# 0.2
14+
* Removed the Bulma imports from block-list.scss file as it caused some Bulma styles to be overwritten
15+
16+
# 0.1
17+
* Initial release

docs/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
source 'https://rubygems.org'
2-
gem "bulma-clean-theme", '0.10.5'
3-
gem 'github-pages', group: :jekyll_plugins
2+
gem "bulma-clean-theme", '0.11.1'
3+
gem 'github-pages', group: :jekyll_plugins

docs/Gemfile.lock

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (6.0.3.4)
4+
activesupport (6.0.3.6)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
88
tzinfo (~> 1.1)
99
zeitwerk (~> 2.2, >= 2.2.2)
1010
addressable (2.7.0)
1111
public_suffix (>= 2.0.2, < 5.0)
12-
bulma-clean-theme (0.10.5)
12+
bulma-clean-theme (0.11.1)
1313
jekyll (~> 3.9)
1414
jekyll-feed (~> 0.15)
1515
jekyll-paginate (~> 1.1)
@@ -23,7 +23,7 @@ GEM
2323
colorator (1.1.0)
2424
commonmarker (0.17.13)
2525
ruby-enum (~> 0.5)
26-
concurrent-ruby (1.1.7)
26+
concurrent-ruby (1.1.8)
2727
dnsruby (1.61.5)
2828
simpleidn (~> 0.1)
2929
em-websocket (0.5.2)
@@ -38,11 +38,11 @@ GEM
3838
multipart-post (>= 1.2, < 3)
3939
ruby2_keywords
4040
faraday-net_http (1.0.1)
41-
ffi (1.14.2)
41+
ffi (1.15.0)
4242
forwardable-extended (2.6.0)
4343
gemoji (3.0.1)
44-
github-pages (209)
45-
github-pages-health-check (= 1.16.1)
44+
github-pages (213)
45+
github-pages-health-check (= 1.17.0)
4646
jekyll (= 3.9.0)
4747
jekyll-avatar (= 0.7.0)
4848
jekyll-coffeescript (= 1.1.1)
@@ -57,9 +57,9 @@ GEM
5757
jekyll-readme-index (= 0.3.0)
5858
jekyll-redirect-from (= 0.16.0)
5959
jekyll-relative-links (= 0.6.1)
60-
jekyll-remote-theme (= 0.4.2)
60+
jekyll-remote-theme (= 0.4.3)
6161
jekyll-sass-converter (= 1.5.2)
62-
jekyll-seo-tag (= 2.6.1)
62+
jekyll-seo-tag (= 2.7.1)
6363
jekyll-sitemap (= 1.4.0)
6464
jekyll-swiss (= 1.0.0)
6565
jekyll-theme-architect (= 0.1.1)
@@ -83,13 +83,13 @@ GEM
8383
mercenary (~> 0.3)
8484
minima (= 2.5.1)
8585
nokogiri (>= 1.10.4, < 2.0)
86-
rouge (= 3.23.0)
86+
rouge (= 3.26.0)
8787
terminal-table (~> 1.4)
88-
github-pages-health-check (1.16.1)
88+
github-pages-health-check (1.17.0)
8989
addressable (~> 2.3)
9090
dnsruby (~> 1.60)
9191
octokit (~> 4.0)
92-
public_suffix (~> 3.0)
92+
public_suffix (>= 2.0.2, < 5.0)
9393
typhoeus (~> 1.3)
9494
html-pipeline (2.14.0)
9595
activesupport (>= 2)
@@ -143,15 +143,15 @@ GEM
143143
jekyll (>= 3.3, < 5.0)
144144
jekyll-relative-links (0.6.1)
145145
jekyll (>= 3.3, < 5.0)
146-
jekyll-remote-theme (0.4.2)
146+
jekyll-remote-theme (0.4.3)
147147
addressable (~> 2.0)
148148
jekyll (>= 3.5, < 5.0)
149149
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
150150
rubyzip (>= 1.3.0, < 3.0)
151151
jekyll-sass-converter (1.5.2)
152152
sass (~> 3.4)
153-
jekyll-seo-tag (2.6.1)
154-
jekyll (>= 3.3, < 5.0)
153+
jekyll-seo-tag (2.7.1)
154+
jekyll (>= 3.8, < 5.0)
155155
jekyll-sitemap (1.4.0)
156156
jekyll (>= 3.7, < 5.0)
157157
jekyll-swiss (1.0.0)
@@ -208,7 +208,7 @@ GEM
208208
kramdown-parser-gfm (1.1.0)
209209
kramdown (~> 2.0)
210210
liquid (4.0.3)
211-
listen (3.4.1)
211+
listen (3.5.0)
212212
rb-fsevent (~> 0.10, >= 0.10.3)
213213
rb-inotify (~> 0.9, >= 0.9.10)
214214
mercenary (0.3.6)
@@ -217,26 +217,26 @@ GEM
217217
jekyll (>= 3.5, < 5.0)
218218
jekyll-feed (~> 0.9)
219219
jekyll-seo-tag (~> 2.1)
220-
minitest (5.14.3)
220+
minitest (5.14.4)
221221
multipart-post (2.1.1)
222-
nokogiri (1.11.1)
222+
nokogiri (1.11.2)
223223
mini_portile2 (~> 2.5.0)
224224
racc (~> 1.4)
225225
octokit (4.20.0)
226226
faraday (>= 0.9)
227227
sawyer (~> 0.8.0, >= 0.5.3)
228228
pathutil (0.16.2)
229229
forwardable-extended (~> 2.6)
230-
public_suffix (3.1.1)
230+
public_suffix (4.0.6)
231231
racc (1.5.2)
232232
rb-fsevent (0.10.4)
233233
rb-inotify (0.10.1)
234234
ffi (~> 1.0)
235235
rexml (3.2.4)
236-
rouge (3.23.0)
237-
ruby-enum (0.8.0)
236+
rouge (3.26.0)
237+
ruby-enum (0.9.0)
238238
i18n
239-
ruby2_keywords (0.0.2)
239+
ruby2_keywords (0.0.4)
240240
rubyzip (2.3.0)
241241
safe_yaml (1.0.5)
242242
sass (3.7.4)
@@ -266,7 +266,7 @@ PLATFORMS
266266
ruby
267267

268268
DEPENDENCIES
269-
bulma-clean-theme (= 0.10.5)
269+
bulma-clean-theme (= 0.11.1)
270270
github-pages
271271

272272
BUNDLED WITH

docs/_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ markdown: kramdown
1313
plugins:
1414
- jekyll-feed
1515
- github-pages
16+
17+
livereload: true

docs/_data/menu.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
link: '/#has-radius'
1515
- name: Is Highlighted
1616
link: '/#highlighted'
17+
- name: Has Icon
18+
link: '/#has-icon'
1719
- name: List Item Overrides
1820
link: '/#list-item-overrides'
1921
- name: Combinations
20-
link: '/#combinations'
22+
link: '/#combinations'

docs/_sass/_block-list.scss

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,28 @@ $block-list-highlight-width: 5px !default;
7373
color: $text;
7474
}
7575

76+
li.has-icon {
77+
display: flex;
78+
79+
.icon {
80+
flex-grow: 0;
81+
flex-shrink: 0;
82+
flex-basis: auto;
83+
margin-right: 1em;
84+
}
85+
86+
span {
87+
flex-grow: 1;
88+
}
89+
90+
&.is-right {
91+
.icon {
92+
margin-right: 0;
93+
margin-left: 1em
94+
}
95+
}
96+
}
97+
7698
@each $name, $pair in $colors {
7799

78100
$color: nth($pair, 1);
@@ -83,7 +105,7 @@ $block-list-highlight-width: 5px !default;
83105
background: $color;
84106
color: $color-invert;
85107
}
86-
108+
87109
li.is-#{$name}.is-outlined {
88110
@include outlined($color);
89111
}
@@ -106,4 +128,4 @@ $block-list-highlight-width: 5px !default;
106128
}
107129
}
108130
}
109-
}
131+
}

docs/index.html

Lines changed: 92 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
menubar: menu
66
hero_height: is-medium
77
---
8-
8+
99
<div class="columns is-multiline">
1010
<div class="column is-12 has-text-right">
1111
<a href="https://github.com/chrisrhymes/bulma-block-list/stargazers">
@@ -200,6 +200,97 @@ <h2 id="how-to-use">How to use</h2>
200200
</ul>
201201
</div>
202202

203+
<div class="column is-12">
204+
<p class="title is-4" id="has-icon">Has Icon</p>
205+
<p>In v0.5 you can add icons</p>
206+
<div class="highlight highlight-text-html-basic">
207+
<pre>
208+
&lt;li class="has-icon"&gt;
209+
&lt;span class="icon"&gt;
210+
&lt;i class="fas fa-plane"&gt;&lt;/i&gt;
211+
&lt;/span&gt;
212+
&lt;span&gt;Item one&lt;/span&gt;
213+
&lt;/li&gt;
214+
215+
// .is-right
216+
&lt;li class="has-icon is-right"&gt;
217+
&lt;span&gt;Item one&lt;/span&gt;
218+
&lt;span class="icon"&gt;
219+
&lt;i class="fas fa-plane"&gt;&lt;/i&gt;
220+
&lt;/span&gt;
221+
&lt;/li&gt;</pre>
222+
</div>
223+
</div>
224+
<div class="column is-4">
225+
<p class="title is-5">li.has-icon</p>
226+
<ul class="block-list">
227+
<li class="has-icon">
228+
<span class="icon">
229+
<i class="fas fa-plane"></i>
230+
</span>
231+
<span>Item one</span>
232+
</li>
233+
<li class="has-icon">
234+
<span class="icon">
235+
<i class="fas fa-paper-plane"></i>
236+
</span>
237+
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at erat eu massa sodales auctor.</span>
238+
</li>
239+
<li>
240+
<span class="icon">
241+
<i class="fas fa-plane"></i>
242+
</span>
243+
<span>Item Three</span>
244+
</li>
245+
</ul>
246+
</div>
247+
<div class="column is-4">
248+
<p class="title is-5">li.has-icon.is-right</p>
249+
<ul class="block-list">
250+
<li class="has-icon is-right">
251+
<span>Item one</span>
252+
<span class="icon">
253+
<i class="fas fa-plane"></i>
254+
</span>
255+
</li>
256+
<li class="has-icon is-right">
257+
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at erat eu massa sodales auctor.</span>
258+
<span class="icon">
259+
<i class="fas fa-paper-plane"></i>
260+
</span>
261+
</li>
262+
<li class="has-icon is-right">
263+
<span>Item Three</span>
264+
<span class="icon">
265+
<i class="fas fa-plane"></i>
266+
</span>
267+
</li>
268+
</ul>
269+
</div>
270+
<div class="column is-4">
271+
<p class="title is-5">Combining styles</p>
272+
<ul class="block-list has-radius">
273+
<li class="has-icon">
274+
<span class="icon">
275+
<i class="fas fa-plane"></i>
276+
</span>
277+
<span>Item one</span>
278+
</li>
279+
<li class="has-icon is-highlighted is-primary">
280+
<span class="icon">
281+
<i class="fas fa-paper-plane"></i>
282+
</span>
283+
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at erat eu massa sodales auctor.</span>
284+
</li>
285+
<li>
286+
<span class="icon">
287+
<i class="fas fa-plane"></i>
288+
</span>
289+
<span>Item Three</span>
290+
</li>
291+
</ul>
292+
</div>
293+
203294
<div class="column is-12">
204295
<p class="title is-4" id="list-item-overrides">List Item Overrides</p>
205296
<p>In v0.3 you can override the classes on a list item</p>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bulma-block-list",
3-
"version": "0.4.2",
3+
"version": "0.5.0",
44
"description": "A simple scss package extending Bulma with block style list elements",
55
"homepage": "https://github.com/chrisrhymes/bulma-block-list#readme",
66
"bugs": {

0 commit comments

Comments
 (0)