programmingfonts/index.css

282 lines
4.7 KiB
CSS
Raw Normal View History

2017-07-29 18:37:12 +02:00
* {
box-sizing: border-box;
}
2017-01-20 17:59:59 +01:00
html {
height: 100%;
min-height: 100%;
2017-02-08 23:30:59 +01:00
background: #f5f0e6;
2017-07-29 17:40:29 +02:00
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;
2019-01-23 20:38:17 +01:00
font-weight: 300;
}
body {
color: #2a2a2a;
background: #f5f5f5;
2017-01-20 17:59:59 +01:00
height: 100%;
min-height: 100%;
}
h1 {
font-weight: 700;
2017-07-29 18:12:30 +02:00
font-size: 14px;
2017-01-20 17:59:59 +01:00
margin: 0;
2017-01-20 20:31:15 +01:00
padding: .25em 0 0 0;
2017-01-20 17:59:59 +01:00
}
p {
2017-07-28 23:07:09 +02:00
padding: 0;
}
a,
a:link,
a:visited,
a:hover,
a:active {
text-decoration: none;
color: inherit;
}
.octicon {
2019-01-26 14:29:06 +01:00
fill: currentColor;
2017-01-20 17:59:59 +01:00
}
2017-07-29 18:12:30 +02:00
.article-wrapper {
2017-01-20 17:59:59 +01:00
float: left;
2017-07-29 17:40:29 +02:00
border-right: 1px solid #4a4a4a;
2017-07-29 11:49:38 +02:00
height: 100%;
2017-07-29 18:12:30 +02:00
max-height: 100%;
2017-07-29 17:40:29 +02:00
width: 28em;
2017-07-29 18:12:30 +02:00
overflow: hidden;
position: relative;
2017-07-29 18:37:12 +02:00
z-index: 2;
2017-07-29 18:12:30 +02:00
}
article {
height: 100%;
display: flex;
flex-direction: column;
2017-07-29 18:37:12 +02:00
width: 100%;
}
section {
flex: 1;
2017-07-28 23:07:09 +02:00
flex-shrink: 0;
2017-07-28 21:27:31 +02:00
}
section.config {
2017-07-29 17:40:29 +02:00
font-size: 10px;
background: #eee;
2017-07-28 21:27:31 +02:00
flex: 0;
padding: 10px;
display: grid;
grid-column-gap: 5px;
grid-row-gap: 5px;
grid-template-columns: auto auto auto auto;
2017-07-29 17:40:29 +02:00
}
2017-07-28 21:27:31 +02:00
section.config > * {
text-align: center;
padding: 0;
white-space: nowrap;
2017-01-20 17:59:59 +01:00
}
2017-07-28 23:07:09 +02:00
section.select-list {
overflow: auto;
2019-01-21 12:42:55 +01:00
-webkit-overflow-scrolling: touch;
2017-07-28 23:07:09 +02:00
}
2019-01-23 21:08:51 +01:00
section.select-list:focus {
outline: none;
}
2017-07-28 23:07:09 +02:00
section.select-list .entry {
2017-07-30 12:12:34 +02:00
position: relative;
2019-01-22 21:29:02 +01:00
display: flex;
2017-07-29 17:40:29 +02:00
padding: .5em 1em;
}
section.select-list .entry:hover {
background: #fff;
2017-07-28 23:07:09 +02:00
}
section.select-list a[data-value] {
display: block;
position: relative;
2017-07-29 17:40:29 +02:00
overflow: hidden;
2019-01-26 14:29:06 +01:00
width: 66.67%;
2017-07-28 23:07:09 +02:00
}
section.select-list a:hover .name,
section.select-list a:active .name {
text-decoration: underline;
}
2017-07-29 17:40:29 +02:00
section.select-list .active .name {
font-weight: bold;
}
2019-01-22 19:45:16 +01:00
section.select-list a.favoritelink {
2019-01-23 20:38:17 +01:00
margin-right: .25em;
color: #f5f5f5;
position: absolute;
top: .5rem;
right: 1rem;
cursor: pointer;
2019-01-22 21:29:02 +01:00
}
section.select-list a.pinned {
2019-01-23 20:38:17 +01:00
color: #777;
}
section.select-list a.favoritelink:hover {
color: currentColor;
2019-01-22 19:45:16 +01:00
}
2017-07-30 12:12:34 +02:00
section.select-list a.website {
position: absolute;
2019-01-23 20:38:17 +01:00
bottom: .5rem;
right: 1rem;
2017-07-28 23:07:09 +02:00
transition: all .2s ease-in-out;
2017-07-30 12:12:34 +02:00
font-size: 10px;
2019-01-23 20:38:17 +01:00
padding: 0 .5rem;
color: #f5f5f5;
}
section.select-list a.website svg {
position: relative;
top: 2px;
2017-07-28 23:07:09 +02:00
}
2017-07-30 12:12:34 +02:00
section.select-list a.website span {
display: inline-block;
padding-right: 1ex;
2017-07-29 17:40:29 +02:00
}
2019-01-23 20:38:17 +01:00
section.select-list .entry:hover a.website,
section.select-list .entry:hover a.favoritelink {
color: #ccc;
2017-07-28 23:07:09 +02:00
}
section.select-list .entry .active a.website,
section.select-list .entry .active a.website,
2017-07-30 12:12:34 +02:00
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;
2017-07-29 17:40:29 +02:00
}
2017-07-28 23:07:09 +02:00
section.select-list .details {
2017-07-30 12:12:34 +02:00
color: #777;
2017-07-28 23:07:09 +02:00
font-style: italic;
display: block;
2017-07-29 17:40:29 +02:00
font-size: 10px;
2017-07-28 23:07:09 +02:00
text-indent: 2em;
2017-07-29 17:40:29 +02:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2017-07-28 23:07:09 +02:00
}
2017-01-20 17:59:59 +01:00
footer {
flex: 0;
padding: 5px 10px;
2017-07-29 17:40:29 +02:00
font-size: 10px;
2019-06-10 11:28:10 +02:00
text-align: center;
2017-07-29 17:40:29 +02:00
background: #e4e4e4;
color: #777;
2019-06-10 11:28:10 +02:00
line-height: 20px;
2017-01-20 17:59:59 +01:00
}
2017-07-29 18:12:30 +02:00
footer h1 + p {
font-style: italic;
}
2017-07-28 23:07:09 +02:00
footer a:hover,
footer a:active {
text-decoration: underline;
}
2019-06-10 11:28:10 +02:00
footer svg {
margin-top: 4px;
}
label {
margin-right: .5ex;
2017-07-28 21:27:31 +02:00
font-style: italic;
2017-07-29 17:40:29 +02:00
color: #777;
}
2017-01-20 17:59:59 +01:00
select {
all: unset;
width: 9em;
padding: 0 .5ex;
border: 1px solid #e4e4e4;
2017-01-20 17:59:59 +01:00
border-radius: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
select option {
background: #fff;
color: #000;
}
2017-07-28 21:27:31 +02:00
input[type="number"] {
2017-01-20 17:59:59 +01:00
all: unset;
width: 4em;
margin-left: .5ex;
padding: 0 .5ex;
border: 1px solid #e4e4e4;
border-radius: 3px;
2017-01-20 17:59:59 +01:00
text-align: left;
}
2017-07-28 21:27:31 +02:00
input[type="number"]:hover,
input[type="number"]:focus,
select:hover,
select:focus {
border-color: #777;
2017-07-28 21:27:31 +02:00
}
2017-01-20 17:59:59 +01:00
pre,
textarea,
.CodeMirror {
font-family: "Input Mono", monospace;
height: auto;
}
form {
height: 100%;
min-height: 100%;
2017-07-29 18:12:30 +02:00
position: relative;
z-index: 1;
2017-01-20 17:59:59 +01:00
}
.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;
}
2017-01-20 17:59:59 +01:00
.CodeMirror {
border: none;
font-size: 100%;
background: transparent;
box-shadow: none !important;
height: 100%;
min-height: 100%;
text-rendering: optimizeLegibility;
}
.CodeMirror.no-smooth {
font-smooth: never;
2017-02-08 23:30:59 +01:00
-webkit-font-smoothing: none;
}
.CodeMirror .cm-atom {
font-style: italic;
2017-01-20 17:59:59 +01:00
}
.CodeMirror-gutters {
background: transparent;
}
2019-01-21 12:42:55 +01:00
.CodeMirror-scroll {
-webkit-overflow-scrolling: touch;
}
2017-07-29 18:12:30 +02:00
@media screen and (max-width: 56em) {
2017-07-29 18:37:12 +02:00
.article-wrapper,
form {
width: 100%;
2017-07-30 12:12:34 +02:00
height: 50vh;
min-height: 50vh;
2017-07-29 18:37:12 +02:00
float: none;
2017-07-29 18:12:30 +02:00
}
2017-07-30 12:14:39 +02:00
}
@media screen and (max-width: 56em) and (max-height: 36em) {
2017-07-30 12:19:39 +02:00
section.select-list a.website {
top: 0;
}
2017-07-29 18:37:12 +02:00
section.select-list .entry {
padding: 0 1em;
2017-07-29 18:12:30 +02:00
}
2017-07-30 12:12:34 +02:00
footer p:first-of-type,
footer p:first-of-type + p {
2017-07-29 18:37:12 +02:00
display: none;
2017-07-29 18:12:30 +02:00
}
}