Iosevka/index.css
2016-06-13 12:12:33 +08:00

451 lines
8.7 KiB
CSS

@import url("fonts.css");
html {
font-size: 16px;
}
a {
color: #000;
background-image: linear-gradient(#fff 50%, #888 50%);
background-position: 0px 1.075em;
background-repeat: repeat-x;
background-size: 2px 2px;
text-decoration: none;
text-shadow: #fff -1px 0px 0px, #fff 1px 0px 0px;
}
a:hover {
background-image: linear-gradient(#fff 50%, #000 50%);
}
html,
body {
font-family: "IosevkaWEB", monospace;
}
pre,
code {
font-family: inherit;
}
body {
margin: 0;
padding: 0;
line-height: 1.5;
-moz-font-feature-settings: "locl";
-ms-font-feature-settings: "locl";
-webkit-font-feature-settings: "locl";
font-feature-settings: "locl";
}
p {
margin: 1rem 0;
}
section {
max-width: 50rem;
padding: 4rem 1rem;
margin: 0 auto;
}
section#introduction h1 {
text-align: center;
font-size: 10rem;
font-weight: 700;
}
#downlinks {
display: flex;
justify-content: center;
}
#downlinks a {
display: block;
flex: none;
width: 10em;
margin: 0.5em;
padding: 0.5em 0.5em 0.5em 3em;
background: #000;
text-shadow: none;
text-align: left;
color: #fff;
position: relative;
line-height: 1em;
}
#downlinks a.wide {
width: 15em;
}
#downlinks a.narrow {
width: 4em;
}
#downlinks a:hover {
background: #333;
}
#downlinks a icon {
position: absolute;
display: block;
font-size: 1.5em;
top: 50%;
margin-top: -0.5em;
left: 0.5em;
}
#downlinks a span {
display: block;
font-size: 60%;
}
section + section:before {
content: ' ';
display: block;
height: 1px;
background: #eee;
position: absolute;
left: 0;
right: 0;
margin-top: -4rem;
}
section#descriptions {
display: flex;
justify-content: space-between;
}
section#descriptions h2 {
margin: 3rem 0 0.5rem;
}
section#descriptions h2 + p {
margin-top: 0.5rem;
}
section#descriptions ul.col {
list-style: none;
padding: 0;
margin: 0;
flex: none;
width: calc((100% - 2rem) / 2);
}
section#descriptions ul.col > li:first-child h2 {
margin-top: 0;
}
section#weights {
max-width: none;
white-space: nowrap;
font-size: 1.5rem;
background: #fff;
}
section#weights > div {
display: flex;
justify-content: center;
}
section#weights > div > span {
display: block;
flex: none;
}
section#weights > div > span.weightname {
width: 6em;
text-align: right;
margin-right: 2rem;
}
section#opentype {
width: 34.5em;
}
section#opentype > h2 {
font-weight: 200;
text-align: center;
font-size: 2rem;
margin-top: 0;
margin-bottom: 3rem;
}
section#opentype > div.hr {
font-size: 80%;
text-transform: uppercase;
letter-spacing: 0.2em;
margin: 3rem auto;
text-align: center;
display: block;
}
section#opentype > div.hr:before,
section#opentype > div.hr:after {
content: '';
display: inline-block;
border-bottom: 1px solid #ddd;
width: 4em;
margin: 0 1em;
vertical-align: 0.3em;
}
section#opentype > ol {
list-style: none;
margin: 0;
padding: 0;
font-size: 1em;
width: 35.5em;
}
section#opentype > ol > li {
margin: 0;
padding: 0;
position: relative;
height: 4.5em;
border-top: 1px solid #eee;
margin-top: 0.4em;
padding-top: 0.4em;
}
section#opentype > ol > li:first-child {
border-top: none;
margin-top: 0;
}
section#opentype > ol > li > .tag {
display: block;
position: absolute;
top: calc(0.8em - 0.2em - 1px);
left: 0;
font-size: 0.8em;
width: 2em;
border: 1px solid rgba(0,0,0,0.25);
padding: 0.2em;
padding-bottom: 0.1em;
text-align: center;
border-radius: 0.2em;
}
section#opentype > ol > li > .description {
display: block;
position: absolute;
top: 0.8em;
right: 0;
font-style: italic;
font-size: 0.8em;
color: rgba(0,0,0,0.5);
}
section#opentype > ol > li > .sample {
display: block;
margin-top: 1.6em;
}
section#opentype > ol > li > .sample.italic {
margin-top: 0.25em;
}
section#opentype > ol.narrow {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
section#opentype > ol.narrow > li {
margin: 0 0 0.5em;
border: none;
width: 4em;
flex: none;
}
section#opentype > ol.narrow > li > .tag {
width: auto;
left: 50%;
margin-left: calc(-1.2em - 1px);
}
section#opentype > ol.narrow > li > .sample {
display: inline-block;
font-size: 2em;
margin-top: 0.9em;
width: 1em;
text-align: center;
}
section#opentype > ol b {
font-weight: normal;
color: #c33500;
}
section#ligations > h2 {
font-weight: 200;
text-align: center;
font-size: 2rem;
margin-top: 0;
margin-bottom: 3rem;
}
section#ligations > table {
border-spacing: 0;
border-top: 2px solid #000;
border-bottom: 2px solid #000;
margin: 1em;
white-space: nowrap;
}
section#ligations > table pre {
margin: 0;
}
section#ligations > table th,
section#ligations > table td {
padding: 0.4em 1em;
text-align: justify;
}
section#ligations > table tr.first th {
border-bottom: 1px solid #000;
}
section#ligations > table s,
section#ligations > table .nolig {
text-decoration: none;
opacity: 0.25;
}
section#ligations > table .nolig {
font-feature-settings: "calt" 0;
}
section#preview {
max-width: none;
text-align: center;
transition: background 1.2s ease;
font-size: 80%;
}
section#preview pre {
display: inline-block;
text-align: left;
}
section#preview #preview-toolbar {
display: flex;
color: #000;
font-family: "IosevkaWEB", monospace;
font-size: 1rem;
font-style: normal;
font-weight: normal;
background: #fff;
margin: -4rem -1rem 4rem;
padding: 0.75rem;
justify-content: center;
}
section#preview #preview-toolbar h2 {
display: inline;
font-size: 1em;
color: #000;
margin: 0 1rem 0 0;
}
section#preview #preview-toolbar h3 {
display: none;
}
section#preview #preview-toolbar span.options {
display: block;
position: relative;
}
section#preview #preview-toolbar span.options + span.options {
padding-left: 1.5rem;
}
section#preview #preview-toolbar span.options + span.options:before {
content: ' ';
display: block;
border-left: 1px solid #ddd;
position: absolute;
top: -0.75rem;
bottom: -0.75rem;
left: 0.5rem;
}
section#preview #preview-toolbar span.options a {
margin-right: 0.5em;
background-position: 0px 11.075em;
}
section#preview #preview-toolbar span.options a.active,
section#preview #preview-toolbar span.options a:hover {
background-position: 0px 1.075em;
}
snippet {
display: none;
}
#copyright-line {
opacity: 0.4;
text-align: center;
font-size: 0.8rem;
}
section#inziu-downloads {
max-width: 36rem;
}
section#inziu-downloads h2 {
font-weight: 200;
text-align: center;
font-size: 2rem;
margin-top: 0;
margin-bottom: 3rem;
}
section#inziu-downloads h3 {
font-weight: normal;
font-size: 1em;
margin-top: 8rem;
text-align: center;
}
section#inziu-downloads h2:before,
section#inziu-downloads h2:after,
section#inziu-downloads h3:before,
section#inziu-downloads h3:after {
content: '';
display: inline-block;
border-bottom: 1px solid #ddd;
width: 2em;
margin: 0 0.5em;
vertical-align: 0.3em;
}
section#inziu-downloads li a.link {
font-weight: bold;
}
section#inziu-downloads #all-releases-w {
text-align: center;
}
section#inziu-downloads #all-releases {
display: inline-block;
max-width: 30rem;
list-style: none;
margin: 0;
padding: 0;
}
section#inziu-downloads #all-releases li {
padding: 0.5em 0;
text-align: left;
}
section#inziu-downloads #all-releases li icon {
vertical-align: -0.1em;
}
/* hljs */
section.color-light {
background-color: #f3f2f1;
color: #333;
}
.color-light .hljs-keyword,
.color-light .hljs-class,
.color-light .hljs-tag,
.color-light .hljs-pseudo,
.color-light .hljs-attr_selector,
.color-light .hljs-constant,
.color-light .xml .hljs-title {
color: #446fbd;
}
.color-light .hljs-comment {
color: #9e9e9e;
}
.color-light .hljs-title,
.color-light .hljs-attribute,
.color-light .hljs-params,
.color-light .hljs-built_in {
color: #8757ad;
}
.color-light .hljs-string,
.color-light .hljs-pi,
.color-light .language-less .hljs-keyword,
.color-light .xml .hljs-value {
color: #e88501;
}
.color-light .hljs-number,
.color-light .xml .hljs-attribute {
color: #6d8600;
}
.color-light .hljs-operator {
color: #c33500;
}
section.color-dark {
background-color: #201f1d;
color: #cfcfcf;
}
.color-dark .hljs-keyword,
.color-dark .hljs-class,
.color-dark .hljs-tag,
.color-dark .hljs-pseudo,
.color-dark .hljs-attr_selector,
.color-dark .hljs-constant,
.color-dark .xml .hljs-title {
color: #6c9ef8;
}
.color-dark .hljs-comment {
color: #767676;
}
.color-dark .hljs-title,
.color-dark .hljs-attribute,
.color-dark .hljs-params,
.color-dark .hljs-built_in {
color: #b77fdb;
}
.color-dark .hljs-string,
.color-dark .hljs-pi,
.color-dark .language-less .hljs-keyword,
.color-dark .xml .hljs-value {
color: #d89333;
}
.color-dark .hljs-number,
.color-dark .xml .hljs-attribute {
color: #85a300;
}
.color-dark .hljs-operator {
color: #c34564;
}