You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sessioncommunities.online/output/index.css

911 lines
18 KiB
CSS

@import url("/css/footer.css");
@import url("/css/common.css");
:root {
--body-margin: 8px; /* Default value in browsers */
--max-font-size-unitless: 18;
--min-font-size-unitless: 12;
/* Measurements of the width of all columns
except name and description on smaller screens */
--collapsed-static-column-width-px: 300px;
--collapsed-static-column-width: calc(
( 300 / var(--min-font-size-unitless) ) * 1rem
);
/* Measurements of the width of all columns
except name and description on wider screens */
--expanded-static-column-width-px: 800px;
--expanded-static-column-width: calc(
( 800 / var(--max-font-size-unitless) ) * 1rem
);
/* Space left for the name and description columns,
in the collapsed and expanded cases. */
--collapsed-dynamic-columns-width:
calc(
100vw
- var(--collapsed-static-column-width)
- 2 * var(--body-margin);
);
--expanded-dynamic-columns-width:
calc(
100vw
- var(--expanded-static-column-width)
);
/* Default for wide screens. */
--dynamic-columns-width: var(--expanded-dynamic-columns-width);
}
html:not(.js) {
/** No more Join URL preview without JS */
--dynamic-columns-width: var(--collapsed-dynamic-columns-width);
}
:root {
--cell-padding-h: 0.5em;
--cell-padding-v: 0.5em;
--cell-padding: var(--cell-padding-h) var(--cell-padding-v);
--cell-padding-small:
calc( var(--cell-padding-h) / 2 ) calc( var(--cell-padding-v) / 2 );
}
html {
font-size: clamp(12px, 2vw, var(--max-font-size-unitless) * 1px);
11 months ago
height: 100%;
}
body {
margin: 0;
11 months ago
height: 100%;
}
.h2-like {
display: block;
font-size: 1.5em;
padding-block: 0.83em;
margin-left: 0;
margin-right: 0;
font-weight: bold;
}
#toggle-theme-switch {
1 year ago
display: none;
}
#theming-root {
11 months ago
display: flex;
flex-direction: column;
width: 100%;
11 months ago
min-height: 100%;
margin: 0;
background-color: var(--secondary-color);
color: var(--primary-color);
align-items: center;
}
a, .anchorstyle {
color: var(--anchor-color);
text-decoration: underline;
}
.non-anchorstyle {
color: inherit;
text-decoration: none;
}
.clickable {
cursor: pointer;
}
.feather-icon {
5 months ago
width: var(--feather-icon-size);
height: var(--feather-icon-size);
transition: opacity 0.2s;
}
.feather-icon.clickable:not(:hover),
:is(a, .clickable ):not(:hover) > .feather-icon {
opacity: 0.6;
}
html.js .noscript, .hidden {
1 year ago
display: none;
}
.themed-button {
color: var(--primary-color);
background-color: var(--secondary-color);
border-radius: 10%;
padding: var(--cell-padding-small);
}
.badge {
display: inline-block;
border-radius: 1em;
padding-block: 0.1em;
padding-inline: 0.5em;
margin-block: 0.1em;
margin-inline: 0.2em;
border: #0004 outset 1px;
/* box-shadow: 0.05em 0.05em 0.1em 0 #4444;*/
}
.highlight {
animation: highlight 0.66s 0.1s 1 forwards;
animation-timing-function: cubic-bezier(0,.89,.43,1.84);
}
@keyframes highlight {
0% { }
50% { translate: 0 -0.5rem; }
100% { }
}
.tag, .sample-search {
color: black;
}
.td_name > span > .tag {
opacity: 0.75;
}
.tag-user, .sample-search-tag {
background-color: greenyellow;
}
.tag-reserved, .sample-search-tag-reserved {
background-color: yellow;
}
.tag-warning {
background-color: pink;
}
.sample-search-plain {
background-color: lightgrey;
}
.sample-search-language {
background-color: whitesmoke;
}
.td_name > span > .tag:not(.tag-highlighted) {
background-color: transparent;
color: var(--primary-color);
}
.td_name > span > .tag.clickable:is(:hover, :focus) {
box-shadow: 0rem 0rem 0.2rem var(--primary-color);
opacity: 1;
}
gap {
flex-grow: 1000;
}
header {
1 year ago
display: flex;
align-self: stretch;
flex-direction: row;
1 year ago
/* Push items as far apart as possible */
justify-content: space-between;
align-items: flex-start;
padding-top: var(--body-margin);
padding-inline: var(--body-margin);
--feather-icon-size: 2.5rem;
}
header .feather-icon, #search .feather-icon {
font-size: var(--feather-icon-size);
}
#header-start, #header-end {
display: flex;
gap: 0.5em;
}
html:not(.js) :is(#search-container, #search-container *) {
cursor: not-allowed !important;
}
11 months ago
#search-container {
display: flex;
flex-direction: row;
justify-items: space-between;
align-items: stretch;
margin-block-end: 1rem;
column-gap: 1rem;
}
#search {
display: flex;
flex-direction: row;
11 months ago
box-sizing: border-box;
justify-content: center;
align-items: center;
border-bottom: 2px var(--primary-color) solid;
padding-bottom: 0.1rem;
}
#search-action-pre { order: 0; }
#search-bar { order: 1; }
#search-action-post { order: 2; }
#search-bar {
--feather-icon-size: 2rem;
height: var(--feather-icon-size);
width: 15rem;
color: var(--primary-color);
background-color: var(--secondary-color);
border: none;
outline: none;
text-align: left;
padding: 0.3rem 0.1rem;
font-size: 1rem;
margin-inline: 0.5rem;
}
#search:has(#search-bar:focus) {
border-bottom-color: lightgreen;
11 months ago
}
#search:has(#search-bar.search-no-results) {
border-bottom-color: red;
11 months ago
}
#search-bar:focus:placeholder-shown::placeholder {
opacity: 0;
11 months ago
}
div.search-actions {
11 months ago
display: flex;
flex-direction: row;
align-items: center;
position: relative;
11 months ago
}
div.search-actions > .feather-icon {
position: absolute;
}
div.search-actions, div.search-actions > .feather-icon {
/* To prevent layout shifts */
height: 2rem;
aspect-ratio: 1;
11 months ago
}
div.search-actions {
--display-when-active: none;
--display-when-inactive: block;
--display-when-empty: block;
--display-when-nonempty: none;
11 months ago
}
#search-bar:is(:focus, :not(:placeholder-shown)) ~ div.search-actions {
--display-when-active: block;
--display-when-inactive: none;
}
#search-bar:not(:placeholder-shown) ~ div.search-actions {
--display-when-empty: none;
--display-when-nonempty: block;
}
#btn-random-search { display: var(--display-when-empty); }
#btn-clear-search { display: var(--display-when-nonempty); }
#btn-search { display: var(--display-when-empty); }
#btn-share-search { display: var(--display-when-nonempty); }
#headline {
text-align: center;
flex-grow: 1;
font-family: sans-serif;
}
#headline-03 {
font-size: smaller;
}
/* --- Table --- */
#tbl_communities {
margin: 0 auto;
}
/* Cells in general */
7 months ago
.tbl_communities__th {
white-space: nowrap;
}
.tbl_communities__th, #tbl_communities > tbody > tr > td {
padding: var(--cell-padding-v) var(--cell-padding-h);
}
7 months ago
.tbl_communities__th.sortable {
position: relative;
padding-right: calc( 1.35em + var(--cell-padding-h) );
}
7 months ago
.tbl_communities__th.sortable::after {
position: absolute;
right: calc( var(--cell-padding-h) );
top: 50%;
transform: translateY(-50%);
/* content: "\25C7"; */ /* White diamond */
/* content: "\2195"; */ /* Up-down arrow */
/* content: "\25A1"; */ /* White square */
/* content: "\25B8"; */ /* Small right pointing triangle */
content: "\2B25"; /* Black medium diamond */
color: grey;
font-size: 1.3em;
}
#tbl_communities[data-sort-asc=true] th[data-sort=true]::after {
content: "\25B2"; /* Black up pointing triangle */
color: initial;
font-size: 1em;
}
#tbl_communities[data-sort-asc=false] th[data-sort=true]::after {
content: "\25BC"; /* Black up pointing triangle */
color: initial;
font-size: 1em;
}
7 months ago
.tbl_communities__th {
background-color: var(--secondary-color-heading);
}
7 months ago
.room-row {
background-color: var(--row-color);
transition: opacity 0.1s cubic-bezier(.19,1,.22,1);
}
.td_name, .td_qr_code, .td_description, .td_language, .td_users, .td_server_icon {
cursor: pointer;
}
7 months ago
.room-row:nth-child(even) {
--row-color: var(--secondary-color);
}
7 months ago
.room-row:nth-child(odd) {
--row-color: var(--secondary-color-shaded);
}
.room-row:hover {
outline: 0.1rem solid var(--primary-color-50);
}
/* Particular columns */
.td_identifier {
font-family: monospace;
}
#th_name, .td_name {
width: calc(
0.375 * (
var(--dynamic-columns-width)
)
);
max-width: calc(
0.375 * (
var(--dynamic-columns-width)
)
);
overflow: hidden;
text-overflow: ellipsis;
}
.td_name > a {
/* Block padding for inline element does not change flow, only clickbox */
padding-block: calc( var(--cell-padding-v) );
}
.room-row-stickied > .td_name > a {
font-weight: bold;
}
.td_language {
text-align: center;
font-size: 1.5em;
}
.td_language:empty::after {
1 year ago
content: "\2753";
}
html.js .td_description {
position: relative;
overflow: hidden;
text-overflow: ellipsis;
/* Prevents middle alignment with table-cell. */
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
#th_description, .td_description {
width: calc(
0.625 * (
var(--dynamic-columns-width)
)
);
max-width: calc(
0.625 * (
var(--dynamic-columns-width)
)
);
}
html.js .td_description::after {
/* Cover overflowing description lines with internal border. */
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: var(--cell-padding-h);
content: "";
background-color: var(--row-color);
}
.td_users {
text-align: center;
/* font-weight: bold; */
}
.td_preview {
text-align: center;
}
.td_preview > a > span {
display: inline-block;
font-family: monospace;
border-radius: 4px;
padding: .25em .05em;
width: 6ch;
text-align: center;
text-shadow: 0 0 0.5em #0003;
}
/** protocol-indicator__parent > .protocol-indicator **/
.td_preview > a[href^="http:"] > span {
background-color: var(--color-http);
}
.td_preview > a[href^="https:"] > span {
background-color: var(--color-https);
}
.td_preview > a[href^="http:"] > span::after {
content: "HTTP";
}
.td_preview > a[href^="https:"] > span::after {
content: "HTTPS";
}
.td_qr_code {
padding: var(--cell-padding-small) !important;
}
/*.qr-code-icon*/ .td_qr_code > a > div {
width: 36px;
height: 41px;
background-image: url('qrcode-solid.svg')
}
.td_server_icon {
text-align: center;
padding: var(--cell-padding-small) !important;
font-size: 1.1em;
}
.td_server_icon-circle {
display: flex;
align-items: center;
justify-content: center;
width: 2em;
height: 2em;
border-radius: 100%;
font-family: sans-serif;
margin: 0 auto;
color: white;
text-shadow: 0 0 0.25em #000a;
box-shadow: 0 0 0.05em #777;
background-size: cover;
}
7 months ago
.td_server_icon-circle > .td_server_icon-text {
position: relative;
top: 0.05em;
}
7 months ago
.td_join_url {
1 year ago
font-family: monospace;
white-space: nowrap;
1 year ago
font-size: .8em;
}
/*.join_url*/ .td_join_url > div > span {
overflow: hidden;
text-overflow: ellipsis;
max-width: 20vw;
/* Apply margin against copy button or link. */
/* URL now guaranteed to have interactive element to right when present. */
1 year ago
margin-right: 1em;
}
.td_join_url > div > span:empty {
margin-right: 0;
}
html.js .td_join_url > div > span:empty::after {
content: "https://sogs.example.com/room?pu";
}
/*.join_url_container*/ .td_join_url > div {
1 year ago
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}
.copy_button {
font-size: 1.2em;
background-color: var(--secondary-color);
color: var(--primary-color);
padding: var(--cell-padding);
border-radius: 10%;
1 year ago
cursor: pointer;
}
/* --- Footer --- */
11 months ago
#footer-divider {
width: 90%;
}
footer, aside {
font-size: inherit !important;
border: none !important;
padding-bottom: var(--body-margin);
padding-inline: var(--body-margin);
}
7 months ago
.footer__nav-target {
padding: .75em .5em;
}
/* --- QR code modals --- */
#details-modal {
padding: 0;
width: 80vw;
--modal-height: calc(80vh - 8em);
height: var(var(--modal-height));
color: var(--primary-color);
background-color: var(--secondary-color);
--room-icon-size: 4rem;
--feather-icon-size: 2rem;
}
#details-modal-contents {
display: flex;
flex-direction: column;
box-sizing: border-box;
}
#details-modal-flow {
display: flex;
flex-direction: column;
padding: 3em;
height: var(--modal-height);
overflow: auto;
box-sizing: border-box;
justify-content: space-between;
gap: 1em;
}
#details-modal-close {
position: absolute;
1 year ago
cursor: pointer;
top: 0rem;
right: 0rem;
font-size: 3.5rem;
width: 5rem;
height: 5.5rem;
text-align: center;
}
#details-modal-navigation-hint {
position: absolute;
bottom: 1rem;
right: 1rem;
opacity: 0.5;
font-style: italic;
}
#details-modal-panes {
display: flex;
flex-direction: row;
}
#details-modal-start {
display: flex;
flex-direction: column;
margin-right: 1em;
}
#details-modal-end {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
#details-modal-title > * {
display: inline-block;
}
#details-modal-title {
margin-bottom: calc( var(--room-icon-size) * 0.1 );
}
#details-modal-community-icon-wrapper {
position: relative;
box-sizing: border-box;
--strip: calc( var(--room-icon-size) / 25 );
--padding-size: calc( var(--room-icon-size) - 1 * var(--strip) );
top: calc(var(--room-icon-size) * 0.5 - 0.6rem);
width: var(--room-icon-size);
height: var(--room-icon-size);
margin-right: calc( var(--room-icon-size) * 0.3 );
/* box-shadow: var(--primary-color) 0 0 calc( var(--room-icon-size) / 10 ); */
border: var(--primary-color) var(--strip) solid;
padding: var(--strip);
border-radius: 100%;
}
#details-modal-copy-room-details-link {
position: relative;
margin-left: 0.5em;
top: calc( var(--feather-icon-size) * 0.5 - 1ex );
}
7 months ago
#details-modal-community-icon-wrapper:is([data-has-icon="false"], [data-icon-safety="-1"]) {
display: none;
}
7 months ago
/* For hiding navigation targets, I think */
#details-modal-community-icon-wrapper:is([data-has-icon="false"], [data-icon-safety="-1"]) > #details-modal-community-icon {
display: none;
}
7 months ago
/*
#details-modal-community-icon-wrapper:not(:hover) > #details-modal-community-icon[data-icon-safety="-1"] {
opacity: 0.5;
filter: blur(3px);
}
7 months ago
*/
#details-modal-community-icon {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
border-radius: inherit;
transition: filter 0.15s, opacity 0.15s;
}
7 months ago
/*#details-modal-start*/ #details-modal-description-inner:empty::after {
content: "No description";
font-style: italic;
}
7 months ago
/*#details-modal-start*/ #details-modal-language-flag:empty::after {
content: "Unknown";
font-style: italic;
}
7 months ago
/*#details-modal-end*/ #details-modal-qr-code {
aspect-ratio: 1;
width: 15em;
height: 15em;
margin: 1em;
}
7 months ago
/*#details-modal-end*/ #details-modal-qr-code-label {
text-align: center;
}
#details-modal-actions {
display: flex;
width: 100%;
flex-direction: row;
flex-wrap: wrap;
gap: .5em;
row-gap: .5em;
}
#details-modal-qr-code-label-name {
display: block;
}
/* Carousel */
aside > details > p {
padding: 1em 0.75em;
background-color: var(--secondary-color-shaded);
}
aside > details > summary {
padding-block: 0.5em !important;
}
aside > details > summary::after {
content: "+";
padding-inline-start: 1em;
font-size: 1.5em;
}
aside > details[open] > summary:after{
content: "";
}
/* <Snackbar> */
/* The snackbar - position it at the bottom and in the middle of the screen */
#copy-snackbar {
1 year ago
visibility: hidden; /* Hidden by default. Visible on click */
background-color: #333; /* Black background color */
color: #fff; /* White text color */
text-align: center; /* Centered text */
border-radius: 2px; /* Rounded corners */
padding: 16px;
position: fixed; /* Move along as viewport scrolls */
1 year ago
z-index: 1; /* Add a z-index if needed */
left: 50%; /* Offset the snackbar by half the viewport width */
transform: translateX(-50%); /* Push the snackbar back by half its width */
bottom: 0;
opacity: 0;
transition: bottom 0.5s, opacity 0.5s;
}
/* Show the snackbar when clicking on a button (class added with JavaScript) */
#copy-snackbar.show {
1 year ago
visibility: visible; /* Show the snackbar */
bottom: 30px; /* 30px from the bottom */
opacity: 1;
}
/* Responsive properties */
.td_name > span > .tag:nth-of-type(5) ~ .tag {
display: none;
}
@media (max-width: 1600px) {
.td_name > span > .tag:nth-of-type(4) ~ .tag {
display: none;
}
}
@media (max-width: 1500px) {
.td_name > span > .tag:nth-of-type(3) ~ .tag {
display: none;
}
}
@media (max-width: 1400px) {
.td_name > span > .tag:nth-of-type(2) ~ .tag {
display: none;
}
}
@media (max-width: 1200px) {
.td_name > span > .tag:nth-of-type(1) ~ .tag {
display: none;
}
}
.td_name > span > .tag:not(.tag-showcased) {
display: none;
}
@media (max-width: 1050px) {
/* Only current width breakpoint; */
/* Would follow w4 and precede w6. */
/*.show-from-w5*/ .td_join_url > div > span {
display: none;
}
#th_preview, .td_preview {
display: none;
}
:root {
--dynamic-columns-width: var(--collapsed-dynamic-columns-width);
}
}
@media (max-height: 1100px) {
#details-modal-language, #details-modal-users, #details-modal-created {
display: inline-block;
text-align: center;
}
#details-modal-room-info > * {
margin-block: 0.5em;
}
:is(#details-modal-language, #details-modal-users)::after {
content: "•"; /* bullet */
margin-inline: 1em;
}
}
@media (max-width: 1000px) {
#details-modal-pane-selection {
display: inline-flex;
flex-direction: row;
/* Stick to the right */
margin: 0 0 0 auto;
}
#details-modal-panes[data-pane="0"] > .details-modal-pane:not([data-pane="0"]),
#details-modal-panes[data-pane="1"] > .details-modal-pane:not([data-pane="1"]) {
display: none;
}
#details-modal-panes[data-pane="0"] ~ #details-modal-actions .details-modal-pane-button[data-pane="0"],
#details-modal-panes[data-pane="1"] ~ #details-modal-actions .details-modal-pane-button[data-pane="1"] {
display:none
}
#details-modal-panes {
flex-direction: column;
align-items: stretch;
flex-grow: 500;
}
#details-modal-panes > gap {
display: none;
}
#details-modal #details-modal-qr-code {
width: 30vh;
height: 30vh;
}
#details-modal-qr-code-label-name {
display: inline;
}
}
@media (max-width: 500px) {
#th_qr_code, .td_qr_code {
display: none;
}
#th_description, .td_description {
display: none !important;
}
#th_name, .td_name {
max-width: var(--dynamic-columns-width);
width: var(--dynamic-columns-width);
}
:root {
/* ! For when descriptions don't wrap and 100vw doesn't work. */
--dynamic-columns-width: 13rem;
}
}