inter/docs/index.css
2019-05-26 17:43:49 -07:00

225 lines
4.7 KiB
CSS

h1 {
color: #010101;
font-size:81px;
letter-spacing: -0.055em;
line-height: 0.9em;
text-indent: -0.03em;
margin-bottom: 4rem;
margin-top: 10px;
font-weight: 740;
}
/* title scales as window shrinks */
@media only screen and (max-width: 988px) {
h1 { font-size: calc(100vw / 12.2); }
}
@media only screen and (max-width: 900px) {
h1 { font-size: calc(100vw / 12.5); }
}
@media only screen and (max-width: 760px) {
h1 { font-size: calc(100vw / 12.8); }
}
@media only screen and (max-width: 660px) {
h1 { font-size: calc(100vw / 13.2); }
}
@media only screen and (max-width: 565px) {
h1 {
font-size: 60px;
letter-spacing: -0.045em;
text-indent: -0.012em;
line-height: 1em;
}
}
.weights-and-styles {
display: block;
opacity: 0.98;
width: 100%;
margin: 3em 0 3em 0;
}
#hidden-text-input {
position: absolute;
left:0;
top:0;
background: none;
border: none;
opacity: 0;
pointer-events: none;
}
/* Dynamic metrics */
.dynmet-calc {
font-weight: 440;
font-size: 1.2rem;
line-height: calc(var(--spacingv) * 2);
/*font-size: 1.5rem;*/
/*line-height: 26px;*/
user-select: text;
}
.dynmet-calc input {
border: none;
/*box-shadow: 0 0.125rem 0 0 rgba(0, 0, 0, 0.3);*/
background: transparent;
font: inherit;
outline: none;
margin: 0 0.2em;
width: 40px;
text-align: center;
line-height: inherit;
color: var(--red);
user-select: text;
border-radius: 0.2rem;
}
.dynmet-calc input:hover {
box-shadow: 0 0 0 0.12rem rgba(0, 0, 0, 0.3);
}
.dynmet-calc input:focus {
/*box-shadow: 0 2px 0 0 var(--red);*/
background: rgba(0, 0, 0, 0.07);
}
.dynmet-calc input[type=number]::-webkit-inner-spin-button,
.dynmet-calc input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.dynmet-calc .arrow {
margin: 0 0.5em;
/*color: var(--red);*/
}
.dynmet-calc #dynmet-tracking {
box-shadow: none;
width: 57px;
margin-right: 0.1em;
color: var(--red);
}
.dynmet-calc #dynmet-tracking.percent {
width: 34px;
}
.dynmet-calc #dynmet-unit:hover {
color: rgb(43, 139, 247);
}
.dynmet-calc #dynmet-unit:active {
color: white;
}
/* Character set table */
.row.charset-title { padding-bottom: 0; }
.row.charset-title > h2 { text-align: center; }
.row.charset {
padding-top: 1rem;
padding-left: 0;
padding-right: 0;
/* maintain cascading margin-bottom */
}
.charset-table {
--gridColor: #bbb;
--columns: 24;
--tableWidth: 95vw;
flex: 1 1 auto;
padding: 0;
margin: 1rem auto;
max-width: var(--tableWidth);
width: var(--tableWidth);
overflow: hidden;
display: flex;
flex-wrap: wrap;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-shadow: -1px -1px 0 var(--gridColor),
-1px 0 0 var(--gridColor),
0 -1px 0 var(--gridColor);
}
.charset-table > c {
flex: 0 0 auto;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
width: calc(var(--tableWidth) / var(--columns));
height: calc(var(--tableWidth) / var(--columns));
font-size: calc(100vw / calc(var(--columns) * 2));
line-height: 100%;
text-align: center;
font-feature-settings: "calt" 0; /* disable all */
background: white;
box-shadow: inset -1px -1px 0 var(--gridColor);
cursor: cell;
user-select: none;
-webkit-user-select: none;
}
/* for window width >= 1600 */
@media only screen and (min-width: 1599px) {
.charset-table { --columns: 32; }
}
@media only screen and (max-width: 800px) {
.charset-table { --columns: 16; }
}
@media only screen and (max-width: 565px) {
.charset-table { --columns: 8; }
}
@keyframes charset-flash {
0% { background-color: black; color: white; }
20% { background-color: black; color: white; }
20.1% { background-color: white; color: inherit; }
40% { background-color: white; color: inherit; }
40.1% { background-color: black; color: white; }
60% { background-color: black; color: white; }
100% { background-color: white; color: inherit; }
}
.charset-table > c.flash {
animation: charset-flash 300ms 1;
animation-fill-mode: forwards;
animation-timing-function: ease-out;
}
/* FAQ */
grid.faq {
grid-row-gap: calc(var(--spacingv) * 3);
}
.faq .q {
font-weight: 600;
}
.faq h4:target {
background: var(--yellow);
}
boxes.features box h3 + p {
margin-top:0.5em;
}
boxes.features grid .sample {
word-break: break-word;
word-wrap: break-word;
}
boxes.features grid .sample em {
font-style: inherit;
background: #e4fdef;
color: black;
}
.features box.feat-cvXX {
flex-basis: 100%;
}