programmingfonts/index.css

244 lines
4.0 KiB
CSS
Raw Normal View History

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-01-20 17:59:59 +01:00
}
body {
2017-07-29 17:40:29 +02:00
color: #2a2a2a;
background: #f5f5f5;
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;
2017-01-20 17:59:59 +01:00
height: 100%;
min-height: 100%;
font-weight: 300;
}
h1 {
text-align: center;
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 {
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;
transition: width .2s ease-in-out;
position: relative;
z-index: 3;
}
article {
height: 100%;
display: flex;
flex-direction: column;
2017-07-29 18:12:30 +02:00
width: 28em;
}
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
min-height: 20px;
font-size: 10px;
background: #eee;
2017-07-28 21:27:31 +02:00
flex: 0;
2017-07-29 17:40:29 +02:00
padding: 10px 10px 0 10px;
2017-07-28 21:27:31 +02:00
display: flex;
flex-direction: row;
}
2017-07-29 17:40:29 +02:00
section.config:last-of-type {
padding-bottom: 10px;
}
section.config + section.config {
padding-top: 0;
}
2017-07-28 21:27:31 +02:00
section.config > * {
flex: 1;
text-align: center;
padding: 0;
2017-01-20 17:59:59 +01:00
}
2017-07-28 23:07:09 +02:00
section.select-list {
overflow: auto;
}
section.select-list .entry {
display: flex;
flex-direction: row;
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] {
flex: 1;
display: block;
position: relative;
2017-07-29 17:40:29 +02:00
overflow: hidden;
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;
}
2017-07-28 23:07:09 +02:00
section.select-list a[rel="external"] {
2017-07-29 17:40:29 +02:00
position: relative;
2017-07-28 23:07:09 +02:00
opacity: 0;
transition: all .2s ease-in-out;
2017-07-29 17:40:29 +02:00
flex: 0;
2017-07-28 23:07:09 +02:00
}
section.select-list .entry:hover a[rel="external"] {
2017-07-29 17:40:29 +02:00
opacity: .5;
}
section.select-list .entry a[rel="external"]:hover,
section.select-list .entry a[rel="external"]:active {
2017-07-28 23:07:09 +02:00
opacity: 1;
}
2017-07-29 17:40:29 +02:00
section.select-list .entry a[rel="external"]:active {
top: 1px;
}
2017-07-28 23:07:09 +02:00
section.select-list .details {
opacity: .6;
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;
2017-07-29 17:40:29 +02:00
padding: 10px 0;
text-align: center;
2017-07-29 17:40:29 +02:00
font-size: 10px;
background: #e4e4e4;
color: #777;
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;
}
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;
2017-07-28 21:27:31 +02:00
border: 1px solid transparent;
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;
2017-07-28 21:27:31 +02:00
border: 1px solid transparent;
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 {
2017-07-29 17:40:29 +02:00
border-color: #e4e4e4;
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;
}
2017-07-29 18:12:30 +02:00
.toggle {
display: none;
position: fixed;
z-index: 2;
top: 0;
left: 0;
height: 100%;
width: 40px;
}
@media screen and (max-width: 56em) {
.toggle {
display: block;
}
body.menu-visible .toggle {
left: 28em;
}
body:not(.menu-visible) .article-wrapper {
width: 10px;
}
}