2020-07-05 21:56:09 +01:00
|
|
|
:root {
|
2021-07-20 19:30:49 +01:00
|
|
|
/* FONTS */
|
2021-08-10 18:36:52 +01:00
|
|
|
--main-font: 'Inter var', sans-serif;
|
2021-07-20 19:30:49 +01:00
|
|
|
|
|
|
|
/* UNITS
|
|
|
|
* unit size - every element should be a multiplier of this
|
|
|
|
* main size - used for headers and icons
|
|
|
|
* medium size - same as above, except that the element in question is contained in something else
|
|
|
|
* small size - used in common text, borders
|
|
|
|
*/
|
|
|
|
--unit-size: 0.5rem;
|
2021-08-31 18:33:58 +01:00
|
|
|
--main-size: 1.5rem;
|
|
|
|
--medium-size: 1.2rem;
|
2021-08-09 13:25:08 +01:00
|
|
|
--small-size: 1rem;
|
2021-07-20 19:30:49 +01:00
|
|
|
|
|
|
|
|
2021-07-29 10:27:43 +01:00
|
|
|
|
|
|
|
/* transitions and animations */
|
|
|
|
--cubic-transition: all 200ms cubic-bezier(0, 0.55, 0.45, 1);
|
|
|
|
--fade-in: fadeIn 200ms cubic-bezier(0, 0.55, 0.45, 1);
|
|
|
|
--fade-out: fadeOut 200ms cubic-bezier(0, 0.55, 0.45, 1);
|
2020-07-05 21:56:09 +01:00
|
|
|
}
|
|
|
|
|
2021-09-06 19:06:28 +01:00
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
/* colours and shadows */
|
|
|
|
--bg1: #242434;
|
|
|
|
--bg2: #46465E;
|
|
|
|
--bg3: #8081BA;
|
|
|
|
--bg-button: linear-gradient(180deg, var(--bg2), transparent) !important;
|
|
|
|
|
|
|
|
--translucent: #1A1A2666;
|
|
|
|
--white: #FFFFFF;
|
|
|
|
|
|
|
|
--shadow: 0px 0px 32px 0px #00000066;
|
|
|
|
--shadow-light: 0px 0px 32px 0px #FFFFFF66;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bg {
|
|
|
|
background-image: url(../images/bg.png);
|
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
background-image: url("../images/drop.png") !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
:root {
|
|
|
|
/* colours and shadows */
|
|
|
|
--bg1: #F4F2E8;
|
|
|
|
--bg2: #B5BBB4;
|
|
|
|
--bg3: #6C766B;
|
2021-09-06 20:51:12 +01:00
|
|
|
--bg-button: #F4F2E866 !important;
|
2021-09-06 19:06:28 +01:00
|
|
|
|
|
|
|
--translucent: #F4F2E866;
|
|
|
|
--white: #002B36;
|
|
|
|
|
|
|
|
--shadow: 0px 0px 32px 0px #00000066;
|
|
|
|
--shadow-light: 0px 0px 32px 0px #FFFFFF66;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bg {
|
|
|
|
background-image: url(../images/bg-light.png);
|
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
background-image: url("../images/drop-light.png") !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-08-31 18:33:58 +01:00
|
|
|
a,
|
|
|
|
a:visited {
|
|
|
|
text-decoration: none;
|
|
|
|
color: var(--white);
|
|
|
|
}
|
|
|
|
|
|
|
|
a:focus,
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
color: var(--white);
|
|
|
|
}
|
|
|
|
|
|
|
|
figcaption a:link {
|
|
|
|
font-size: var(--small-size);
|
|
|
|
color: var(--white);
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
all: unset;
|
|
|
|
display: block;
|
|
|
|
height: 2px;
|
2021-09-03 11:51:29 +01:00
|
|
|
background: var(--bg2);
|
2021-08-31 18:33:58 +01:00
|
|
|
}
|
|
|
|
|
2021-09-06 19:06:28 +01:00
|
|
|
summary:focus,
|
|
|
|
summary:hover {
|
|
|
|
cursor: pointer !important;
|
|
|
|
color: var(--bg1);
|
|
|
|
padding-left: var(--unit-size);
|
|
|
|
padding-right: var(--unit-size);
|
|
|
|
|
|
|
|
background: var(--bg3);
|
|
|
|
border-radius: var(--unit-size);
|
|
|
|
|
|
|
|
transition: var(--cubic-transition);
|
|
|
|
}
|
|
|
|
|
|
|
|
summary:focus .icon-details-open,
|
|
|
|
summary:hover .icon-details-open {
|
|
|
|
fill: var(--bg1);
|
|
|
|
transition: var(--cubic-transition);
|
2021-08-31 18:33:58 +01:00
|
|
|
}
|
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
/* BACKGROUND IMG GRADIENT */
|
2021-08-04 21:12:59 +01:00
|
|
|
.bg {
|
|
|
|
background-color: var(--bg3);
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 100% 100%;
|
2021-07-23 11:47:43 +01:00
|
|
|
}
|
|
|
|
|
2021-08-30 21:01:32 +01:00
|
|
|
.anchor-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
/* HEADER AND SIDEPANELS */
|
2021-07-20 13:18:57 +01:00
|
|
|
#header {
|
2021-08-05 17:30:45 +01:00
|
|
|
z-index: 1;
|
2021-08-30 21:01:32 +01:00
|
|
|
font-size: var(--main-size);
|
2021-08-05 17:30:45 +01:00
|
|
|
|
2021-08-10 18:36:52 +01:00
|
|
|
height: 3rem;
|
2021-07-20 19:30:49 +01:00
|
|
|
display: flex;
|
|
|
|
position: fixed;
|
2021-07-28 15:37:54 +01:00
|
|
|
top: 0;
|
2021-08-04 21:12:59 +01:00
|
|
|
background-color: var(--bg1);
|
2021-07-19 19:19:02 +01:00
|
|
|
|
2021-08-05 14:46:17 +01:00
|
|
|
width: 100%;
|
2021-07-28 15:37:54 +01:00
|
|
|
align-items: center;
|
2021-08-30 21:01:32 +01:00
|
|
|
padding: var(--unit-size);
|
2020-06-21 23:56:26 +01:00
|
|
|
|
2021-08-04 21:12:59 +01:00
|
|
|
box-shadow: var(--shadow);
|
2020-06-21 23:56:26 +01:00
|
|
|
}
|
2021-08-10 21:05:47 +01:00
|
|
|
|
2021-07-19 13:06:07 +01:00
|
|
|
#instance {
|
2021-07-20 19:30:49 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-08-18 22:37:34 +01:00
|
|
|
align-self: center;
|
2021-08-21 07:05:54 +01:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2020-06-21 23:56:26 +01:00
|
|
|
}
|
|
|
|
|
2021-08-22 16:26:19 +01:00
|
|
|
#instance h1 {
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
.icon {
|
|
|
|
fill: var(--white);
|
2021-08-31 18:33:58 +01:00
|
|
|
align-self: center;
|
2021-08-10 21:05:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* CURRENT PAGE LINK */
|
|
|
|
.active {
|
2021-08-31 18:33:58 +01:00
|
|
|
font-weight: bold;
|
2021-08-10 21:05:47 +01:00
|
|
|
}
|
|
|
|
|
2021-07-20 15:51:32 +01:00
|
|
|
/* CONTAINS ALL ELEMENTS BESIDES HEADER */
|
|
|
|
.container {
|
2021-08-30 21:01:32 +01:00
|
|
|
margin-top: 3rem;
|
2021-08-28 21:23:25 +01:00
|
|
|
margin-left: 20%;
|
|
|
|
margin-right: 20%;
|
2021-08-31 18:33:58 +01:00
|
|
|
|
|
|
|
padding: var(--unit-size) var(--unit-size) 0 var(--unit-size);
|
2021-07-20 19:30:49 +01:00
|
|
|
}
|
2021-07-20 19:30:49 +01:00
|
|
|
|
2021-07-20 15:51:32 +01:00
|
|
|
/* THE FOCUSED (middle) DIV */
|
|
|
|
.content {
|
2021-07-21 16:39:55 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-08-31 18:33:58 +01:00
|
|
|
padding: var(--unit-size) var(--unit-size) 0 var(--unit-size);
|
2021-07-27 13:51:49 +01:00
|
|
|
|
2021-07-27 16:48:17 +01:00
|
|
|
width: 100%;
|
2021-07-21 19:21:48 +01:00
|
|
|
}
|
|
|
|
|
2021-08-09 13:25:08 +01:00
|
|
|
.markdown-blocks {
|
|
|
|
background-color: var(--translucent);
|
|
|
|
border-radius: 0 0 var(--unit-size) var(--unit-size);
|
|
|
|
border: solid 2px var(--bg2);
|
|
|
|
border-top: solid 2px var(--bg3);
|
|
|
|
padding: var(--unit-size);
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-09 13:25:08 +01:00
|
|
|
.markdown-blocks ul {
|
|
|
|
margin-left: 1em;
|
|
|
|
list-style: disc;
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-09 13:25:08 +01:00
|
|
|
.markdown-blocks ul li {
|
|
|
|
margin-bottom: 0.2em;
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-09 13:25:08 +01:00
|
|
|
.doc-navigation {
|
|
|
|
background-color: var(--translucent);
|
|
|
|
border-radius: var(--unit-size) var(--unit-size) 0 0;
|
|
|
|
border: solid 2px var(--bg2);
|
|
|
|
border-bottom: none;
|
|
|
|
padding: var(--unit-size);
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-09 13:25:08 +01:00
|
|
|
.doc-navigation ul {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-evenly;
|
|
|
|
font-size: var(--main-size);
|
|
|
|
}
|
|
|
|
|
2021-07-21 19:21:48 +01:00
|
|
|
/* NOTES */
|
2021-09-06 20:51:12 +01:00
|
|
|
#replyform {
|
|
|
|
padding: var(--unit-size);
|
|
|
|
margin-top: var(--unit-size);
|
|
|
|
background-color: var(--translucent);
|
|
|
|
border-radius: var(--unit-size);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
font-size: var(--small-size);
|
|
|
|
}
|
|
|
|
#replyform textarea {
|
|
|
|
width: 100%;
|
|
|
|
resize: vertical;
|
|
|
|
margin-top: var(--unit-size);
|
|
|
|
padding: var(--unit-size);
|
|
|
|
}
|
|
|
|
|
2021-09-06 13:08:27 +01:00
|
|
|
.h-entry {
|
|
|
|
margin-top: var(--unit-size);
|
|
|
|
}
|
2021-09-05 17:27:36 +01:00
|
|
|
.h-entry hr {
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
2021-09-06 13:08:27 +01:00
|
|
|
.h-entry a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
.h-entry a:focus {
|
|
|
|
animation-name: highlight;
|
|
|
|
animation-duration: 500ms;
|
|
|
|
animation-timing-function: ease-in-out;
|
2021-07-23 19:28:11 +01:00
|
|
|
}
|
|
|
|
|
2021-09-06 20:51:12 +01:00
|
|
|
.h-entry .embed header {
|
|
|
|
padding: var(--unit-size);
|
|
|
|
}
|
|
|
|
.h-entry .embed .p-summary {
|
|
|
|
padding: var(--unit-size);
|
|
|
|
}
|
2021-07-23 19:28:11 +01:00
|
|
|
.h-entry,
|
2021-07-21 19:21:48 +01:00
|
|
|
.note {
|
2021-08-04 21:12:59 +01:00
|
|
|
background-color: var(--translucent);
|
2021-07-21 19:21:48 +01:00
|
|
|
border-radius: var(--unit-size);
|
|
|
|
}
|
|
|
|
|
2021-09-05 17:27:36 +01:00
|
|
|
.h-entry .replies .h-entry {
|
|
|
|
background-color: unset;
|
|
|
|
padding: 0 var(--unit-size) var(--unit-size) 0;
|
|
|
|
margin-left: var(--medium-size);
|
|
|
|
}
|
|
|
|
|
2021-07-21 19:21:48 +01:00
|
|
|
.note-info {
|
|
|
|
display: flex;
|
2021-08-11 21:45:59 +01:00
|
|
|
justify-content: space-between;
|
2021-08-18 22:37:34 +01:00
|
|
|
align-items: center;
|
2021-08-31 18:33:58 +01:00
|
|
|
|
|
|
|
border: solid 2px var(--bg2);
|
|
|
|
border-bottom: unset;
|
2021-08-18 22:37:34 +01:00
|
|
|
border-radius: var(--unit-size) var(--unit-size) 0 0;
|
2021-07-21 19:21:48 +01:00
|
|
|
|
2021-07-26 18:11:14 +01:00
|
|
|
background-color: var(--translucent);
|
2021-08-11 21:45:59 +01:00
|
|
|
font-size: var(--medium-size);
|
2021-08-31 18:33:58 +01:00
|
|
|
padding: 5px 10px 5px 10px;
|
2021-07-21 19:21:48 +01:00
|
|
|
}
|
2021-08-19 20:37:16 +01:00
|
|
|
|
|
|
|
.note-author {
|
|
|
|
font-size: var(--medium-size);
|
|
|
|
font-weight: bold;
|
|
|
|
display: flex;
|
2021-08-18 22:37:34 +01:00
|
|
|
align-items: center;
|
|
|
|
align-self: center;
|
|
|
|
}
|
2021-07-21 19:21:48 +01:00
|
|
|
|
|
|
|
.note-info .avatar {
|
2021-07-26 18:11:14 +01:00
|
|
|
width: auto;
|
2021-08-11 21:45:59 +01:00
|
|
|
height: var(--medium-size);
|
2021-08-18 22:37:34 +01:00
|
|
|
border-radius: var(--unit-size);
|
2021-08-19 20:37:16 +01:00
|
|
|
margin-right: 4px;
|
2021-07-21 19:21:48 +01:00
|
|
|
}
|
|
|
|
|
2021-08-11 02:49:23 +01:00
|
|
|
/* TODO: icons */
|
|
|
|
.note-actions {
|
2021-08-11 21:45:59 +01:00
|
|
|
display: flex;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-09-05 14:34:30 +01:00
|
|
|
.button-container {
|
2021-08-18 22:37:34 +01:00
|
|
|
width: 1em !important;
|
|
|
|
height: 1em !important;
|
2021-08-11 02:49:23 +01:00
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-09-05 14:34:30 +01:00
|
|
|
.button-container button {
|
2021-08-18 22:37:34 +01:00
|
|
|
all: unset;
|
|
|
|
border: none !important;
|
2021-08-11 21:45:59 +01:00
|
|
|
width: inherit !important;
|
|
|
|
height: inherit !important;
|
2021-08-18 22:37:34 +01:00
|
|
|
background-size: cover !important;
|
2021-09-05 14:34:30 +01:00
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-container button:hover,
|
|
|
|
.button-container button:focus {
|
|
|
|
border: none !important;
|
|
|
|
background: var(--bg3) !important;
|
|
|
|
}
|
2021-08-18 22:37:34 +01:00
|
|
|
|
2021-09-05 14:34:30 +01:00
|
|
|
.favourite-button-container button {
|
2021-08-18 22:37:34 +01:00
|
|
|
-webkit-mask-image: url("../icons/heart.svg") !important;
|
|
|
|
-o-mask-image: url("../icons/heart.svg") !important;
|
|
|
|
-moz-mask-image: url("../icons/heart.svg") !important;
|
2021-08-11 18:42:15 +01:00
|
|
|
mask-image: url("../icons/heart.svg") !important;
|
|
|
|
}
|
2021-09-05 14:34:30 +01:00
|
|
|
.reply-button-container button {
|
|
|
|
-webkit-mask-image: url("../icons/reply.svg") !important;
|
|
|
|
-o-mask-image: url("../icons/reply.svg") !important;
|
|
|
|
-moz-mask-image: url("../icons/reply.svg") !important;
|
|
|
|
mask-image: url("../icons/reply.svg") !important;
|
|
|
|
}
|
|
|
|
.repeat-button-container button {
|
|
|
|
-webkit-mask-image: url("../icons/repeat.svg") !important;
|
|
|
|
-o-mask-image: url("../icons/repeat.svg") !important;
|
|
|
|
-moz-mask-image: url("../icons/repeat.svg") !important;
|
|
|
|
mask-image: url("../icons/repeat.svg") !important;
|
2021-08-18 22:37:34 +01:00
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-09-05 14:34:30 +01:00
|
|
|
.note-actions-unset {
|
2021-08-11 18:42:15 +01:00
|
|
|
background: var(--bg2) !important;
|
2021-08-11 02:49:23 +01:00
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-09-05 14:34:30 +01:00
|
|
|
.note-actions-set {
|
2021-08-11 18:42:15 +01:00
|
|
|
background: var(--white) !important;
|
2021-08-11 02:49:23 +01:00
|
|
|
}
|
|
|
|
|
2021-07-21 19:21:48 +01:00
|
|
|
.note-content {
|
2021-08-31 18:33:58 +01:00
|
|
|
border: solid 2px var(--bg2);
|
|
|
|
border-top: unset;
|
|
|
|
border-radius: 0 0 var(--unit-size) var(--unit-size);
|
|
|
|
|
2021-07-21 19:21:48 +01:00
|
|
|
padding: var(--small-size);
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-07-21 19:21:48 +01:00
|
|
|
.note-content p {
|
|
|
|
padding-left: var(--small-size);
|
|
|
|
padding-right: var(--small-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
.note-attachments {
|
|
|
|
display: flex;
|
2021-08-18 22:37:34 +01:00
|
|
|
max-width: 100%;
|
2021-07-21 19:21:48 +01:00
|
|
|
}
|
2021-07-24 17:38:57 +01:00
|
|
|
|
2021-07-29 17:29:25 +01:00
|
|
|
.note-attachments > figure {
|
2021-07-27 16:48:17 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-07-21 19:21:48 +01:00
|
|
|
margin: 0;
|
2021-07-29 17:29:25 +01:00
|
|
|
border-radius: var(--unit-size);
|
|
|
|
background-color: var(--translucent);
|
2021-07-21 19:21:48 +01:00
|
|
|
padding: var(--small-size);
|
|
|
|
}
|
2021-07-24 17:38:57 +01:00
|
|
|
|
2021-07-29 17:29:25 +01:00
|
|
|
.note-attachments > figure figcaption {
|
2021-07-28 15:54:58 +01:00
|
|
|
display: flex;
|
|
|
|
padding-top: var(--small-size);
|
|
|
|
}
|
|
|
|
|
2021-07-29 17:29:25 +01:00
|
|
|
.note-attachments > figure img,
|
|
|
|
.note-attachments > figure video {
|
2021-07-27 16:48:17 +01:00
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
2021-08-16 21:59:19 +01:00
|
|
|
/* SECTIONS */
|
|
|
|
.section-widget {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
background-color: var(--translucent);
|
|
|
|
border-radius: var(--unit-size);
|
|
|
|
border: solid 2px var(--bg2);
|
|
|
|
|
|
|
|
color: var(--white);
|
|
|
|
}
|
|
|
|
|
2021-08-31 18:33:58 +01:00
|
|
|
.section-title-details {
|
2021-08-16 21:59:19 +01:00
|
|
|
font-size: var(--main-size);
|
2021-09-06 13:08:27 +01:00
|
|
|
font-weight: 700;
|
2021-08-16 21:59:19 +01:00
|
|
|
|
|
|
|
border-radius: var(--unit-size);
|
2021-08-31 18:33:58 +01:00
|
|
|
padding: 5px 10px 5px 10px;
|
2021-08-16 21:59:19 +01:00
|
|
|
|
|
|
|
background-color: var(--translucent);
|
|
|
|
}
|
2021-08-31 18:33:58 +01:00
|
|
|
.section-title-details[open] svg {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
animation: var(--fade-out)
|
2021-08-16 21:59:19 +01:00
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-31 18:33:58 +01:00
|
|
|
/* SECTION DETAILS CLOSED */
|
|
|
|
.section-title-details:not([open]) svg {
|
|
|
|
transform: initial;
|
|
|
|
animation: var(--fade-in);
|
2021-08-16 21:59:19 +01:00
|
|
|
}
|
|
|
|
|
2021-08-31 18:33:58 +01:00
|
|
|
.section-title-summary {
|
2021-08-16 21:59:19 +01:00
|
|
|
display: flex;
|
2021-08-31 18:33:58 +01:00
|
|
|
justify-content: space-between;
|
2021-08-16 21:59:19 +01:00
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-31 18:33:58 +01:00
|
|
|
.section-form {
|
|
|
|
padding: var(--unit-size);
|
2021-08-16 21:59:19 +01:00
|
|
|
}
|
2021-09-06 14:22:36 +01:00
|
|
|
.form-group {
|
|
|
|
margin-bottom: var(--unit-size);
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-16 21:59:19 +01:00
|
|
|
.help-text {
|
|
|
|
font-style: italic;
|
|
|
|
font-size: var(--small-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
.section-form-options {
|
|
|
|
display: block !important;
|
|
|
|
margin-bottom: var(--unit-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
.section-form-textarea {
|
|
|
|
border-radius: var(--unit-size);
|
|
|
|
background-color: var(--translucent);
|
|
|
|
color: var(--white);
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
height: calc(6 * var(--main-size));
|
|
|
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
margin-top: var(--unit-size);
|
|
|
|
margin-bottom: var(--unit-size);
|
|
|
|
padding: var(--unit-size);
|
|
|
|
resize: vertical;
|
|
|
|
}
|
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
/* BUTTONS AND INPUT SHENANIGANS */
|
2021-09-06 19:06:28 +01:00
|
|
|
label, button {
|
|
|
|
font-weight: bold !important;
|
2021-09-03 11:51:29 +01:00
|
|
|
}
|
|
|
|
|
2021-09-06 14:22:36 +01:00
|
|
|
select,
|
|
|
|
button,
|
2021-08-18 22:37:34 +01:00
|
|
|
textarea,
|
2021-09-06 14:22:36 +01:00
|
|
|
input {
|
2021-08-18 22:37:34 +01:00
|
|
|
font-size: inherit !important;
|
2021-08-31 18:33:58 +01:00
|
|
|
display: block;
|
2021-08-19 20:37:16 +01:00
|
|
|
position: relative;
|
|
|
|
color: var(--white);
|
2021-09-06 19:33:51 +01:00
|
|
|
padding: 2px 8px;
|
2021-09-06 19:06:28 +01:00
|
|
|
border: 2px solid var(--bg2) !important;
|
|
|
|
border-radius: var(--unit-size) !important;
|
2021-09-06 20:51:12 +01:00
|
|
|
background-color: var(--translucent);
|
2021-08-18 22:37:34 +01:00
|
|
|
}
|
2021-09-06 19:33:51 +01:00
|
|
|
button {
|
2021-09-06 20:51:12 +01:00
|
|
|
background: var(--bg-button);
|
2021-09-06 19:33:51 +01:00
|
|
|
padding: 5px 10px;
|
|
|
|
}
|
2021-08-18 22:37:34 +01:00
|
|
|
|
2021-09-06 19:06:28 +01:00
|
|
|
select {
|
|
|
|
-webkit-appearance: none !important;
|
|
|
|
-moz-appearance: none !important;
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 16px;
|
|
|
|
background-position: center right 5px;
|
|
|
|
|
2021-09-06 14:22:36 +01:00
|
|
|
color: var(--white) !important;
|
2021-09-06 19:06:28 +01:00
|
|
|
border: 2px solid var(--bg2);
|
|
|
|
border-radius: var(--unit-size);
|
2021-08-10 21:05:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type=radio] {
|
|
|
|
border: solid 0.25em var(--bg2) !important;
|
|
|
|
background-color: var(--bg1) !important;
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-16 21:59:19 +01:00
|
|
|
input[type=checkbox] {
|
|
|
|
background-color: var(--bg2) !important;
|
|
|
|
background-size: cover;
|
2021-09-03 11:51:29 +01:00
|
|
|
margin-left: 5px;
|
2021-08-16 21:59:19 +01:00
|
|
|
|
2021-08-19 20:37:16 +01:00
|
|
|
-webkit-mask-image: url("../icons/check-off.svg") !important;
|
|
|
|
-o-mask-image: url("../icons/check-off.svg") !important;
|
|
|
|
-moz-mask-image: url("../icons/check-off.svg") !important;
|
|
|
|
mask-image: url("../icons/check-off.svg") !important;
|
2021-08-16 21:59:19 +01:00
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-09-06 19:06:28 +01:00
|
|
|
/* DISABLED STATE TEXT COLOR */
|
|
|
|
: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) !important;
|
2021-08-16 21:59:19 +01:00
|
|
|
}
|
|
|
|
|
2021-09-06 19:06:28 +01:00
|
|
|
/* HOVER AND FOCUS */
|
2021-09-06 14:22:36 +01:00
|
|
|
textarea:hover,
|
|
|
|
textarea:focus,
|
2021-08-10 21:05:47 +01:00
|
|
|
button:hover,
|
|
|
|
button:focus,
|
|
|
|
input:hover,
|
|
|
|
input:focus {
|
2021-09-06 14:22:36 +01:00
|
|
|
border: solid 2px var(--bg3) !important;
|
2021-08-10 21:05:47 +01:00
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
2021-09-06 19:06:28 +01:00
|
|
|
select:hover,
|
|
|
|
select:focus {
|
|
|
|
border-color: var(--bg3) !important;
|
|
|
|
}
|
|
|
|
|
2021-09-06 14:22:36 +01:00
|
|
|
input[type=checkbox]:hover,
|
|
|
|
input[type=checkbox]:focus {
|
|
|
|
background-color: var(--bg3) !important;
|
|
|
|
}
|
2021-09-06 19:06:28 +01:00
|
|
|
|
|
|
|
input[type=radio]:checked {
|
|
|
|
background-color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=checkbox]:checked {
|
|
|
|
background-color: var(--bg3) !important;
|
|
|
|
-webkit-mask-image: url("../icons/check-on.svg") !important;
|
|
|
|
-o-mask-image: url("../icons/check-on.svg") !important;
|
|
|
|
-moz-mask-image: url("../icons/check-on.svg") !important;
|
|
|
|
mask-image: url("../icons/check-on.svg") !important;
|
2021-08-10 21:05:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* file selector */
|
|
|
|
input[type=file] {
|
2021-08-31 18:33:58 +01:00
|
|
|
font-family: var(--main-font) !important;
|
|
|
|
font-weight: normal !important;
|
2021-09-06 19:06:28 +01:00
|
|
|
background: var(--bg-button);
|
2021-08-31 18:33:58 +01:00
|
|
|
border: 2px solid var(--bg2);
|
|
|
|
border-radius: var(--unit-size);
|
2021-08-10 21:05:47 +01:00
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-10 21:05:47 +01:00
|
|
|
/* button part of file selector */
|
|
|
|
::file-selector-button {
|
2021-09-06 13:08:27 +01:00
|
|
|
font-family: var(--main-font) !important;
|
2021-08-31 18:33:58 +01:00
|
|
|
font-weight: bold !important;
|
2021-08-10 21:05:47 +01:00
|
|
|
color: var(--white) !important;
|
|
|
|
}
|
|
|
|
|
2021-09-06 19:06:28 +01:00
|
|
|
/* ACCESSIBILITY MENU */
|
2021-08-30 17:56:59 +01:00
|
|
|
.accessibility-menu {
|
|
|
|
position: absolute;
|
|
|
|
left: -1000px;
|
|
|
|
top: -1000px;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
overflow: hidden;
|
|
|
|
z-index: 5000;
|
|
|
|
background-color: var(--bg1);
|
|
|
|
padding: var(--unit-size);
|
|
|
|
border: solid 2px var(--bg3);
|
|
|
|
border-radius: var(--unit-size);
|
|
|
|
box-shadow: var(--shadow);
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-30 17:56:59 +01:00
|
|
|
.accessibility-menu ul {
|
|
|
|
list-style-type: disc;
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-30 17:56:59 +01:00
|
|
|
#anchor-menu:target + .accessibility-menu,
|
|
|
|
.accessibility-menu:focus {
|
|
|
|
top: var(--unit-size) !important;
|
|
|
|
left: var(--unit-size) !important;
|
|
|
|
width: 30% !important;
|
|
|
|
height: min-content !important;
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-30 17:56:59 +01:00
|
|
|
.anchor-hidden {
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2021-08-30 19:16:48 +01:00
|
|
|
|
2021-08-31 18:33:58 +01:00
|
|
|
/* ANIMATIONS */
|
|
|
|
@keyframes fadeIn {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(-10px);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
opacity: unset;
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeOut {
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(-10px);
|
|
|
|
}
|
|
|
|
|
|
|
|
0% {
|
|
|
|
opacity: unset;
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-30 19:16:48 +01:00
|
|
|
@keyframes highlight {
|
|
|
|
0% {
|
|
|
|
box-shadow: initial;
|
2021-08-31 18:33:58 +01:00
|
|
|
border-radius: var(--unit-size);
|
2021-08-30 19:16:48 +01:00
|
|
|
}
|
2021-08-31 18:33:58 +01:00
|
|
|
|
2021-08-30 19:16:48 +01:00
|
|
|
50% {
|
|
|
|
border-radius: var(--unit-size);
|
2021-09-06 19:06:28 +01:00
|
|
|
box-shadow: inset 0 20px 40px var(--white);
|
|
|
|
transition: box-shadow 0.3s ease-in-out;
|
2021-08-30 19:16:48 +01:00
|
|
|
}
|
2021-08-31 18:33:58 +01:00
|
|
|
|
2021-08-30 19:16:48 +01:00
|
|
|
100% {
|
|
|
|
box-shadow: initial;
|
2021-08-31 18:33:58 +01:00
|
|
|
border-radius: var(--unit-size);
|
2021-08-30 19:16:48 +01:00
|
|
|
}
|
2021-09-06 19:06:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* MEDIA QUERIES */
|
|
|
|
/* sidepanels need to be shown by default on desktop, hidden on mobile */
|
|
|
|
.panel .panel-content {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
font-size: var(--small-size);
|
|
|
|
|
|
|
|
/* should remain in place for the user */
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
/* should be bellow header */
|
|
|
|
margin-top: 3rem;
|
|
|
|
|
|
|
|
/* should occupy the entire vertical real estate */
|
|
|
|
height: calc(100% - 3rem);
|
|
|
|
|
|
|
|
padding: var(--unit-size);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 1200px) {
|
|
|
|
#panel-left-icon,
|
|
|
|
#panel-right-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel .panel-content {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 20%;
|
|
|
|
}
|
|
|
|
|
|
|
|
a[id|="anchor"]:target + * {
|
|
|
|
animation-name: highlight;
|
|
|
|
animation-duration: 600ms;
|
|
|
|
animation-timing-function: ease-in-out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
/* content should occupy the entire width at this size */
|
|
|
|
.container {
|
|
|
|
margin-left: unset;
|
|
|
|
margin-right: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#panel-left-toggle:not(:checked) ~ .panel-content,
|
|
|
|
#panel-right-toggle:not(:checked) ~ .panel-content {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#panel-left-toggle:checked ~ .panel-content,
|
|
|
|
#panel-right-toggle:checked ~ .panel-content,
|
|
|
|
a[id|="anchor"]:target ~ .panel-content {
|
|
|
|
display: flex !important;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
background-color: var(--bg2);
|
|
|
|
background-image: url(../images/bg.png);
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 100% 100%;
|
2021-09-06 20:51:12 +01:00
|
|
|
z-index: auto;
|
2021-09-06 19:06:28 +01:00
|
|
|
}
|
2021-09-06 19:33:51 +01:00
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
#panel-left-toggle:checked ~ .panel-content,
|
|
|
|
#panel-right-toggle:checked ~ .panel-content,
|
|
|
|
a[id|="anchor"]:target ~ .panel-content {
|
|
|
|
background-image: url(../images/bg.png);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
#panel-left-toggle:checked ~ .panel-content,
|
|
|
|
#panel-right-toggle:checked ~ .panel-content,
|
|
|
|
a[id|="anchor"]:target ~ .panel-content {
|
|
|
|
background-image: url(../images/bg-light.png);
|
|
|
|
}
|
|
|
|
}
|
2021-07-20 15:51:32 +01:00
|
|
|
}
|