programmingfonts/index.css
2019-06-10 21:14:23 +02:00

375 lines
6.2 KiB
CSS

* {
box-sizing: border-box;
}
html {
height: 100%;
min-height: 100%;
background: #f5f0e6;
font-family: -apple-system, BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
font-size: 14px;
line-height: 20px;
font-weight: 300;
}
body {
color: #2a2a2a;
background: #f5f5f5;
height: 100%;
min-height: 100%;
}
h1 {
font-weight: 700;
font-size: 14px;
margin: 0;
padding: .25em 0 0 0;
}
p {
padding: 0;
}
a,
a:link,
a:visited,
a:hover,
a:active {
text-decoration: none;
color: inherit;
}
.no-smooth {
font-smooth: never;
-webkit-font-smoothing: none;
}
.octicon {
fill: currentColor;
}
.article-wrapper {
float: left;
border-right: 1px solid #4a4a4a;
height: 100%;
max-height: 100%;
width: 28em;
overflow: hidden;
position: relative;
z-index: 2;
}
article {
height: 100%;
display: flex;
flex-direction: column;
width: 100%;
}
section {
flex: 0;
flex-shrink: 0;
}
section#filters,
section.config {
font-size: 10px;
background: #eee;
padding: 10px;
display: grid;
grid-column-gap: 5px;
grid-row-gap: 5px;
grid-row-gap: 5px;
grid-template-columns: auto auto auto auto;
}
section#filters {
grid-template-columns: auto auto auto auto auto;
align-items: stretch;
}
section#filters input,
section#filters select {
width: 100%;
margin: 0;
}
section.config > * {
text-align: center;
padding: 0;
white-space: nowrap;
}
section.select-list {
flex: 1;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
section.select-list:focus {
outline: none;
}
section.select-list .entry {
position: relative;
display: flex;
padding: .5em 1em;
}
section.select-list .entry:hover {
background: #fff;
}
section.select-list .entry.filtered-out {
display: none;
}
section.select-list a[data-value] {
display: block;
position: relative;
overflow: hidden;
width: 66.67%;
}
section.select-list a:hover .name,
section.select-list a:active .name {
text-decoration: underline;
}
section.select-list .active .name {
font-weight: bold;
}
section.select-list a.favoritelink {
margin-right: .25em;
color: #f5f5f5;
position: absolute;
top: .5rem;
right: 1rem;
cursor: pointer;
}
section.select-list a.pinned {
color: #777;
}
section.select-list a.favoritelink:hover {
color: currentColor;
}
section.select-list a.website {
position: absolute;
bottom: .5rem;
right: 1rem;
transition: all .2s ease-in-out;
font-size: 10px;
padding: 0 .5rem;
color: #f5f5f5;
}
section.select-list a.website svg {
position: relative;
top: 2px;
}
section.select-list a.website span {
display: inline-block;
padding-right: 1ex;
}
section.select-list .entry:hover a.website,
section.select-list .entry:hover a.favoritelink {
color: #ccc;
}
section.select-list .entry .active a.website,
section.select-list .entry .active a.website,
section.select-list .entry a.website:hover,
section.select-list .entry a.website:active {
background: #e4e4e4;
color: #777;
}
section.select-list a.website:active {
margin-top: 1px;
}
section.select-list .details {
color: #777;
font-style: italic;
display: block;
font-size: 10px;
text-indent: 2em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
footer {
padding: 5px 10px;
font-size: 10px;
text-align: center;
background: #e4e4e4;
color: #777;
line-height: 20px;
}
footer h1 + p {
font-style: italic;
}
footer a:hover,
footer a:active {
color: #2a2a2a;
text-decoration: underline;
}
footer p a,
footer p a:link,
footer p a:visited {
text-decoration: underline;
}
footer svg {
margin-top: 4px;
}
label {
margin-right: .5ex;
font-style: italic;
color: #777;
}
fieldset {
all: unset;
display: flex;
}
button {
all: unset;
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 20px;
height: 18px;
margin: 0;
border: 1px solid #e4e4e4;
border-bottom-color: #ccc;
border-right-color: #ccc;
border-radius: 4px;
color: #777;
background: linear-gradient(#fff, #e4e4e4);
cursor: pointer;
}
button:active {
box-shadow: none;
}
button.selected {
background: #fff;
border-color: #e4e4e4;
color: #2a2a2a;
}
button path,
button rect {
fill: currentColor;
}
.toggle {
display: flex;
}
.toggle button:first-child {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right-color: #e4e4e4;
}
.toggle button:not(:first-child) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
select {
all: unset;
width: 9em;
padding: 0 .5ex;
border: 1px solid #e4e4e4;
border-radius: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
select option {
background: #fff;
color: #000;
}
input[type="text"] {
line-height: 12px;
}
input[type="text"],
input[type="number"] {
all: unset;
width: 4em;
margin-left: .5ex;
padding: 0 .5ex;
border: 1px solid #e4e4e4;
border-radius: 4px;
text-align: left;
transition: all .2s ease-in-out;
}
input[type="text"]:hover,
input[type="text"]:focus,
input[type="number"]:hover,
input[type="number"]:focus,
select:hover,
select:focus {
border-color: #ccc;
background: #f5f5f5;
}
pre,
textarea,
.CodeMirror {
font-family: "Input Mono", monospace;
height: auto;
}
form {
height: 100%;
min-height: 100%;
position: relative;
z-index: 1;
}
.nav-button {
all: unset;
font-family: inherit;
cursor: pointer;
}
label + .nav-button {
margin-left: .5ex;
}
label[for="select-language"],
label[for="select-theme"] {
display: none;
}
.CodeMirror {
border: none;
font-size: 100%;
background: transparent;
box-shadow: none !important;
height: 100%;
min-height: 100%;
text-rendering: optimizeLegibility;
}
.CodeMirror .cm-atom {
font-style: italic;
}
.CodeMirror-gutters {
background: transparent;
}
.CodeMirror-scroll {
-webkit-overflow-scrolling: touch;
}
.github-logo {
position: fixed;
bottom: 5px;
right: 5px;
z-index: 2;
display: block;
width: 16px;
height: 16px;
}
.github-logo svg path {
fill: #ccc;
}
@media screen and (max-width: 56em) {
.article-wrapper,
form {
width: 100%;
height: 50vh;
min-height: 50vh;
float: none;
}
}
@media screen and (max-width: 56em) and (max-height: 36em) {
section.select-list a.website {
top: 0;
}
section.select-list .entry {
padding: 0 1em;
}
footer p:first-of-type,
footer p:first-of-type + p {
display: none;
}
}