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

568 lines
12 KiB
CSS
Raw Normal View History

@import url("../fonts/poppins/poppins.css");
@import url("../fonts/opensans/opensans.css");
@import url("widgets/buttons.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;
2021-12-02 21:46:02 +00:00
background-color: var(--background-hard);
background-attachment: fixed;
font-family: 'Open Sans',sans-serif;
font-size: var(--default);
2021-12-02 21:46:02 +00:00
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;
}
*: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) {
2021-11-29 17:50:30 +00:00
select:not([multiple]) {
background: var(--gradient),url("../images/select_drop_dark.png") no-repeat center right 5px !important;
background-size: cover,16px !important;
}
}
@media(prefers-color-scheme:light) {
2021-11-29 17:50:30 +00:00
select:not([multiple]) {
background: var(--gradient),url("../images/select_drop_light.png") no-repeat center right 5px !important;
background-size: cover,16px !important;
background-blend-mode: saturation;
}
}
.icon {
align-self: center;
2021-11-27 20:45:24 +00:00
fill: var(--foreground);
}
.edit-feed-link {
display: block;
float: right;
}
.active {
font-weight: bold;
}
.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;
padding: var(--smaller);
border-radius: var(--smaller);
background-color: var(--background-hard) !important;
border: 2px solid var(--border);
}
.accessibility-menu ul {
list-style-type: disc;
margin-left: var(--small);
}
.accessibility-menu:focus-within:not(:active) {
top: var(--smaller);
left: var(--smaller);
}
html {
scroll-margin-top: var(--big);
}
.page-header {
z-index: 1;
font-family: 'Poppins',sans-serif;
font-size: var(--medium);
height: var(--big);
display: flex;
justify-content: center;
position: fixed;
top: 0;
align-self: center;
align-items: center;
padding: var(--smaller);
background: var(--gradient) !important;
box-shadow: var(--shadow);
}
.header-instance {
display: flex;
2021-10-04 12:20:31 +01:00
position: absolute;
text-align: center;
align-items: center;
align-self: center;
margin-left: auto;
}
.header-instance>* {
margin: unset;
}
.header-extra-actions {
justify-self: flex-end;
margin-left: auto;
}
.header-extra-actions[open]>*:not(summary) {
z-index: 2;
position: absolute;
top: 100%;
right: 0;
width: 16.5vw;
font-size: var(--default);
border-radius: 0 0 var(--smaller) var(--smaller);
padding: var(--smaller);
background: var(--background-hard);
box-shadow: var(--shadow);
}
.header-panel {
display: flex;
flex-direction: column;
font-family: 'Open Sans',sans-serif;
font-size: var(--default);
position: fixed;
top: 0;
margin-top: var(--big);
height: calc(100% - var(--big));
padding: var(--smaller);
overflow-y: auto;
}
.page-content-wrapper {
position: relative;
top: var(--big);
margin-left: auto;
margin-right: auto;
justify-content: center;
padding: var(--smaller) var(--smaller) 0;
}
.page-content {
display: flex;
flex-direction: column;
width: 100%;
}
.markdown-blocks {
border-radius: 0 0 var(--smaller) var(--smaller);
padding: var(--smaller);
background-color: var(--background-card) !important;
}
.markdown-blocks ul {
margin-left: 1em;
list-style: disc;
}
.markdown-blocks ul li {
margin-bottom: .2em;
}
.doc-navigation {
border-radius: var(--smaller) var(--smaller) 0 0;
border-bottom: 0;
padding: var(--smaller);
background-color: var(--background-card) !important;
}
.doc-navigation ul {
display: flex;
justify-content: space-evenly;
font-size: var(--medium);
}
#replyform {
padding: var(--smaller);
margin-top: var(--smaller);
border-radius: var(--smaller);
display: flex;
flex-direction: column;
font-size: var(--default);
background-color: var(--background-card) !important;
}
#replyform textarea {
width: 100%;
resize: vertical;
margin-top: var(--smaller);
padding: var(--smaller);
}
/* < 720p */
@media only screen and (max-width:1280px) {
.page-header {
width: 100%;
}
.page-content-wrapper {
width: 100%;
2021-09-06 19:06:28 +01:00
}
.page-content {
max-width: 100%;
}
.header-extra-actions[open]>*:not(summary) {
width: 100%;
2021-09-06 19:06:28 +01:00
}
#panel-left-toggle:not(:checked)+.header-panel,#panel-right-toggle:not(:checked)+.header-panel {
display: none;
}
#panel-left-toggle:checked+.header-panel,#panel-right-toggle:checked+.header-panel,a[id|="anchor"]:target ~ .panel-content {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
2021-09-06 19:06:28 +01:00
width: 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
2021-09-06 19:06:28 +01:00
background-size: 100% 100%;
z-index: auto;
background-color: var(--background-hard) !important;
}
}
/* > 720p */
@media only screen and (min-width:1281px) {
/*
* Using the Van de Graaf Canon and Tschicholds recommended 2:3 page-size ratio
* Except we use the whole page
*
* > .page-content-wrapper
* 100% * 2/3 = 66%
*
* > .header-panel
* 100 - 66% = 34%
* 34% / 2 = 17%
*/
.page-header {
width: 100%;
}
.header-panel {
width: 17vw;
}
.page-content-wrapper {
width: 66vw;
}
a[id|="anchor"]:target+.accessibility-target {
-webkit-animation-name: highlight;
-moz-animation-name: highlight;
-o-animation-name: highlight;
animation-name: highlight;
-webkit-animation-duration: 600ms;
-moz-animation-duration: 600ms;
-o-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;
}
}
/* > 1080p */
@media only screen and (min-width:1921px) {
/*
* Using the Van de Graaf Canon and Tschicholds recommended 2:3 page-size ratio
*
* 100% * 2/3 = 66%
*
* > .page-content-wrapper
* 66% * 2/3 = 44%
*
* > .header-panel
* 66% - 44% = 22%
* 22% / 2 = 11%
*/
.page-header {
width: 66vw;
}
.header-panel {
width: 11vw;
}
.page-content-wrapper {
width: 44vw;
}
}
@keyframes fadeIn {
0% {
opacity: 0;
-webkit-transform: translateY(-10px);
-moz-transform: translateY(-10px);
-o-transform: translateY(-10px);
transform: translateY(-10px);
}
100% {
opacity: unset;
-webkit-transform: none;
-moz-transform: none;
-o-transform: none;
transform: none;
}
}
@keyframes fadeOut {
100% {
opacity: 0;
-webkit-transform: translateY(-10px);
-moz-transform: translateY(-10px);
-o-transform: translateY(-10px);
transform: translateY(-10px);
}
0% {
opacity: unset;
-webkit-transform: none;
-moz-transform: none;
-o-transform: none;
transform: none;
}
}
@media (prefers-color-scheme: dark) {
@keyframes highlight {
0% {
-webkit-box-shadow: initial;
-moz-box-shadow: initial;
box-shadow: initial;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller);
}
50% {
-webkit-border-radius: var(--smaller);
-moz-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;
-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, -webkit-box-shadow 0.3s ease-in-out, -moz-box-shadow 0.3s ease-in-out;
z-index: 666;
}
100% {
-webkit-box-shadow: initial;
-moz-box-shadow: initial;
box-shadow: initial;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller);
}
}
}
@media (prefers-color-scheme: light) {
@keyframes highlight {
0% {
-webkit-box-shadow: initial;
-moz-box-shadow: initial;
box-shadow: initial;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller);
}
50% {
-webkit-border-radius: var(--smaller);
-moz-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;
-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, -webkit-box-shadow 0.3s ease-in-out, -moz-box-shadow 0.3s ease-in-out;
}
100% {
-webkit-box-shadow: initial;
-moz-box-shadow: initial;
box-shadow: initial;
-webkit-border-radius: var(--smaller);
-moz-border-radius: var(--smaller);
border-radius: var(--smaller);
}
}
}