1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-31 14:04:50 +01:00

181 lines
3.0 KiB
SCSS
Raw Normal View History

2018-01-12 08:36:31 -08:00
body {
margin: 0;
2018-03-27 09:02:10 -07:00
font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
2018-01-12 08:36:31 -08:00
font-size: 14px;
2018-02-10 16:22:12 -08:00
line-height: 1.4;
2018-01-12 09:05:03 -08:00
color: var(--body-text-color);
2018-01-12 09:01:46 -08:00
background: var(--body-bg);
2018-01-12 08:36:31 -08:00
}
2018-01-15 18:29:28 -08:00
.container {
2018-01-12 23:28:13 -08:00
overflow-y: auto;
2018-01-15 18:29:28 -08:00
overflow-x: hidden;
2018-01-12 08:36:31 -08:00
-webkit-overflow-scrolling: touch;
2018-01-21 14:11:53 -08:00
will-change: transform; /* avoids "Repaints on Scroll" warning in Chrome */
2018-01-15 18:29:28 -08:00
position: absolute;
2018-03-27 09:34:29 -07:00
top: 42px;
2018-01-15 18:29:28 -08:00
left: 0;
right: 0;
bottom: 0;
2018-03-27 09:34:29 -07:00
@media (max-width: 991px) {
top: 52px;
}
2018-01-30 22:40:40 -08:00
@media (max-width: 767px) {
top: 62px;
}
2018-01-15 18:29:28 -08:00
}
main {
2018-01-12 08:36:31 -08:00
position: relative;
2018-01-15 21:58:31 -08:00
width: 602px;
max-width: 100vw;
padding: 0;
2018-01-12 08:36:31 -08:00
box-sizing: border-box;
margin: 30px auto 15px;
2018-01-12 09:01:46 -08:00
background: var(--main-bg);
border: 1px solid var(--main-border);
2018-01-12 08:36:31 -08:00
border-radius: 1px;
2018-03-16 18:03:35 -07:00
min-height: 70vh;
2018-01-14 11:34:53 -08:00
@media (max-width: 767px) {
2018-01-15 18:29:28 -08:00
margin: 5px auto 15px;
2018-01-14 11:34:53 -08:00
}
2018-01-12 08:36:31 -08:00
}
2018-03-07 09:25:07 -08:00
footer {
width: 602px;
max-width: 100vw;
box-sizing: border-box;
2018-03-27 09:34:29 -07:00
margin: 15px auto;
2018-03-07 09:25:07 -08:00
border-radius: 1px;
background: var(--main-bg);
font-size: 0.9em;
2018-03-11 12:13:12 -07:00
padding: 20px;
2018-03-07 09:25:07 -08:00
border: 1px solid var(--main-border);
}
2018-01-12 08:36:31 -08:00
h1, h2, h3, h4, h5, h6 {
margin: 0 0 0.5em 0;
font-weight: 400;
line-height: 1.2;
}
h1 {
font-size: 2em;
}
a {
2018-01-12 09:01:46 -08:00
color: var(--anchor-text);
2018-01-12 08:36:31 -08:00
text-decoration: none;
}
a:visited {
2018-01-12 09:01:46 -08:00
color: var(--anchor-text);
2018-01-12 08:36:31 -08:00
}
a:hover {
text-decoration: underline;
}
input {
2018-01-12 09:01:46 -08:00
border: 1px solid var(--input-border);
2018-01-12 08:36:31 -08:00
padding: 5px;
2018-02-25 16:26:43 -08:00
box-sizing: border-box;
2018-01-12 08:36:31 -08:00
}
2018-03-06 23:27:36 -08:00
button, .button {
2018-01-12 08:36:31 -08:00
font-size: 1.2em;
2018-01-12 09:01:46 -08:00
background: var(--button-bg);
2018-01-12 08:36:31 -08:00
border-radius: 2px;
padding: 10px 15px;
2018-01-12 09:01:46 -08:00
border: 1px solid var(--button-border);
2018-01-12 08:36:31 -08:00
cursor: pointer;
2018-01-12 09:01:46 -08:00
color: var(--button-text);
2018-01-12 08:36:31 -08:00
2018-01-13 18:59:49 -08:00
&:hover {
background: var(--button-bg-hover);
2018-03-06 23:27:36 -08:00
text-decoration: none;
2018-01-13 18:59:49 -08:00
}
2018-01-12 08:36:31 -08:00
2018-01-13 18:59:49 -08:00
&:active {
background: var(--button-bg-active);
}
2018-01-12 08:36:31 -08:00
2018-01-13 18:59:49 -08:00
&[disabled] {
opacity: 0.35;
pointer-events: none;
cursor: not-allowed;
}
2018-01-12 08:36:31 -08:00
2018-01-13 18:59:49 -08:00
&.primary {
border: 1px solid var(--button-primary-border);
background: var(--button-primary-bg);
color: var(--button-primary-text);
&:hover {
background: var(--button-primary-bg-hover);
}
2018-01-12 08:36:31 -08:00
2018-01-13 18:59:49 -08:00
&:active {
background: var(--button-primary-bg-active);
}
}
2018-01-12 08:36:31 -08:00
}
p, label, input {
font-size: 1.3em;
}
ul, li, p {
padding: 0;
margin: 0;
}
2018-01-13 20:33:14 -08:00
.hidden {
opacity: 0;
2018-01-21 10:53:15 -08:00
}
*:focus {
outline: 2px solid var(--focus-outline);
}
button::-moz-focus-inner {
border: 0;
}
2018-02-06 20:54:49 -08:00
/* Firefox hacks to remove ugly red border.
Unnecessary since it gives a warning if you submit an empty field anyway. */
input:required, input:invalid {
box-shadow: none;
2018-02-25 20:45:11 -08:00
}
textarea {
font-family: inherit;
font-size: inherit;
box-sizing: border-box;
2018-03-02 21:55:04 -08:00
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
2018-03-30 17:25:22 -07:00
25% {
transform: rotate(90deg);
}
2018-03-02 21:55:04 -08:00
50% {
transform: rotate(180deg);
}
2018-03-30 17:25:22 -07:00
75% {
transform: rotate(270deg);
}
2018-03-02 21:55:04 -08:00
100% {
transform: rotate(360deg);
}
}
.spin {
2018-04-03 08:58:59 -07:00
animation: spin 1.5s infinite linear;
2018-03-24 09:38:04 -07:00
}
.ellipsis::after {
content: "\2026";
2018-02-06 20:54:49 -08:00
}