gnu-social/public/assets/css/base.css

726 lines
20 KiB
CSS
Raw Normal View History

@import url("../fonts/poppins/poppins.css");
@import url("../fonts/opensans/opensans.css");
html {
scroll-margin-top: 3rem;
}
*:focus {
-webkit-box-shadow: inset 0 0 0 3px var(--bg3);
-moz-box-shadow: inset 0 0 0 3px var(--bg3);
box-shadow: inset 0 0 0 3px var(--bg3);
}
:root {
/* FONTS */
--display-font: 'Poppins', sans-serif;
--main-font: 'Open Sans', sans-serif;
/* UNITS
* unit size - every element should be a multiplier of this
* main size - used for headers and icons
* medium size - same as above, except that the element in question is contained in something else
* small size - used in common text, borders
*/
--unit-size: 0.6rem;
--main-size: 1.62rem;
--medium-size: 1.3rem;
--small-size: 1rem;
--smaller-size: 0.8rem;
/* transitions and animations */
--cubic-transition: all 200ms cubic-bezier(0, 0.55, 0.45, 1);
--fade-in: fadeIn 200ms cubic-bezier(0, 0.55, 0.45, 1);
--fade-out: fadeOut 200ms cubic-bezier(0, 0.55, 0.45, 1);
}
2021-09-07 03:06:28 +09:00
@media (prefers-color-scheme: dark) {
:root {
/* colours and shadows */
--bg1: #242434;
--bg2: #46465E;
--bg3: #8081BA;
--bg-button: linear-gradient(180deg, var(--bg2), transparent) !important;
--translucent: #1A1A2666;
--white: #FFFFFF;
--shadow: 0px 0px 16px 0px #00000016;
--shadow-light: 0px 0px 16px 0px #FFFFFF16;
2021-09-07 03:06:28 +09:00
}
.bg {
background-color: var(--bg1);
background-image: url("../images/bg.png");
}
body:after {
content: "";
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: -1;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAALEklEQVRoQ13ajdEMXRCG4Z0I2ASIgAiIgAiI4BUBERABERABERABERABEfjm7vqurS5b9ZrdmXP69H8/3eN48uTJ9dmzZ5dHjx5d3r17d/n27dt8//Hjx1x71r2PHz9e/vz5c3n+/Pnl9evXlw8fPlxevHgxa379+jXP2vPgwY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sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
opacity: 21%;
filter: grayscale(100%);
2021-09-07 03:06:28 +09:00
}
select {
background-image: url("../images/drop.png") !important;
}
}
@media (prefers-color-scheme: light) {
:root {
/* colours and shadows */
--bg1: #eceff4;
--bg2: #4c566a66;
--bg3: #2e3440;
--bg-button: #d8dee966 !important;
2021-09-07 03:06:28 +09:00
--translucent: #eceff488;
--white: #2e3440;
2021-09-07 03:06:28 +09:00
--shadow: 0px 0px 16px 0px #00000016;
--shadow-light: 0px 0px 16px 0px #FFFFFF16;
2021-09-07 03:06:28 +09:00
}
.bg {
background-color: var(--bg1);
2021-09-07 03:06:28 +09:00
background-image: url(../images/bg-light.png);
}
select {
background-image: url("../images/drop-light.png") !important;
}
}
.bg {
background-position: center;
background-repeat: no-repeat;
background-size: 100% 100%;
}
2021-09-07 03:06:28 +09:00
a,
a:visited {
text-decoration: none;
color: var(--white);
}
a:hover {
text-decoration: underline;
color: var(--white);
}
figcaption a:link {
font-size: var(--smaller-size);
color: var(--white);
}
hr {
all: unset;
display: block;
height: 1px;
background: var(--bg2);
}
/* CHECKERBOARD BACKGROUND FOR TRANSPARENT IMAGES */
.h-entry img {
background: repeating-conic-gradient(
#ffffff66 0deg 90deg,
#ffffff33 0deg 180deg) 0 0/40px 40px round;
}
.icon {
fill: var(--white);
align-self: center;
}
.active {
font-weight: bold;
}
/* ACCESSIBILITY MENU */
.anchor-hidden {
width: 1px;
height: 1px;
overflow: hidden;
}
#accessibility-menu {
display: block;
position: absolute;
z-index: 999;
top: -90%;
left: -90%;
width: 30%;
height: min-content;
background-color: var(--bg1);
padding: var(--unit-size);
border: solid 2px var(--bg3);
border-radius: var(--unit-size);
box-shadow: var(--shadow);
}
#accessibility-menu ul {
list-style-type: disc;
margin-left: var(--medium-size);
}
#accessibility-menu:focus-within:not(:active) {
top: var(--unit-size);
left: var(--unit-size);
}
/* HEADER AND INSTANCE NAME */
#header {
z-index: 1;
font-family: var(--display-font);
font-size: var(--main-size);
height: 3rem;
display: flex;
position: fixed;
top: 0;
background-color: var(--bg1);
width: 100%;
align-items: center;
padding: var(--unit-size);
box-shadow: var(--shadow);
}
#instance {
display: flex;
align-items: center;
margin-left: auto;
margin-right: auto;
}
#instance > * {
margin: unset;
}
/* CONTAINS ALL ELEMENTS BESIDES HEADER */
.container {
position: relative;
margin-left: auto;
margin-right: auto;
justify-content: center;
padding: var(--unit-size) var(--unit-size) 0 var(--unit-size);
}
/* THE FOCUSED (middle) DIV */
.content {
display: flex;
flex-direction: column;
padding: var(--unit-size) var(--unit-size) 0 var(--unit-size);
width: 100%;
}
.markdown-blocks {
background-color: var(--translucent);
border-radius: 0 0 var(--unit-size) var(--unit-size);
border: solid 2px var(--bg2);
border-top: solid 2px var(--bg3);
padding: var(--unit-size);
}
.markdown-blocks ul {
margin-left: 1em;
list-style: disc;
}
.markdown-blocks ul li {
margin-bottom: 0.2em;
}
.doc-navigation {
background-color: var(--translucent);
border-radius: var(--unit-size) var(--unit-size) 0 0;
border: solid 2px var(--bg2);
border-bottom: none;
padding: var(--unit-size);
}
.doc-navigation ul {
display: flex;
justify-content: space-evenly;
font-size: var(--main-size);
}
/* NOTES */
#replyform {
padding: var(--unit-size);
margin-top: var(--unit-size);
background-color: var(--translucent);
border-radius: var(--unit-size);
display: flex;
flex-direction: column;
font-size: var(--small-size);
}
#replyform textarea {
width: 100%;
resize: vertical;
margin-top: var(--unit-size);
padding: var(--unit-size);
}
.notes hr {
margin-top: 6px;
}
.note-wrapper {
width: 100%;
height: inherit;
}
.note-sidebar {
padding: var(--unit-size);
}
.note-sidebar * {
display: flex;
flex-direction: column;
margin-left: auto;
margin-right: auto;
max-height: 100%;
}
.note-sidebar .avatar {
width: 3rem;
2021-09-17 09:48:50 +09:00
height: auto;
background: unset;
margin-bottom: var(--unit-size);
border-radius: 2px;
}
.h-entry:not(:first-child) {
margin-top: var(--unit-size);
}
.h-entry .embed {
display: flex;
flex-direction: column;
padding: var(--smaller-size);
border: unset;
width: max-content;
}
.h-entry .embed[class*="p-"] {
padding: unset !important;
}
.h-entry a:focus {
text-decoration: underline;
}
.h-entry .embed header img {
padding: unset;
max-width: min-content;
max-height: min-content;
}
.h-entry {
display: flex;
background-color: var(--translucent);
border-radius: var(--unit-size);
border: solid 2px var(--bg2);
box-shadow: var(--shadow);
}
.h-entry figure {
margin: unset;
object-fit: cover;
}
.h-entry .replies .h-entry {
background-color: unset;
padding: 0 var(--unit-size) var(--unit-size) 0;
margin-left: var(--medium-size);
}
.note-info {
display: flex;
justify-content: space-between;
align-items: center;
max-height: 3rem;
border-bottom: unset;
border-radius: var(--unit-size) var(--unit-size) 0 0;
background: linear-gradient(to left, var(--translucent), transparent);
font-size: var(--medium-size);
padding: 6px 10px 6px 0;
}
.note-author {
font-size: var(--small-size);
font-weight: bold;
display: flex;
align-items: center;
align-self: center;
}
.note-actions {
display: flex;
vertical-align: middle;
}
.note-actions .form-group {
all: unset;
}
.button-container {
all: unset;
border: none !important;
background-repeat: no-repeat !important;
width: 1em !important;
height: 1em !important;
margin-left: var(--unit-size);
text-indent: -9999em;
}
.button-container:hover,
.button-container:focus {
border: none !important;
background: var(--bg3) !important;
}
.favourite-button-container {
-webkit-mask-image: url("../icons/heart.svg") !important;
-o-mask-image: url("../icons/heart.svg") !important;
-moz-mask-image: url("../icons/heart.svg") !important;
mask-image: url("../icons/heart.svg") !important;
}
.reply-button-container {
-webkit-mask-image: url("../icons/reply.svg") !important;
-o-mask-image: url("../icons/reply.svg") !important;
-moz-mask-image: url("../icons/reply.svg") !important;
mask-image: url("../icons/reply.svg") !important;
}
.repeat-button-container {
-webkit-mask-image: url("../icons/repeat.svg") !important;
-o-mask-image: url("../icons/repeat.svg") !important;
-moz-mask-image: url("../icons/repeat.svg") !important;
mask-image: url("../icons/repeat.svg") !important;
}
.note-actions-unset {
background: var(--bg2) !important;
}
.note-actions-set {
background: var(--white) !important;
}
.note-content {
display: flex;
flex-direction: column;
border-radius: 0 0 var(--unit-size) var(--unit-size);
padding: var(--small-size);
}
.note-text {
margin-bottom: var(--unit-size);
}
.section-attachments {
display: flex;
flex-wrap: wrap;
max-width: max-content;
border-radius: var(--unit-size);
background-color: var(--translucent);
padding: var(--smaller-size);
align-self: flex-start;
}
.note-attachments:not(:only-child) {
margin-right: var(--unit-size);
}
.note-attachments > figure figcaption {
display: flex;
word-break: break-all;
margin-bottom: var(--unit-size);
}
/* SECTIONS */
.section-widget {
display: flex;
flex-direction: column;
background-color: var(--translucent);
border-radius: var(--unit-size);
border: solid 2px var(--bg2);
margin-bottom: var(--medium-size);
box-shadow: var(--shadow);
color: var(--white);
}
.section-widget hr {
margin-bottom: var(--unit-size);
}
.section-widget-padded {
padding: var(--unit-size);
}
.section-title {
font-size: var(--medium-size);
font-weight: 700;
margin: 0;
}
.section-widget-button-like {
border: 2px solid var(--bg2);
border-radius: var(--unit-size);
background: var(--bg-button);
padding: 6px 10px;
margin-top: 6px;
cursor: pointer;
float: right;
align-self: end;
font-family: var(--main-font);
font-weight: 700;
}
.section-title-details {
font-size: var(--medium-size);
font-weight: 700;
border-radius: var(--unit-size);
padding: 6px 10px 6px 10px;
background-color: var(--translucent);
box-shadow: var(--shadow);
}
.section-title-details[open] svg {
transform: rotate(180deg);
animation: var(--fade-out)
}
/* SECTION DETAILS CLOSED */
.section-title-details:not([open]) svg {
transform: initial;
animation: var(--fade-in);
}
.section-title-summary {
display: flex;
justify-content: space-between;
}
.section-form {
display: flex;
flex-direction: column;
padding: var(--unit-size);
}
.section-form-legend {
margin-top: unset;
margin-bottom: 10px;
font-weight: bold;
font-size: var(--main-size);
}
.form-group {
all: unset;
display: flex;
flex-direction: column;
margin-bottom: 6px;
}
.form-group textarea {
height: 7rem;
max-height: 100%;
}
.help-block {
margin-bottom: 6px;
}
.help-text {
font-style: italic;
font-size: var(--small-size);
margin-bottom: 6px;
}
.help-block > .list-unstyled,
.alert,
.alert-danger {
display: inline-block;
border: solid 2px #FF6347;
background-color: #FF634733;
border-radius: var(--unit-size);
padding: 2px 6px;
margin-top: 6px;
margin-bottom: 6px;
}
/* PROFILE */
.profile {
display: flex;
flex-direction: column;
flex-wrap: wrap;
font-family: var(--main-font);
background-color: var(--translucent);
margin-bottom: var(--unit-size);
border-radius: var(--unit-size);
padding: var(--unit-size);
box-shadow: var(--shadow);
}
.profile > * {
flex: 1;
}
.profile-info {
display: flex;
flex-wrap: wrap;
flex-direction: column;
}
.profile-info-nickname {
font-size: var(--medium-size);
}
.profile-info-tags {
margin: unset;
}
.profile-info-stats strong {
margin-right: 5px;
}
.profile-info-stats {
margin-top: var(--unit-size);
}
.profile-avatar {
max-width: 4rem;
min-width: 3rem;
width: 100%;
height: auto;
margin-right: 5px;
border-radius: 2px;
}
2021-09-07 03:06:28 +09:00
/* MEDIA QUERIES */
.container {
top: 3rem;
width: 62vw;
}
2021-09-07 03:06:28 +09:00
/* sidepanels need to be shown by default on desktop, hidden on mobile */
.panel .panel-content {
display: flex;
flex-direction: column;
font-family: var(--main-font);
2021-09-07 03:06:28 +09:00
font-size: var(--small-size);
/* should remain in place for the user */
position: fixed;
top: 0;
/* should be bellow header */
margin-top: 3rem;
/* should occupy the entire vertical real estate */
height: calc(100% - 3rem);
padding: var(--unit-size);
overflow-y: auto;
2021-09-07 03:06:28 +09:00
}
@media only screen
and (min-width: 1281px) {
.content {
padding: var(--unit-size) var(--main-size) 0 var(--main-size);
}
.panel .panel-content {
width: 19vw;
2021-09-07 03:06:28 +09:00
}
a[id|="anchor"]:target + .accessibility-target {
2021-09-07 03:06:28 +09:00
animation-name: highlight;
animation-duration: 600ms;
animation-timing-function: ease-in-out;
}
}
@media only screen
and (max-width: 1280px) {
2021-09-07 03:06:28 +09:00
/* content should occupy the entire width at this size */
.container {
width: 100%;
2021-09-07 03:06:28 +09:00
}
.content {
max-width: 100%;
}
2021-09-07 03:06:28 +09:00
#panel-left-toggle:not(:checked) ~ .panel-content,
#panel-right-toggle:not(:checked) ~ .panel-content {
display: none;
}
#panel-left-toggle:checked ~ .panel-content,
#panel-right-toggle:checked ~ .panel-content,
a[id|="anchor"]:target ~ .panel-content {
display: flex;
2021-09-07 03:06:28 +09:00
width: 100%;
background-color: var(--bg1);
2021-09-07 03:06:28 +09:00
background-size: 100% 100%;
z-index: auto;
2021-09-07 03:06:28 +09:00
}
@media (prefers-color-scheme: dark) {
#panel-left-toggle:checked ~ .panel-content,
#panel-right-toggle:checked ~ .panel-content,
a[id|="anchor"]:target ~ .panel-content {
background-image: url(../images/bg.png);
}
}
@media (prefers-color-scheme: light) {
#panel-left-toggle:checked ~ .panel-content,
#panel-right-toggle:checked ~ .panel-content,
a[id|="anchor"]:target ~ .panel-content {
background-image: url(../images/bg-light.png);
}
}
}