This commit is contained in:
Rico Sta. Cruz 2017-08-29 00:49:29 +08:00
parent 593ab680de
commit 54e12ddae9
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
7 changed files with 71 additions and 4 deletions

View File

@ -25,6 +25,8 @@
`ul` supports these: `ul` supports these:
{: .-also-see} {: .-also-see}
{: .-four-column}
{: .-six-column}
Each sheet supports these metadata: Each sheet supports these metadata:

View File

@ -1,5 +1,5 @@
# gems # gems
gems: whitelist:
- jekyll-redirect-from - jekyll-redirect-from
- jekyll-github-metadata - jekyll-github-metadata

View File

@ -15,6 +15,12 @@ type: article
{% endif %} {% endif %}
</div> </div>
{% if page.tags contains 'WIP' %}
<div class='notice-box'>
This page is a work in progress. You can help by <a href='{{ site.github.repository_url }}/blob/gh-pages/{{ page.path | remove: '.html' }}'>suggesting edits</a>!
</div>
{% endif %}
<div class='post-content MarkdownBody' data-js-main-body> <div class='post-content MarkdownBody' data-js-main-body>
{{ content }} {{ content }}
</div> </div>

View File

@ -0,0 +1,21 @@
.notice-box {
& {
margin-bottom: 24px;
color: $base-mute;
}
@media (max-width: 480px) {
margin-bottom: 16px;
}
&::before {
@include ion-icon('md-information-circle');
font-size: 24px;
margin-right: 8px;
color: $base-mute3;
}
& > a {
text-decoration: none;
}
}

View File

@ -0,0 +1,37 @@
.MarkdownBody ul.-six-column {
& {
display: flex;
flex-wrap: wrap;
}
& > li {
flex: 0 0 (100% / 6);
@media (max-width: 480px) {
flex: 0 0 (100% / 2);
}
@media (max-width: 768px) {
flex: 0 0 (100% / 4);
}
}
}
.MarkdownBody ul.-four-column {
& {
display: flex;
flex-wrap: wrap;
}
& > li {
flex: 0 0 (100% / 4);
@media (max-width: 480px) {
flex: 0 0 (100% / 2);
}
@media (max-width: 768px) {
flex: 0 0 (100% / 3);
}
}
}

View File

@ -10,12 +10,14 @@
@import './markdown/code'; @import './markdown/code';
@import './markdown/headings'; @import './markdown/headings';
@import './markdown/table'; @import './markdown/table';
@import './markdown/ul';
@import './components/body-area'; @import './components/body-area';
@import './components/h2-section'; @import './components/h2-section';
@import './components/h3-section'; @import './components/h3-section';
@import './components/h3-section-list'; @import './components/h3-section-list';
@import './components/headline-ad'; @import './components/headline-ad';
@import './components/main-heading'; @import './components/main-heading';
@import './components/notice-box';
@import './components/page-actions'; @import './components/page-actions';
@import './components/pages-list'; @import './components/pages-list';
@import './components/top-nav'; @import './components/top-nav';

View File

@ -9,9 +9,7 @@ tags: [WIP]
Jekyll Jekyll
------ ------
{: .-three-column} {: .-one-column}
### Jekyll gems
* jekyll-avatar * jekyll-avatar
* jekyll-coffeescript * jekyll-coffeescript
@ -28,6 +26,7 @@ Jekyll
* jekyll-sass-converter * jekyll-sass-converter
* jekyll-seo-tag * jekyll-seo-tag
* jekyll-sitemap * jekyll-sitemap
{: .-four-column}
As of github-pages v156. As of github-pages v156.