Pinafore-Web-Client-Frontend/scss/global.scss

119 lines
2.0 KiB
SCSS
Raw Normal View History

2018-01-12 17:36:31 +01:00
body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue;
font-size: 14px;
2018-01-14 23:44:47 +01:00
line-height: 1.3;
2018-01-12 18:05:03 +01:00
color: var(--body-text-color);
2018-01-12 18:01:46 +01:00
background: var(--body-bg);
2018-01-16 03:29:28 +01:00
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
2018-01-12 17:36:31 +01:00
}
2018-01-16 03:29:28 +01:00
.container {
2018-01-13 08:28:13 +01:00
overflow-y: auto;
2018-01-16 03:29:28 +01:00
overflow-x: hidden;
2018-01-12 17:36:31 +01:00
-webkit-overflow-scrolling: touch;
2018-01-16 03:29:28 +01:00
position: absolute;
top: 72px;
left: 0;
right: 0;
bottom: 0;
will-change: transform; /* avoids "repaint on scroll" in Chrome */
}
main {
2018-01-12 17:36:31 +01:00
position: relative;
2018-01-16 06:58:31 +01:00
width: 602px;
max-width: 100vw;
2018-01-16 05:51:51 +01:00
padding: 15px 0;
2018-01-12 17:36:31 +01:00
box-sizing: border-box;
2018-01-16 03:29:28 +01:00
margin: 15px auto 15px;
2018-01-12 18:01:46 +01:00
background: var(--main-bg);
border: 1px solid var(--main-border);
2018-01-12 17:36:31 +01:00
border-radius: 1px;
2018-01-14 20:34:53 +01:00
@media (max-width: 767px) {
2018-01-16 03:29:28 +01:00
margin: 5px auto 15px;
2018-01-14 20:34:53 +01:00
}
2018-01-12 17:36:31 +01: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 18:01:46 +01:00
color: var(--anchor-text);
2018-01-12 17:36:31 +01:00
text-decoration: none;
}
a:visited {
2018-01-12 18:01:46 +01:00
color: var(--anchor-text);
2018-01-12 17:36:31 +01:00
}
a:hover {
text-decoration: underline;
}
input {
2018-01-12 18:01:46 +01:00
border: 1px solid var(--input-border);
2018-01-12 17:36:31 +01:00
padding: 5px;
}
button {
font-size: 1.2em;
2018-01-12 18:01:46 +01:00
background: var(--button-bg);
2018-01-12 17:36:31 +01:00
border-radius: 2px;
padding: 10px 15px;
2018-01-12 18:01:46 +01:00
border: 1px solid var(--button-border);
2018-01-12 17:36:31 +01:00
cursor: pointer;
2018-01-12 18:01:46 +01:00
color: var(--button-text);
2018-01-12 17:36:31 +01:00
2018-01-14 03:59:49 +01:00
&:hover {
background: var(--button-bg-hover);
}
2018-01-12 17:36:31 +01:00
2018-01-14 03:59:49 +01:00
&:active {
background: var(--button-bg-active);
}
2018-01-12 17:36:31 +01:00
2018-01-14 03:59:49 +01:00
&[disabled] {
opacity: 0.35;
pointer-events: none;
cursor: not-allowed;
}
2018-01-12 17:36:31 +01:00
2018-01-14 03:59:49 +01: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 17:36:31 +01:00
2018-01-14 03:59:49 +01:00
&:active {
background: var(--button-primary-bg-active);
}
}
2018-01-12 17:36:31 +01:00
}
p, label, input {
font-size: 1.3em;
}
ul, li, p {
padding: 0;
margin: 0;
}
2018-01-14 05:33:14 +01:00
.hidden {
opacity: 0;
2018-01-12 17:36:31 +01:00
}