[COMPONENTS][RightPanel] Added 'Additional options' details on posting form

[CSS] Trimming down wasted space and vendor related prefixes

[TWIG][Templates] Added main navigation to navigation card, removed note car language short display
This commit is contained in:
Eliseu Amaro 2021-12-07 15:33:02 +00:00
parent 92314403bb
commit 0bac6a229e
Signed by: eliseuamaro
GPG Key ID: 96DA09D4B97BC2D5
8 changed files with 244 additions and 519 deletions

View File

@ -18,7 +18,20 @@
<div class="section-form"> <div class="section-form">
<fieldset> <fieldset>
{{ form(blocks['post_form']) }} {{ form_start(blocks['post_form']) }}
{{ form_row(blocks['post_form'].to) }}
{{ form_row(blocks['post_form'].visibility) }}
{{ form_row(blocks['post_form'].content) }}
{{ form_row(blocks['post_form'].attachments) }}
<details class="section-widget-subtitle-details">
<summary class="section-subtitle-summary">
{{ "Additional options" | trans }}{{ icon('arrow-down', 'icon icon-details-close') | raw }}
</summary>
{{ form_row(blocks['post_form'].language) }}
{{ form_row(blocks['post_form'].tag_use_canonical) }}
</details>
{{ form_end(blocks['post_form']) }}
</fieldset> </fieldset>
</div> </div>
</details> </details>

View File

@ -1,182 +1,9 @@
@import url("../fonts/poppins/poppins.css"); @import url("../fonts/poppins/poppins.css");
@import url("../fonts/opensans/opensans.css"); @import url("../fonts/opensans/opensans.css");
@import url("reset.css");
@import url("widgets/buttons.css"); @import url("widgets/buttons.css");
@import url("widgets/sections.css"); @import url("widgets/sections.css");
* {
-webkit-box-sizing: border-box !important;
-moz-box-sizing: border-box !important;
box-sizing: border-box !important;
max-width: 100%;
}
body,html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--background-hard);
background-attachment: fixed;
font-family: 'Open Sans',sans-serif;
font-size: var(--default);
display: flex;
flex-direction: column;
}
body,input,textarea,select {
color: var(--foreground);
}
:link,:visited {
text-decoration: none;
color: currentColor;
}
hr {
all: unset;
display: block;
height: 1px;
background-color: var(--border) !important;
}
ol,ul {
list-style: none;
}
blockquote,body,fieldset,form,html,input,pre,textarea {
margin: 0;
padding: 0;
border: 0;
}
fieldset {
all: unset;
}
:link img,:visited img,a img {
border: 0;
}
address {
font-style: normal;
}
:focus {
outline: 0;
}
::-moz-focus-inner {
border: 0;
}
details summary {
cursor: pointer !important;
}
details summary>* {
margin: unset;
padding: unset;
}
details>summary {
list-style: none;
}
details>summary::-webkit-details-marker {
display: none;
}
@supports not(-ms-ime-align:auto) {
details summary {
cursor: pointer;
}
}
[hidden] {
display: none;
}
h1,h2,h3,h4,h5,h6 {
all: unset;
display: block;
font-family: 'Poppins',sans-serif;
}
h1 {
font-size: var(--medium);
font-weight: 700;
margin-bottom: 16.2px;
}
h2 {
font-size: var(--small);
font-weight: 600;
margin-bottom: 13px;
}
h3 {
font-size: var(--default);
font-weight: 600;
margin-bottom: 10px;
}
h4,h5 {
font-size: var(--default);
font-weight: 400;
margin-bottom: 6.1px;
}
p {
font-family: 'Open Sans',sans-serif;
font-size: var(--default);
font-weight: 400;
margin: unset;
}
p:first-line {
padding-left: var(--default);
}
p:first-line {
margin-top: 0;
margin-bottom: 10px;
}
p:not(:first-line) {
margin-top: 10px;
margin-bottom: 10px;
}
input[type=password],input[type=text],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;
}
a:focus,
a:hover {
text-decoration: underline;
}
*:focus-visible {
-webkit-box-shadow: var(--shadow-inset-accent);
-moz-box-shadow: var(--shadow-inset-accent);
box-shadow: var(--shadow-inset-accent);
}
@media(prefers-color-scheme:dark) { @media(prefers-color-scheme:dark) {
select:not([multiple]) { select:not([multiple]) {
@ -184,7 +11,6 @@ a:hover {
background-size: cover,16px !important; background-size: cover,16px !important;
} }
} }
@media(prefers-color-scheme:light) { @media(prefers-color-scheme:light) {
select:not([multiple]) { select:not([multiple]) {
background: var(--gradient),url("../images/select_drop_light.png") no-repeat center right 5px !important; background: var(--gradient),url("../images/select_drop_light.png") no-repeat center right 5px !important;
@ -192,27 +18,22 @@ a:hover {
background-blend-mode: saturation; background-blend-mode: saturation;
} }
} }
.icon { .icon {
align-self: center; align-self: center;
fill: var(--foreground); fill: var(--foreground);
} }
.edit-feed-link { .edit-feed-link {
display: block; display: block;
float: right; float: right;
} }
.active { .active {
font-weight: bold; font-weight: bold;
} }
.anchor-hidden { .anchor-hidden {
width: 1px; width: 1px;
height: 1px; height: 1px;
overflow: hidden; overflow: hidden;
} }
.accessibility-menu { .accessibility-menu {
display: block; display: block;
position: absolute; position: absolute;
@ -226,21 +47,17 @@ a:hover {
background-color: var(--background-hard) !important; background-color: var(--background-hard) !important;
border: 2px solid var(--border); border: 2px solid var(--border);
} }
.accessibility-menu ul { .accessibility-menu ul {
list-style-type: disc; list-style-type: disc;
margin-left: var(--small); margin-left: var(--small);
} }
.accessibility-menu:focus-within:not(:active) { .accessibility-menu:focus-within:not(:active) {
top: var(--smaller); top: var(--smaller);
left: var(--smaller); left: var(--smaller);
} }
html { html {
scroll-margin-top: var(--big); scroll-margin-top: var(--big);
} }
.page-header { .page-header {
z-index: 1; z-index: 1;
font-family: 'Poppins',sans-serif; font-family: 'Poppins',sans-serif;
@ -256,7 +73,6 @@ html {
background: var(--gradient) !important; background: var(--gradient) !important;
box-shadow: var(--shadow); box-shadow: var(--shadow);
} }
.header-instance { .header-instance {
display: flex; display: flex;
position: absolute; position: absolute;
@ -265,16 +81,13 @@ html {
align-self: center; align-self: center;
margin-left: auto; margin-left: auto;
} }
.header-instance > * { .header-instance > * {
margin: unset; margin: unset;
} }
.header-extra-actions { .header-extra-actions {
justify-self: flex-end; justify-self: flex-end;
margin-left: auto; margin-left: auto;
} }
.header-extra-actions[open] > *:not(summary) { .header-extra-actions[open] > *:not(summary) {
z-index: 2; z-index: 2;
position: absolute; position: absolute;
@ -287,7 +100,6 @@ html {
background: var(--background-hard); background: var(--background-hard);
box-shadow: var(--shadow); box-shadow: var(--shadow);
} }
.header-panel { .header-panel {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -300,7 +112,10 @@ html {
padding: var(--smaller); padding: var(--smaller);
overflow-y: auto; overflow-y: auto;
} }
.panel-content {
display: flex;
flex-direction: column;
}
.page-content-wrapper { .page-content-wrapper {
position: relative; position: relative;
top: var(--big); top: var(--big);
@ -309,41 +124,34 @@ html {
justify-content: center; justify-content: center;
padding: var(--smaller) var(--smaller) 0; padding: var(--smaller) var(--smaller) 0;
} }
.page-content { .page-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
} }
.markdown-blocks { .markdown-blocks {
border-radius: 0 0 var(--smaller) var(--smaller); border-radius: 0 0 var(--smaller) var(--smaller);
padding: var(--smaller); padding: var(--smaller);
background-color: var(--background-card) !important; background-color: var(--background-card) !important;
} }
.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: .2em; margin-bottom: 0.2em;
} }
.doc-navigation { .doc-navigation {
border-radius: var(--smaller) var(--smaller) 0 0; border-radius: var(--smaller) var(--smaller) 0 0;
border-bottom: 0; border-bottom: 0;
padding: var(--smaller); padding: var(--smaller);
background-color: var(--background-card) !important; background-color: var(--background-card) !important;
} }
.doc-navigation ul { .doc-navigation ul {
display: flex; display: flex;
justify-content: space-evenly; justify-content: space-evenly;
font-size: var(--medium); font-size: var(--medium);
} }
#replyform { #replyform {
padding: var(--smaller); padding: var(--smaller);
margin-top: var(--smaller); margin-top: var(--smaller);
@ -353,52 +161,39 @@ html {
font-size: var(--default); font-size: var(--default);
background-color: var(--background-card) !important; background-color: var(--background-card) !important;
} }
#replyform textarea { #replyform textarea {
width: 100%; width: 100%;
resize: vertical; resize: vertical;
margin-top: var(--smaller); margin-top: var(--smaller);
padding: var(--smaller); padding: var(--smaller);
} }
/* < 720p */
@media only screen and (max-width:1280px) { @media only screen and (max-width:1280px) {
.page-header { .page-header {
width: 100%; width: 100%;
} }
.page-content-wrapper { .page-content-wrapper {
width: 100%; width: 100%;
} }
.page-content { .page-content {
max-width: 100%; max-width: 100%;
} }
.header-extra-actions[open] > *:not(summary) { .header-extra-actions[open] > *:not(summary) {
width: 100%; width: 100%;
} }
#panel-left-toggle:not(:checked)+.header-panel,
#panel-left-toggle:not(:checked)+.header-panel,#panel-right-toggle:not(:checked)+.header-panel { #panel-right-toggle:not(:checked)+.header-panel {
display: none; display: none;
} }
#panel-left-toggle:checked+.header-panel,
#panel-left-toggle:checked+.header-panel,#panel-right-toggle:checked+.header-panel,a[id|="anchor"]:target ~ .panel-content { #panel-right-toggle:checked+.header-panel,
display: -webkit-box; a[id|="anchor"]:target ~ .panel-content {
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
width: 100%; width: 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
background-size: 100% 100%; background-size: 100% 100%;
z-index: auto; z-index: auto;
background-color: var(--background-hard) !important; background-color: var(--background-hard) !important;
} }
} }
/* > 720p */ /* > 720p */
@media only screen and (min-width:1281px) { @media only screen and (min-width:1281px) {
/* /*
@ -415,31 +210,18 @@ html {
.page-header { .page-header {
width: 100%; width: 100%;
} }
.header-panel { .header-panel {
width: 17vw; width: 17vw;
} }
.page-content-wrapper { .page-content-wrapper {
width: 66vw; width: 66vw;
} }
a[id|="anchor"]:target+.accessibility-target { a[id|="anchor"]:target+.accessibility-target {
-webkit-animation-name: highlight;
-moz-animation-name: highlight;
-o-animation-name: highlight;
animation-name: highlight; animation-name: highlight;
-webkit-animation-duration: 600ms;
-moz-animation-duration: 600ms;
-o-animation-duration: 600ms;
animation-duration: 600ms; animation-duration: 600ms;
-webkit-animation-timing-function: ease-in-out;
-moz-animation-timing-function: ease-in-out;
-o-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out; animation-timing-function: ease-in-out;
} }
} }
/* > 1080p */ /* > 1080p */
@media only screen and (min-width:1921px) { @media only screen and (min-width:1921px) {
/* /*
@ -457,116 +239,64 @@ html {
.page-header { .page-header {
width: 66vw; width: 66vw;
} }
.header-panel { .header-panel {
width: 11vw; width: 11vw;
} }
.page-content-wrapper { .page-content-wrapper {
width: 44vw; width: 44vw;
} }
} }
@keyframes fadeIn { @keyframes fadeIn {
0% { 0% {
opacity: 0; opacity: 0;
-webkit-transform: translateY(-10px);
-moz-transform: translateY(-10px);
-o-transform: translateY(-10px);
transform: translateY(-10px); transform: translateY(-10px);
} }
100% { 100% {
opacity: unset; opacity: unset;
-webkit-transform: none;
-moz-transform: none;
-o-transform: none;
transform: none; transform: none;
} }
} }
@keyframes fadeOut { @keyframes fadeOut {
100% { 100% {
opacity: 0; opacity: 0;
-webkit-transform: translateY(-10px);
-moz-transform: translateY(-10px);
-o-transform: translateY(-10px);
transform: translateY(-10px); transform: translateY(-10px);
} }
0% { 0% {
opacity: unset; opacity: unset;
-webkit-transform: none;
-moz-transform: none;
-o-transform: none;
transform: none; transform: none;
} }
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
@keyframes highlight { @keyframes highlight {
0% { 0% {
-webkit-box-shadow: initial;
-moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller); border-radius: var(--smaller);
} }
50% { 50% {
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller); border-radius: var(--smaller);
-webkit-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;
transition: -webkit-box-shadow 0.3s ease-in-out;
-o-transition: box-shadow 0.3s ease-in-out;
-moz-transition: box-shadow 0.3s ease-in-out, -moz-box-shadow 0.3s ease-in-out;
transition: box-shadow 0.3s ease-in-out; transition: box-shadow 0.3s ease-in-out;
transition: box-shadow 0.3s ease-in-out, -webkit-box-shadow 0.3s ease-in-out, -moz-box-shadow 0.3s ease-in-out;
z-index: 666; z-index: 666;
} }
100% { 100% {
-webkit-box-shadow: initial;
-moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller); border-radius: var(--smaller);
} }
} }
} }
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
@keyframes highlight { @keyframes highlight {
0% { 0% {
-webkit-box-shadow: initial;
-moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller); border-radius: var(--smaller);
} }
50% { 50% {
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller); border-radius: var(--smaller);
-webkit-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;
transition: -webkit-box-shadow 0.3s ease-in-out;
-o-transition: box-shadow 0.3s ease-in-out;
-moz-transition: box-shadow 0.3s ease-in-out, -moz-box-shadow 0.3s ease-in-out;
transition: box-shadow 0.3s ease-in-out; transition: box-shadow 0.3s ease-in-out;
transition: box-shadow 0.3s ease-in-out, -webkit-box-shadow 0.3s ease-in-out, -moz-box-shadow 0.3s ease-in-out;
} }
100% { 100% {
-webkit-box-shadow: initial;
-moz-box-shadow: initial;
box-shadow: initial; box-shadow: initial;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller); border-radius: var(--smaller);
} }
} }

View File

@ -1,35 +1,21 @@
.notes hr { .notes hr {
margin-top: var(--smaller) margin-top: var(--smaller);
} }
.note-wrapper { .note-wrapper {
width: 100%; width: 100%;
height: inherit height: inherit;
border-radius: var(--smaller) var(--smaller) 0 0;
} }
.note-sidebar { .note-sidebar {
padding: var(--smaller) 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 {
max-width: 4rem; max-width: 4rem;
max-height: 4rem; max-height: 4rem;
@ -38,197 +24,122 @@
height: auto; height: auto;
background: unset; background: unset;
margin-bottom: var(--smaller); margin-bottom: var(--smaller);
-webkit-border-radius: 2px; border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px
} }
.h-entry:not(:first-child) { .h-entry:not(:first-child) {
margin-top: var(--smaller) margin-top: var(--smaller);
} }
.h-entry:not(embed) { .h-entry:not(embed) {
border: 2px solid var(--border) !important; border: 2px solid var(--border) !important;
-webkit-box-shadow: var(--shadow);
-moz-box-shadow: var(--shadow);
box-shadow: var(--shadow); box-shadow: var(--shadow);
} }
.h-entry img { .h-entry img {
background: repeating-conic-gradient(#ffffff66 0deg 90deg, #ffffff33 0deg 180deg) 0 0/40px 40px round; background: repeating-conic-gradient(#ffffff66 0deg 90deg, #ffffff33 0deg 180deg) 0 0/40px 40px round;
} }
.embed { .embed {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: var(--smaller); padding: var(--smaller);
border: unset; border: unset;
} }
.embed header { .embed header {
width: 100%; width: 100%;
margin-bottom: var(--small); margin-bottom: var(--small);
} }
.embed img { .embed img {
width: 25%; width: 25%;
height: auto; height: auto;
margin-right: var(--smaller); margin-right: var(--smaller);
} }
.embed .p-summary { .embed .p-summary {
width: 60%; width: 60%;
} }
.embed .p-author,
.embed .p-name, .embed .p-name {
.embed .p-author {
font-weight: bold; font-weight: bold;
} }
.embed img { .embed 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: min-content;
max-height: -moz-min-content;
max-height: min-content
} }
.embed .p-summary hr { .embed .p-summary hr {
margin-top: var(--smaller); margin-top: var(--smaller);
margin-bottom: var(--smaller); margin-bottom: var(--smaller);
} }
.h-entry .embed[class*="p-"] { .h-entry .embed[class*="p-"] {
padding: unset padding: unset;
} }
.h-entry a:focus { .h-entry a:focus {
text-decoration: underline text-decoration: underline;
} }
.h-entry { .h-entry {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller); border-radius: var(--smaller);
background-color: var(--background-card) !important; background-color: var(--background-card) !important;
} }
.h-entry figure { .h-entry figure {
margin: unset; margin: unset;
-o-object-fit: cover;
object-fit: cover; object-fit: cover;
padding: var(--smaller); padding: var(--smaller);
background: var(--gradient); background: var(--gradient);
border-radius: var(--smaller); border-radius: var(--smaller);
} }
.h-entry .replies { .h-entry .replies {
padding: var(--smaller); padding: var(--smaller);
margin-left: var(--small) margin-left: var(--small);
} }
.note-info, .note-info,
embed header { embed header {
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: var(--big); max-height: var(--big);
border-bottom: unset; border-bottom: unset;
-webkit-border-radius: var(--smaller) var(--smaller) 0 0;
-moz-border-radius: var(--smaller) var(--smaller) 0 0;
border-radius: var(--smaller) var(--smaller) 0 0; border-radius: var(--smaller) var(--smaller) 0 0;
font-size: var(--small); font-size: var(--small);
padding: 6px 10px 6px 0; padding: 0 var(--smaller) 0 0;
} }
.note-info { .note-info {
background: var(--gradient-backwards) !important; background: var(--gradient-backwards);
background-clip: padding-box;
} }
.note-author { .note-author {
font-size: var(--default); font-size: var(--default);
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; align-self: center;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center
} }
.note-author-fullname { .note-author-fullname {
font-weight: bold; font-weight: bold;
} }
.note-author-nickname { .note-author-nickname {
opacity: 0.5; opacity: 0.5;
margin-left: var(--smaller); margin-left: var(--smaller);
} }
.note-author-nickname::before { .note-author-nickname::before {
content: '@'; content: '@';
} }
.note-actions ul { .note-actions ul {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex; display: flex;
vertical-align: middle vertical-align: middle;
} }
.note-actions-extra-details { .note-actions-extra-details {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.note-actions-extra-details summary { .note-actions-extra-details summary {
display: block; display: block;
opacity: 0.33; opacity: 0.33;
vertical-align: middle; vertical-align: middle;
} }
.note-actions-extra-details[open] > summary { .note-actions-extra-details[open] > summary {
opacity: 1 !important; opacity: 1 !important;
} }
.note-actions-extra-details[open] > summary + * { .note-actions-extra-details[open] > summary + * {
z-index: 1; z-index: 1;
display: flex; display: flex;
position: absolute; position: absolute;
right: 0; /* prevents details from overflowing */ right: 0;
flex-direction: column; flex-direction: column;
padding: var(--smaller); padding: var(--smaller);
border: 2px solid var(--border); border: 2px solid var(--border);
@ -238,15 +149,12 @@ embed header {
font-size: var(--default); font-size: var(--default);
width: max-content; width: max-content;
} }
.note-actions-extra-details[open] > summary + * > li:not(:last-of-type) { .note-actions-extra-details[open] > summary + * > li:not(:last-of-type) {
margin-bottom: var(--smaller); margin-bottom: var(--smaller);
} }
.note-actions-set { .note-actions-set {
opacity: 1 !important; opacity: 1 !important;
} }
.button-container { .button-container {
border: none !important; border: none !important;
mask-repeat: no-repeat !important; mask-repeat: no-repeat !important;
@ -258,112 +166,67 @@ embed header {
background-color: var(--foreground); background-color: var(--foreground);
opacity: 0.33; opacity: 0.33;
} }
.button-container:focus,
.button-container:hover, .button-container:hover {
.button-container:focus {
border: none !important; border: none !important;
opacity: 1; opacity: 1;
background-color: var(--accent); background-color: var(--accent);
} }
.favourite-button-container { .favourite-button-container {
-webkit-mask-image: url("../../icons/heart.svg");
-o-mask-image: url("../../icons/heart.svg"); -o-mask-image: url("../../icons/heart.svg");
-moz-mask-image: url("../../icons/heart.svg"); -moz-mask-image: url("../../icons/heart.svg");
mask-image: url("../../icons/heart.svg") mask-image: url("../../icons/heart.svg");
} }
.reply-button-container { .reply-button-container {
-webkit-mask-image: url("../../icons/reply.svg");
-o-mask-image: url("../../icons/reply.svg"); -o-mask-image: url("../../icons/reply.svg");
-moz-mask-image: url("../../icons/reply.svg"); -moz-mask-image: url("../../icons/reply.svg");
mask-image: url("../../icons/reply.svg") mask-image: url("../../icons/reply.svg");
} }
.repeat-button-container { .repeat-button-container {
-webkit-mask-image: url("../../icons/repeat.svg");
-o-mask-image: url("../../icons/repeat.svg"); -o-mask-image: url("../../icons/repeat.svg");
-moz-mask-image: url("../../icons/repeat.svg"); -moz-mask-image: url("../../icons/repeat.svg");
mask-image: url("../../icons/repeat.svg") mask-image: url("../../icons/repeat.svg");
} }
.delete-button-container { .delete-button-container {
-webkit-mask-image: url("../../icons/delete.svg");
-o-mask-image: url("../../icons/delete.svg"); -o-mask-image: url("../../icons/delete.svg");
-moz-mask-image: url("../../icons/delete.svg"); -moz-mask-image: url("../../icons/delete.svg");
mask-image: url("../../icons/delete.svg"); mask-image: url("../../icons/delete.svg");
} }
.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;
-webkit-border-radius: 0 0 var(--smaller) var(--smaller);
-moz-border-radius: 0 0 var(--smaller) var(--smaller);
border-radius: 0 0 var(--smaller) var(--smaller); border-radius: 0 0 var(--smaller) var(--smaller);
padding-top: var(--default); padding-top: var(--smaller);
padding-bottom: var(--default); padding-bottom: var(--smaller);
padding-right: var(--default); padding-right: var(--smaller);
} }
.note-text { .note-text {
margin-bottom: var(--smaller) margin-bottom: var(--smaller);
} }
.note-text a { .note-text a {
text-decoration: underline !important; text-decoration: underline !important;
} }
.note-attachments { .note-attachments {
display: flex; display: flex;
justify-items: flex-start; justify-items: flex-start;
} }
.note-attachments-unit { .note-attachments-unit {
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;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller); border-radius: var(--smaller);
padding: var(--smaller); padding: var(--smaller);
-webkit-align-self: flex-start; align-self:flex-start;
-ms-flex-item-align: start;
align-self: flex-start
background-color: var(--background-card) !important; background-color: var(--background-card) !important;
} }
.note-attachments-unit:not(:only-child) { .note-attachments-unit:not(:only-child) {
margin-right: var(--smaller) margin-right: var(--smaller);
} }
.note-attachments-unit > figure figcaption { .note-attachments-unit > 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: var(--smaller) margin-bottom: var(--smaller);
} }
.note-complementary { .note-complementary {
border-left: 2px solid var(--accent); border-left: 2px solid var(--accent);
border-end-start-radius: var(--smaller); border-end-start-radius: var(--smaller);
@ -375,11 +238,9 @@ embed header {
margin-right: var(--smaller); margin-right: var(--smaller);
background: var(--gradient) !important; background: var(--gradient) !important;
} }
.note-complementary a { .note-complementary a {
font-weight: bold; font-weight: bold;
} }
.h-entry-language { .h-entry-language {
position: relative; position: relative;
float: right; float: right;

View File

@ -0,0 +1,158 @@
* {
box-sizing: border-box !important;
max-width: 100%;
}
body,
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--background-hard);
background-attachment: fixed;
font-family: 'Open Sans',sans-serif;
font-size: var(--default);
display: flex;
flex-direction: column;
}
body,
input,
select,
textarea {
color: var(--foreground);
}
:link,
:visited {
text-decoration: none;
color: currentColor;
}
hr {
all: unset;
display: block;
height: 1px;
background-color: var(--border) !important;
}
ol,
ul {
list-style: none;
}
blockquote,
body,
fieldset,
form,
html,
input,
pre,
textarea {
margin: 0;
padding: 0;
border: 0;
}
fieldset {
all: unset;
}
:link img,
:visited img,
a img {
border: 0;
}
address {
font-style: normal;
}
:focus {
outline: 0;
}
::-moz-focus-inner {
border: 0;
}
details summary {
cursor: pointer !important;
}
details summary > * {
margin: unset;
padding: unset;
}
details > summary {
list-style: none;
}
details > summary::-webkit-details-marker {
display: none;
}
@supports not(-ms-ime-align:auto) {
details summary {
cursor: pointer;
}
}
[hidden] {
display: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
all: unset;
display: block;
font-family: 'Poppins',sans-serif;
}
h1 {
font-size: var(--medium);
font-weight: 700;
margin-bottom: 16.2px;
}
h2 {
font-size: var(--small);
font-weight: 600;
margin-bottom: 13px;
}
h3 {
font-size: var(--default);
font-weight: 600;
margin-bottom: 10px;
}
h4,
h5 {
font-size: var(--default);
font-weight: 400;
margin-bottom: 6.1px;
}
p {
font-family: 'Open Sans',sans-serif;
font-size: var(--default);
font-weight: 400;
margin: unset;
}
p:first-line {
padding-left: var(--default);
}
p:first-line {
margin-top: 0;
margin-bottom: 10px;
}
p:not(:first-line) {
margin-top: 10px;
margin-bottom: 10px;
}
input[type=password],
input[type=text],
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;
}
a:focus,
a:hover {
text-decoration: underline;
}
*:focus-visible {
box-shadow: var(--shadow-inset-accent);
}

View File

@ -10,26 +10,21 @@ input[type=radio] {
height: 1rem !important; height: 1rem !important;
background: var(--accent) !important; background: var(--accent) !important;
} }
input[type=checkbox]:not(:hover, :focus), input[type=checkbox]:not(:hover, :focus),
input[type=radio]:not(:hover, :focus) { input[type=radio]:not(:hover, :focus) {
background: var(--foreground) !important; background: var(--foreground) !important;
} }
input[type=checkbox], input[type=checkbox],
input[type=radio] { input[type=radio] {
border: unset !important; border: unset !important;
} }
input[type=radio] { input[type=radio] {
background: var(--background-hard) !important; background: var(--background-hard) !important;
} }
input[type=radio] { input[type=radio] {
border-radius: 50% !important; border-radius: 50% !important;
margin: 3px 3px 0 5px !important; margin: 3px 3px 0 5px !important;
} }
input[type=file] { input[type=file] {
all: unset; all: unset;
display: block; display: block;
@ -39,30 +34,22 @@ input[type=file] {
border-radius: var(--smaller); border-radius: var(--smaller);
background: var(--gradient) !important; background: var(--gradient) !important;
} }
input[type=radio] { input[type=radio] {
border: solid 0.25em !important; border: solid 0.25em !important;
} }
input[type=checkbox] { input[type=checkbox] {
background-size: 100%; background-size: 100%;
margin-right: 2px; margin-right: 2px;
-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=checkbox]:checked { input[type=checkbox]:checked {
-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;
} }
input[type=color] { input[type=color] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none; appearance: none;
width: var(--big); width: var(--big);
height: var(--big); height: var(--big);
@ -78,18 +65,6 @@ input[type=color]::-moz-color-swatch {
border-radius: var(--smaller); border-radius: var(--smaller);
border: none; border: none;
} }
::-webkit-file-upload-button {
cursor: pointer;
background-color: unset;
border: unset;
font-family: 'Open Sans',sans-serif !important;
font-weight: bold !important;
color: var(--foreground);
fill: var(--foreground);
margin: 3px;
}
::file-selector-button { ::file-selector-button {
cursor: pointer; cursor: pointer;
background-color: unset; background-color: unset;
@ -100,29 +75,24 @@ input[type=color]::-moz-color-swatch {
fill: var(--foreground); fill: var(--foreground);
margin: 3px; margin: 3px;
} }
*|*::-moz-button-content { *|*::-moz-button-content {
all: unset !important; all: unset !important;
} }
button { button {
display: block !important; display: block !important;
cursor: pointer !important; cursor: pointer !important;
margin-left: auto !important; margin-left: auto !important;
margin-top: var(--smaller); margin-top: var(--smaller);
} }
button, button,
label { label {
font-family: 'Poppins',sans-serif; font-family: 'Poppins',sans-serif;
font-weight: bold !important; font-weight: bold !important;
color: currentColor; color: currentColor;
} }
select::-ms-expand { select::-ms-expand {
display: none; display: none;
} }
button, button,
input, input,
select, select,
@ -139,18 +109,15 @@ textarea {
width: inherit; width: inherit;
max-width: border-box !important; max-width: border-box !important;
} }
button, button,
select, select,
textarea { textarea {
background: var(--gradient) !important; background: var(--gradient) !important;
} }
button, button,
input:not([type=checkbox], [type=radio]) { input:not([type=checkbox], [type=radio]) {
background: var(--gradient) !important; background: var(--gradient) !important;
} }
select { select {
-webkit-appearance: none !important; -webkit-appearance: none !important;
-moz-appearance: none !important; -moz-appearance: none !important;
@ -159,12 +126,10 @@ select {
border-radius: var(--smaller); border-radius: var(--smaller);
max-width: 100% !important; max-width: 100% !important;
} }
select[multiple] { select[multiple] {
overflow-y: scroll; overflow-y: scroll;
height: 20rem; height: 20rem;
} }
button:focus, button:focus,
button:hover, button:hover,
input:focus, input:focus,

View File

@ -7,41 +7,31 @@
border-radius: var(--smaller); border-radius: var(--smaller);
padding: var(--smaller); padding: var(--smaller);
background: var(--gradient) !important; background: var(--gradient) !important;
-webkit-box-shadow: var(--shadow);
-moz-box-shadow: var(--shadow);
box-shadow: var(--shadow); box-shadow: var(--shadow);
} }
.profile *[class*="profile-info-"] { .profile *[class*="profile-info-"] {
flex: 1; flex: 1;
} }
.profile-info { .profile-info {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
flex-direction: column; flex-direction: column;
} }
.profile-info-nickname { .profile-info-nickname {
font-size: var(--small); font-size: var(--small);
} }
.profile-info-tags { .profile-info-tags {
margin: unset; margin: unset;
} }
.profile-info-stats strong { .profile-info-stats strong {
margin-right: 5px; margin-right: 5px;
} }
.profile-info-stats { .profile-info-stats {
margin-top: var(--smaller); margin-top: var(--smaller);
} }
.profile-info-bio { .profile-info-bio {
word-break: break-all; word-break: break-all;
} }
.profile-avatar { .profile-avatar {
max-width: 4rem; max-width: 4rem;
max-height: 4rem; max-height: 4rem;
@ -51,7 +41,6 @@
margin-right: 5px; margin-right: 5px;
border-radius: 2px; border-radius: 2px;
} }
.section-widget { .section-widget {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -61,27 +50,22 @@
box-shadow: var(--shadow); box-shadow: var(--shadow);
border: 2px solid var(--border) !important; border: 2px solid var(--border) !important;
} }
.section-widget hr { .section-widget hr {
margin-bottom: var(--smaller); margin-bottom: var(--smaller);
} }
.section-widget-padded { .section-widget-padded {
padding: var(--smaller); padding: var(--smaller);
} }
.section-widget-paging { .section-widget-paging {
display: block; display: block;
margin-top: var(--smaller); margin-top: var(--smaller);
margin-left: auto; margin-left: auto;
} }
.section-title { .section-title {
font-size: var(--small); font-size: var(--small);
font-weight: 700; font-weight: 700;
margin: 0; margin: 0;
} }
.section-widget-button-like { .section-widget-button-like {
border-radius: var(--smaller); border-radius: var(--smaller);
padding: 6px 10px; padding: 6px 10px;
@ -92,30 +76,42 @@
font-family: 'Open Sans',sans-serif; font-family: 'Open Sans',sans-serif;
font-weight: 700; font-weight: 700;
} }
.section-widget-subtitle-details :not(summary,svg) {
border-radius: var(--smaller);
background: var(--gradient);
padding: 6px 10px;
}
.section-widget-title-details summary { .section-widget-title-details summary {
font-size: var(--small); font-size: var(--small);
font-weight: 700; font-weight: 700;
}
.section-widget-subtitle-details summary {
border: 2px solid var(--border);
font-size: var(--default);
font-weight: 700;
margin-bottom: var(--smaller);
}
.section-widget-title-details summary,
.section-widget-subtitle-details summary {
border-radius: var(--smaller); border-radius: var(--smaller);
padding: 6px 10px; padding: 6px 10px;
background: var(--gradient) !important; background: var(--gradient) !important;
} }
.section-widget-subtitle-details[open] svg,
.section-widget-title-details[open] svg { .section-widget-title-details[open] svg {
transform: rotate(180deg); transform: rotate(180deg);
animation: fadeOut 200ms cubic-bezier(0,0.55,0.45,1); animation: fadeOut 200ms cubic-bezier(0,0.55,0.45,1);
} }
.section-widget-subtitle-details:not([open]) svg,
.section-widget-title-details:not([open]) svg { .section-widget-title-details:not([open]) svg {
transform: initial; transform: initial;
animation: fadeIn 200ms cubic-bezier(0,0.55,0.45,1); animation: fadeIn 200ms cubic-bezier(0,0.55,0.45,1);
} }
.section-subtitle-summary,
.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;
@ -123,30 +119,25 @@
width: 100%; width: 100%;
padding: var(--smaller); padding: var(--smaller);
} }
.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(--medium); font-size: var(--medium);
} }
div[class^="mb-"] { div[class^="mb-"] {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-basis: border-box; flex-basis: border-box;
margin-bottom: var(--smaller); margin-bottom: var(--smaller);
} }
div[class^="mb-"]:last-of-type { div[class^="mb-"]:last-of-type {
margin-bottom: unset; margin-bottom: unset;
} }
div[class^="mb-"] textarea { div[class^="mb-"] textarea {
height: 7rem; height: 7rem;
max-height: 100%; max-height: 100%;
} }
.alert, .alert,
.alert-danger { .alert-danger {
display: inline-block; display: inline-block;

View File

@ -27,6 +27,13 @@
<a href="{{ link.getUrl() }}" class='{{ active(link.getRoute()) }}'>{{ link.getTitle() }}</a> <a href="{{ link.getUrl() }}" class='{{ active(link.getRoute()) }}'>{{ link.getTitle() }}</a>
</li> </li>
{% endfor %} {% endfor %}
{% for link in handle_event('AddMainNavigationItem', {'nickname': current_actor.getNickname()}) %}
<li>
<a href="{{ link['path'] }}" class='{{ active(link['path_id']) }}'>
{{ link['title'] }}
</a>
</li>
{% endfor %}
</ul> </ul>
{% endif %} {% endif %}
</nav> </nav>

View File

@ -118,9 +118,9 @@
{{ block('note_replies') }} {{ block('note_replies') }}
{% if note_language is defined and note_language is not empty %} {# {% if note_language is defined and note_language is not empty %}#}
<div title="{{ 'Note\'s language' | trans }}" class="h-entry-language">{{ note_language }}</div> {# <div title="{{ 'Note\'s language' | trans }}" class="h-entry-language">{{ note_language }}</div>#}
{% endif %} {# {% endif %}#}
</div> </div>
</article> </article>
{% endmacro macro_note %} {% endmacro macro_note %}