1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00
nerd-fonts/_includes/css/nerd-font-tweaks.css
2019-07-28 10:36:54 -07:00

500 lines
9.1 KiB
CSS

p {
line-height: 1.75em;
}
#main .nerd-font-button {
padding-top: .5rem;
padding-bottom: .5rem;
margin: 0px;
font-weight: 900;
}
#main .nerd-font-button a {
text-decoration: none;
color: inherit;
}
#main .nerd-font-badges {
line-height: 2.3em;
}
/* adjust touch-size on mobile */
@media screen and (max-width:800px) {
#main .nerd-font-badges img {
height: 2.2em;
margin: 6px 0px;
}
}
#main .nerd-font-buttons {
line-height: 4em;
}
#main .nerd-font-cheat-sheet-search {
margin-right: auto;
margin-left: auto;
font-size: 1.25em;
width: 400px;
}
#main .nerd-font-cheat-sheet {
max-height: 480px;
overflow-x: hidden;
overflow-y: scroll;
/* padding-top: 60px; */
padding-top: 20px;
}
#main .nerd-font-cheat-sheet .column {
width: 146px;
height: 146px;
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
margin-bottom: 10px;
position: relative;
border: 2px solid rgba(0,0,0,.25);
padding-left: 10px;
padding-right: 10px;
border-radius: 5px;
margin: 10px 5px;
display: none; /* don't show any by default */
}
#main .nerd-font-cheat-sheet .column:hover {
background: rgba(0,0,0,.25);
border: 2px solid #0fbfcf;
color: #0fbfcf !important;
cursor: pointer;
/* border-top: none; */
/* border-top-left-radius: unset; */
/* border-top-right-radius: unset; */
}
#main .nerd-font-cheat-sheet .column:hover .codepoint {
border-color: #0fbfcf;
}
#main .nerd-font-cheat-sheet .column:hover .class-name {
color: #0fbfcf;
}
#main .nerd-font-cheat-sheet .column .class-name {
color: antiquewhite;
font-family: sans-serif;
font-weight: bold;
position: relative;
text-align: center;
width: 100%;
word-break: break-word;
font-size: 13px;
}
#main .nerd-font-cheat-sheet .column .codepoint {
border: 2px dashed;
padding: 0px 10px;
position: absolute;
bottom: 0px;
right: 0px;
font-size: 14px;
border-radius: 3px;
border-bottom: none;
border-right: none;
background: rgba(0,0,0,.25);
border-color: #565346;
font-weight: bold;
border-top-right-radius: unset;
border-bottom-left-radius: unset;
}
#main .nerd-font-cheat-sheet .column .class-name,
#main .nerd-font-cheat-sheet .column .codepoint {
font-family: 'mono';
display: inline-block;
text-align: left;
}
#main .nerd-font-cheat-sheet .nf {
font-size: 3.25em;
text-align: left;
}
/* #main .nerd-font-cheat-sheet .glyph-popout-copy-clipboard {
background: #585547;
border: 2px solid #0fbfcf;
border-bottom: none;
display: block;
position: absolute;
bottom: 144px;
border-top-right-radius: 5px;
border-top-left-radius: 5px;
padding-left: 10px;
padding-right: 10px;
left: -2px;
right: -2px;
} */
#main .nerd-font-cheat-sheet .glyph-popout-copy-clipboard {
background: #585547;
border: 2px solid #0fbfcf;
display: block;
position: absolute;
border-bottom-left-radius: 5px;
right: 0px;
border-right: unset;
border-top: unset;
top: 0px;
width: 76px;
}
#main .nerd-font-cheat-sheet span.glyph-popout-copy-clipboard span {
/* font-size: 12px;
font-weight: bold;
display: block; */
font-size: 12px;
font-weight: bold;
display: block;
height: 18px;
padding: 0px 5px;
}
#main .nerd-font-cheat-sheet span.glyph-popout-copy-clipboard span:first-child {
writing-mode: vertical-lr;
height: 54px;
transform: rotate(180deg);
background: #0fbfcf;
color: white;
text-decoration: none;
text-transform: uppercase;
float: left;
width: 20px;
line-height: 13px;
}
#main .nerd-font-cheat-sheet span.glyph-popout-copy-clipboard span:not(:first-child) {
text-align: left;
font-size: 14px;
padding-left: 28px;
}
#main .nerd-font-cheat-sheet span.glyph-popout-copy-clipboard span:not(:first-child):hover {
/* background: #767260;
text-decoration: underline;
border-radius: 2px;
border-style: dashed;
border-color: #0fbfcf;
border-width: 2px; */
background: #767260;
text-decoration: underline;
border-radius: 2px;
border-style: dashed;
border-color: #0fbfcf;
width: 100%;
}
/* gitter chat tweaks */
.gitter-open-chat-button {
border-color: white;
border-width: 1px 1px 0px 1px;
border-style: solid;
font-weight: bold;
}
/* HACK - replicate FA stack */
.fa-stack {
display: inline-block;
height: 2em;
line-height: 2em;
position: relative;
vertical-align: middle;
width: 2.5em
}
.fa-stack-1x,.fa-stack-2x {
left: 0;
position: absolute;
text-align: center;
width: 100%
}
.fa-stack-1x {
line-height: inherit
}
.fa-stack-2x {
font-size: 2em
}
#forkongithub .nf {
font-size: 1.25rem;
}
/* for any ASCII :) */
#forkongithub span {
font-size: 1.75rem;
}
#forkongithub a {
display: inline-block;
}
/* color scheme */
.nf1 { color: #E2DB74 }
.nf2 { color: #49a7e9 }
.nf3 { color: #66FF99 }
.nf4 { color: #Ff66CC }
.nf5 { color: #00ffff }
.nf6 { color: #f09f17 }
.nf7 { color: #DD1B16 }
/* Example Usage */
.nerd-fonts-example-usage {
font-size: 2rem;
}
/* Release Changelog section */
#release summary {
text-align: center;
font-size: 1.25em;
cursor: pointer;
padding: 0px 0px 20px 0px;
}
#all-contributors .container > div > div {
min-height: 160px;
width: 130px;
}
#all-contributors a {
display: inline-block;
}
/* hack fix for emoji key styling */
#all-contributors a[title] {
text-decoration: none;
}
/* features section */
.feature-sections {
}
.feature-section {
background: #ffffff55;
padding: 10px 20px;
margin-bottom: 20px;
}
.feature-section h2, .feature-section h3, .feature-section h4 {
font-weight: bold;
text-align: left;
}
.feature-section h2, .feature-section h3 {
padding: 10px 0px;
margin: 0px;
color: #1c1c1c;
text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.feature-section h3 {
font-size: 20px;
padding-top: 0px;
}
.sectioninner3 {
line-height: 29px;
word-spacing: 3px;
top: inherit;
left: inherit;
margin-left: 0px;
font-weight: bold;
padding-top: .75em;
}
.sectioninner3 div {
background-color: #2e2e2e;
font-weight: bold;
padding-top: .75em;
}
/* individual pages */
.section-page-wrapper .section {
position:relative;
display:block;
width:100%;
min-height:0px;
padding:180px 0;
background:url(/assets/img/bgnoise.png);
}
.section-page-wrapper .section:first-of-type {
padding-top: 90px;
}
.section-page-wrapper .sectiondivider {
width:270px;
height:270px;
padding:15px;
position:relative;
top:0px;
left:50%;
margin-left:-135px;
}
/* ----- fork on github banner ----- */
#forkongithub a {
color:#fff;
text-decoration:none;
font-family:arial,sans-serif;
text-align:center;
font-weight:700;
font-size:1rem;
line-height:2rem;
position:relative;
transition:.5s;
padding:5px 40px;
}
#forkongithub a::before, #forkongithub a::after {
content:""; width:100%; display:block; position:absolute;
top:1px; left:0; height:1px; background:#fff;
}
#forkongithub a::after { bottom:1px; top:auto; }
@media screen and (min-width:800px) {
#forkongithub {
position:fixed;
display:block;
top:0;
right:0;
width:200px;
overflow:hidden;
height:209px;
z-index:99;
}
#forkongithub a {
width:200px;
position:absolute;
top:60px;
right:-60px;
transform:rotate(45deg);
-webkit-transform:rotate(45deg);
-ms-transform:rotate(45deg);
-moz-transform:rotate(45deg);
-o-transform:rotate(45deg);
box-shadow:4px 4px 10px rgba(0,0,0,0.8);
box-sizing: content-box;
}
}
/*
super tiny size (phones)
point at which nav wraps
without decrease font size
*/
@media only screen and (max-width: 326px) {
nav { font-size: 9px; }
}
/* tiny size (phones) */
@media only screen and (max-width: 380px) {
nav ul li { min-width:initial; line-height:20px; }
li.p-downloads a:after { content: ''; }
.section:first-of-type {
padding-top: 70px;
}
#features .sectioninner2 {
font-size: .7em;
}
#main .nerd-font-cheat-sheet .column {
width: 102px;
height: 98px;
}
#main .nerd-font-cheat-sheet {
max-height: 306px;
padding-top: 0px;
}
}
/* mid size (tablets, landscapes) */
@media only screen and (max-width: 679px) {
nav { font-size:10px; }
li.p-downloads a:after { content: ''; }
nav ul li {
min-width:50px;
line-height:40px;
}
.section:first-of-type {
padding-top: 70px;
}
#features .sectioninner2 {
font-size: .7em;
}
}
/* anything not desktop */
@media only screen and (max-width: 767px) {
.container h1 { font-size: 30px; }
.container h2 { font-size: 24px; }
.container h3 { font-size: 20px; }
.container h4 { font-size: 18px; }
.section { padding:130px 0; }
.section-page-wrapper .sectiondivider,
.sectiondivider {
width:200px;
height:200px;
padding:15px;
margin-left:-100px;
}
.section-page-wrapper .sectiondivider .fa-stack,
.sectiondivider .fa-stack {
font-size: 100px;
margin-top: -14px;
}
.section-page-wrapper .sectiondivider h5,
.sectiondivider h5 {
font-size:15px;
bottom:30px;
width:170px
}
#features .sectioninner2 {
font-size: .7em;
}
.columned {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
}
.sectioninner3 {
line-height: 21px;
font-size: 11px;
}
/* gitter adjust sidecar on mobile */
.gitter-open-chat-button {
bottom: 116px;
padding: 1em 1em;
transform: rotate(-90deg);
right: -28px;
}
}
/* util */
.text-left {
text-align: left;
}