2019-10-13 19:41:51 +02:00
|
|
|
// Generic html styles used across the App
|
2018-12-19 06:44:53 +01:00
|
|
|
// component specific styling should go in the component scss file
|
|
|
|
|
2019-07-21 23:31:22 +02:00
|
|
|
*::selection {
|
2019-11-22 22:13:00 +01:00
|
|
|
background-color: var(--color-text-selection-bg);
|
|
|
|
color: var(--color-text-selection);
|
2019-07-21 23:31:22 +02:00
|
|
|
}
|
|
|
|
|
2019-12-02 18:30:08 +01:00
|
|
|
*:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
html {
|
|
|
|
@include font-sans;
|
|
|
|
height: 100%;
|
2019-07-17 22:49:06 +02:00
|
|
|
min-height: 100%;
|
2018-12-19 06:44:53 +01:00
|
|
|
overflow-x: hidden;
|
2019-06-29 00:21:21 +02:00
|
|
|
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-text);
|
2019-09-26 18:07:11 +02:00
|
|
|
background-color: var(--color-background);
|
2020-01-08 20:20:30 +01:00
|
|
|
font-size: 16px;
|
2020-01-06 19:32:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-size: 1em;
|
2020-07-24 19:17:43 +02:00
|
|
|
cursor: default;
|
|
|
|
line-height: 1.5;
|
|
|
|
font-weight: 400;
|
|
|
|
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
|
|
|
|
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
height: 1px;
|
|
|
|
background-color: var(--color-gray-2);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-07-21 23:31:22 +02:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
2020-08-25 21:25:33 +02:00
|
|
|
p {
|
|
|
|
& + p {
|
|
|
|
margin-top: var(--spacing-s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-26 18:07:11 +02:00
|
|
|
ul,
|
|
|
|
ol {
|
2019-07-21 23:31:22 +02:00
|
|
|
li {
|
2020-08-10 22:47:39 +02:00
|
|
|
position: relative;
|
2019-09-26 18:07:11 +02:00
|
|
|
list-style-position: outside;
|
2020-06-01 19:03:19 +02:00
|
|
|
margin: var(--spacing-xs) var(--spacing-m);
|
2019-09-27 22:03:05 +02:00
|
|
|
margin-bottom: 0;
|
2019-07-21 23:31:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ul--no-style {
|
|
|
|
list-style: none;
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-09-30 23:48:30 +02:00
|
|
|
dl {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
2019-10-03 23:40:54 +02:00
|
|
|
overflow-x: visible;
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-m);
|
2019-09-30 23:48:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dt {
|
2020-06-01 19:03:19 +02:00
|
|
|
flex-basis: 45%;
|
2019-09-30 23:48:30 +02:00
|
|
|
text-align: left;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
dd {
|
2020-06-01 19:03:19 +02:00
|
|
|
flex-basis: 50%;
|
2019-09-30 23:48:30 +02:00
|
|
|
flex-grow: 1;
|
|
|
|
margin: 0;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
dt,
|
|
|
|
dd {
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: var(--spacing-m) var(--spacing-s);
|
2019-09-30 23:48:30 +02:00
|
|
|
|
2019-11-22 22:13:00 +01:00
|
|
|
border-top: 1px solid var(--color-border);
|
2019-09-30 23:48:30 +02:00
|
|
|
|
|
|
|
&:last-of-type {
|
2019-11-22 22:13:00 +01:00
|
|
|
border-bottom: 1px solid var(--color-border);
|
2019-09-30 23:48:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
blockquote {
|
|
|
|
padding: 0.8rem;
|
2019-11-22 22:13:00 +01:00
|
|
|
background-color: var(--color-blockquote-bg);
|
|
|
|
border-left: 0.3rem solid var(--color-blockquote);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
@include font-mono;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
|
|
|
|
2019-06-29 00:21:21 +02:00
|
|
|
hr {
|
|
|
|
width: 100%;
|
|
|
|
height: 1px;
|
2019-11-22 22:13:00 +01:00
|
|
|
background-color: var(--color-border);
|
2019-06-29 00:21:21 +02:00
|
|
|
}
|
|
|
|
|
2019-08-14 18:31:34 +02:00
|
|
|
img,
|
|
|
|
a {
|
|
|
|
-webkit-user-drag: none;
|
|
|
|
}
|
|
|
|
|
2020-03-20 21:08:41 +01:00
|
|
|
img {
|
|
|
|
// Hide alt text when an image fails to load
|
|
|
|
text-indent: -9999px;
|
|
|
|
}
|
|
|
|
|
2020-05-26 19:12:15 +02:00
|
|
|
textarea {
|
|
|
|
min-height: calc(var(--height-input) * 2);
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.columns {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2019-07-21 23:31:22 +02:00
|
|
|
align-items: flex-start;
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
> * {
|
|
|
|
flex-grow: 1;
|
2019-06-17 22:32:38 +02:00
|
|
|
flex-basis: 0;
|
2019-08-27 16:43:42 +02:00
|
|
|
min-width: 15rem;
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-bottom: var(--spacing-l);
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
&:first-child {
|
2020-06-01 19:03:19 +02:00
|
|
|
flex-basis: 1;
|
2018-12-19 06:44:53 +01:00
|
|
|
margin-right: 1.5rem;
|
|
|
|
}
|
|
|
|
}
|
2019-12-18 06:27:08 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
& > * {
|
|
|
|
margin: 0;
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-bottom: var(--spacing-m);
|
2019-12-18 06:27:08 +01:00
|
|
|
width: 100%;
|
2020-01-17 18:56:28 +01:00
|
|
|
flex-basis: auto;
|
2019-12-18 06:27:08 +01:00
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.disabled {
|
|
|
|
opacity: 0.3;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.column {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.column__item:not(:first-child) {
|
|
|
|
padding-left: $spacing-width * 2/3;
|
2019-02-13 17:27:20 +01:00
|
|
|
flex: 1;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.truncated-text {
|
2019-02-18 18:24:56 +01:00
|
|
|
display: -webkit-box;
|
|
|
|
overflow: hidden;
|
|
|
|
-webkit-box-orient: vertical;
|
2019-02-21 23:45:17 +01:00
|
|
|
word-break: break-word;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.busy-indicator__loader {
|
|
|
|
min-width: 16px;
|
|
|
|
min-height: 8px;
|
|
|
|
margin: -1rem 0;
|
|
|
|
padding: 0 30px;
|
|
|
|
|
2019-11-07 20:39:22 +01:00
|
|
|
background: url('../../static/img/busy.gif') no-repeat center center;
|
2018-12-19 06:44:53 +01:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
padding-left: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
padding-right: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.help {
|
|
|
|
display: block;
|
2019-11-22 22:13:00 +01:00
|
|
|
font-size: var(--font-small);
|
|
|
|
color: var(--color-text-help);
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-s);
|
2020-09-04 20:39:55 +02:00
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: var(--spacing-s);
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
.help--warning {
|
2020-03-07 00:11:16 +01:00
|
|
|
@extend .help;
|
|
|
|
color: var(--color-text-help-warning);
|
2020-09-02 22:08:37 +02:00
|
|
|
margin-bottom: var(--spacing-s);
|
2019-02-13 17:27:20 +01:00
|
|
|
}
|
|
|
|
|
2020-02-24 19:20:45 +01:00
|
|
|
.help--inline {
|
|
|
|
@extend .help;
|
|
|
|
margin-top: 0;
|
2020-04-01 20:43:50 +02:00
|
|
|
margin-bottom: 0;
|
2020-02-24 19:20:45 +01:00
|
|
|
}
|
|
|
|
|
2020-08-21 17:18:47 +02:00
|
|
|
.help--card-actions {
|
|
|
|
@extend .help;
|
|
|
|
margin-top: var(--spacing-l);
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.empty {
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-text-empty);
|
2018-12-19 06:44:53 +01:00
|
|
|
font-style: italic;
|
|
|
|
}
|
2020-05-11 17:54:39 +02:00
|
|
|
|
2020-04-01 20:43:50 +02:00
|
|
|
.empty--centered {
|
|
|
|
text-align: center;
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: calc(var(--spacing-l) * 3) 0;
|
2020-04-01 20:43:50 +02:00
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
.qr-code {
|
|
|
|
width: 134px;
|
|
|
|
height: 134px;
|
2019-12-09 18:25:13 +01:00
|
|
|
border: 3px solid white;
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
&.qr-code--right-padding {
|
|
|
|
margin-right: $spacing-vertical * 2/3;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.qr-code--top-padding {
|
|
|
|
margin-top: $spacing-vertical * 2/3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-13 21:16:07 +02:00
|
|
|
.error__wrapper {
|
2020-02-05 04:46:00 +01:00
|
|
|
background-color: var(--color-error);
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: var(--spacing-s);
|
2020-02-05 04:46:00 +01:00
|
|
|
border-radius: var(--border-radius);
|
|
|
|
}
|
|
|
|
|
2020-04-02 20:45:21 +02:00
|
|
|
.error__wrapper--no-overflow {
|
2020-04-13 21:42:15 +02:00
|
|
|
@extend .error__wrapper;
|
2020-04-02 20:45:21 +02:00
|
|
|
max-height: 10rem;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2020-04-13 21:16:07 +02:00
|
|
|
.error__text {
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-text-error);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2020-03-07 00:11:16 +01:00
|
|
|
.help--error {
|
|
|
|
@extend .help;
|
|
|
|
color: var(--color-text-error);
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.thumbnail-preview {
|
|
|
|
width: var(--thumbnail-preview-width);
|
|
|
|
height: var(--thumbnail-preview-height);
|
|
|
|
|
|
|
|
background-position: 50% 50%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
|
|
|
}
|
2019-12-06 17:03:11 +01:00
|
|
|
|
|
|
|
.emoji {
|
|
|
|
font-size: 1.3em;
|
|
|
|
}
|
2020-01-29 19:58:43 +01:00
|
|
|
|
|
|
|
.download-text {
|
|
|
|
font-size: var(--font-xsmall);
|
|
|
|
}
|
2020-02-17 20:12:28 +01:00
|
|
|
|
|
|
|
.notice-message {
|
|
|
|
border-radius: var(--border-radius);
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: var(--spacing-l);
|
2020-02-17 20:12:28 +01:00
|
|
|
background-color: var(--color-primary-alt);
|
|
|
|
}
|
2020-02-21 23:05:10 +01:00
|
|
|
|
2020-08-25 21:54:06 +02:00
|
|
|
.notice-message--above-content {
|
|
|
|
@extend .notice-message;
|
|
|
|
margin-bottom: var(--spacing-l);
|
|
|
|
}
|
|
|
|
|
2020-02-21 23:05:10 +01:00
|
|
|
.privacy-img {
|
|
|
|
height: 10rem;
|
|
|
|
}
|
2020-06-15 16:04:44 +02:00
|
|
|
|
|
|
|
.confirm__label {
|
|
|
|
@extend label;
|
|
|
|
}
|
|
|
|
|
|
|
|
.confirm__value {
|
2020-09-02 22:08:37 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2020-06-15 16:04:44 +02:00
|
|
|
margin-bottom: var(--spacing-m);
|
|
|
|
font-size: var(--font-large);
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-07-23 16:22:57 +02:00
|
|
|
|
2020-08-11 22:32:03 +02:00
|
|
|
.mobile-only {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-10 22:47:39 +02:00
|
|
|
.mobile-hidden {
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2020-07-23 16:22:57 +02:00
|
|
|
}
|