2020-08-20 09:48:01 +09:00
|
|
|
/* link underlines tend to make hypertext less readable,
|
|
|
|
because underlines obscure the shapes of the lower halves of words */
|
2021-07-21 03:30:49 +09:00
|
|
|
:link, :visited {
|
|
|
|
text-decoration: none
|
|
|
|
}
|
2020-08-20 09:48:01 +09:00
|
|
|
|
|
|
|
/* no list-markers by default, since lists are used more often for semantics */
|
2021-07-21 03:30:49 +09:00
|
|
|
ul, ol {
|
|
|
|
list-style: none
|
|
|
|
}
|
2020-08-20 09:48:01 +09:00
|
|
|
|
|
|
|
/* avoid browser default inconsistent heading font-sizes */
|
|
|
|
/* and pre/code too */
|
2021-07-21 03:30:49 +09:00
|
|
|
h1, h2, h3, h4, h5, h6, pre, code {
|
2021-08-05 22:46:17 +09:00
|
|
|
font-size: 1rem;
|
2021-07-21 03:30:49 +09:00
|
|
|
}
|
2020-08-20 09:48:01 +09:00
|
|
|
|
|
|
|
/* remove the inconsistent (among browsers) default ul,ol padding or margin */
|
2021-08-05 22:46:17 +09:00
|
|
|
/* the default spacing on headings does not match nor align with
|
2020-08-20 09:48:01 +09:00
|
|
|
normal interline spacing at all, so let's get rid of it. */
|
|
|
|
/* zero out the spacing around pre, form, body, html, p, blockquote as well */
|
|
|
|
/* form elements are oddly inconsistent, and not quite CSS emulatable. */
|
|
|
|
/* nonetheless strip their margin and padding as well */
|
2021-07-21 03:30:49 +09:00
|
|
|
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input, textarea {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
}
|
2020-08-20 09:48:01 +09:00
|
|
|
|
|
|
|
/* whoever thought blue linked image borders were a good idea? */
|
2021-07-21 03:30:49 +09:00
|
|
|
a img, :link img, :visited img {
|
2021-08-05 22:46:17 +09:00
|
|
|
border: none;
|
2021-07-21 03:30:49 +09:00
|
|
|
}
|
2020-08-20 09:48:01 +09:00
|
|
|
|
|
|
|
/* de-italicize address */
|
2021-07-21 03:30:49 +09:00
|
|
|
address {
|
2021-08-05 22:46:17 +09:00
|
|
|
font-style: normal;
|
2021-07-21 03:30:49 +09:00
|
|
|
}
|
2020-08-20 09:48:01 +09:00
|
|
|
|
2020-08-29 14:20:02 +09:00
|
|
|
/* firefox focus outline */
|
2021-07-21 03:30:49 +09:00
|
|
|
:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-moz-focus-inner {
|
|
|
|
border: 0;
|
|
|
|
}
|
2021-07-20 23:51:32 +09:00
|
|
|
|
2021-07-27 21:51:49 +09:00
|
|
|
form {
|
|
|
|
all: unset;
|
|
|
|
}
|
|
|
|
|
2021-07-20 23:51:32 +09:00
|
|
|
/* details element arrow */
|
|
|
|
details > summary {
|
|
|
|
list-style: none;
|
|
|
|
}
|
2021-07-21 03:30:49 +09:00
|
|
|
|
2021-07-20 23:51:32 +09:00
|
|
|
details > summary::-webkit-details-marker {
|
|
|
|
display: none;
|
2021-07-21 03:30:49 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
/* have IE ignore the detail elements altogether */
|
|
|
|
@supports not (-ms-ime-align: auto) {
|
|
|
|
details summary {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2021-08-05 22:46:17 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
[hidden] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* TYPOGRAPHY AND GENERAL SELECTORS */
|
|
|
|
body,
|
|
|
|
html {
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2021-08-06 06:47:03 +09:00
|
|
|
text-rendering: optimizeLegibility;
|
2021-08-05 22:46:17 +09:00
|
|
|
|
|
|
|
background-attachment: fixed;
|
|
|
|
color: var(--white);
|
|
|
|
font-family: var(--main-font);
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-family: var(--display-font);
|
|
|
|
font-size: var(--main-size);
|
|
|
|
font-weight: 900;
|
|
|
|
opacity: 1.00;
|
|
|
|
letter-spacing: -0.40px;
|
|
|
|
word-spacing: 4.00px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-family: var(--display-font);
|
|
|
|
font-size: var(--medium-size);
|
|
|
|
font-weight: 800;
|
|
|
|
letter-spacing: -0.75px;
|
|
|
|
word-spacing: 3.00px;
|
|
|
|
text-transform: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-family: var(--display-font);
|
|
|
|
font-size: var(--medium-size);
|
|
|
|
font-weight: 600;
|
|
|
|
line-height: 1.00;
|
|
|
|
letter-spacing: -0.20px;
|
|
|
|
word-spacing: 1.00px;
|
|
|
|
text-transform: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
font-family: var(--main-font);
|
|
|
|
font-size: var(--medium-size);
|
|
|
|
font-weight: 400;
|
|
|
|
letter-spacing: -0.30px;
|
|
|
|
word-spacing: -0.10px;
|
|
|
|
margin-bottom: var(--small-size);
|
|
|
|
text-transform: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
text-decoration: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2021-08-10 02:06:45 +09:00
|
|
|
a {
|
2021-08-05 22:46:17 +09:00
|
|
|
text-decoration: none;
|
|
|
|
color: var(--white);
|
2021-08-10 02:06:45 +09:00
|
|
|
border-radius: var(--unit-size);
|
|
|
|
|
|
|
|
padding-left: var(--unit-size);
|
|
|
|
padding-right: var(--unit-size);
|
|
|
|
margin-bottom: 1px;
|
2021-08-05 22:46:17 +09:00
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:visited {
|
|
|
|
color: var(--white);
|
2021-08-10 02:06:45 +09:00
|
|
|
padding-left: var(--unit-size);
|
|
|
|
padding-right: var(--unit-size);
|
2021-08-05 22:46:17 +09:00
|
|
|
outline: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:focus,
|
|
|
|
a:hover {
|
|
|
|
background: var(--white);
|
|
|
|
color: var(--bg1) !important;
|
|
|
|
transition: var(--cubic-transition);
|
|
|
|
}
|
|
|
|
|
|
|
|
figcaption a:link {
|
|
|
|
font-size: var(--small-size);
|
|
|
|
color: var(--white);
|
|
|
|
}
|
|
|
|
|
2021-08-06 06:47:03 +09:00
|
|
|
summary:hover > svg,
|
|
|
|
summary:focus > svg {
|
|
|
|
border-radius: var(--unit-size);
|
|
|
|
background-color: var(--white);
|
|
|
|
fill: var(--bg1);
|
|
|
|
border: 2px solid var(--white);
|
|
|
|
transition: var(--cubic-transition);
|
2021-08-06 01:30:45 +09:00
|
|
|
}
|
|
|
|
|
2021-08-06 06:47:03 +09:00
|
|
|
hr {
|
|
|
|
all: unset;
|
|
|
|
display: block;
|
|
|
|
height: 2px;
|
|
|
|
background: var(--translucent);
|
|
|
|
}
|
2021-08-05 22:46:17 +09:00
|
|
|
|
2021-08-06 06:47:03 +09:00
|
|
|
/* BUTTONS AND FILEPICKER */
|
2021-08-10 02:27:24 +09:00
|
|
|
button {
|
|
|
|
float: right !important;
|
|
|
|
width: min-content !important;
|
|
|
|
align-self: end !important;
|
|
|
|
}
|
|
|
|
|
2021-08-06 06:47:03 +09:00
|
|
|
button,
|
|
|
|
input:not([type=text]) {
|
|
|
|
all: unset;
|
2021-08-05 22:46:17 +09:00
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: var(--medium-size);
|
|
|
|
|
2021-08-10 02:27:24 +09:00
|
|
|
background-image: linear-gradient(180deg, var(--bg2), transparent);
|
2021-08-06 06:47:03 +09:00
|
|
|
color: var(--white);
|
|
|
|
|
|
|
|
border: solid 2px var(--bg2);
|
2021-08-05 22:46:17 +09:00
|
|
|
border-radius: var(--unit-size);
|
2021-08-10 02:27:24 +09:00
|
|
|
padding: 6px 12px;
|
2021-08-06 06:47:03 +09:00
|
|
|
}
|
2021-08-05 22:46:17 +09:00
|
|
|
|
2021-08-06 06:47:03 +09:00
|
|
|
*|*::-moz-button-content {
|
|
|
|
all: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* TODO: hover and focus feedback, checkbox */
|
|
|
|
input[type=radio] {
|
|
|
|
all: unset;
|
|
|
|
display: inline-block;
|
|
|
|
width: var(--unit-size);
|
|
|
|
height: var(--unit-size);
|
|
|
|
border: solid 5px var(--bg2) !important;
|
|
|
|
border-radius: 50%;
|
|
|
|
margin: 3px 3px 0px 5px;
|
|
|
|
background-color: var(--bg1);
|
|
|
|
}
|
|
|
|
input[type=radio]:checked {
|
|
|
|
background-color: var(--white);
|
2021-08-05 22:46:17 +09:00
|
|
|
}
|
2021-08-06 06:47:03 +09:00
|
|
|
|
2021-08-05 22:46:17 +09:00
|
|
|
button:hover,
|
2021-08-06 01:30:45 +09:00
|
|
|
button:focus,
|
2021-08-06 06:47:03 +09:00
|
|
|
input:hover,
|
|
|
|
input:focus {
|
|
|
|
border: solid 2px var(--bg3);
|
|
|
|
color: var(--white);
|
2021-08-05 22:46:17 +09:00
|
|
|
}
|
2021-08-06 06:47:03 +09:00
|
|
|
|
|
|
|
button:hover,
|
|
|
|
input:is([type=reset], [type=button], [type=submit]):hover {
|
|
|
|
color: var(--white);
|
2021-08-05 22:46:17 +09:00
|
|
|
}
|
|
|
|
|
2021-08-06 06:47:03 +09:00
|
|
|
:focus-visible::-moz-focus-inner {
|
|
|
|
border-color: var(--bg3) !important;
|
2021-08-05 22:46:17 +09:00
|
|
|
}
|
|
|
|
|
2021-08-06 06:47:03 +09:00
|
|
|
:is(:disabled, :disabled:active)::file-selector-button,
|
|
|
|
button:is(:disabled, :disabled:active),
|
|
|
|
input:is([type=reset], [type=button], [type=submit]):is(:disabled, :disabled:active),
|
|
|
|
select:is(:disabled, :disabled:active) > button {
|
|
|
|
color: var(--white);
|
2021-08-05 22:46:17 +09:00
|
|
|
}
|
|
|
|
|
2021-08-06 06:47:03 +09:00
|
|
|
/* file selector */
|
|
|
|
input[type=file] {
|
|
|
|
all: unset;
|
|
|
|
display: block;
|
|
|
|
max-width: 100%;
|
|
|
|
background: linear-gradient(135deg, var(--bg2), transparent);
|
|
|
|
|
|
|
|
font-family: var(--main-font);
|
|
|
|
font-size: var(--medium-size);
|
|
|
|
|
2021-08-05 22:46:17 +09:00
|
|
|
border-radius: var(--unit-size);
|
2021-08-06 06:47:03 +09:00
|
|
|
}
|
|
|
|
input[type=file]:focus,
|
|
|
|
input[type=file]:hover {
|
|
|
|
background: linear-gradient(135deg, var(--bg2), var(--bg3) 200%);
|
2021-08-05 22:46:17 +09:00
|
|
|
}
|
|
|
|
|
2021-08-06 06:47:03 +09:00
|
|
|
input + label {
|
2021-08-05 22:46:17 +09:00
|
|
|
all: unset;
|
2021-08-06 06:47:03 +09:00
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* button part of file selector */
|
|
|
|
::file-selector-button {
|
|
|
|
font-family: var(--display-font);
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
background-color: unset;
|
|
|
|
color: var(--white);
|
|
|
|
|
|
|
|
border: unset;
|
|
|
|
margin: 5px;
|
|
|
|
}
|