[CSS] Colours by classes. Refactored all CSS.

This commit is contained in:
Eliseu Amaro 2021-10-05 16:03:17 +01:00
parent caa04525bd
commit 2a2331d692
9 changed files with 762 additions and 782 deletions

View File

@ -1,404 +1,650 @@
@import url("../fonts/poppins/poppins.css");
@import url("../fonts/opensans/opensans.css");
@import url("widgets/buttons.css"); @import url("widgets/buttons.css");
@import url("widgets/sections.css"); @import url("widgets/sections.css");
@import url("pages/feeds.css"); @import url("pages/feeds.css");
@import url("pages/settings.css"); @import url("pages/settings.css");
@import url("../fonts/poppins/poppins.css"); :link,
@import url("../fonts/opensans/opensans.css"); :visited {
text-decoration: none
:root {
/* FONTS */
--display-font: 'Poppins', sans-serif;
--main-font: 'Open Sans', sans-serif;
/* 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.6rem;
--main-size: 1.62rem;
--medium-size: 1.3rem;
--small-size: 1rem;
/* 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);
} }
ul,
@media (prefers-color-scheme: dark) { ol {
:root { list-style: none
/* colours and shadows */ }
--bg1: #242434; pre,
--bg2: #46465E; form,
--bg3: #8081BA; body,
--bg-button: linear-gradient(180deg, var(--bg2), transparent) !important; html,
blockquote,
--translucent: #1A1A2666; fieldset,
--white: #FFFFFF; input,
textarea {
--shadow: 0px 0px 16px 0px #00000016; margin: 0;
--shadow-light: 0px 0px 16px 0px #FFFFFF16; padding: 0;
} border: none
}
.bg { a img,
background-color: var(--bg1); :link img,
background-image: url("../images/background_dark.png"); :visited img {
} border: none
}
body:after { address {
content: ""; font-style: normal
position: fixed; }
top: 0; :focus {
bottom: 0; outline: none
left: 0; }
right: 0; ::-moz-focus-inner {
z-index: -1; border: 0
background-image: url(data:image/png;base64,iVBORw0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JoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==); details summary>* {
opacity: 21%; margin: unset;
filter: grayscale(100%); padding: unset
} }
details>summary {
select { list-style: none
background-image: url("../images/select_drop_dark.png") !important; }
details>summary::-webkit-details-marker {
display: none
}
@supports not (-ms-ime-align: auto) {
details summary {
cursor: pointer
} }
} }
[hidden] {
@media (prefers-color-scheme: light) { display: none
:root {
/* colours and shadows */
--bg1: #eceff4;
--bg2: #4c566a66;
--bg3: #2e3440;
--bg-button: #d8dee966 !important;
--translucent: #eceff488;
--white: #2e3440;
--shadow: 0px 0px 16px 0px #00000016;
--shadow-light: 0px 0px 16px 0px #FFFFFF16;
}
.bg {
background-color: var(--bg1);
background-image: url(../images/background_light.png);
}
select {
background-image: url("../images/select_drop_light.png") !important;
}
} }
* {
box-sizing: border-box !important
}
body,
html { html {
scroll-margin-top: 3rem; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-attachment: fixed;
font-family: 'Open Sans', sans-serif;
font-size: 1rem
}
h1,
h2,
h3,
h4,
h5,
h6 {
all: unset;
display: block;
font-family: 'Poppins', sans-serif
}
h1 {
font-size: 1.62rem;
font-weight: 700;
margin-bottom: 16.2px
}
h2 {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 13px
}
h3 {
font-size: 1rem;
font-weight: 600;
margin-bottom: 10px
}
h4,
h5 {
font-size: 1rem;
font-weight: 400;
margin-bottom: 6.1px
}
p {
font-family: 'Open Sans', sans-serif;
font-size: 1rem;
font-weight: 400;
margin: unset
}
p:first-line {
padding-left: 1rem
}
p:first-line {
margin-top: 0;
margin-bottom: 10px
}
p:not(:first-line) {
margin-top: 10px;
margin-bottom: 10px
}
input[type=text], input[type=password], textarea {
font-family: 'Open Sans', sans-serif;
font-weight: 400;
padding: 4px 6px;
}
ul {
text-decoration: none;
margin: 0;
padding: 0;
list-style: none
}
li {
margin: 0;
padding: 0
} }
*:focus { body:after {
-webkit-box-shadow: inset 0 0 0 3px var(--bg3); content: "";
-moz-box-shadow: inset 0 0 0 3px var(--bg3); position: fixed;
box-shadow: inset 0 0 0 3px var(--bg3); top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: -1;
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAALEklEQVRoQ13ajdEMXRCG4Z0I2ASIgAiIgAiI4BUBERABERABERABERABEfjm7vqurS5b9ZrdmXP69H8/3eN48uTJ9dmzZ5dHjx5d3r17d/n27dt8//Hjx1x71r2PHz9e/vz5c3n+/Pnl9evXlw8fPlxevHgxa379+jXP2vPgwYNZf9Kda/uj29rWRaffb9++va1rX/Sice/evVl3d3c3NB4/fjz3v379Ovu619+rV68ufdrbs+MkfH3z5s0cGPE29qBP91vYxp716ZCnT5/O7763D9MxYf+XL19uAnY/AVqfcP3ueUK3/9OnT3OlhISOTuvipbXt65riuvYsYfF+/Pz589oBLXj48OFcY8xhMdDGNnz//n2EeP/+/TzvL032Z59rzCVsioipvkejw1sfjc1UzPdJmJ4nWOf2Sfsnnzf+opFgWSrviO7x+/fvazdfvnx5c5U20nIH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4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
opacity: 21%;
filter: grayscale(100%)
}
@media (prefers-color-scheme: dark) {
button:focus,
button:hover,
input:focus,
input:hover,
select:focus,
select:hover,
textarea:focus,
textarea:hover {
-webkit-box-shadow: inset 0 0 0 2px #8081BA !important;
-moz-box-shadow: inset 0 0 0 2px #8081BA !important;
box-shadow: inset 0 0 0 2px #8081BA !important
}
*:focus {
-webkit-box-shadow: inset 0 0 0 2px #8081BA;
-moz-box-shadow: inset 0 0 0 2px #8081BA;
box-shadow: inset 0 0 0 2px #8081BA
}
#header,
.header-extra-forms-open,
.section-title-details,
.set-background-color-hard,
input[type=checkbox]:checked~.panel-content,
input[type=radio] {
background-color: #242434 !important
}
.button-container,
.note-actions-set,
.set-background-color-soft,
hr,
input[type=checkbox] {
background-color: #46465E !important
}
#replyform,
.doc-navigation,
.h-entry,
.markdown-blocks,
.profile,
.section-attachments,
.section-widget,
.set-background-color-alpha,
button,
input,
select,
textarea,
.section-settings,
.section-settings ul {
background-color: #1A1A2666 !important
}
.set-background-color-gradient,
button:not(.button-container),
input[type=file] {
background: linear-gradient(180deg, #46465E, transparent) !important
}
.note-info {
background: linear-gradient(to left, #1A1A2666, transparent) !important
}
.section-settings hr {
background-image: linear-gradient(to right, #1A1A2666, transparent 90%);
}
.form .separator {
background-image: linear-gradient(to bottom, #1A1A2666, transparent 90%);
}
.button-container:focus,
.button-container:hover,
.set-background-color-accent,
input[type=checkbox]:focus,
input[type=checkbox]:hover,
input[type=radio]:focus,
input[type=radio]:hover {
background-color: #8081BA !important
}
.note-actions-set,
.set-background-color-foreground,
input[type=radio]:checked {
background-color: #FFF !important
}
*,
.set-foreground-color,
::file-selector-button,
input[type=file] {
color: #FFF;
fill: #FFF
}
.accessibility-menu,
.set-border-accent {
border: 2px solid #8081BA
}
.doc-navigation,
.h-entry,
.markdown-blocks,
.section-widget,
.set-border-soft,
button,
input,
input[type=radio],
select,
textarea,
.section-settings,
.section-settings ul {
border: 2px solid #46465E !important
}
#header,
.h-entry,
.header-extra-forms-open,
.profile,
.set-shadow-dark,
button,
input,
select,
textarea {
box-shadow: 0 0 16px 0 #00000016
}
.set-shadow-light {
box-shadow: 0 0 16px 0 #FFFFFF16
}
.bg {
background-image: url("../images/background_dark.png")
}
select {
background-image: url("../images/select_drop_dark.png") !important
}
}
@media (prefers-color-scheme: light) {
button:focus,
button:hover,
input:focus,
input:hover,
select:focus,
select:hover,
textarea:focus,
textarea:hover {
-webkit-box-shadow: inset 0 0 0 2px #2e3440 !important;
-moz-box-shadow: inset 0 0 0 2px #2e3440 !important;
box-shadow: inset 0 0 0 2px #2e3440 !important
}
*:focus {
-webkit-box-shadow: inset 0 0 0 2px #2e3440;
-moz-box-shadow: inset 0 0 0 2px #2e3440;
box-shadow: inset 0 0 0 2px #2e3440
}
#header,
.header-extra-forms-open,
.section-title-details,
.set-background-color-hard,
input[type=checkbox]:checked~.panel-content,
input[type=radio] {
background-color: #eceff4 !important
}
.note-actions-set,
.set-background-color-soft,
hr,
input[type=checkbox] {
background-color: #4c566a66 !important
}
#replyform,
.doc-navigation,
.h-entry,
.markdown-blocks,
.profile,
.section-attachments,
.section-widget,
.set-background-color-alpha,
.section-settings,
.section-settings ul,
button,
input,
select,
textarea {
background-color: #eceff488
}
.set-background-color-gradient,
button:not(.button-container),
input[type=file] {
background: linear-gradient(180deg, #d8dee966, transparent) !important
}
.note-info {
background: linear-gradient(to left, #eceff488, transparent) !important
}
.section-settings hr {
background-image: linear-gradient(to right, #d8dee966, transparent 90%);
}
.form .separator {
background-image: linear-gradient(to bottom, #d8dee966, transparent 90%);
}
.button-container:focus,
.button-container:hover,
.set-background-color-accent,
input[type=checkbox]:focus,
input[type=checkbox]:hover,
input[type=radio]:focus,
input[type=radio]:hover {
background-color: #2e3440 !important
}
.note-actions-unset {
background-color: #2e344055 !important
}
.note-actions-set,
.set-background-color-foreground,
input[type=radio]:checked {
background-color: #2e3440 !important
}
*,
.set-foreground-color,
::file-selector-button,
input[type=file] {
color: #2e3440 !important;
fill: #2e3440 !important
}
.accessibility-menu,
.set-border-accent {
border: 2px solid #2e3440
}
.doc-navigation,
.h-entry,
.markdown-blocks,
.section-widget,
.set-border-soft,
button,
input,
input[type=radio],
select,
textarea,
.section-settings,
.section-settings ul {
border: 2px solid #4c566a66 !important
}
#header,
.h-entry,
.header-extra-forms-open,
.profile,
.set-shadow-dark,
button,
input,
select,
textarea {
box-shadow: 0 0 16px 0 #00000016
}
.set-shadow-light {
box-shadow: 0 0 16px 0 #FFFFFF16
}
.bg {
background-image: url("../images/background_light.png")
}
select {
background-image: url("../images/select_drop_light.png") !important
}
}
html {
scroll-margin-top: 3rem
} }
.bg { .bg {
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%
} }
a, a,
a:visited {text-decoration: none;color: var(--white);} a:visited {
a:hover {text-decoration: underline;color: var(--white);} text-decoration: none
hr {all: unset;display: block;height: 1px;background: var(--bg2);} }
.h-entry img {background: repeating-conic-gradient(#ffffff66 0deg 90deg,#ffffff33 0deg 180deg) 0 0/40px 40px round;} a:hover {
.icon {fill: var(--white);align-self: center;} text-decoration: underline
.active {font-weight: bold;} }
.anchor-hidden {width: 1px;height: 1px;overflow: hidden;} hr {
all: unset;
display: block;
height: 1px
}
.h-entry img {
background: repeating-conic-gradient(#ffffff66 0deg 90deg, #ffffff33 0deg 180deg) 0 0/40px 40px round
}
.icon {
align-self: center
}
.active {
font-weight: bold
}
.anchor-hidden {
width: 1px;
height: 1px;
overflow: hidden
}
.accessibility-menu { .accessibility-menu {
display: block; display: block;
position: absolute; position: absolute;
z-index: 999; z-index: 999;
top: -90%; top: -90%;
left: -90%; left: -90%;
width: 30%; width: 30%;
height: min-content; height: min-content;
padding: 0.6rem;
background-color: var(--bg1); border-radius: 0.6rem
padding: var(--unit-size);
border: solid 2px var(--bg3);
border-radius: var(--unit-size);
box-shadow: var(--shadow);
} }
.accessibility-menu ul { .accessibility-menu ul {
list-style-type: disc; list-style-type: disc;
margin-left: var(--medium-size); margin-left: 1.3rem
} }
.accessibility-menu:focus-within:not(:active) { .accessibility-menu:focus-within:not(:active) {
top: var(--unit-size); top: 0.6rem;
left: var(--unit-size); left: 0.6rem
} }
/* HEADER AND INSTANCE NAME */
#header { #header {
z-index: 1; z-index: 1;
font-family: var(--display-font); font-family: 'Poppins', sans-serif;
font-size: var(--main-size); font-size: 1.62rem;
height: 3rem; height: 3rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
position: fixed; position: fixed;
top: 0; top: 0;
background-color: var(--bg1);
width: 100%; width: 100%;
align-items: center; align-items: center;
padding: var(--unit-size); padding: 0.6rem
box-shadow: var(--shadow);
} }
.header-instance { .header-instance {
display: flex; display: flex;
position: absolute; position: absolute;
text-align: center; text-align: center;
align-items: center; align-items: center;
align-self: center; align-self: center;
margin-left: auto; margin-left: auto
} }
.header-instance>* {
.header-instance > * { margin: unset
margin: unset;
} }
.header-extra-forms { .header-extra-forms {
justify-self: flex-end; justify-self: flex-end;
margin-left: auto; margin-left: auto
} }
.header-extra-forms[open]>*:not(summary) {
.header-extra-forms[open] > *:not(summary) {
z-index: 2; z-index: 2;
width: 19vw;
background-color: var(--bg1);
padding: var(--unit-size);
border-radius: 0 0 var(--unit-size) var(--unit-size);
box-shadow: var(--shadow);
font-size: var(--small-size);
position: absolute; position: absolute;
top: 100%; top: 100%;
right: 0; right: 0;
width: 19vw;
font-size: 1rem;
border-radius: 0 0 0.6rem 0.6rem;
padding: 0.6rem
} }
/* CONTAINS ALL ELEMENTS BESIDES HEADER */
.content-wrapper { .content-wrapper {
position: relative; position: relative;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
justify-content: center; justify-content: center;
padding: var(--unit-size) var(--unit-size) 0 var(--unit-size); padding: 0.6rem 0.6rem 0
} }
/* THE FOCUSED (middle) DIV */
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: var(--unit-size) var(--unit-size) 0 var(--unit-size); padding: 0.6rem 0.6rem 0;
width: 100%
width: 100%;
} }
.markdown-blocks { .markdown-blocks {
background-color: var(--translucent); border-radius: 0 0 0.6rem 0.6rem;
border-radius: 0 0 var(--unit-size) var(--unit-size); padding: 0.6rem
border: solid 2px var(--bg2);
border-top: solid 2px var(--bg3);
padding: var(--unit-size);
} }
.markdown-blocks ul { .markdown-blocks ul {
margin-left: 1em; margin-left: 1em;
list-style: disc; list-style: disc
} }
.markdown-blocks ul li { .markdown-blocks ul li {
margin-bottom: 0.2em; margin-bottom: 0.2em
} }
.doc-navigation { .doc-navigation {
background-color: var(--translucent); border-radius: 0.6rem 0.6rem 0 0;
border-radius: var(--unit-size) var(--unit-size) 0 0;
border: solid 2px var(--bg2);
border-bottom: none; border-bottom: none;
padding: var(--unit-size); padding: 0.6rem
} }
.doc-navigation ul { .doc-navigation ul {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
font-size: var(--main-size); font-size: 1.62rem
} }
/* REPLY PAGE */
#replyform { #replyform {
padding: var(--unit-size); padding: 0.6rem;
margin-top: var(--unit-size); margin-top: 0.6rem;
background-color: var(--translucent); border-radius: 0.6rem;
border-radius: var(--unit-size);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-size: var(--small-size); font-size: 1rem
} }
#replyform textarea { #replyform textarea {
width: 100%; width: 100%;
resize: vertical; resize: vertical;
margin-top: var(--unit-size); margin-top: 0.6rem;
padding: var(--unit-size); padding: 0.6rem
} }
/* MEDIA QUERIES */
.content-wrapper { .content-wrapper {
top: 3rem; top: 3rem;
width: 62vw; width: 62vw
} }
/* sidepanels need to be shown by default on desktop, hidden on mobile */
.panel .panel-content { .panel .panel-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-family: var(--main-font); font-family: 'Open Sans', sans-serif;
font-size: var(--small-size); font-size: 1rem;
/* should remain in place for the user */
position: fixed; position: fixed;
top: 0; top: 0;
/* should be bellow header */
margin-top: 3rem; margin-top: 3rem;
/* should occupy the entire vertical real estate */
height: calc(100% - 3rem); height: calc(100% - 3rem);
padding: 0.6rem;
padding: var(--unit-size); overflow-y: auto
overflow-y: auto;
} }
@media only screen and (min-width: 1281px) {
@media only screen
and (min-width: 1281px) {
.content { .content {
padding: var(--unit-size) var(--main-size) 0 var(--main-size); padding: 0.6rem 1.62rem 0
} }
.panel .panel-content { .panel .panel-content {
width: 19vw; width: 19vw
} }
a[id|="anchor"]:target+.accessibility-target {
a[id|="anchor"]:target + .accessibility-target {
animation-name: highlight; animation-name: highlight;
animation-duration: 600ms; animation-duration: 600ms;
animation-timing-function: ease-in-out; animation-timing-function: ease-in-out
} }
} }
@media only screen and (max-width: 1280px) {
@media only screen
and (max-width: 1280px) {
/* content should occupy the entire width at this size */
.content-wrapper { .content-wrapper {
width: 100%; width: 100%
} }
.content { .content {
max-width: 100%; max-width: 100%
} }
.header-extra-forms[open]>*:not(summary) {
.header-extra-forms[open] > *:not(summary) { width: 100%
width: 100%;
} }
#panel-left-toggle:not(:checked)~.panel-content,
#panel-left-toggle:not(:checked) ~ .panel-content, #panel-right-toggle:not(:checked)~.panel-content {
#panel-right-toggle:not(:checked) ~ .panel-content { display: none
display: none;
} }
#panel-left-toggle:checked~.panel-content,
#panel-left-toggle:checked ~ .panel-content, #panel-right-toggle:checked~.panel-content,
#panel-right-toggle:checked ~ .panel-content, a[id|="anchor"]:target~.panel-content {
a[id|="anchor"]:target ~ .panel-content {
display: flex; display: flex;
width: 100%; width: 100%;
background-color: var(--bg1);
background-size: 100% 100%; background-size: 100% 100%;
z-index: auto; z-index: auto
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
#panel-left-toggle:checked ~ .panel-content, #panel-left-toggle:checked ~.panel-content, #panel-right-toggle:checked~.panel-content, a[id|="anchor"]:target~.panel-content {
#panel-right-toggle:checked ~ .panel-content, background-image: url("../images/background_dark.png")
a[id|="anchor"]:target ~ .panel-content {
background-image: url(../images/background_dark.png);
} }
} }
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
#panel-left-toggle:checked ~ .panel-content, #panel-left-toggle checked ~.panel-content, #panel-right-toggle checked~.panel-content, a[id|="anchor"]:target~.panel-content {
#panel-right-toggle:checked ~ .panel-content, background-image: url("../images/background_light.png")
a[id|="anchor"]:target ~ .panel-content {
background-image: url(../images/background_light.png);
} }
} }
} }
/* ANIMATIONS */
@keyframes fadeIn { @keyframes fadeIn {
0% { 0% {
opacity: 0; opacity: 0;
transform: translateY(-10px); transform: translateY(-10px)
} }
100% { 100% {
opacity: unset; opacity: unset;
transform: none; transform: none
} }
} }
@keyframes fadeOut { @keyframes fadeOut {
100% { 100% {
opacity: 0; opacity: 0;
transform: translateY(-10px); transform: translateY(-10px)
} }
0% { 0% {
opacity: unset; opacity: unset;
transform: none; transform: none
} }
} }
@media (prefers-color-scheme: dark) {
@keyframes highlight { @keyframes highlight {
0% { 0% {
box-shadow: initial; box-shadow: initial;
border-radius: var(--unit-size); border-radius: 0.6rem
} }
50% {
50% { border-radius: 0.6rem;
border-radius: var(--unit-size); box-shadow: inset 0 20px 40px #FFF;
box-shadow: inset 0 20px 40px var(--white); transition: box-shadow 0.3s ease-in-out
transition: box-shadow 0.3s ease-in-out; }
} 100% {
box-shadow: initial;
100% { border-radius: 0.6rem
box-shadow: initial; }
border-radius: var(--unit-size);
} }
} }
@media (prefers-color-scheme: light) {
@keyframes highlight {
0% {
box-shadow: initial;
border-radius: 0.6rem
}
50% {
border-radius: 0.6rem;
box-shadow: inset 0 20px 40px #000;
transition: box-shadow 0.3s ease-in-out
}
100% {
box-shadow: initial;
border-radius: 0.6rem
}
}
}

View File

@ -1,243 +1,145 @@
.notes hr { .notes hr {
margin-top: 6px; margin-top: 6px
} }
.note-wrapper { .note-wrapper {
width: 100%; width: 100%;
height: inherit; height: inherit
} }
.note-sidebar { .note-sidebar {
padding: var(--unit-size); padding: 0.6rem
} }
.note-sidebar * { .note-sidebar * {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
max-height: 100%; max-height: 100%
} }
.note-sidebar .avatar { .note-sidebar .avatar {
width: 3rem; width: 3rem;
height: auto; height: auto;
background: unset; background: unset;
margin-bottom: var(--unit-size); margin-bottom: 0.6rem;
border-radius: 2px; border-radius: 2px
} }
.h-entry:not(:first-child) { .h-entry:not(:first-child) {
margin-top: var(--unit-size); margin-top: 0.6rem
} }
.h-entry .embed { .h-entry .embed {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: var(--unit-size); padding: 0.6rem;
border: unset; border: unset;
width: 100%; width: 100%
} }
.h-entry .embed[class*="p-"] { .h-entry .embed[class*="p-"] {
padding: unset !important; padding: unset !important
} }
.h-entry a:focus { .h-entry a:focus {
text-decoration: underline; text-decoration: underline
} }
.h-entry .embed header img { .h-entry .embed header img {
padding: unset; padding: unset;
max-width: min-content; max-width: min-content;
max-height: min-content; max-height: min-content
} }
.h-entry { .h-entry {
display: flex; display: flex;
background-color: var(--translucent); border-radius: 0.6rem
border-radius: var(--unit-size);
border: solid 2px var(--bg2);
box-shadow: var(--shadow);
} }
.h-entry figure { .h-entry figure {
margin: unset; margin: unset;
object-fit: cover; object-fit: cover
} }
.h-entry .replies .h-entry { .h-entry .replies .h-entry {
background-color: unset; background-color: unset;
padding: 0 var(--unit-size) var(--unit-size) 0; padding: 0 0.6rem 0.6rem 0;
margin-left: var(--medium-size); margin-left: 1.3rem
} }
.note-info { .note-info {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
max-height: 3rem; max-height: 3rem;
border-bottom: unset; border-bottom: unset;
border-radius: var(--unit-size) var(--unit-size) 0 0; border-radius: 0.6rem 0.6rem 0 0;
font-size: 1.3rem;
background: linear-gradient(to left, var(--translucent), transparent); padding: 6px 10px 6px 0
font-size: var(--medium-size);
padding: 6px 10px 6px 0;
} }
.note-author { .note-author {
font-size: var(--small-size); font-size: 1rem;
font-weight: bold; font-weight: bold;
display: flex; display: flex;
align-items: center; align-items: center;
align-self: center; align-self: center
} }
.note-actions { .note-actions {
display: flex; display: flex;
vertical-align: middle; vertical-align: middle
} }
.note-actions .form-group { .note-actions .form-group {
all: unset; all: unset
} }
.button-container { .button-container {
all: unset; all: unset;
border: none !important; border: none !important;
background-repeat: no-repeat !important; background-repeat: no-repeat !important;
width: 1em !important; width: 1em !important;
height: 1em !important; height: 1em !important;
margin-left: 0.6rem;
margin-left: var(--unit-size); text-indent: -9999em
text-indent: -9999em;
} }
.button-container:hover, .button-container:hover,
.button-container:focus { .button-container:focus {
border: none !important; border: none !important
background: var(--bg3) !important;
} }
.favourite-button-container { .favourite-button-container {
-webkit-mask-image: url("../../icons/heart.svg") !important; -webkit-mask-image: url("../../icons/heart.svg") !important;
-o-mask-image: url("../../icons/heart.svg") !important; -o-mask-image: url("../../icons/heart.svg") !important;
-moz-mask-image: url("../../icons/heart.svg") !important; -moz-mask-image: url("../../icons/heart.svg") !important;
mask-image: url("../../icons/heart.svg") !important; mask-image: url("../../icons/heart.svg") !important
} }
.reply-button-container { .reply-button-container {
-webkit-mask-image: url("../../icons/reply.svg") !important; -webkit-mask-image: url("../../icons/reply.svg") !important;
-o-mask-image: url("../../icons/reply.svg") !important; -o-mask-image: url("../../icons/reply.svg") !important;
-moz-mask-image: url("../../icons/reply.svg") !important; -moz-mask-image: url("../../icons/reply.svg") !important;
mask-image: url("../../icons/reply.svg") !important; mask-image: url("../../icons/reply.svg") !important
} }
.repeat-button-container { .repeat-button-container {
-webkit-mask-image: url("../../icons/repeat.svg") !important; -webkit-mask-image: url("../../icons/repeat.svg") !important;
-o-mask-image: url("../../icons/repeat.svg") !important; -o-mask-image: url("../../icons/repeat.svg") !important;
-moz-mask-image: url("../../icons/repeat.svg") !important; -moz-mask-image: url("../../icons/repeat.svg") !important;
mask-image: url("../../icons/repeat.svg") !important; mask-image: url("../../icons/repeat.svg") !important
} }
.delete-button-container { .delete-button-container {
-webkit-mask-image: url("../../icons/delete.svg") !important; -webkit-mask-image: url("../../icons/delete.svg") !important;
-o-mask-image: url("../../icons/delete.svg") !important; -o-mask-image: url("../../icons/delete.svg") !important;
-moz-mask-image: url("../../icons/delete.svg") !important; -moz-mask-image: url("../../icons/delete.svg") !important;
mask-image: url("../../icons/delete.svg") !important; mask-image: url("../../icons/delete.svg") !important;
background: #FF634766 !important; background: #FF634766 !important
} }
.note-actions-unset {
background: var(--bg2) !important;
}
.note-actions-set {
background: var(--white) !important;
}
.note-content { .note-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border-radius: 0 0 var(--unit-size) var(--unit-size); border-radius: 0 0 0.6rem 0.6rem;
padding: var(--small-size); padding: 1rem
} }
.note-text { .note-text {
margin-bottom: var(--unit-size); margin-bottom: 0.6rem
} }
.section-attachments { .section-attachments {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
max-width: max-content; max-width: max-content;
border-radius: 0.6rem;
border-radius: var(--unit-size); padding: 0.6rem;
background-color: var(--translucent); align-self: flex-start
padding: var(--unit-size);
align-self: flex-start;
} }
.note-attachments:not(:only-child) { .note-attachments:not(:only-child) {
margin-right: var(--unit-size); margin-right: 0.6rem
} }
.note-attachments > figure figcaption { .note-attachments > figure figcaption {
display: flex; display: flex;
word-break: break-all; word-break: break-all;
margin-bottom: var(--unit-size); margin-bottom: 0.6rem
}
/* PROFILE */
.profile {
display: flex;
flex-direction: column;
flex-wrap: wrap;
font-family: var(--main-font);
background-color: var(--translucent);
margin-bottom: var(--unit-size);
border-radius: var(--unit-size);
padding: var(--unit-size);
box-shadow: var(--shadow);
}
.profile *[class*="profile-info-"] {
flex: 1;
mix-blend-mode: difference;
}
.profile-info {
display: flex;
flex-wrap: wrap;
flex-direction: column;
}
.profile-info-nickname {
font-size: var(--medium-size);
}
.profile-info-tags {
margin: unset;
}
.profile-info-stats strong {
margin-right: 5px;
}
.profile-info-stats {
margin-top: var(--unit-size);
}
.profile-avatar {
max-width: 4rem;
min-width: 3rem;
width: 100%;
height: auto;
margin-right: 5px;
border-radius: 2px;
} }

View File

@ -1,37 +1,33 @@
.main-nav { .section-settings {
background-color: var(--translucent); margin-bottom: 0.6rem;
margin-bottom: var(--unit-size); border-radius: 0.6rem;
border-radius: var(--unit-size); padding: 0.6rem;
padding: var(--unit-size);
box-sizing: border-box; box-sizing: border-box;
border: solid 2px var(--bg2);
} }
.main-nav hr { .section-settings hr {
all: unset; all: unset;
display: block; display: block;
height: 1px; height: 1px;
background-image: linear-gradient(to right, var(--bg2), transparent 90%); background-image: linear-gradient(to right, currentColor, transparent 90%);
margin-top: var(--unit-size); margin-top: 0.6rem;
margin-bottom: var(--unit-size); margin-bottom: 0.6rem;
} }
.main-nav ul { .section-settings ul {
background-color: var(--translucent); border-radius: 0.6rem;
border: 2px solid var(--bg2); padding: 0.6rem;
border-radius: var(--unit-size);
padding: var(--unit-size);
box-sizing: border-box; box-sizing: border-box;
} }
.main-nav ul li { .section-settings ul li {
border-radius: var(--unit-size); border-radius: 0.6rem;
} }
.form { .form {
display: flex; display: flex;
border-radius: var(--unit-size); border-radius: 0.6rem;
padding: var(--unit-size); padding: 0.6rem;
box-sizing: border-box; box-sizing: border-box;
} }
@ -39,8 +35,8 @@
all: unset; all: unset;
display: flex; display: flex;
width: 2px; width: 2px;
background-image: linear-gradient(to bottom, var(--bg2), transparent 90%); background-image: linear-gradient(to bottom, currentColor, transparent 90%);
margin-right: var(--unit-size); margin-right: 0.6rem;
} }
.form form { .form form {
@ -50,7 +46,7 @@
.form #save { .form #save {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: var(--unit-size); padding: 0.6rem;
box-sizing: border-box; box-sizing: border-box;
} }
@ -60,7 +56,7 @@
.form #save div label { .form #save div label {
display: inline-block; display: inline-block;
font-family: var(--display-font); font-family: 'Poppins', sans-serif;
} }
.form #save div input, .form #save div input,
@ -68,12 +64,9 @@
display: inline-block; display: inline-block;
position: relative; position: relative;
color: var(--white); border-radius: 0.6rem;
border-radius: var(--unit-size); padding: 0.6rem;
padding: var(--unit-size);
box-sizing: border-box; box-sizing: border-box;
border: 2px solid var(--bg2);
background-color: var(--translucent);
} }
.form #save div textarea { .form #save div textarea {
@ -88,16 +81,12 @@
text-align: end; text-align: end;
} }
.icon-details-open {
fill: var(--white);
}
.section-title-settings section { .section-title-settings section {
margin-top: var(--unit-size); margin-top: 0.6rem;
} }
.section-title-settings summary { .section-title-settings summary {
padding: var(--unit-size) var(--small-size); padding: 0.6rem 1rem;
} }
.section-title-settings summary h3:first-letter, .section-title-settings summary h3:first-letter,
.section-title-settings summary em:first-letter { .section-title-settings summary em:first-letter {
@ -106,13 +95,13 @@
.section-title-settings summary:focus .icon-details-open, .section-title-settings summary:focus .icon-details-open,
.section-title-settings summary:hover .icon-details-open { .section-title-settings summary:hover .icon-details-open {
transition: var(--cubic-transition); transition: all 200ms cubic-bezier(0, 0.55, 0.45, 1);
} }
/* SECTION DETAILS OPENED */ /* SECTION DETAILS OPENED */
.section-title-settings[open] svg { .section-title-settings[open] svg {
transform: rotate(180deg); transform: rotate(180deg);
animation: var(--fade-out) animation: fadeOut 200ms cubic-bezier(0, 0.55, 0.45, 1)
} }
.section-title-settings[open] .set-nav li:last-of-type { .section-title-settings[open] .set-nav li:last-of-type {
@ -122,5 +111,5 @@
/* SECTION DETAILS CLOSED */ /* SECTION DETAILS CLOSED */
.section-title-settings:not([open]) svg { .section-title-settings:not([open]) svg {
transform: initial; transform: initial;
animation: var(--fade-in); animation: fadeIn 200ms cubic-bezier(0, 0.55, 0.45, 1);
} }

View File

@ -1,148 +0,0 @@
/* link underlines tend to make hypertext less readable,
because underlines obscure the shapes of the lower halves of words */
:link, :visited {
text-decoration: none
}
/* no list-markers by default, since lists are used more often for semantics */
ul, ol {
list-style: none
}
/* remove the inconsistent (among browsers) default ul,ol padding or margin */
/* the default spacing on headings does not match nor align with
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 */
pre, form, body, html, blockquote, fieldset, input, textarea {
margin: 0;
padding: 0;
border: none;
}
/* whoever thought blue linked image borders were a good idea? */
a img, :link img, :visited img {
border: none;
}
/* de-italicize address */
address {
font-style: normal;
}
/* firefox focus outline */
:focus {
outline: none;
}
::-moz-focus-inner {
border: 0;
}
/* details element arrow */
details summary > * {
margin: unset;
padding: unset;
}
details > summary {
list-style: none;
}
details > summary::-webkit-details-marker {
display: none;
}
/* have IE ignore the detail elements altogether */
@supports not (-ms-ime-align: auto) {
details summary {
cursor: pointer;
}
}
[hidden] {
display: none;
}
* {
box-sizing: border-box !important;
}
/* TYPOGRAPHY AND GENERAL SELECTORS */
body,
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-attachment: fixed;
color: var(--white);
font-family: var(--main-font);
font-size: var(--small-size);
}
h1, h2, h3, h4, h5, h6 {
all: unset;
display: block;
font-family: var(--display-font);
}
h1 {
font-size: var(--main-size);
font-weight: 700;
margin-bottom: 16.2px;
}
h2 {
font-size: var(--medium-size);
font-weight: 600;
margin-bottom: 13px;
}
h3 {
font-size: var(--small-size);
font-weight: 600;
margin-bottom: 10px;
}
h4, h5 {
font-size: var(--small-size);
font-weight: 400;
margin-bottom: 6.1px;
}
p {
font-family: var(--main-font);
font-size: var(--small-size);
font-weight: 400;
margin: unset;
}
p:first-line {
padding-left: var(--small-size);
}
p:first-line {
margin-top: 0;
margin-bottom: 10px;
}
p:not(:first-line) {
margin-top: 10px;
margin-bottom: 10px;
}
textarea {
font-family: var(--main-font);
font-weight: 400;
}
ul {
text-decoration: none;
margin: 0;
padding: 0;
list-style: none;
}
li {
margin: 0;
padding: 0;
}

View File

@ -1,80 +1,65 @@
/* BUTTONS AND FILEPICKER */
button { button {
cursor: pointer !important; cursor: pointer !important;
float: right !important; float: right !important;
align-self: end !important; align-self: end !important
} }
input { input {
cursor: text !important; cursor: text !important
} }
button, button,
input { input {
all: unset; all: unset;
padding: 5px 10px; padding: 5px 10px
} }
button, button,
select, select,
input:not([type=text]) { input:not([type=text]) {
cursor: pointer !important; cursor: pointer !important
} }
input:not([type=button],
input:not([type=button], [type=color], [type=checkbox], [type=radio]) { [type=color],
cursor: auto !important; [type=checkbox],
[type=radio]) {
cursor: auto !important
} }
*|*::-moz-button-content { *|*::-moz-button-content {
all: unset; all: unset
} }
input[type=checkbox] { input[type=checkbox] {
display: inline-flex; display: inline-flex;
width: 1em; width: 1em;
height: 1em; height: 1em
} }
input[type=radio] { input[type=radio] {
all: unset; all: unset;
cursor: pointer !important; cursor: pointer !important;
display: inline-block; display: inline-block;
width: 1em; width: 1em;
height: 1em; height: 1em;
border-radius: 50%; border-radius: 50%;
margin: 3px 3px 0 5px; margin: 3px 3px 0 5px
} }
/* file selector */
input[type=file] { input[type=file] {
all: unset; all: unset;
display: block; display: block;
width: 100%; width: 100%;
border-radius: var(--unit-size) !important; border-radius: 0.6rem !important
} }
input+label {
input + label {
all: unset; all: unset;
align-self: center; align-self: center
} }
/* button part of file selector */
::file-selector-button { ::file-selector-button {
cursor: pointer; cursor: pointer;
background-color: unset; background-color: unset;
border: unset; border: unset;
margin: 3px; margin: 3px
} }
label,
/* BUTTONS AND INPUT SHENANIGANS */ button {
label, button { font-family: 'Poppins', sans-serif;
font-family: var(--display-font); font-weight: bold !important
font-weight: bold !important;
} }
select, select,
button, button,
textarea, textarea,
@ -82,123 +67,56 @@ input {
display: inline-block; display: inline-block;
overflow: hidden; overflow: hidden;
font-size: inherit !important; font-size: inherit !important;
color: var(--white);
padding: 6px 8px; padding: 6px 8px;
border: 2px solid var(--bg2); border-radius: 0.6rem
border-radius: var(--unit-size);
background-color: var(--translucent);
box-shadow: var(--shadow);
} }
button { button {
background: var(--bg-button);
padding: 4px 12px; padding: 4px 12px;
margin-left: auto; margin-left: auto
} }
select { select {
-webkit-appearance: none !important; -webkit-appearance: none !important;
-moz-appearance: none !important; -moz-appearance: none !important;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 16px; background-size: 16px;
background-position: center right 5px; background-position: center right 5px;
border-radius: 0.6rem
color: var(--white) !important;
border: 2px solid var(--bg2);
border-radius: var(--unit-size);
} }
input[type=radio] { input[type=radio] {
border: solid 0.25em var(--bg2) !important; border: solid 0.25em !important
background-color: var(--bg1) !important;
} }
input[type=checkbox] { input[type=checkbox] {
all: unset; all: unset;
display: inline-block; display: inline-block;
width: var(--medium-size); width: 1.3rem;
height: var(--medium-size); height: 1.3rem;
vertical-align: middle; vertical-align: middle;
background-color: var(--bg2) !important;
background-size: cover; background-size: cover;
margin-right: 2px; margin-right: 2px;
-webkit-mask-image: url("../../icons/check-off.svg") !important; -webkit-mask-image: url("../../icons/check-off.svg") !important;
-o-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; -moz-mask-image: url("../../icons/check-off.svg") !important;
mask-image: url("../../icons/check-off.svg") !important; mask-image: url("../../icons/check-off.svg") !important
} }
input[type=color] { input[type=color] {
border: unset; border: unset;
padding: 2px; padding: 2px;
width: 100%; width: 100%;
height: 3rem; height: 3rem
} }
/* 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;
}
/* HOVER AND FOCUS */
textarea:hover,
textarea:focus,
button:hover,
button:focus,
input:hover,
input:focus,
select:hover,
select:focus {
color: var(--white) !important;
-webkit-box-shadow: inset 0px 0px 0px 2px var(--bg3) !important;
-moz-box-shadow: inset 0px 0px 0px 2px var(--bg3) !important;
box-shadow: inset 0px 0px 0px 2px var(--bg3) !important;
}
/* checkbox and radio */
input[type=radio]:hover,
input[type=radio]:focus,
input[type=checkbox]:hover,
input[type=checkbox]:focus {
color: var(--white) !important;
background-color: var(--bg3) !important;
}
input[type=radio]:checked {
background-color: var(--white) !important;
}
input[type=checkbox]:checked { input[type=checkbox]:checked {
background-color: var(--bg3) !important;
-webkit-mask-image: url("../../icons/check-on.svg") !important; -webkit-mask-image: url("../../icons/check-on.svg") !important;
-o-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; -moz-mask-image: url("../../icons/check-on.svg") !important;
mask-image: url("../../icons/check-on.svg") !important; mask-image: url("../../icons/check-on.svg") !important
} }
/* file selector */
input[type=file] { input[type=file] {
font-family: var(--main-font) !important; font-family: 'Open Sans', sans-serif !important;
font-weight: normal !important; font-weight: normal !important;
padding: unset !important; padding: unset !important;
border-radius: 0.6rem
background: var(--bg-button);
border: 2px solid var(--bg2);
border-radius: var(--unit-size);
box-shadow: var(--shadow);
} }
/* button part of file selector */
::file-selector-button { ::file-selector-button {
font-family: var(--main-font) !important; font-family: 'Open Sans', sans-serif !important;
font-weight: bold !important; font-weight: bold !important
color: var(--white) !important;
} }

View File

@ -1,120 +1,209 @@
/* SECTIONS */
.profile {
display: flex;
flex-direction: column;
flex-wrap: wrap;
font-family: 'Open Sans', sans-serif;
margin-bottom: 0.6rem;
border-radius: 0.6rem;
padding: 0.6rem
}
.profile *[class*="profile-info-"] {
flex: 1;
mix-blend-mode: difference
}
.profile-info {
display: flex;
flex-wrap: wrap;
flex-direction: column
}
.profile-info-nickname {
font-size: 1.3rem
}
.profile-info-tags {
margin: unset
}
.profile-info-stats strong {
margin-right: 5px
}
.profile-info-stats {
margin-top: 0.6rem
}
.profile-avatar {
max-width: 4rem;
min-width: 3rem;
width: 100%;
height: auto;
margin-right: 5px;
border-radius: 2px
}
.section-widget { .section-widget {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border-radius: 0.6rem;
background-color: var(--translucent); margin-bottom: 1.3rem
border-radius: var(--unit-size);
border: solid 2px var(--bg2);
margin-bottom: var(--medium-size);
box-shadow: var(--shadow);
color: var(--white);
} }
.section-widget hr { .section-widget hr {
margin-bottom: var(--unit-size); margin-bottom: 0.6rem
} }
.section-widget-padded { .section-widget-padded {
padding: var(--unit-size); padding: 0.6rem
} }
.section-title { .section-title {
font-size: var(--medium-size); font-size: 1.3rem;
font-weight: 700; font-weight: 700;
margin: 0; margin: 0
} }
.section-widget-button-like { .section-widget-button-like {
border: 2px solid var(--bg2); border-radius: 0.6rem;
border-radius: var(--unit-size);
background: var(--bg-button);
padding: 6px 10px; padding: 6px 10px;
margin-top: 6px; margin-top: 6px;
cursor: pointer; cursor: pointer;
float: right; float: right;
align-self: end; align-self: end;
font-family: 'Open Sans', sans-serif;
font-family: var(--main-font); font-weight: 700
font-weight: 700;
} }
.section-title-details { .section-title-details {
font-size: var(--medium-size); font-size: 1.3rem;
font-weight: 700; font-weight: 700;
border-radius: 0.6rem;
border-radius: var(--unit-size); padding: 6px 10px 6px 10px
padding: 6px 10px 6px 10px;
background-color: var(--translucent);
box-shadow: var(--shadow);
} }
.section-title-details[open] svg { .section-title-details[open] svg {
transform: rotate(180deg); transform: rotate(180deg);
animation: var(--fade-out) animation: fadeOut 200ms cubic-bezier(0, 0.55, 0.45, 1)
} }
/* SECTION DETAILS CLOSED */
.section-title-details:not([open]) svg { .section-title-details:not([open]) svg {
transform: initial; transform: initial;
animation: var(--fade-in); animation: fadeIn 200ms cubic-bezier(0, 0.55, 0.45, 1)
} }
.section-title-summary { .section-title-summary {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between
} }
.section-form { .section-form {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: var(--unit-size); padding: 0.6rem
} }
.section-form-legend { .section-form-legend {
margin-top: unset; margin-top: unset;
margin-bottom: 10px; margin-bottom: 10px;
font-weight: bold; font-weight: bold;
font-size: var(--main-size); font-size: 1.62rem
} }
.form-group { .form-group {
all: unset; all: unset;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin-bottom: 6px; margin-bottom: 6px
} }
.form-group textarea { .form-group textarea {
height: 7rem; height: 7rem;
max-height: 100%; max-height: 100%
} }
.help-block { .help-block {
margin-bottom: 6px; margin-bottom: 6px
} }
.help-text { .help-text {
font-style: italic; font-style: italic;
font-size: var(--small-size); font-size: 1rem;
margin-bottom: 6px; margin-bottom: 6px
} }
.help-block>.list-unstyled,
.help-block > .list-unstyled,
.alert, .alert,
.alert-danger { .alert-danger {
display: inline-block; display: inline-block;
border: solid 2px #FF6347; border: solid 2px #FF6347;
background-color: #FF634733; background-color: #FF634733;
border-radius: var(--unit-size); border-radius: 0.6rem;
padding: 2px 6px; padding: 2px 6px;
margin-top: 6px; margin-top: 6px;
margin-bottom: 6px; margin-bottom: 6px
}
.section-widget {
display: flex;
flex-direction: column;
border-radius: 0.6rem;
margin-bottom: 1.3rem
}
.section-widget hr {
margin-bottom: 0.6rem
}
.section-widget-padded {
padding: 0.6rem
}
.section-title {
font-size: 1.3rem;
font-weight: 700;
margin: 0
}
.section-widget-button-like {
border-radius: 0.6rem;
padding: 6px 10px;
margin-top: 6px;
cursor: pointer;
float: right;
align-self: end;
font-family: 'Open Sans', sans-serif;
font-weight: 700
}
.section-title-details {
font-size: 1.3rem;
font-weight: 700;
border-radius: 0.6rem;
padding: 6px 10px 6px 10px
}
.section-title-details[open] svg {
transform: rotate(180deg);
animation: fadeOut 200ms cubic-bezier(0, 0.55, 0.45, 1)
}
.section-title-details:not([open]) svg {
transform: initial;
animation: fadeIn 200ms cubic-bezier(0, 0.55, 0.45, 1)
}
.section-title-summary {
display: flex;
justify-content: space-between
}
.section-form {
display: flex;
flex-direction: column;
padding: 0.6rem
}
.section-form-legend {
margin-top: unset;
margin-bottom: 10px;
font-weight: bold;
font-size: 1.62rem
}
.form-group {
all: unset;
display: flex;
flex-direction: column;
margin-bottom: 6px
}
.form-group textarea {
height: 7rem;
max-height: 100%
}
.help-block {
margin-bottom: 6px
}
.help-text {
font-style: italic;
font-size: 1rem;
margin-bottom: 6px
}
.help-block>.list-unstyled,
.alert,
.alert-danger {
display: inline-block;
border: solid 2px #FF6347;
background-color: #FF634733;
border-radius: 0.6rem;
padding: 2px 6px;
margin-top: 6px;
margin-bottom: 6px
} }

View File

@ -12,9 +12,6 @@
</title> </title>
{% block stylesheets %} {% block stylesheets %}
<link rel="preload" href="{{ asset('assets/default_theme/css/reset.css') }}" as="style" type="text/css">
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/reset.css') }}">
<link rel="preload" href="{{ asset('assets/default_theme/css/base.css') }}" as="style" type="text/css"> <link rel="preload" href="{{ asset('assets/default_theme/css/base.css') }}" as="style" type="text/css">
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/base.css') }}"> <link rel="stylesheet" href="{{ asset('assets/default_theme/css/base.css') }}">
@ -31,9 +28,9 @@
{% endfor %} {% endfor %}
</head> </head>
<body class="bg"> <body class="bg set-background-color-1">
<aside class="accessibility-menu"> <aside class="accessibility-menu set-background-color-1">
<h2 class="accessibility-menu-title" tabindex="0">{{ 'Accessibility menu.' | trans }}</h2> <h2 class="accessibility-menu-title" tabindex="0">{{ 'Accessibility menu.' | trans }}</h2>
<p tabindex="0">{{ 'Here you can find fast shortcuts to various page regions!' | trans }}</p> <p tabindex="0">{{ 'Here you can find fast shortcuts to various page regions!' | trans }}</p>
<p tabindex="0">{{ 'Provided the following keyboard shortcut, the link is targeted.' | trans }}</p> <p tabindex="0">{{ 'Provided the following keyboard shortcut, the link is targeted.' | trans }}</p>
@ -69,7 +66,7 @@
{% block header %} {% block header %}
{% set extra_header_forms = handle_event('AddExtraHeaderForms', request) %} {% set extra_header_forms = handle_event('AddExtraHeaderForms', request) %}
<header id="header"> <header id="header" class="set-background-color-1">
{{ block("leftpanel", "stdgrid.html.twig") }} {{ block("leftpanel", "stdgrid.html.twig") }}
<a id="anchor-main-page" class="anchor-hidden" title="{{ 'Press tab to access instance\'s main page.' | trans }}"></a> <a id="anchor-main-page" class="anchor-hidden" title="{{ 'Press tab to access instance\'s main page.' | trans }}"></a>
@ -81,9 +78,11 @@
<summary> <summary>
{{ icon('kebab', 'icon icon-details-open') | raw }} {{ icon('kebab', 'icon icon-details-open') | raw }}
</summary> </summary>
{% for extra_form in extra_header_forms %} <div class="header-extra-forms-open">
{{ form(extra_form) }} {% for extra_form in extra_header_forms %}
{% endfor %} {{ form(extra_form) }}
{% endfor %}
</div>
</details> </details>
{% if app.user %} {% if app.user %}

View File

@ -1,5 +1,4 @@
<div class='form'> <div class='form'>
<link href="{{ asset('assets/css/cropperjs/cropper.css') }}" rel="stylesheet">
<script type="text/javascript" src="{{ asset('assets/javascript/cropping.js') }}"></script> <script type="text/javascript" src="{{ asset('assets/javascript/cropping.js') }}"></script>
{{ form(avatar) }} {{ form(avatar) }}

View File

@ -1,23 +1,9 @@
{% extends '/stdgrid.html.twig' %} {% extends '/stdgrid.html.twig' %}
{% block meta %}
{{ parent() }}
<link href="{{ asset('assets/icons/arrow-down.svg.twig') }}" rel="icon"/>
{% endblock %}
{% block title %}{% endblock %} {% block title %}{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/settings/view.css') }}">
{% endblock %}
{% block header %}
{{ parent() }}
{% endblock %}
{% block body %} {% block body %}
<nav class='main-nav'> <nav class='section-settings'>
<h2>Settings</h2> <h2>Settings</h2>
<ul> <ul>
<li> <li>
@ -28,7 +14,7 @@
</summary> </summary>
<section> <section>
<nav class='set-nav'> <nav class='section-settings-nav'>
<ul> <ul>
<li> <li>
<details class="section-title-settings"> <details class="section-title-settings">