Neighbourhood.omg.lol/wwwroot/css/style.css

243 lines
4.2 KiB
CSS
Raw Normal View History

2024-06-13 06:35:40 +00:00
@import url(../vendor/beer.min.css);
@import url(../vendor/color.css);
@import url(../vendor/type.css);
2024-07-12 05:08:12 +00:00
@import url(icon.css);
@import url(type.css);
@import url(color.css);
@import url(z.css);
:root {
--spacing: 1.5rem;
2024-07-02 02:55:07 +00:00
--max-article-size: 75rem;
}
2024-06-13 06:35:40 +00:00
main {
position: relative;
overflow-x: hidden;
overflow-y: auto
}
2024-07-12 07:08:22 +00:00
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%;
2024-07-12 07:08:22 +00:00
margin: 0 auto
}
.avatar { position: relative }
2024-06-13 06:35:40 +00:00
.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;
2024-07-12 07:08:22 +00:00
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;
2024-07-12 07:08:22 +00:00
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;
2024-07-12 07:08:22 +00:00
margin-top: auto;
margin-bottom: 5rem;
2024-07-12 07:08:22 +00:00
margin-left: auto;
margin-right: 0;
inline-size: auto;
min-inline-size: 12rem;
transform: none !important;
2024-07-12 07:08:22 +00:00
inset: auto 0 0 auto
}
2024-06-05 12:41:08 +00:00
.fab {
2024-07-12 07:08:22 +00:00
position: fixed;
2024-06-05 12:41:08 +00:00
right: 2rem;
bottom: 2rem
2024-06-05 12:41:08 +00:00
}
2024-07-12 07:08:22 +00:00
@media only screen and (max-width:992px) {
2024-06-05 12:41:08 +00:00
.fab {
2024-07-12 07:08:22 +00:00
bottom: 7rem
2024-06-05 12:41:08 +00:00
}
2024-07-12 07:08:22 +00:00
:has(>main.responsive) {
max-block-size: calc(100vh - 5rem)
2024-06-05 12:41:08 +00:00
}
}
dialog {
overflow: visible;
width: 80%
2024-06-05 12:41:08 +00:00
}
2024-07-23 01:12:52 +00:00
dialog#edit-bio {
overflow: scroll;
}
.invisible {
max-width: 0;
max-height: 0;
border: 0;
margin: 0;
padding: 0
2024-06-07 04:25:21 +00:00
}
2024-06-11 00:36:48 +00:00
.card-grid {
2024-06-07 04:25:21 +00:00
display: flex;
2024-06-11 00:36:48 +00:00
flex-direction: row;
flex-wrap: wrap;
2024-06-07 04:25:21 +00:00
gap: .5rem;
2024-07-12 07:08:22 +00:00
justify-content: space-between
2024-06-07 04:25:21 +00:00
}
.card-grid > * { flex-grow: 1; flex-shrink: 1 }
2024-06-07 04:25:21 +00:00
#now-garden { gap: 1rem }
#now-garden > :not(.now) { position: absolute }
2024-06-07 04:25:21 +00:00
article {
overflow-wrap: anywhere;
width: 100%;
max-width: var(--max-article-size);
margin-inline: auto
2024-06-07 04:25:21 +00:00
}
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
2024-06-07 04:25:21 +00:00
}
article.pic > img:first-child { text-align: center }
article.pic nav { flex-wrap: wrap }
#pics.card-grid article { max-width: 24rem }
2024-07-12 07:08:22 +00:00
@media only screen and (max-width:895px) {
2024-06-07 04:25:21 +00:00
#pics.card-grid article {
2024-07-12 07:08:22 +00:00
max-width: calc(100% - 1rem)
2024-06-07 04:25:21 +00:00
}
}
article.paste code {
overflow-x: scroll;
display: block;
}
2024-07-11 05:57:53 +00:00
iframe {
2024-07-12 07:08:22 +00:00
width: 100%;
2024-06-11 00:36:48 +00:00
flex-grow: 1;
2024-07-12 07:08:22 +00:00
border: 0;
margin: 0;
padding: 0
2024-06-11 00:36:48 +00:00
}
2024-07-12 07:08:22 +00:00
.page-container, .page-container > .page.active, main {
flex-grow: 1;
2024-06-11 00:36:48 +00:00
display: flex;
2024-07-12 07:08:22 +00:00
flex-direction: column
2024-06-11 00:36:48 +00:00
}
#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 }
2024-06-14 00:45:31 +00:00
nav label:is(.checkbox,.radio,.switch) {
white-space: break-spaces;
flex: 1 1 100%
2024-07-12 07:08:22 +00:00
}
menu > details .row, menu > li > details .row {
padding: .5rem 1rem;
min-block-size: 3rem;
flex: 1
2024-06-14 00:45:31 +00:00
}
.row p {
white-space: normal;
2024-07-12 07:08:22 +00:00
max-width: 100%
2024-06-14 00:45:31 +00:00
}
a.row.indent { margin-left: 1rem }
2024-06-14 00:45:31 +00:00
:is(.circle,.square).large.small:not(i,img,video,svg) {
block-size: 2rem;
2024-07-12 07:08:22 +00:00
inline-size: 2rem
2024-06-14 00:45:31 +00:00
}
2024-07-12 07:08:22 +00:00
2024-06-14 00:45:31 +00:00
:is(button,.button,.chip).large.small > .responsive {
2024-07-12 07:08:22 +00:00
inline-size: 2rem
2024-06-14 00:45:31 +00:00
}
2024-07-12 07:08:22 +00:00
@media only screen and (max-width:600px) {
.l:not(.s), .m.l:not(.s), .m:not(.s) {
display: none !important
}
2024-06-14 00:45:31 +00:00
}
2024-07-12 07:08:22 +00:00
@media only screen and (min-width:601px) and (max-width:992px) {
.l:not(.m), .s.l:not(.m), .s:not(.m) {
display: none !important
}
2024-06-14 00:45:31 +00:00
}
2024-07-12 07:08:22 +00:00
@media only screen and (min-width:993px) {
2024-06-14 00:45:31 +00:00
:is(.circle,.square).large.small:not(i,img,video,svg) {
block-size: 3rem;
2024-07-12 07:08:22 +00:00
inline-size: 3rem
2024-06-14 00:45:31 +00:00
}
2024-07-12 07:08:22 +00:00
2024-06-14 00:45:31 +00:00
:is(button,.button,.chip).large.small > .responsive {
2024-07-12 07:08:22 +00:00
inline-size: 3rem
2024-06-14 00:45:31 +00:00
}
2024-06-20 04:25:48 +00:00
}
2024-06-21 06:26:11 +00:00
.markdown-editor {
flex: auto;
display: flex;
2024-07-12 07:08:22 +00:00
flex-direction: column
2024-06-21 06:26:11 +00:00
}
.markdown-editor + nav, .markdown-editor > .EasyMDEContainer > .editor-toolbar {
flex: none
2024-06-28 07:08:12 +00:00
}
.markdown-editor > .EasyMDEContainer {
flex: 1;
display: flex;
flex-direction: column
2024-07-11 05:57:53 +00:00
}
.markdown-editor > .EasyMDEContainer > .CodeMirror {
flex: auto
2024-07-12 07:08:22 +00:00
}