[TWIG][CSS] Template refactoring, classes and their respective CSS is now more consistent. CSS variables are back.

This commit is contained in:
eli 2021-10-19 20:33:01 +01:00 committed by Diogo Peralta Cordeiro
parent 8fdc52636f
commit f78cfed41a
No known key found for this signature in database
GPG Key ID: 18D2D35001FBFAB0
13 changed files with 708 additions and 675 deletions

View File

@ -1,22 +1,24 @@
{% block leftpanel %} {% block leftpanel %}
<div class="panel panel-left"> <label class="panel-left-icon" for="panel-left-toggle" aria-hidden="true" tabindex="-1">{{ icon('menu', 'icon icon-left') | raw }}</label>
<input type="checkbox" id="panel-left-toggle" aria-hidden="true" tabindex="-1"> <input type="checkbox" id="panel-left-toggle" aria-hidden="true" tabindex="-1">
<label id="panel-left-icon" for="panel-left-toggle" aria-hidden="true" tabindex="-1">{{ icon('menu', 'icon icon-left') | raw }}</label>
<section class="header-panel section-panel-left">
<a id="anchor-left-panel" class="anchor-hidden" title="{{ 'Press tab to access selected region!' | trans }}"></a> <a id="anchor-left-panel" class="anchor-hidden" title="{{ 'Press tab to access selected region!' | trans }}"></a>
<aside class="panel-content accessibility-target"> <aside class="panel-content accessibility-target">
{% if app.user %} {% if app.user %}
<section class='section-widget section-widget-padded' title="{{ 'Your profile information.' | trans }}"> <section class='section-widget section-widget-padded' title="{{ 'Your profile information.' | trans }}">
{% block profile_view %}{% include 'cards/profile/view.html.twig' with { actor: current_actor } %}{% endblock profile_view %} {% block profile_view %}{% include 'cards/profile/view.html.twig' with { actor: current_actor } %}{% endblock profile_view %}
{{ block("profile_current_actor", "cards/navigation/view.html.twig") }} {{ block("profile_current_actor", "cards/navigation/view.html.twig") }}
{% else %}
{{ block("profile_security", "cards/navigation/view.html.twig") }}
{% endif %}
</section> </section>
{% else %}
<section>
{{ block("profile_security", "cards/navigation/view.html.twig") }}
</section>
{% endif %}
{{ block("timeline", "cards/navigation/view.html.twig") }} {{ block("timeline", "cards/navigation/view.html.twig") }}
{{ block("footer", "cards/navigation/view.html.twig") }} {{ block("footer", "cards/navigation/view.html.twig") }}
</aside> </aside>
</div> </section>
{% endblock leftpanel %} {% endblock leftpanel %}

View File

@ -1,8 +1,8 @@
{% block rightpanel %} {% block rightpanel %}
<div class="panel panel-right"> <label class="panel-right-icon" for="panel-right-toggle" aria-hidden="true" tabindex="-1">{{ icon('notes', 'icon icon-right') | raw }}</label>
<input type="checkbox" id="panel-right-toggle" aria-hidden="true" tabindex="-1"> <input type="checkbox" id="panel-right-toggle" aria-hidden="true" tabindex="-1">
<label id="panel-right-icon" for="panel-right-toggle" aria-hidden="true" tabindex="-1">{{ icon('notes', 'icon icon-right') | raw }}</label>
<div class="header-panel section-panel-right">
<a id="anchor-right-panel" class="anchor-hidden" title="{{ 'Press tab to access selected region!' | trans }}"></a> <a id="anchor-right-panel" class="anchor-hidden" title="{{ 'Press tab to access selected region!' | trans }}"></a>
<aside class="panel-content accessibility-target"> <aside class="panel-content accessibility-target">

View File

@ -28,7 +28,7 @@
{% block body %} {% block body %}
{{ parent() }} {{ parent() }}
<div class="content"> <div class="page">
<div class="create-notice"> <div class="create-notice">
<div class="create-poll-notice"> <div class="create-poll-notice">
{% block form %} {% block form %}

View File

@ -3,7 +3,7 @@
{% block title %}Poll{% endblock %} {% block title %}Poll{% endblock %}
{% block body %} {% block body %}
<div class="content"> <div class="page">
<div class="poll"> <div class="poll">
<p class="poll-question">Q. {{ question }}</p> <p class="poll-question">Q. {{ question }}</p>
{% block form %} {% block form %}

View File

@ -26,7 +26,7 @@
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<div class="content"> <div class="page">
<div class="poll"> <div class="poll">
<p class="poll-question">Q. {{ poll.question }}</p> <p class="poll-question">Q. {{ poll.question }}</p>
<ul> <ul>

View File

@ -4,165 +4,261 @@
@import url("widgets/sections.css"); @import url("widgets/sections.css");
@import url("colors.css"); @import url("colors.css");
:link, /* Sizes vars */
:visited { :root {
text-decoration: none; --smaller: 0.6rem;
color: currentColor; --default: 1rem;
} --small: 1.3rem;
a:hover { --medium: 1.62rem;
text-decoration: underline; --big: 3rem;
} }
hr { /* RESET START */
:link,
:visited {
text-decoration: none;
color: currentColor;
}
a:hover {
text-decoration: underline;
}
hr {
all: unset; all: unset;
display: block; display: block;
height: 1px; height: 1px;
} }
ol, ol,
ul { ul {
list-style: none; list-style: none;
} }
blockquote, blockquote,
body, body,
fieldset, fieldset,
form, form,
html, html,
input, input,
pre, pre,
textarea { textarea {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: none; border: none;
} }
:link img, :link img,
:visited img, :visited img,
a img { a img {
border: none; border: none;
} }
address { address {
font-style: normal; font-style: normal;
} }
:focus { :focus {
outline: none; outline: none;
} }
::-moz-focus-inner { ::-moz-focus-inner {
border: 0; border: 0;
} }
details summary > * { details summary > * {
margin: unset; margin: unset;
padding: unset; padding: unset;
} }
details > summary { details > summary {
list-style: none; list-style: none;
} }
details > summary::-webkit-details-marker { details > summary::-webkit-details-marker {
display: none; display: none;
} }
@supports not (-ms-ime-align: auto) {
/* Internet Explorer <details> graceful degradation */
@supports not (-ms-ime-align: auto) {
details summary { details summary {
cursor: pointer; cursor: pointer;
} }
} }
[hidden] { [hidden] {
display: none; display: none;
} }
* { * {
-webkit-box-sizing: border-box !important; -webkit-box-sizing: border-box !important;
-moz-box-sizing: border-box !important; -moz-box-sizing: border-box !important;
box-sizing: border-box !important; box-sizing: border-box !important;
} }
body, body,
html { html {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
background-attachment: fixed; background-attachment: fixed;
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
font-size: 1rem; font-size: var(--default);
} }
h1, h1,
h2, h2,
h3, h3,
h4, h4,
h5, h5,
h6 { h6 {
all: unset; all: unset;
display: block; display: block;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
} }
h1 { h1 {
font-size: 1.62rem; font-size: var(--medium);
font-weight: 700; font-weight: 700;
margin-bottom: 16.2px; margin-bottom: 16.2px;
} }
h2 { h2 {
font-size: 1.3rem; font-size: var(--small);
font-weight: 600; font-weight: 600;
margin-bottom: 13px; margin-bottom: 13px;
} }
h3 { h3 {
font-size: 1rem; font-size: var(--default);
font-weight: 600; font-weight: 600;
margin-bottom: 10px; margin-bottom: 10px;
} }
h4, h4,
h5 { h5 {
font-size: 1rem; font-size: var(--default);
font-weight: 400; font-weight: 400;
margin-bottom: 6.1px; margin-bottom: 6.1px;
} }
p { p {
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
font-size: 1rem; font-size: var(--default);
font-weight: 400; font-weight: 400;
margin: unset; margin: unset;
} }
p:first-line { p:first-line {
padding-left: 1rem; padding-left: var(--default);
} }
p:first-line { p:first-line {
margin-top: 0; margin-top: 0;
margin-bottom: 10px; margin-bottom: 10px;
} }
p:not(:first-line) { p:not(:first-line) {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
input[type=password], input[type=password],
input[type=text], input[type=text],
textarea { textarea {
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
font-weight: 400; font-weight: 400;
padding: 4px 6px; padding: 4px 6px;
} }
ul { ul {
text-decoration: none; text-decoration: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
} }
li { li {
margin: 0; margin: 0;
padding: 0; padding: 0;
}
/* RESET END */
/* DARK AND LIGHT COLOUR SCHEMES START */
@media (prefers-color-scheme: dark) {
/* Colour vars */
:root {
--foreground: #FFF;
--background-hard: #242434;
--background-soft: #46465E;
--background-checkerboard: repeating-conic-gradient(#ffffff66 0deg 90deg, #ffffff33 0deg 180deg) 0 0/40px 40px round;
--accent: #8081BA;
--translucent: #24243466;
--shadow: 0 0 16px 0 #00000016;
--shadow-light: 0 0 16px 0 #FFFFFF16;
--shadow-inset-accent: inset 0 0 0 2px #8081BA;
--gradient: linear-gradient(to right, var(--translucent), transparent) !important;
--tneidarg: linear-gradient(to left, var(--translucent), transparent) !important;
}
/* The page background image itself */
.background-image {
background-image: url("../images/background_dark.png");
}
/* Select element custom dropdown arrow */
select {
background-image: url("../images/select_drop_dark.png") !important;
}
}
@media (prefers-color-scheme: light) {
/* Colour vars */
:root {
--foreground: #242434;
--background-hard: #eceff4;
--background-soft: #4c566a66;
--accent: #4c566a;
--translucent: #FFFFFFAA;
--shadow: 0 0 16px 0 #FFFFFF16;
--shadow-light: 0 0 16px 0 #00000016;
--shadow-inset-accent: inset 0 0 0 2px #4c566a;
--gradient: linear-gradient(to right, #FFFFFFAA, transparent) !important;
--tneidarg: linear-gradient(to left, #FFFFFFAA, transparent) !important;
}
/* The page background image itself */
.background-image {
background-image: url("../images/background_light.png");
}
/* Select element custom dropdown arrow */
select {
background-image: url("../images/select_drop_light.png") !important;
}
}
/* DARK AND LIGHT COLOUR SCHEMES END */
/* MISCELLANEOUS START */
/* Align all icon .svg to center */
.icon {
align-self: center;
}
/* All active links should pop up, the user should be aware where it is */
.active {
font-weight: bold;
}
/* Hide all anchors used for accesskey shortcuts */
.anchor-hidden {
width: 1px;
height: 1px;
overflow: hidden;
}
/* MISCELLANEOUS END */
/* Background image and noise (Firefox-based browsers present banding without it) */
.background-image {
background-position: center;
background-repeat: no-repeat;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100% 100%;
} }
body:after { body:after {
@ -177,35 +273,6 @@ body:after {
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRF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hA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
opacity: 21%; opacity: 21%;
} }
html {
scroll-margin-top: 3rem;
}
.bg {
background-position: center;
background-repeat: no-repeat;
background-size: 100% 100%;
}
.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;
@ -214,31 +281,35 @@ html {
left: -90%; left: -90%;
width: 30%; width: 30%;
height: min-content; height: min-content;
padding: 0.6rem; padding: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
.accessibility-menu ul { .accessibility-menu ul {
list-style-type: disc; list-style-type: disc;
margin-left: 1.3rem; margin-left: var(--small);
} }
.accessibility-menu:focus-within:not(:active) { .accessibility-menu:focus-within:not(:active) {
top: 0.6rem; top: var(--smaller);
left: 0.6rem; left: var(--smaller);
} }
#header { .page-header {
z-index: 1; z-index: 1;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
font-size: 1.62rem; font-size: var(--medium);
height: 3rem; height: var(--big);
display: flex; display: flex;
justify-content: center; justify-content: center;
position: fixed; position: fixed;
top: 0; top: 0;
width: 100%; width: 100%;
align-items: center; align-items: center;
padding: 0.6rem; padding: var(--smaller);
}
/* Allow scrolling all the way to the top ("page-header" has a height of 3rem) */
html {
scroll-margin-top: var(--big);
} }
.header-instance { .header-instance {
@ -254,39 +325,41 @@ html {
margin: unset; margin: unset;
} }
.header-extra-forms { .header-extra-actions {
justify-self: flex-end; justify-self: flex-end;
margin-left: auto; margin-left: auto;
} }
.header-extra-forms[open] > *:not(summary) { .header-extra-actions[open] > *:not(summary) {
z-index: 2; z-index: 2;
position: absolute; position: absolute;
top: 100%; top: 100%;
right: 0; right: 0;
width: 19vw; width: 19vw;
font-size: 1rem; font-size: var(--default);
border-radius: 0 0 0.6rem 0.6rem; border-radius: 0 0 var(--smaller) var(--smaller);
padding: 0.6rem; padding: var(--smaller);
background: var(--background-hard);
box-shadow: var(--shadow);
} }
.content-wrapper { .page-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: 0.6rem 0.6rem 0; padding: var(--smaller) var(--smaller) 0;
} }
.content { .page-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 0.6rem 0.6rem 0; padding: var(--smaller) var(--smaller) 0;
width: 100%; width: 100%;
} }
.markdown-blocks { .markdown-blocks {
border-radius: 0 0 0.6rem 0.6rem; border-radius: 0 0 var(--smaller) var(--smaller);
padding: 0.6rem; padding: var(--smaller);
} }
.markdown-blocks ul { .markdown-blocks ul {
@ -299,62 +372,72 @@ html {
} }
.doc-navigation { .doc-navigation {
border-radius: 0.6rem 0.6rem 0 0; border-radius: var(--smaller) var(--smaller) 0 0;
border-bottom: none; border-bottom: none;
padding: 0.6rem; padding: var(--smaller);
} }
.doc-navigation ul { .doc-navigation ul {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
font-size: 1.62rem; font-size: var(--medium);
} }
#replyform { #replyform {
padding: 0.6rem; padding: var(--smaller);
margin-top: 0.6rem; margin-top: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-size: 1rem; font-size: var(--default);
} }
#replyform textarea { #replyform textarea {
width: 100%; width: 100%;
resize: vertical; resize: vertical;
margin-top: 0.6rem; margin-top: var(--smaller);
padding: 0.6rem; padding: var(--smaller);
} }
.content-wrapper { .page-content-wrapper {
top: 3rem; top: var(--big);
width: 62vw; width: 62vw;
} }
.panel .panel-content { .header-panel {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column; flex-direction: column;
font-family: 'Open Sans', sans-serif; font-family: 'Open Sans', sans-serif;
font-size: 1rem; font-size: var(--default);
position: fixed; position: fixed;
top: 0; top: 0;
margin-top: 3rem; margin-top: var(--big);
height: calc(100% - 3rem); height: -webkit-calc(100% - var(--big));
padding: 0.6rem; height: -moz-calc(100% - var(--big));
height: calc(100% - var(--big));
padding: var(--smaller);
overflow-y: auto; overflow-y: auto;
} }
#panel-right-icon {
margin-left: 12px !important;
}
@media only screen and (min-width: 1281px) { @media only screen and (min-width: 1281px) {
.content { .page-content {
padding: 0.6rem 1.62rem 0; padding: var(--smaller) var(--medium) 0;
} }
.panel .panel-content { .header-panel {
width: 19vw; width: 19vw;
} }
a[id|="anchor"]:target + .accessibility-target { a[id|="anchor"]:target + .accessibility-target {
-webkit-animation-name: highlight; -webkit-animation-name: highlight;
-moz-animation-name: highlight; -moz-animation-name: highlight;
@ -371,22 +454,24 @@ html {
} }
} }
@media only screen and (max-width: 1280px) { @media only screen and (max-width: 1280px) {
.content-wrapper { .page-content-wrapper {
width: 100%; width: 100%;
} }
.content { .page-content {
max-width: 100%; max-width: 100%;
} }
.header-extra-forms[open] > *:not(summary) {
.header-extra-actions[open] > *:not(summary) {
width: 100%; width: 100%;
} }
#panel-left-toggle:not(:checked) ~ .panel-content,
#panel-right-toggle:not(:checked) ~ .panel-content { #panel-left-toggle:not(:checked) + .header-panel,
#panel-right-toggle:not(:checked) + .header-panel {
display: none; display: none;
} }
#panel-left-toggle:checked ~ .panel-content, #panel-left-toggle:checked + .header-panel,
#panel-right-toggle:checked ~ .panel-content, #panel-right-toggle:checked + .header-panel,
a[id|="anchor"]:target ~ .panel-content { a[id|="anchor"]:target ~ .panel-content {
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
@ -400,21 +485,24 @@ html {
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 + .header-panel,
#panel-right-toggle:checked ~ .panel-content, #panel-right-toggle:checked + .header-panel,
a[id|="anchor"]:target ~ .panel-content { a[id|="anchor"]:target ~ .panel-content {
background-image: url("../images/background_dark.png"); 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 + .header-panel,
#panel-right-toggle checked ~ .panel-content, #panel-right-toggle:checked + .header-panel,
a[id|="anchor"]:target ~ .panel-content { a[id|="anchor"]:target ~ .panel-content {
background-image: url("../images/background_light.png"); background-image: url("../images/background_light.png");
} }
} }
} }
@-webkit-keyframes fadeIn { @-webkit-keyframes fadeIn {
0% { 0% {
opacity: 0; opacity: 0;
@ -524,12 +612,12 @@ html {
0% { 0% {
-webkit-box-shadow: initial; -webkit-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
50% { 50% {
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
-webkit-box-shadow: inset 0 20px 40px #FFF; -webkit-box-shadow: inset 0 20px 40px #FFF;
box-shadow: inset 0 20px 40px #FFF; box-shadow: inset 0 20px 40px #FFF;
-webkit-transition: -webkit-box-shadow 0.3s ease-in-out; -webkit-transition: -webkit-box-shadow 0.3s ease-in-out;
@ -542,20 +630,20 @@ html {
100% { 100% {
-webkit-box-shadow: initial; -webkit-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
} }
@-moz-keyframes highlight { @-moz-keyframes highlight {
0% { 0% {
-moz-box-shadow: initial; -moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
50% { 50% {
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
-moz-box-shadow: inset 0 20px 40px #FFF; -moz-box-shadow: inset 0 20px 40px #FFF;
box-shadow: inset 0 20px 40px #FFF; box-shadow: inset 0 20px 40px #FFF;
-webkit-transition: -webkit-box-shadow 0.3s ease-in-out; -webkit-transition: -webkit-box-shadow 0.3s ease-in-out;
@ -568,17 +656,17 @@ html {
100% { 100% {
-moz-box-shadow: initial; -moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
} }
@-o-keyframes highlight { @-o-keyframes highlight {
0% { 0% {
box-shadow: initial; box-shadow: initial;
border-radius: 0.6rem; border-radius: var(--smaller);
} }
50% { 50% {
border-radius: 0.6rem; border-radius: var(--smaller);
box-shadow: inset 0 20px 40px #FFF; box-shadow: inset 0 20px 40px #FFF;
-webkit-transition: -webkit-box-shadow 0.3s ease-in-out; -webkit-transition: -webkit-box-shadow 0.3s ease-in-out;
transition: -webkit-box-shadow 0.3s ease-in-out; transition: -webkit-box-shadow 0.3s ease-in-out;
@ -589,7 +677,7 @@ html {
} }
100% { 100% {
box-shadow: initial; box-shadow: initial;
border-radius: 0.6rem; border-radius: var(--smaller);
} }
} }
@keyframes highlight { @keyframes highlight {
@ -597,14 +685,14 @@ html {
-webkit-box-shadow: initial; -webkit-box-shadow: initial;
-moz-box-shadow: initial; -moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
50% { 50% {
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
-webkit-box-shadow: inset 0 20px 40px #FFF; -webkit-box-shadow: inset 0 20px 40px #FFF;
-moz-box-shadow: inset 0 20px 40px #FFF; -moz-box-shadow: inset 0 20px 40px #FFF;
box-shadow: inset 0 20px 40px #FFF; box-shadow: inset 0 20px 40px #FFF;
@ -619,9 +707,9 @@ html {
-webkit-box-shadow: initial; -webkit-box-shadow: initial;
-moz-box-shadow: initial; -moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
} }
} }
@ -630,12 +718,12 @@ html {
0% { 0% {
-webkit-box-shadow: initial; -webkit-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
50% { 50% {
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
-webkit-box-shadow: inset 0 20px 40px #000; -webkit-box-shadow: inset 0 20px 40px #000;
box-shadow: inset 0 20px 40px #000; box-shadow: inset 0 20px 40px #000;
-webkit-transition: -webkit-box-shadow 0.3s ease-in-out; -webkit-transition: -webkit-box-shadow 0.3s ease-in-out;
@ -648,20 +736,20 @@ html {
100% { 100% {
-webkit-box-shadow: initial; -webkit-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
} }
@-moz-keyframes highlight { @-moz-keyframes highlight {
0% { 0% {
-moz-box-shadow: initial; -moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
50% { 50% {
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
-moz-box-shadow: inset 0 20px 40px #000; -moz-box-shadow: inset 0 20px 40px #000;
box-shadow: inset 0 20px 40px #000; box-shadow: inset 0 20px 40px #000;
-webkit-transition: -webkit-box-shadow 0.3s ease-in-out; -webkit-transition: -webkit-box-shadow 0.3s ease-in-out;
@ -674,17 +762,17 @@ html {
100% { 100% {
-moz-box-shadow: initial; -moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
} }
@-o-keyframes highlight { @-o-keyframes highlight {
0% { 0% {
box-shadow: initial; box-shadow: initial;
border-radius: 0.6rem; border-radius: var(--smaller);
} }
50% { 50% {
border-radius: 0.6rem; border-radius: var(--smaller);
box-shadow: inset 0 20px 40px #000; box-shadow: inset 0 20px 40px #000;
-webkit-transition: -webkit-box-shadow 0.3s ease-in-out; -webkit-transition: -webkit-box-shadow 0.3s ease-in-out;
transition: -webkit-box-shadow 0.3s ease-in-out; transition: -webkit-box-shadow 0.3s ease-in-out;
@ -695,7 +783,7 @@ html {
} }
100% { 100% {
box-shadow: initial; box-shadow: initial;
border-radius: 0.6rem; border-radius: var(--smaller);
} }
} }
@keyframes highlight { @keyframes highlight {
@ -703,14 +791,14 @@ html {
-webkit-box-shadow: initial; -webkit-box-shadow: initial;
-moz-box-shadow: initial; -moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
50% { 50% {
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
-webkit-box-shadow: inset 0 20px 40px #000; -webkit-box-shadow: inset 0 20px 40px #000;
-moz-box-shadow: inset 0 20px 40px #000; -moz-box-shadow: inset 0 20px 40px #000;
box-shadow: inset 0 20px 40px #000; box-shadow: inset 0 20px 40px #000;
@ -725,9 +813,9 @@ html {
-webkit-box-shadow: initial; -webkit-box-shadow: initial;
-moz-box-shadow: initial; -moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
-moz-border-radius: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: 0.6rem; border-radius: var(--smaller);
} }
} }
} }

View File

@ -1,334 +1,149 @@
@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,
.accessibility-menu,
.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, /* Focus and hover (inset shadow is used in alternative to a border to prevent further redraws) */
.doc-navigation, button:focus,
.h-entry, button:hover,
.markdown-blocks, input:focus,
.profile, input:hover,
.section-attachments, select:focus,
.section-settings, select:hover,
.section-settings ul, textarea:focus,
.section-widget, textarea:hover {
.set-background-color-alpha, -webkit-box-shadow: var(--shadow-inset-accent) !important;
button, -moz-box-shadow: var(--shadow-inset-accent) !important;
input, box-shadow: var(--shadow-inset-accent) !important;
select,
textarea {
background-color: #1A1A2666 !important;
}
.set-background-color-gradient,
button:not(.button-container),
input[type=file] {
background: -webkit-gradient(linear, left top, left bottom, from(#46465E), to(transparent)) !important;
background: -webkit-linear-gradient(top, #46465E, transparent) !important;
background: -moz-linear-gradient(top, #46465E, transparent) !important;
background: -o-linear-gradient(top, #46465E, transparent) !important;
background: linear-gradient(180deg, #46465E, transparent) !important;
}
.note-info {
background: -webkit-gradient(linear, right top, left top, from(#1A1A2666), to(transparent)) !important;
background: -webkit-linear-gradient(right, #1A1A2666, transparent) !important;
background: -moz-linear-gradient(right, #1A1A2666, transparent) !important;
background: -o-linear-gradient(right, #1A1A2666, transparent) !important;
background: linear-gradient(to left, #1A1A2666, transparent) !important;
}
.section-settings hr {
background-image: -webkit-gradient(linear, left top, right top, from(#1A1A2666), color-stop(90%, transparent));
background-image: -webkit-linear-gradient(left, #1A1A2666, transparent 90%);
background-image: -moz-linear-gradient(left, #1A1A2666, transparent 90%);
background-image: -o-linear-gradient(left, #1A1A2666, transparent 90%);
background-image: linear-gradient(to right, #1A1A2666, transparent 90%);
}
.form .separator {
background-image: -webkit-gradient(linear, left top, left bottom, from(#1A1A2666), color-stop(90%, transparent));
background-image: -webkit-linear-gradient(top, #1A1A2666, transparent 90%);
background-image: -moz-linear-gradient(top, #1A1A2666, transparent 90%);
background-image: -o-linear-gradient(top, #1A1A2666, transparent 90%);
background-image: linear-gradient(to bottom, #1A1A2666, transparent 90%);
}
.button-container:focus,
.button-container:hover,
.set-background-color-accent,
input[type=checkbox],
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 {
background-color: #FFF !important;
}
::-webkit-file-upload-button {
color: #FFF;
fill: #FFF;
}
::file-selector-button {
color: #FFF;
fill: #FFF;
}
body,
input,
textarea,
select {
color: #FFF;
fill: #FFF;
}
.accessibility-menu,
.set-border-accent {
border: 2px solid #8081BA;
}
.doc-navigation,
.h-entry,
.markdown-blocks,
.section-settings,
.section-settings ul,
.section-widget,
.set-border-soft,
button,
input,
select,
textarea {
border: 2px solid #46465E !important;
}
#header,
.h-entry,
.header-extra-forms-open,
.profile,
.set-shadow-dark,
button,
input,
select,
textarea {
-webkit-box-shadow: 0 0 16px 0 #00000016;
-moz-box-shadow: 0 0 16px 0 #00000016;
box-shadow: 0 0 16px 0 #00000016;
}
.set-shadow-light {
-webkit-box-shadow: 0 0 16px 0 #FFFFFF16;
-moz-box-shadow: 0 0 16px 0 #FFFFFF16;
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,
.accessibility-menu,
.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, *:focus {
.set-background-color-soft, -webkit-box-shadow: var(--shadow-inset-accent);
hr, -moz-box-shadow: var(--shadow-inset-accent);
input[type=checkbox] { box-shadow: var(--shadow-inset-accent);
background-color: #4c566a66 !important;
}
#replyform,
.doc-navigation,
.h-entry,
.markdown-blocks,
.profile,
.section-attachments,
.section-settings,
.section-settings ul,
.section-widget,
.set-background-color-alpha,
button,
input,
select,
textarea {
background-color: #eceff488 !important;
}
.set-background-color-gradient,
button:not(.button-container),
input[type=file] {
background: -webkit-gradient(linear, left top, left bottom, from(#d8dee966), to(transparent)) !important;
background: -webkit-linear-gradient(top, #d8dee966, transparent) !important;
background: -moz-linear-gradient(top, #d8dee966, transparent) !important;
background: -o-linear-gradient(top, #d8dee966, transparent) !important;
background: linear-gradient(180deg, #d8dee966, transparent) !important;
}
.note-info {
background: -webkit-gradient(linear, right top, left top, from(#eceff488), to(transparent)) !important;
background: -webkit-linear-gradient(right, #eceff488, transparent) !important;
background: -moz-linear-gradient(right, #eceff488, transparent) !important;
background: -o-linear-gradient(right, #eceff488, transparent) !important;
background: linear-gradient(to left, #eceff488, transparent) !important;
}
.section-settings hr {
background-image: -webkit-gradient(linear, left top, right top, from(#d8dee966), color-stop(90%, transparent));
background-image: -webkit-linear-gradient(left, #d8dee966, transparent 90%);
background-image: -moz-linear-gradient(left, #d8dee966, transparent 90%);
background-image: -o-linear-gradient(left, #d8dee966, transparent 90%);
background-image: linear-gradient(to right, #d8dee966, transparent 90%);
}
.form .separator {
background-image: -webkit-gradient(linear, left top, left bottom, from(#d8dee966), color-stop(90%, transparent));
background-image: -webkit-linear-gradient(top, #d8dee966, transparent 90%);
background-image: -moz-linear-gradient(top, #d8dee966, transparent 90%);
background-image: -o-linear-gradient(top, #d8dee966, transparent 90%);
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=checkbox]:checked,
input[type=radio]:checked {
background-color: #2e3440 !important;
}
::-webkit-file-upload-button {
color: #2e3440;
fill: #2e3440;
}
::file-selector-button {
color: #2e3440;
fill: #2e3440;
}
body,
input,
textarea,
select {
color: #2e3440;
fill: #2e3440;
}
.accessibility-menu,
.set-border-accent {
border: 2px solid #2e3440;
}
.doc-navigation,
.h-entry,
.markdown-blocks,
.section-settings,
.section-settings ul,
.section-widget,
.set-border-soft,
button,
input,
select,
textarea {
border: 2px solid #4c566a66 !important;
}
#header,
.h-entry,
.header-extra-forms-open,
.profile,
.set-shadow-dark,
button,
input,
select,
textarea {
-webkit-box-shadow: 0 0 16px 0 #00000016;
-moz-box-shadow: 0 0 16px 0 #00000016;
box-shadow: 0 0 16px 0 #00000016;
}
.set-shadow-light {
-webkit-box-shadow: 0 0 16px 0 #FFFFFF16;
-moz-box-shadow: 0 0 16px 0 #FFFFFF16;
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;
}
} }
.page-header,
.accessibility-menu,
.header-extra-forms-open,
.set-background-color-hard,
input[type=checkbox]:checked~.panel-content,
input[type=radio] {
background-color: var(--background-hard) !important;
}
.button-container,
.note-actions-set,
.set-background-color-soft,
hr,
input[type=checkbox] {
background-color: var(--background-soft) !important;
}
#replyform,
.doc-navigation,
.h-entry,
.markdown-blocks,
.profile,
.section-title-details,
.section-attachments,
.section-settings,
.section-settings ul,
.section-widget,
.set-background-color-alpha,
button,
input,
select,
textarea {
background-color: var(--translucent) !important;
}
.set-background-color-gradient,
button:not(.button-container),
input[type=file] {
background: var(--gradient) !important;
}
.note-info {
background: var(--tneidarg) !important;
}
.section-settings hr {
background: var(--background-soft) !important;
}
.button-container:focus,
.button-container:hover,
.set-background-color-accent,
input[type=checkbox],
input[type=checkbox]:focus,
input[type=checkbox]:hover,
input[type=radio]:focus,
input[type=radio]:hover {
background-color: var(--accent) !important;
}
.note-actions-set,
.set-background-color-foreground {
background-color: var(--foreground) !important;
}
::-webkit-file-upload-button {
color: var(--foreground);
fill: var(--foreground);
}
::file-selector-button {
color: var(--foreground);
fill: var(--foreground);
}
::file-selector-button {
color: var(--foreground);
fill: var(--foreground);
}
body,
input,
textarea,
select {
color: var(--foreground);
fill: var(--foreground);
}
.accessibility-menu,
.set-border-accent {
border: 2px solid var(--accent);
}
.doc-navigation,
.h-entry,
.markdown-blocks,
.section-settings,
.section-settings ul,
.section-widget,
.set-border-soft,
button,
input,
select,
textarea {
border: 2px solid var(--background-soft) !important;
}
#header,
.h-entry,
.header-extra-forms-open,
.profile,
.set-shadow-dark,
button,
input,
select,
textarea {
-webkit-box-shadow: var(--shadow);
-moz-box-shadow: var(--shadow);
box-shadow: var(--shadow);
}
.set-shadow-light {
-webkit-box-shadow: var(--shadow-light);
-moz-box-shadow: var(--shadow-light);
box-shadow: var(--shadow-light);
}

View File

@ -1,85 +1,170 @@
.notes hr { .notes hr {
margin-top: 6px margin-top: var(--smaller)
} }
.note-wrapper { .note-wrapper {
width: 100%; width: 100%;
height: inherit height: inherit
} }
.note-sidebar { .note-sidebar {
padding: 0.6rem padding: var(--smaller)
} }
.note-sidebar * { .note-sidebar * {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
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: var(--big);
height: auto; height: auto;
background: unset; background: unset;
margin-bottom: 0.6rem; margin-bottom: var(--smaller);
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px border-radius: 2px
} }
.h-entry:not(:first-child) { .h-entry:not(:first-child) {
margin-top: 0.6rem margin-top: var(--smaller)
} }
.h-entry img {
background: repeating-conic-gradient(#ffffff66 0deg 90deg, #ffffff33 0deg 180deg) 0 0/40px 40px round;
}
.h-entry .embed { .h-entry .embed {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column; flex-direction: column;
padding: 0.6rem; padding: var(--smaller);
border: unset; border: unset;
width: 100% width: 100%
} }
.h-entry .embed[class*="p-"] { .h-entry .embed[class*="p-"] {
padding: unset !important padding: unset
} }
.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: -webkit-min-content;
max-width: -moz-min-content;
max-width: min-content; max-width: min-content;
max-height: -webkit-min-content;
max-height: -moz-min-content;
max-height: min-content max-height: min-content
} }
.h-entry { .h-entry {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
border-radius: 0.6rem -webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller)
} }
.h-entry figure { .h-entry figure {
margin: unset; margin: unset;
-o-object-fit: cover;
object-fit: cover object-fit: cover
} }
.h-entry .replies .h-entry { .h-entry .replies .h-entry {
background-color: unset; background-color: unset;
padding: 0 0.6rem 0.6rem 0; padding: 0 var(--smaller) var(--smaller) 0;
margin-left: 1.3rem margin-left: var(--small)
} }
.note-info { .note-info {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-moz-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between; justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center; align-items: center;
max-height: 3rem; max-height: var(--big);
border-bottom: unset; border-bottom: unset;
border-radius: 0.6rem 0.6rem 0 0; -webkit-border-radius: var(--smaller) var(--smaller) 0 0;
font-size: 1.3rem; -moz-border-radius: var(--smaller) var(--smaller) 0 0;
border-radius: var(--smaller) var(--smaller) 0 0;
font-size: var(--small);
padding: 6px 10px 6px 0 padding: 6px 10px 6px 0
} }
.note-author { .note-author {
font-size: 1rem; font-size: var(--default);
font-weight: bold; font-weight: bold;
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center; align-items: center;
-webkit-align-self: center;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center align-self: center
} }
.note-actions { .note-actions {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
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 {
border: none !important; border: none !important;
-webkit-border-radius: unset !important; -webkit-border-radius: unset !important;
@ -89,62 +174,100 @@
mask-repeat: no-repeat !important; mask-repeat: no-repeat !important;
-webkit-mask-size: cover !important; -webkit-mask-size: cover !important;
mask-size: cover !important; mask-size: cover !important;
margin-left: 0.6rem; margin-left: var(--smaller);
width: 1rem; width: var(--default);
height: 1rem; height: var(--default);
}
} }
.button-container:hover, .button-container:hover,
.button-container:focus { .button-container:focus {
border: none !important border: none
} }
.favourite-button-container { .favourite-button-container {
-webkit-mask-image: url("../../icons/heart.svg") !important; -webkit-mask-image: url("../../icons/heart.svg");
-o-mask-image: url("../../icons/heart.svg") !important; -o-mask-image: url("../../icons/heart.svg");
-moz-mask-image: url("../../icons/heart.svg") !important; -moz-mask-image: url("../../icons/heart.svg");
mask-image: url("../../icons/heart.svg") !important mask-image: url("../../icons/heart.svg")
} }
.reply-button-container { .reply-button-container {
-webkit-mask-image: url("../../icons/reply.svg") !important; -webkit-mask-image: url("../../icons/reply.svg");
-o-mask-image: url("../../icons/reply.svg") !important; -o-mask-image: url("../../icons/reply.svg");
-moz-mask-image: url("../../icons/reply.svg") !important; -moz-mask-image: url("../../icons/reply.svg");
mask-image: url("../../icons/reply.svg") !important mask-image: url("../../icons/reply.svg")
} }
.repeat-button-container { .repeat-button-container {
-webkit-mask-image: url("../../icons/repeat.svg") !important; -webkit-mask-image: url("../../icons/repeat.svg");
-o-mask-image: url("../../icons/repeat.svg") !important; -o-mask-image: url("../../icons/repeat.svg");
-moz-mask-image: url("../../icons/repeat.svg") !important; -moz-mask-image: url("../../icons/repeat.svg");
mask-image: url("../../icons/repeat.svg") !important mask-image: url("../../icons/repeat.svg")
} }
.delete-button-container { .delete-button-container {
-webkit-mask-image: url("../../icons/delete.svg") !important; -webkit-mask-image: url("../../icons/delete.svg");
-o-mask-image: url("../../icons/delete.svg") !important; -o-mask-image: url("../../icons/delete.svg");
-moz-mask-image: url("../../icons/delete.svg") !important; -moz-mask-image: url("../../icons/delete.svg");
mask-image: url("../../icons/delete.svg") !important; mask-image: url("../../icons/delete.svg");
background: #FF634766 !important background: #FF634766
} }
.note-content { .note-content {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-moz-box-orient: vertical;
-moz-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column; flex-direction: column;
border-radius: 0 0 0.6rem 0.6rem; -webkit-border-radius: 0 0 var(--smaller) var(--smaller);
padding: 1rem -moz-border-radius: 0 0 var(--smaller) var(--smaller);
border-radius: 0 0 var(--smaller) var(--smaller);
padding: var(--default)
} }
.note-text { .note-text {
margin-bottom: 0.6rem margin-bottom: var(--smaller)
} }
.section-attachments { .section-attachments {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap; flex-wrap: wrap;
max-width: -webkit-max-content;
max-width: -moz-max-content;
max-width: max-content; max-width: max-content;
border-radius: 0.6rem; -webkit-border-radius: var(--smaller);
padding: 0.6rem; -moz-border-radius: var(--smaller);
border-radius: var(--smaller);
padding: var(--smaller);
-webkit-align-self: flex-start;
-ms-flex-item-align: start;
align-self: flex-start align-self: flex-start
} }
.note-attachments:not(:only-child) { .note-attachments:not(:only-child) {
margin-right: 0.6rem margin-right: var(--smaller)
} }
.note-attachments > figure figcaption {
.note-attachments>figure figcaption {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
word-break: break-all; word-break: break-all;
margin-bottom: 0.6rem margin-bottom: var(--smaller)
} }

View File

@ -1,4 +1,6 @@
.panel-left .panel-content {
.section-panel-left {
left: 0; left: 0;
} }
@ -8,7 +10,7 @@
top: -100%; top: -100%;
} }
#panel-left-icon { .panel-left-icon {
cursor: pointer !important; cursor: pointer !important;
border: 2px solid transparent; border: 2px solid transparent;
} }
@ -18,9 +20,10 @@
flex-direction: column; flex-direction: column;
} }
/* TIMELINE NAVIGATION / PLUGINS */ /* TIMELINE NAVIGATION / PLUGINS */
.timeline-nav { .timeline-nav {
margin-bottom: var(--main-size); margin-bottom: var(--medium);
} }
.timeline-nav a { .timeline-nav a {
@ -29,14 +32,15 @@
.timeline-nav hr { .timeline-nav hr {
flex: 1; flex: 1;
background: linear-gradient(90deg, var(--bg3), transparent); background: linear-gradient(90deg, var(--accent), transparent);
} }
.timeline-nav a { .timeline-nav a {
color: var(--white); color: var(--foreground);
} }
.timeline-nav .active { .timeline-nav .active {
color: var(--white); color: var(--foreground);
} }
.main-nav a { .main-nav a {
@ -46,13 +50,12 @@
.footer { .footer {
margin-top: auto; margin-top: auto;
font-size: var(--small-size); font-size: var(--default);
} }
@media only screen @media only screen and (min-width: 1281px) {
and (min-width : 1281px) { .panel-left-icon {
#panel-left-icon {
display: none; display: none;
} }
} }

View File

@ -1,4 +1,6 @@
.panel-right .panel-content {
.section-panel-right {
right: 0; right: 0;
} }
@ -8,15 +10,15 @@
top: -100%; top: -100%;
} }
#panel-right-icon { .panel-right-icon {
margin-left: var(--unit-size); margin-left: var(--small) !important;
cursor: pointer !important; cursor: pointer !important;
border: 2px solid transparent; border: 2px solid transparent;
} }
@media only screen @media only screen and (min-width: 1281px) {
and (min-width: 1281px) { .panel-right-icon {
#panel-right-icon {
display: none; display: none;
} }
} }

View File

@ -28,7 +28,7 @@
{% endfor %} {% endfor %}
</head> </head>
<body class="bg set-background-color-1"> <body class="background-image set-background-color-1">
<aside class="accessibility-menu set-background-color-1"> <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>
@ -66,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 class="page-header">
{{ 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>
@ -74,11 +74,11 @@
<h1>{{ icon('logo', 'icon icon-logo') | raw }}{{ config('site', 'name') }} </h1> <h1>{{ icon('logo', 'icon icon-logo') | raw }}{{ config('site', 'name') }} </h1>
</a> </a>
<details class="header-extra-forms"> <details class="header-extra-actions">
<summary> <summary>
{{ icon('kebab', 'icon icon-details-open') | raw }} {{ icon('kebab', 'icon icon-details-open') | raw }}
</summary> </summary>
<div class="header-extra-forms-open"> <div class="header-extra-actions-open">
{% for extra_form in extra_header_forms %} {% for extra_form in extra_header_forms %}
{{ form(extra_form) }} {{ form(extra_form) }}
{% endfor %} {% endfor %}
@ -91,9 +91,9 @@
</header> </header>
{% endblock header %} {% endblock header %}
<div class="content-wrapper"> <div class="page-content-wrapper">
<a role="navigation" rel="help" id="anchor-main-content" class="anchor-hidden" title="{{ 'Press tab to access main content.' | trans }}"></a> <a role="navigation" rel="help" id="anchor-main-content" class="anchor-hidden" title="{{ 'Press tab to access main content.' | trans }}"></a>
<div class='content accessibility-target'> <div class='page-content accessibility-target'>
{% block nav %}{% endblock %} {% block nav %}{% endblock %}
{% block body %}{% endblock %} {% block body %}{% endblock %}
{% block javascripts %}{% endblock javascripts %} {% block javascripts %}{% endblock javascripts %}

View File

@ -1,7 +1,7 @@
{% extends 'stdgrid.html.twig' %} {% extends 'stdgrid.html.twig' %}
{% block body %} {% block body %}
<div class="content"> <div class="page">
<section class="section-widget section-widget-padded"> <section class="section-widget section-widget-padded">
{% include '/cards/attachments/view.html.twig' with {'attachment': attachment, 'note': null} only %} {% include '/cards/attachments/view.html.twig' with {'attachment': attachment, 'note': null} only %}

View File

@ -16,7 +16,7 @@
{% block body %} {% block body %}
{{ parent() }} {{ parent() }}
<div class="content"> <div class="page">
<div class="main"> <div class="main">
{% include '/cards/note/view.html.twig' with {'note': note} only %} {% include '/cards/note/view.html.twig' with {'note': note} only %}
{{ form(reply) }} {{ form(reply) }}