Iosevka/specimen.css
2015-12-02 07:01:14 +08:00

211 lines
4.8 KiB
CSS

html {
font-size: 14px;
}
@font-face {
font-family: IosevkaWEB;
src: url('assets/iosevka-regular.woff') format('woff'), url('assets/iosevka-regular.ttf') format('truetype');
}
@font-face {
font-family: IosevkaWEB;
font-style: italic;
src: url('assets/iosevka-italic.woff') format('woff'), url('assets/iosevka-italic.ttf') format('truetype');
}
@font-face {
font-family: IosevkaWEB;
font-weight: bold;
src: url('assets/iosevka-bold.woff') format('woff'), url('assets/iosevka-bold.ttf') format('truetype');
}
@font-face {
font-family: IosevkaWEB;
font-style: italic;
font-weight: bold;
src: url('assets/iosevka-bolditalic.woff') format('woff'), url('assets/iosevka-bolditalic.ttf') format('truetype');
}
@font-face {
font-family: IosevkaSlabWEB;
src: url('assets/iosevka-slab-regular.woff') format('woff'), url('assets/iosevka-slab-regular.ttf') format('truetype');
}
@font-face {
font-family: IosevkaSlabWEB;
font-style: italic;
src: url('assets/iosevka-slab-italic.woff') format('woff'), url('assets/iosevka-slab-italic.ttf') format('truetype');
}
@font-face {
font-family: IosevkaSlabWEB;
font-weight: bold;
src: url('assets/iosevka-slab-bold.woff') format('woff'), url('assets/iosevka-slab-bold.ttf') format('truetype');
}
@font-face {
font-family: IosevkaSlabWEB;
font-style: italic;
font-weight: bold;
src: url('assets/iosevka-slab-bolditalic.woff') format('woff'), url('assets/iosevka-slab-bolditalic.ttf') format('truetype');
}
a {
color: black;
background-image: linear-gradient(white 50%, #888 50%);
background-position: 0px 1.075em;
background-repeat: repeat-x;
background-size: 2px 2px;
text-decoration: none;
text-shadow: white -1px 0px 0px, white 1px 0px 0px;
}
a:hover {
background-image: linear-gradient(white 50%, black 50%);
}
body {
width: 68rem;
margin: 0 auto;
padding: 4rem 0;
}
.show, .show samp, .pp {
font-family: "IosevkaWEB", monospace;
line-height: 1.5;
-moz-font-feature-settings: "locl";
-ms-font-feature-settings: "locl";
-webkit-font-feature-settings: "locl";
font-feature-settings: "locl";
}
.cc, .cc samp { font-family: "IosevkaCCWEB", monospace!important }
.slab, .slab samp { font-family: "IosevkaSlabWEB", monospace!important }
.cc.slab, .cc.slab samp { font-family: "IosevkaCCSlabWEB", monospace!important }
p {
margin: 0.5rem 0;
}
.show {
font-size: 2rem;
width: 68rem;
}
.bold { font-weight: bold }
.italic { font-style: italic }
.show table.block {
width: 68rem;
border: none;
table-layout: fixed;
border-spacing: 0;
border-collapse: collapse;
}
.show table.block td {
width: 2rem;
height: 2rem;
line-height: 2rem;
padding: 1rem;
text-align: center;
position: relative;
cursor: default;
border: none;
}
.show table.block td.missing {
opacity: 0.1
}
.show table.block td.present:before {
content: attr(title);
position: absolute;
font-size: 0.33em;
top: -1.25em;
left: 0.125em;
right: 0.125em;
text-align: center;
font-weight: normal;
font-style: normal;
text-shadow: white 0 0 0.4em;
overflow: hidden;
text-overflow: ellipsis;
z-index: -1;
}
.show table.block td > d {
position: absolute;
z-index: 2;
color: #ddd;
text-shadow: 0 0 2px white;
}
.show table.block td.indicator > n {
display: block;
margin-top: -2rem;
margin-left: -0.5em;
font-size: 1rem;
}
.show table.block td.indicator > s {
display: block;
width : 0;
height: 2rem;
color: white;
}
.show table.block td.indicator > s:after {
display: inline-block;
content: '';
position: relative;
top: -1em;
left: 3rem;
width: 64rem;
height: calc(0.52em - 2px);
margin-right: -2em;
border-top: 1px solid rgba(0, 0, 255, 0.1);
border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}
.show .lipsum {
font-size: 1rem;
margin: 1rem 0;
}
#picker {
display: block;
position: fixed;
z-index: 9999;
top: 0;
left: 50%;
font-size: 3rem;
height: 4rem;
margin-left: -34.5rem;
width: 69rem;
}
#picker .menu {
display: none;
position: absolute;
left: 0;
right: 0;
top: 4rem;
background: #ddd;
font-size: 1.25rem;
}
#picker:hover .menu{
display: block;
}
#picker:hover .menu .group {
display: flex;
}
#picker:hover .menu .group a {
display: block;
padding: 0.5rem;
flex: 1;
min-width: 10rem;
background: #eee;
text-shadow: none;
}
#picker:hover .menu .group a:hover {
background: #ddd;
}
#picker .title {
background: black;
color: white;
display: block;
line-height: 3rem;
height: 3rem;
padding: 0.5rem;
position: relative;
cursor: pointer;
}
#picker .title .icon {
position: absolute;
right: 0.75rem;
top: 0.75rem;
font-size: 2.5rem;
}
pre, code, pre span, code span {
font-size: 1rem;
font-family: inherit;
}
.keyword { color: blue }
.string { color:green }
.qualifier { color: #419 }
.comment { color: #999 }