gnu-social/public/assets/default_theme/base.css
Eliseu Amaro 03a475b642
[TWIG] Form layout is all new, since extending form_div_layout.html.twig was quite limiting
[COMPONENTS][Posting] It is now visible on Actor profiles [COMPONENTS][Search] Overall rework of search results template, there's also additional help text added [CSS] Header no longer translucent, font sizes yet more consistent, replies marker less pronounced, and font hierarchy is now applied in both weight and size
2022-02-19 04:01:47 +00:00

303 lines
5.2 KiB
CSS

@import url(root.css);
@import url(reset.css);
@import url(widgets/buttons.css);
@import url(widgets/sections.css);
html {
font-family: 'Open Sans',sans-serif;
scroll-margin-top: var(--xxl);
}
html,html>* {
background-image: url('images/noise.png');
background-blend-mode: overlay;
}
hr {
margin-top: var(--s);
margin-bottom: var(--s);
}
.icon {
vertical-align: center;
fill: var(--foreground);
height: 1em;
width: 1em;
}
.active {
font: 600 1em Poppins,sans-serif;
}
.anchor-hidden {
height: 1px;
overflow: hidden;
width: 1px;
}
.accessibility-menu {
background-color: var(--background-hard) !important;
border: 2px solid var(--border);
border-radius: var(--s);
display: block;
height: min-content;
left: -90%;
padding: var(--s);
position: absolute;
top: -90%;
width: 30%;
z-index: 999;
}
.accessibility-menu ul {
list-style-type: disc;
margin-left: var(--m);
}
.accessibility-menu:focus-within:not(:active) {
left: var(--s);
top: var(--s);
}
.page-header {
width: 100%;
align-items: center;
background: var(--background-hard);
box-shadow: var(--shadow);
display: flex;
height: var(--xxl);
padding: var(--s);
position: fixed;
top: 0;
z-index: 1;
}
.header-instance {
flex: 1;
text-align: center;
}
.header-instance * {
margin: unset;
}
.page-content-wrapper {
justify-content: center;
margin-left: auto;
margin-right: auto;
padding: var(--s) var(--s) 0;
position: relative;
top: var(--xxl);
}
.page-content {
display: flex;
flex-direction: column;
margin-top: var(--s);
width: 100%;
}
.markdown-blocks {
background-color: var(--background-card) !important;
border-radius: 0 0 var(--s) var(--s);
padding: var(--s);
}
.markdown-blocks ul {
list-style: disc;
margin-left: 1em;
}
.markdown-blocks ul li {
margin-bottom: .2em;
}
.doc-navigation {
background-color: var(--background-card) !important;
border-bottom: 0;
border-radius: var(--s) var(--s) 0 0;
padding: var(--s);
}
.doc-navigation ul {
display: flex;
justify-content: space-evenly;
}
.section-panel {
padding: var(--s);
position: fixed;
top: var(--xxl);
}
.section-panel-left {
left: 0;
}
.section-panel-right {
right: 0;
}
.panel-left-icon,.panel-right-icon {
display: inherit;
}
.section-panel .panel-content {
display: block;
height: calc(100vh - var(--xxl));
overflow: auto;
}
@media only screen and (max-width:512px) {
html {
font-size: 85%;
}
}
@media only screen and (max-width:1280px) {
.page-header {
width: 100%;
}
.page-content-wrapper {
width: 100%;
}
.page-content {
max-width: 100%;
}
label[for|="toggle-panel"] {
cursor: pointer;
}
input[id|="toggle-panel"] {
position: absolute;
top: -100%;
}
#toggle-panel-left:not(:checked) ~ .section-panel-left,#toggle-panel-right:not(:checked) ~ .section-panel-right {
display: none;
}
#toggle-panel-left:checked ~ .section-panel-left,#toggle-panel-right:checked ~ .section-panel-right {
left: 0;
width: 100vw;
z-index: auto;
background-color: var(--background-hard);
box-shadow: var(--shadow);
}
}
@media only screen and (min-width:1281px) {
.page-header {
width: 100%;
}
label[for|="toggle-panel"],input[id|="toggle-panel"] {
display: none !important;
}
.section-panel {
width: 17vw;
}
.page-content-wrapper {
width: 66vw;
}
a[id|="anchor"]:target+.accessibility-target {
animation-duration: 600ms;
animation-name: highlight;
animation-timing-function: ease-in-out;
}
}
@media only screen and (min-width:1921px) {
.page-header {
align-self: center;
width: 66vw;
}
label[for|="toggle-panel"],input[id|="toggle-panel"] {
display: none !important;
}
.section-panel {
width: 11vw;
}
.section-panel-left {
left: 17vw;
}
.section-panel-right {
right: 17vw;
}
.page-content-wrapper {
width: 44vw;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(-10px);
}
100% {
opacity: unset;
transform: none;
}
}
@keyframes fadeOut {
100% {
opacity: 0;
transform: translateY(-10px);
}
0% {
opacity: unset;
transform: none;
}
}
@keyframes highlight {
0% {
border-radius: var(--s);
box-shadow: initial;
}
50% {
border-radius: var(--s);
box-shadow: inset 0 20px 40px #FFF;
transition: box-shadow .3s ease-in-out;
z-index: 666;
}
100% {
border-radius: var(--s);
box-shadow: initial;
}
0% {
border-radius: var(--s);
box-shadow: initial;
}
50% {
border-radius: var(--s);
box-shadow: inset 0 20px 40px #000;
transition: box-shadow .3s ease-in-out;
}
100% {
border-radius: var(--s);
box-shadow: initial;
}
}