mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-03-17 20:42:12 +02:00
Mobile layout fixes and tweaks
This commit is contained in:
parent
d3127a6c12
commit
237d886994
@ -69,6 +69,10 @@ hr {
|
||||
.left, .container .left { text-align: left; }
|
||||
.right, .container .right { text-align: right; }
|
||||
|
||||
.container h1 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.container h1, .container h2, .container h3, .container h4 {
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
@ -340,8 +344,6 @@ nav ul li:hover, nav ul li.active {
|
||||
}
|
||||
}
|
||||
|
||||
li.p-downloads a:after { content: ' Downloads'; }
|
||||
|
||||
/* mid size (tablets, landscapes) */
|
||||
@media only screen and (max-width: 679px) {
|
||||
nav { font-size:10px; }
|
||||
@ -370,6 +372,15 @@ li.p-downloads a:after { content: ' Downloads'; }
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
super tiny size (phones)
|
||||
point at which nav wraps
|
||||
without decrease font size
|
||||
*/
|
||||
@media only screen and (max-width: 326px) {
|
||||
nav { font-size: 9px; }
|
||||
}
|
||||
|
||||
/* anything not desktop */
|
||||
@media only screen and (max-width: 767px) {
|
||||
.container h1 { font-size: 30px; }
|
||||
@ -377,7 +388,6 @@ li.p-downloads a:after { content: ' Downloads'; }
|
||||
.container h3 { font-size: 20px; }
|
||||
.container h4 { font-size: 18px; }
|
||||
|
||||
|
||||
.section { padding:130px 0; }
|
||||
.sectiondivider {
|
||||
width:200px;
|
||||
@ -386,7 +396,6 @@ li.p-downloads a:after { content: ' Downloads'; }
|
||||
top:-100px;
|
||||
margin-left:-100px;
|
||||
}
|
||||
.sectiondivider img {
|
||||
width:150px;
|
||||
height:180px;
|
||||
}
|
||||
@ -409,4 +418,5 @@ li.p-downloads a:after { content: ' Downloads'; }
|
||||
-moz-column-count: 2;
|
||||
column-count: 2;
|
||||
}
|
||||
|
||||
}
|
||||
|
14
_includes/css/skeleton.css
vendored
14
_includes/css/skeleton.css
vendored
@ -89,3 +89,17 @@
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/* top nav tweaks */
|
||||
@media(min-width:768px) {
|
||||
.hide-on-larger-view {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media(max-width:767px) {
|
||||
.hide-on-smaller-view {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "home"
|
||||
short_title: "home"
|
||||
bg: purewhite
|
||||
color: black
|
||||
style: center
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Features"
|
||||
short_title: "Features"
|
||||
bg: turquoise
|
||||
color: black
|
||||
style: left
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Fonts"
|
||||
title: "Fonts Downloads"
|
||||
short_title: "Fonts"
|
||||
bg: '#3484bb'
|
||||
color: white
|
||||
fa-icon: download
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Cheat Sheet"
|
||||
short_title: "Icons"
|
||||
bg: gray
|
||||
color: white
|
||||
fa-icon: search
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Contributors"
|
||||
short_title: "People"
|
||||
bg: 'red'
|
||||
color: white
|
||||
fa-icon: flask
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Changelog"
|
||||
short_title: "Log"
|
||||
bg: '#ff8b25'
|
||||
color: white
|
||||
fa-icon: bullhorn
|
||||
|
@ -20,9 +20,11 @@
|
||||
<nav><ul>
|
||||
{% for node in site.posts reversed %}
|
||||
{% capture id %}{{ node.id | remove:'/' | downcase }}{% endcapture %}
|
||||
<li class="p-{{id}}"><a href="#{{id}}">
|
||||
<i class="fa fa-{{ node.fa-icon }}"></i>
|
||||
{{node.title}}</a>
|
||||
<li class="p-{{id}} hide-on-larger-view"><a href="#{{id}}">
|
||||
<i class="fa fa-{{ node.fa-icon }}"></i> {{node.short_title}}</a>
|
||||
</li>
|
||||
<li class="p-{{id}} hide-on-smaller-view"><a href="#{{id}}">
|
||||
<i class="fa fa-{{ node.fa-icon }}"></i> {{node.title}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul></nav>
|
||||
|
Loading…
x
Reference in New Issue
Block a user