Gordon Pedersen
a02b14782b
might still need some work/testing Also, should I add pastes in the feed?
242 lines
4.2 KiB
CSS
242 lines
4.2 KiB
CSS
@import url(../vendor/beer.min.css);
|
|
@import url(../vendor/color.css);
|
|
@import url(../vendor/type.css);
|
|
|
|
@import url(icon.css);
|
|
@import url(type.css);
|
|
@import url(color.css);
|
|
@import url(z.css);
|
|
|
|
:root {
|
|
--spacing: 1.5rem;
|
|
--max-article-size: 75rem;
|
|
}
|
|
|
|
main {
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
overflow-y: auto
|
|
}
|
|
|
|
a:not(.author) { text-decoration: underline }
|
|
:is(nav, .tabs, #directory) a { text-decoration: none }
|
|
|
|
img {
|
|
max-inline-size: 100%;
|
|
max-block-size: 100%;
|
|
max-width: 100%;
|
|
margin: 0 auto
|
|
}
|
|
|
|
.avatar { position: relative }
|
|
|
|
.avatar::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center bottom;
|
|
border-radius: 50%
|
|
}
|
|
|
|
.profile.avatar {
|
|
border-radius: .75rem;
|
|
max-block-size: 10rem;
|
|
max-inline-size: 10rem
|
|
}
|
|
|
|
#bio :is(h1,h2,h3,h4,h5,h6) {
|
|
text-align: center;
|
|
display: block
|
|
}
|
|
|
|
:is(button,.button).tiny {
|
|
block-size: 1.5rem;
|
|
font-size: .875rem;
|
|
border-radius: .75rem
|
|
}
|
|
|
|
nav.bottom.s:not(.drawer) > a:not(.button,.chip) { inline-size: unset }
|
|
nav.bottom.s:not(.drawer) :is(button,.button) > menu {
|
|
position: fixed;
|
|
margin-top: auto;
|
|
margin-bottom: 5rem;
|
|
margin-left: auto;
|
|
margin-right: 0;
|
|
inline-size: auto;
|
|
min-inline-size: 12rem;
|
|
transform: none !important;
|
|
inset: auto 0 0 auto
|
|
}
|
|
|
|
.fab {
|
|
position: fixed;
|
|
right: 2rem;
|
|
bottom: 2rem
|
|
}
|
|
|
|
@media only screen and (max-width:992px) {
|
|
.fab {
|
|
bottom: 7rem
|
|
}
|
|
|
|
:has(>main.responsive) {
|
|
max-block-size: calc(100vh - 5rem)
|
|
}
|
|
}
|
|
|
|
dialog {
|
|
overflow: visible;
|
|
width: 80%
|
|
}
|
|
|
|
dialog#edit-bio {
|
|
overflow: scroll;
|
|
}
|
|
|
|
.invisible {
|
|
max-width: 0;
|
|
max-height: 0;
|
|
border: 0;
|
|
margin: 0;
|
|
padding: 0
|
|
}
|
|
|
|
.card-grid {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
gap: .5rem;
|
|
justify-content: space-between
|
|
}
|
|
.card-grid > * { flex-grow: 1; flex-shrink: 1 }
|
|
|
|
#now-garden { gap: 1rem }
|
|
#now-garden > :not(.now) { position: absolute }
|
|
|
|
article {
|
|
overflow-wrap: anywhere;
|
|
width: 100%;
|
|
max-width: var(--max-article-size);
|
|
margin-inline: auto
|
|
}
|
|
|
|
article.now { margin: 0; width: auto }
|
|
article.theme { height: 10rem; width: 15rem }
|
|
article.ephemeral { max-width: 50rem }
|
|
|
|
article.pic {
|
|
max-width: 50rem;
|
|
margin: 1rem auto;
|
|
text-align: left
|
|
}
|
|
article.pic > img:first-child { text-align: center }
|
|
article.pic nav { flex-wrap: wrap }
|
|
|
|
#pics.card-grid article { max-width: 24rem }
|
|
|
|
@media only screen and (max-width:895px) {
|
|
#pics.card-grid article {
|
|
max-width: calc(100% - 1rem)
|
|
}
|
|
}
|
|
|
|
article.paste code {
|
|
overflow-x: scroll;
|
|
display: block;
|
|
}
|
|
|
|
iframe {
|
|
width: 100%;
|
|
flex-grow: 1;
|
|
border: 0;
|
|
margin: 0;
|
|
padding: 0
|
|
}
|
|
|
|
.page-container, .page-container > .page.active, main {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column
|
|
}
|
|
|
|
#info :is(ul,ol) { margin-left: var(--spacing) }
|
|
#info :is(p,ul,ol) { margin-bottom: var(--spacing) }
|
|
|
|
#directory { column-width: 14rem }
|
|
|
|
article#directory ul { list-style: none }
|
|
|
|
nav label:is(.checkbox,.radio,.switch) {
|
|
white-space: break-spaces;
|
|
flex: 1 1 100%
|
|
}
|
|
|
|
menu > details .row, menu > li > details .row {
|
|
padding: .5rem 1rem;
|
|
min-block-size: 3rem;
|
|
flex: 1
|
|
}
|
|
|
|
.row p {
|
|
white-space: normal;
|
|
max-width: 100%
|
|
}
|
|
|
|
a.row.indent { margin-left: 1rem }
|
|
|
|
:is(.circle,.square).large.small:not(i,img,video,svg) {
|
|
block-size: 2rem;
|
|
inline-size: 2rem
|
|
}
|
|
|
|
:is(button,.button,.chip).large.small > .responsive {
|
|
inline-size: 2rem
|
|
}
|
|
|
|
@media only screen and (max-width:600px) {
|
|
.l:not(.s), .m.l:not(.s), .m:not(.s) {
|
|
display: none !important
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width:601px) and (max-width:992px) {
|
|
.l:not(.m), .s.l:not(.m), .s:not(.m) {
|
|
display: none !important
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width:993px) {
|
|
:is(.circle,.square).large.small:not(i,img,video,svg) {
|
|
block-size: 3rem;
|
|
inline-size: 3rem
|
|
}
|
|
|
|
:is(button,.button,.chip).large.small > .responsive {
|
|
inline-size: 3rem
|
|
}
|
|
}
|
|
|
|
.markdown-editor {
|
|
flex: auto;
|
|
display: flex;
|
|
flex-direction: column
|
|
}
|
|
|
|
.markdown-editor + nav, .markdown-editor > .EasyMDEContainer > .editor-toolbar {
|
|
flex: none
|
|
}
|
|
|
|
.markdown-editor > .EasyMDEContainer {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column
|
|
}
|
|
|
|
.markdown-editor > .EasyMDEContainer > .CodeMirror {
|
|
flex: auto
|
|
}
|