Skip to content

Commit

Permalink
Add languages flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Aufree committed Apr 8, 2016
1 parent 5a3886d commit eb437dc
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
36 changes: 36 additions & 0 deletions assets/css/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,39 @@ section.cmd-description {
right: 40px;
}
}

/**
* Flags
*/
.languages-flag {
margin-top: 10px;
color: gray;
}
.languages-flag a {
margin: 0 .3em;
}
i.flag:not(.icon),i.flag:not(.icon):before {
display: inline-block;
width: 16px;
height: 11px
}

i.flag:not(.icon) {
line-height: 11px;
vertical-align: baseline;
-webkit-backface-visibility: hidden;
backface-visibility: hidden
}

i.flag:not(.icon):before {
content: '';
background: url('../images/flags.png') -108px -1976px no-repeat
}

i.flag.china:before,i.flag.cn:before {
background-position: 0 -1196px
}

i.flag.gb:before,i.flag.united.kingdom:before {
background-position: -36px -26px
}
Binary file added assets/images/flags.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,15 @@ <h5 class="sidebar-title">Laravel 5.1 LTS Cheat Sheet</h5>
<i class="icon-weibo"></i>
</a>
</li>
<li class="languages-flag">
<a href="https://cs.phphub.org/">
<i class="cn flag"></i>
</a>
<span class="vertical-line">|</span>
<a href="https://aufree.github.io/laravel5-cheatsheet/">
<i class="gb flag"></i>
</a>
</li>
</ul>
</div>
<div class="large-10 columns code-column code-container">
Expand Down
9 changes: 9 additions & 0 deletions index_zh-CN.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ <h5 class="sidebar-title">Laravel 5.1 LTS 速查表</h5>
<i class="icon-weibo"></i>
</a>
</li>
<li class="languages-flag">
<a href="https://cs.phphub.org/">
<i class="cn flag"></i>
</a>
<span class="vertical-line">|</span>
<a href="https://aufree.github.io/laravel5-cheatsheet/">
<i class="gb flag"></i>
</a>
</li>
</ul>
</div>
<div class="large-10 columns code-column code-container">
Expand Down

0 comments on commit eb437dc

Please sign in to comment.