From 47dc6de1549ae7699931dce39a0c248469bb41b7 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Thu, 16 Dec 2021 21:46:58 +0530 Subject: [PATCH] UX improvements --- components.js | 224 ++++++++++++++++++++++++++++++++++++++++++++++- css/main.css | 91 ++++++++++--------- css/main.min.css | 2 +- css/main.scss | 70 ++++++++------- index.html | 113 ++++++++++++++++++------ 5 files changed, 396 insertions(+), 104 deletions(-) diff --git a/components.js b/components.js index b91a945..7fde306 100644 --- a/components.js +++ b/components.js @@ -2387,6 +2387,7 @@ smSelect.innerHTML = ` -ms-flex-align: center; align-items: center; outline: none; + z-index: 2; } .selection:focus{ -webkit-box-shadow: 0 0 0 0.1rem var(--accent-color); @@ -2417,7 +2418,7 @@ smSelect.innerHTML = ` background: rgba(var(--background-color), 1); border: solid 1px rgba(var(--text-color), 0.2); border-radius: var(--border-radius, 0.5rem); - z-index: 2; + z-index: 1; -webkit-box-shadow: 0.4rem 0.8rem 1.2rem #00000030; box-shadow: 0.4rem 0.8rem 1.2rem #00000030; } @@ -4290,4 +4291,223 @@ customElements.define('sm-textarea', this.checkInput() } } - }) \ No newline at end of file + }) + +const tagsInput = document.createElement('template') +tagsInput.innerHTML = ` + +
+ +

+
+` + +customElements.define('tags-input', class extends HTMLElement { + constructor() { + super() + this.attachShadow({ + mode: 'open' + }).append(tagsInput.content.cloneNode(true)) + + this.input = this.shadowRoot.querySelector('input') + this.tagsWrapper = this.shadowRoot.querySelector('.tags-wrapper') + this.placeholder = this.shadowRoot.querySelector('.placeholder') + this.reflectedAttributes = ['placeholder', 'limit'] + this.limit = undefined + this.tags = new Set() + + this.reset = this.reset.bind(this) + this.handleInput = this.handleInput.bind(this) + this.handleKeydown = this.handleKeydown.bind(this) + this.handleClick = this.handleClick.bind(this) + this.removeTag = this.removeTag.bind(this) + } + static get observedAttributes() { + return ['placeholder', 'limit'] + } + get value() { + return [...this.tags].join() + } + get isValid() { + return this.tags.size + } + focusIn() { + this.input.focus() + } + reset() { + this.input.value = '' + this.tags.clear() + while (this.input.previousElementSibling) { + this.input.previousElementSibling.remove() + } + } + handleInput(e) { + const inputValueLength = e.target.value.trim().length + e.target.setAttribute('size', inputValueLength ? inputValueLength : '3') + if (inputValueLength) { + this.placeholder.classList.add('hide') + } + else if (!inputValueLength && !this.tags.size) { + this.placeholder.classList.remove('hide') + } + } + handleKeydown(e) { + if (e.key === ',' || e.key === '/') { + e.preventDefault() + } + if (e.target.value.trim() !== '') { + if (e.key === 'Enter' || e.key === ',' || e.key === '/' || e.code === 'Space') { + const tagValue = e.target.value.trim() + if (this.tags.has(tagValue)) { + this.tagsWrapper.querySelector(`[data-value="${tagValue}"]`).animate([ + { + backgroundColor: 'initial' + }, + { + backgroundColor: 'var(--accent-color)' + }, + { + backgroundColor: 'initial' + }, + ], { + duration: 300, + easing: 'ease' + }) + } + else { + const tag = document.createElement('span') + tag.dataset.value = tagValue + tag.className = 'tag' + tag.innerHTML = ` + ${tagValue} + + ` + this.input.before(tag) + this.tags.add(tagValue) + } + e.target.value = '' + e.target.setAttribute('size', '3') + if (this.limit && this.limit < this.tags.size + 1) { + this.input.readOnly = true + return + } + } + } + else { + if (e.key === 'Backspace' && this.input.previousElementSibling) { + this.removeTag(this.input.previousElementSibling) + } + if (this.limit && this.limit > this.tags.size) { + this.input.readOnly = false + } + } + } + handleClick(e) { + if (e.target.closest('.tag')) { + this.removeTag(e.target.closest('.tag')) + } + else { + this.input.focus() + } + } + removeTag(tag) { + this.tags.delete(tag.dataset.value) + tag.remove() + if (!this.tags.size) { + this.placeholder.classList.remove('hide') + } + } + connectedCallback() { + this.input.addEventListener('input', this.handleInput) + this.input.addEventListener('keydown', this.handleKeydown) + this.tagsWrapper.addEventListener('click', this.handleClick) + } + attributeChangedCallback(name, oldValue, newValue) { + if (name === 'placeholder') { + this.placeholder.textContent = newValue + } + if (name === 'limit') { + this.limit = parseInt(newValue) + } + } + disconnectedCallback() { + this.input.removeEventListener('input', this.handleInput) + this.input.removeEventListener('keydown', this.handleKeydown) + this.tagsWrapper.removeEventListener('click', this.handleClick) + } +}) \ No newline at end of file diff --git a/css/main.css b/css/main.css index 98bf554..04c7c55 100644 --- a/css/main.css +++ b/css/main.css @@ -136,7 +136,8 @@ a:any-link:focus-visible { } sm-input, -sm-textarea { +sm-textarea, +tags-input { font-size: 0.9rem; --border-radius: 0.3rem; } @@ -529,6 +530,8 @@ menu-option { } #filter_panel { + position: sticky; + top: 6.5rem; z-index: 1; padding: 0.5rem 1.5rem; grid-column: 1/-1; @@ -661,9 +664,6 @@ menu-option { .heading { font-weight: 700; - display: -webkit-box; - display: -ms-flexbox; - display: flex; } .heading::before { content: ""; @@ -673,17 +673,12 @@ menu-option { border-radius: 0.5rem; background-color: var(--accent-color); } +.heading button { + margin-left: auto; +} .article-section { - display: -webkit-box; - display: -ms-flexbox; - display: flex; gap: 1rem; - overflow-x: auto; - -ms-flex-negative: 0; - flex-shrink: 0; - -ms-scroll-snap-type: x mandatory; - scroll-snap-type: x mandatory; } .article-section:not(:last-of-type) { margin-bottom: 1.5rem; @@ -693,10 +688,6 @@ menu-option { } .content-card { - scroll-snap-align: start; - width: min(46ch, 100%); - -ms-flex-negative: 0; - flex-shrink: 0; border-radius: 0.5rem; background-color: var(--foreground-color); -webkit-box-shadow: 0 0 0 1px rgba(var(--text-color), 0.16) inset; @@ -818,32 +809,17 @@ menu-option { position: relative; padding: 1rem; margin: 1rem 0; - background-color: var(--foreground-color); - border: solid thin rgba(var(--text-color), 0.2); - border-radius: 0.5rem; + border-radius: 0.2rem; + border: solid thin rgba(var(--text-color), 0.3); + -webkit-box-shadow: 0.3rem 0.5rem 0 0.1rem rgba(var(--text-color), 0.8); + box-shadow: 0.1rem 0.2rem 0 0.1rem rgba(var(--text-color), 0.8); overflow: hidden; justify-self: center; - padding-left: 1.3rem; -} -.quote-template::before { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - position: absolute; - content: ""; - height: 100%; - width: 0.3rem; - background-color: var(--accent-color); -} -.quote-template blockquote { - display: -webkit-box; - display: -ms-flexbox; - display: flex; -} -.quote-template figcaption { - margin-top: 0.5rem; - color: rgba(var(--text-color), 0.8); - font-size: 0.8rem; + padding-left: 1.3rem figcaption; + padding-left-margin-top: 0.5rem; + padding-left-color: rgba(var(--text-color), 0.8); + padding-left-font-size: 0.8rem; + padding-left-margin-left: auto; } #version_history_panel { @@ -977,14 +953,18 @@ menu-option { width: 1rem; } +#publish_article_popup { + --min-height: 50vh; +} + @media screen and (max-width: 40rem) { #article_name_wrapper, #selected_content_options { grid-row: 2/3; grid-column: 1/-1; } - #article_name_wrapper sm-menu, -#selected_content_options sm-menu { + #article_name_wrapper #filter_button, +#selected_content_options #filter_button { margin-left: auto; } @@ -994,6 +974,24 @@ menu-option { justify-content: flex-start; } + .article-section { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -ms-scroll-snap-type: x mandatory; + scroll-snap-type: x mandatory; + overflow-x: auto; + -ms-flex-negative: 0; + flex-shrink: 0; + } + + .content-card { + scroll-snap-align: start; + -ms-flex-negative: 0; + flex-shrink: 0; + width: min(45ch, calc(100% - 2rem)); + } + .hide-on-mobile { display: none; } @@ -1041,6 +1039,10 @@ menu-option { grid-template-columns: auto 1fr auto auto; } + #filter_panel { + top: 4.2rem; + } + #main_page.active-sidebar { -ms-scroll-chaining: none; overscroll-behavior: contain; @@ -1063,6 +1065,11 @@ menu-option { padding: 1.5rem; } + .article-section { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(40ch, 1fr)); + } + #article_list_popup .popup__header { grid-template-columns: auto 1fr auto; padding-bottom: 1rem; diff --git a/css/main.min.css b/css/main.min.css index c7a7030..0215d95 100644 --- a/css/main.min.css +++ b/css/main.min.css @@ -1 +1 @@ -*{padding:0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter",sans-serif}:root{font-size:clamp(1rem, 1.2vmax, 1.2rem)}html,body{height:100%;scroll-behavior:smooth}body{color:rgba(var(--text-color), 1);background:rgba(var(--background-color), 1)}body,body *{--accent-color: rgb(0, 156, 78);--text-color: 36, 36, 36;--background-color: 248, 248, 248;--foreground-color: rgb(255, 255, 255);--danger-color: rgb(255, 75, 75);--green: #1cad59;--yellow: #f3a600;scrollbar-width:thin}body[data-theme=dark],body[data-theme=dark] *{--accent-color: rgb(14, 230, 122);--text-color: 230, 230, 230;--text-color-light: 170, 170, 170;--background-color: 10, 10, 10;--foreground-color: rgb(24, 24, 24);--danger-color: rgb(255, 106, 106);--green: #00e676;--yellow: #ffd13a}body[data-theme=dark] sm-popup::part(popup){background-color:var(--foreground-color)}p,strong{font-size:.9rem;max-width:70ch;line-height:1.7;color:rgba(var(--text-color), 0.8)}p:not(:last-of-type),strong:not(:last-of-type){margin-bottom:1.5rem}a:where([class]){color:inherit;text-decoration:none}a:where([class]):focus-visible{-webkit-box-shadow:0 0 0 .1rem rgba(var(--text-color), 1) inset;box-shadow:0 0 0 .1rem rgba(var(--text-color), 1) inset}a{color:var(--accent-color)}button,.button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;border:none;background-color:transparent;overflow:hidden;color:inherit;cursor:pointer;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s;-webkit-tap-highlight-color:transparent;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:.9rem;font-weight:500}.button{white-space:nowrap;padding:.5rem .8rem;border-radius:.3rem;background-color:rgba(var(--text-color), 0.06);color:rgba(var(--text-color), 0.8);-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.button--primary{background-color:var(--accent-color);color:rgba(var(--background-color), 1)}.icon-only{padding:.5rem;border-radius:.3rem}button:disabled{opacity:.5}a:-webkit-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:-moz-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}sm-input,sm-textarea{font-size:.9rem;--border-radius: 0.3rem}sm-button{--padding: 0.5rem 0.8rem;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}sm-button[variant=primary] .icon{fill:rgba(var(--background-color), 1)}sm-button[disabled] .icon{fill:rgba(var(--text-color), 0.6)}sm-button.uppercase{letter-spacing:.05em}sm-button.danger{--background: var(--danger-color);color:rgba(var(--background-color), 1)}ul{list-style:none}.hide-completely{display:none !important}.overflow-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.breakable{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.full-bleed{grid-column:1/-1}.h1{font-size:1.5rem}.h2{font-size:1.2rem}.h3{font-size:1rem}.h4{font-size:.9rem}.h5{font-size:.8rem}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.grid{display:grid}.flow-column{grid-auto-flow:column}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}.gap-1-5{gap:1.5rem}.gap-2{gap:2rem}.gap-3{gap:3rem}.text-align-right{text-align:right}.align-start{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.align-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.text-center{text-align:center}.justify-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-right{margin-left:auto}.align-self-center{-ms-flex-item-align:center;align-self:center}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.direction-column{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.space-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.w-100{width:100%}.interact{position:relative;cursor:pointer;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s;-webkit-tap-highlight-color:transparent}.empty-state{display:grid;width:100%;padding:1.5rem 1rem}.observe-empty-state:empty{display:none}.observe-empty-state:not(:empty)+.empty-state{display:none}.icon{width:1.2rem;height:1.2rem;fill:rgba(var(--text-color), 0.8);-ms-flex-negative:0;flex-shrink:0}.button__icon{height:1.2rem;width:1.2rem}.button__icon--left{margin-right:.5rem}.button__icon--right{margin-left:.5rem}.icon-button{padding:.6rem;border-radius:.8rem;background-color:rgba(var(--text-color), 0.1);height:-webkit-max-content;height:-moz-max-content;height:max-content}.icon-button .icon{fill:var(--accent-color)}#confirmation_popup,#prompt_popup{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}#confirmation_popup h4,#prompt_popup h4{font-weight:500;margin-bottom:.5rem}#confirmation_popup sm-button,#prompt_popup sm-button{margin:0}#confirmation_popup .flex,#prompt_popup .flex{padding:0;margin-top:1rem}#confirmation_popup .flex sm-button:first-of-type,#prompt_popup .flex sm-button:first-of-type{margin-right:.6rem;margin-left:auto}#prompt_message{margin-bottom:1.5rem}button:active,.button:active,sm-button:not([disabled]):active,.interact:active{-webkit-transform:scale(0.96);transform:scale(0.96)}.popup__header{display:grid;gap:.5rem;width:100%;padding:0 1.5rem 0 .5rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:auto 1fr auto}.popup__header__close{padding:.5rem;cursor:pointer}.logo{display:grid;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;grid-template-columns:auto 1fr;gap:0 .5rem;margin-right:1rem}.logo h4{text-transform:capitalize;font-size:.9rem;font-weight:600}.logo .main-logo{height:1.4rem;width:1.4rem;fill:rgba(var(--text-color), 1);stroke:none}details summary{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}details[open]>summary{margin-bottom:1rem}details[open]>summary .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}sm-select,sm-option{font-size:.9rem}sm-checkbox{--height: 1rem;--width: 1rem;-webkit-tap-highlight-color:transparent}sm-menu{--background: var(--foreground-color)}menu-option{font-size:.9rem}.warning{background-color:khaki;color:rgba(0,0,0,.7);padding:1rem;border-radius:.5rem;line-height:1.5}.page-layout,#preview_page{display:grid;grid-template-columns:1rem minmax(0, 1fr) 1rem}.page-layout>*,#preview_page>*{grid-column:2/3}#main_header{position:sticky;top:0;display:grid;gap:1rem;padding:1rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:1fr auto auto;grid-column:1/-1;background-color:var(--foreground-color);z-index:2}#filter_panel{z-index:1;padding:.5rem 1.5rem;grid-column:1/-1;background-color:var(--foreground-color)}.label{font-size:.8rem;color:rgba(var(--text-color), 0.8);margin-bottom:.2rem}.icon--success{fill:var(--green)}.icon--failure,.icon--error{fill:var(--danger-color)}#main_page{grid-template-columns:minmax(0, 1fr)}#current_article_title{font-weight:700}#article_list_popup{--width: min(64rem, 100%);--min-height: 70vh}#article_list_popup::part(popup-header),#article_list_popup::part(popup-body){padding:.5rem}#article_list_popup .popup__header{padding:1rem;gap:1rem;padding-bottom:0;grid-template-columns:minmax(0, 1fr)}#article_list{grid-template-columns:repeat(auto-fill, minmax(30ch, 1fr))}.article-link{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;padding:1rem;color:rgba(var(--text-color), 0.8);font-weight:500;border-radius:.3rem}.article-link::first-letter{text-transform:uppercase}.default-article::before{-ms-flex-item-align:start;align-self:flex-start;content:"Actively written";margin-bottom:.3rem;font-size:.7rem;background-color:var(--accent-color);padding:.2rem .4rem;border-radius:.2rem;font-weight:500;color:var(--foreground-color)}#edit_sections_popup{--body-padding: 1.2rem}#section_list_container{background-color:rgba(var(--text-color), 0.06);margin:1rem 0;padding:0 .8rem;border-radius:.5rem}.section-card{font-weight:500;font-size:.9rem}.section-card:not(.section-card--new){padding:.8rem 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.section-card--new input{border:none;font-size:inherit;background:inherit;color:inherit;font-weight:inherit;width:100%;padding:.8rem .2rem}.section-card--new input:focus{outline:var(--accent-color) solid}.section-card .remove{padding:.3rem}#insert_section_button{-ms-flex-item-align:start;align-self:flex-start}#article_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:1rem;gap:1rem 0}.heading{font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex}.heading::before{content:"";width:.3rem;height:100%;margin-right:.7rem;border-radius:.5rem;background-color:var(--accent-color)}.article-section{display:-webkit-box;display:-ms-flexbox;display:flex;gap:1rem;overflow-x:auto;-ms-flex-negative:0;flex-shrink:0;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.article-section:not(:last-of-type){margin-bottom:1.5rem}.article-section::-webkit-scrollbar{display:none}.content-card{scroll-snap-align:start;width:min(46ch, 100%);-ms-flex-negative:0;flex-shrink:0;border-radius:.5rem;background-color:var(--foreground-color);-webkit-box-shadow:0 0 0 1px rgba(var(--text-color), 0.16) inset;box-shadow:0 0 0 1px rgba(var(--text-color), 0.16) inset}.content-card.selected{-webkit-box-shadow:0 0 0 .1rem var(--accent-color) inset;box-shadow:0 0 0 .1rem var(--accent-color) inset}.content-card--empty{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.content-card--empty .content__area{min-height:calc(60vh + 3rem);height:100%}.content__header{padding:.5rem}.content__area{border-radius:inherit;padding:1rem;white-space:pre-line;font-size:.9rem;line-height:1.7;color:rgba(var(--text-color), 0.8);background-color:rgba(var(--text-color), 0.02);border-radius:.5rem;-webkit-transition:-webkit-box-shadow .1s;transition:-webkit-box-shadow .1s;transition:box-shadow .1s;transition:box-shadow .1s, -webkit-box-shadow .1s;height:60vh;overflow-y:auto}.content__area:empty::before{content:attr(placeholder);opacity:.6;pointer-events:none}.content__area:focus-within{outline:none;-webkit-box-shadow:0 0 0 .1rem var(--accent-color) inset;box-shadow:0 0 0 .1rem var(--accent-color) inset}.content__options{gap:.5rem;padding:.5rem 1rem;grid-template-columns:auto auto 1fr auto}.content__contributors{font-size:.7rem;background-color:rgba(var(--text-color), 0.06);border-radius:.3rem;padding:.2rem .3rem;color:rgba(var(--text-color), 0.8)}.actionable-button{padding:.5rem .8rem;background-color:rgba(var(--text-color), 0.1);border-radius:2rem;border:solid thin rgba(var(--text-color), 0.3)}.actionable-button__title{font-size:.8rem;margin-left:.3rem}#text_toolbar{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;z-index:1;left:0;top:0;-webkit-transition:-webkit-transform .1s;transition:-webkit-transform .1s;transition:transform .1s;transition:transform .1s, -webkit-transform .1s;background-color:var(--foreground-color);border:solid thin rgba(var(--text-color), 0.2);padding:.2rem;border-radius:.3rem;-webkit-box-shadow:0 .1rem .2rem rgba(0,0,0,.06),0 1rem 1.5rem -0.5rem rgba(0,0,0,.2);box-shadow:0 .1rem .2rem rgba(0,0,0,.06),0 1rem 1.5rem -0.5rem rgba(0,0,0,.2)}.formatting-button{padding:.3rem;border-radius:.3rem;-webkit-transition:background-color .1s;transition:background-color .1s}.formatting-button.active:hover{background-color:var(--accent-color)}.active{background-color:var(--accent-color)}.active .icon{fill:var(--foreground-color)}.quote-template{position:relative;padding:1rem;margin:1rem 0;background-color:var(--foreground-color);border:solid thin rgba(var(--text-color), 0.2);border-radius:.5rem;overflow:hidden;justify-self:center;padding-left:1.3rem}.quote-template::before{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;content:"";height:100%;width:.3rem;background-color:var(--accent-color)}.quote-template blockquote{display:-webkit-box;display:-ms-flexbox;display:flex}.quote-template figcaption{margin-top:.5rem;color:rgba(var(--text-color), 0.8);font-size:.8rem}#version_history_panel{border-radius:.5rem;width:min(24rem, 100%);background-color:var(--foreground-color);overflow-y:auto}#version_history_panel>:first-child{padding:1rem}#version_timeline{padding:1rem;height:100%;overflow-y:auto}.history-entry:not(:last-of-type){padding-bottom:1rem;border-bottom:thin solid rgba(var(--text-color), 0.3)}.history-entry:last-of-type::before{content:"CREATED";letter-spacing:.03em;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;justify-self:flex-start;font-weight:500;padding:.2rem .3rem;font-size:.7rem;border-radius:.2rem;border:solid thin rgba(var(--text-color), 0.5)}.entry__time,.entry__author{font-size:.8rem;font-weight:500}.entry__changes{font-size:.9rem;line-height:1.7;color:rgba(var(--text-color), 0.8)}.entry__changes .added>*,.entry__changes .removed>*{background-color:transparent}.entry__changes .added,.entry__changes .added>*{background-color:#00e67650}.entry__changes .removed,.entry__changes .removed>*{color:var(--danger-color);-webkit-text-decoration-color:var(--danger-color);text-decoration-color:var(--danger-color)}.contributor{gap:.5rem;grid-template-columns:auto 1fr}.contributor .icon{grid-row:span 2}.contributor__id{font-size:.8rem;font-weight:700}.contributor__time{font-size:.8rem}#preview_page{padding-bottom:3rem;grid-template-columns:1.5rem minmax(0, 1fr) 1.5rem;overflow-y:auto;height:100%;-ms-flex-line-pack:start;align-content:flex-start}#preview_page header{position:sticky;top:0;z-index:1;padding:1.5rem 0 1rem 0;background-color:rgba(var(--background-color), 1)}#preview_page h3{margin-bottom:1rem}#preview_page h3:not(:first-of-type){margin-top:3rem}#preview_page p{font-family:"noto serif",serif;font-size:1rem}#preview_page p>*{font-family:inherit}#preview__body{padding:1.5rem 0}.preview-group:not(:last-of-type){margin-bottom:1.5rem}.preview-group__buttons{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;background-color:var(--foreground-color);border:solid thin rgba(var(--text-color), 0.2);padding:.2rem;border-radius:.3rem;-webkit-box-shadow:0 .1rem .2rem rgba(0,0,0,.06),0 1rem 1.5rem -0.5rem rgba(0,0,0,.2);box-shadow:0 .1rem .2rem rgba(0,0,0,.06),0 1rem 1.5rem -0.5rem rgba(0,0,0,.2)}.preview-group__buttons button{padding:.5rem}.preview-group__buttons button .icon{height:1rem;width:1rem}@media screen and (max-width: 40rem){#article_name_wrapper,#selected_content_options{grid-row:2/3;grid-column:1/-1}#article_name_wrapper sm-menu,#selected_content_options sm-menu{margin-left:auto}#article_name_wrapper{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.hide-on-mobile{display:none}}@media screen and (min-width: 40rem){sm-popup{--width: 24rem}.h1{font-size:2rem}.h2{font-size:1.8rem}.h3{font-size:1.3rem}.h4{font-size:1rem}.popup__header{grid-column:1/-1;padding:1rem 1.5rem 0 .5rem}#confirmation_popup{--width: 24rem}.page-layout{grid-template-columns:1.5rem minmax(0, 1fr) 1.5rem}.hide-on-desktop{display:none}#main_header{padding:1rem 1.5rem;grid-template-columns:auto 1fr auto auto}#main_page.active-sidebar{-ms-scroll-chaining:none;overscroll-behavior:contain;height:100%;overflow-y:hidden;grid-template-rows:auto 1fr;grid-template-columns:minmax(0, 1fr) 24rem}#main_page.active-sidebar #version_history_panel,#main_page.active-sidebar #article_wrapper{-ms-scroll-chaining:none;overscroll-behavior:contain}#main_page.active-sidebar #article_wrapper{height:100%;overflow-y:auto}#article_wrapper{padding:1.5rem}#article_list_popup .popup__header{grid-template-columns:auto 1fr auto;padding-bottom:1rem}#article_list_search{width:16rem}#preview_page{grid-template-columns:1fr 60ch 1fr}.preview-group{position:relative}.preview-group__buttons{position:absolute;right:0;bottom:100%}}@media(any-hover: hover){::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background:rgba(var(--text-color), 0.3);border-radius:1rem}::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-color), 0.5)}.interact,button{-webkit-transition:background-color .3s,-webkit-transform .3s;transition:background-color .3s,-webkit-transform .3s;transition:background-color .3s,transform .3s;transition:background-color .3s,transform .3s,-webkit-transform .3s}.interact:hover,button:hover{background-color:rgba(var(--text-color), 0.1)}.content-card:not(.selected) sm-checkbox{opacity:0;-webkit-transition:opacity .2s;transition:opacity .2s}.content-card:hover sm-checkbox,.content-card:focus-within sm-checkbox{opacity:1}.preview-group__buttons{-webkit-transition:opacity .1s;transition:opacity .1s;opacity:0}.preview-group{border-radius:.3rem}.preview-group:hover{background-color:rgba(var(--text-color), 0.06)}.preview-group:hover .preview-group__buttons{opacity:1}.preview-group .preview-group__buttons:focus-within{opacity:1}} \ No newline at end of file +*{padding:0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter",sans-serif}:root{font-size:clamp(1rem, 1.2vmax, 1.2rem)}html,body{height:100%;scroll-behavior:smooth}body{color:rgba(var(--text-color), 1);background:rgba(var(--background-color), 1)}body,body *{--accent-color: rgb(0, 156, 78);--text-color: 36, 36, 36;--background-color: 248, 248, 248;--foreground-color: rgb(255, 255, 255);--danger-color: rgb(255, 75, 75);--green: #1cad59;--yellow: #f3a600;scrollbar-width:thin}body[data-theme=dark],body[data-theme=dark] *{--accent-color: rgb(14, 230, 122);--text-color: 230, 230, 230;--text-color-light: 170, 170, 170;--background-color: 10, 10, 10;--foreground-color: rgb(24, 24, 24);--danger-color: rgb(255, 106, 106);--green: #00e676;--yellow: #ffd13a}body[data-theme=dark] sm-popup::part(popup){background-color:var(--foreground-color)}p,strong{font-size:.9rem;max-width:70ch;line-height:1.7;color:rgba(var(--text-color), 0.8)}p:not(:last-of-type),strong:not(:last-of-type){margin-bottom:1.5rem}a:where([class]){color:inherit;text-decoration:none}a:where([class]):focus-visible{-webkit-box-shadow:0 0 0 .1rem rgba(var(--text-color), 1) inset;box-shadow:0 0 0 .1rem rgba(var(--text-color), 1) inset}a{color:var(--accent-color)}button,.button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;border:none;background-color:transparent;overflow:hidden;color:inherit;cursor:pointer;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s;-webkit-tap-highlight-color:transparent;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:.9rem;font-weight:500}.button{white-space:nowrap;padding:.5rem .8rem;border-radius:.3rem;background-color:rgba(var(--text-color), 0.06);color:rgba(var(--text-color), 0.8);-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.button--primary{background-color:var(--accent-color);color:rgba(var(--background-color), 1)}.icon-only{padding:.5rem;border-radius:.3rem}button:disabled{opacity:.5}a:-webkit-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:-moz-any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}a:any-link:focus-visible{outline:rgba(var(--text-color), 1) .1rem solid}sm-input,sm-textarea,tags-input{font-size:.9rem;--border-radius: 0.3rem}sm-button{--padding: 0.5rem 0.8rem;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s}sm-button[variant=primary] .icon{fill:rgba(var(--background-color), 1)}sm-button[disabled] .icon{fill:rgba(var(--text-color), 0.6)}sm-button.uppercase{letter-spacing:.05em}sm-button.danger{--background: var(--danger-color);color:rgba(var(--background-color), 1)}ul{list-style:none}.hide-completely{display:none !important}.overflow-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.breakable{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto}.full-bleed{grid-column:1/-1}.h1{font-size:1.5rem}.h2{font-size:1.2rem}.h3{font-size:1rem}.h4{font-size:.9rem}.h5{font-size:.8rem}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.grid{display:grid}.flow-column{grid-auto-flow:column}.gap-0-5{gap:.5rem}.gap-1{gap:1rem}.gap-1-5{gap:1.5rem}.gap-2{gap:2rem}.gap-3{gap:3rem}.text-align-right{text-align:right}.align-start{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.align-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.text-center{text-align:center}.justify-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-right{margin-left:auto}.align-self-center{-ms-flex-item-align:center;align-self:center}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.direction-column{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.space-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.w-100{width:100%}.interact{position:relative;cursor:pointer;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s, -webkit-transform .3s;-webkit-tap-highlight-color:transparent}.empty-state{display:grid;width:100%;padding:1.5rem 1rem}.observe-empty-state:empty{display:none}.observe-empty-state:not(:empty)+.empty-state{display:none}.icon{width:1.2rem;height:1.2rem;fill:rgba(var(--text-color), 0.8);-ms-flex-negative:0;flex-shrink:0}.button__icon{height:1.2rem;width:1.2rem}.button__icon--left{margin-right:.5rem}.button__icon--right{margin-left:.5rem}.icon-button{padding:.6rem;border-radius:.8rem;background-color:rgba(var(--text-color), 0.1);height:-webkit-max-content;height:-moz-max-content;height:max-content}.icon-button .icon{fill:var(--accent-color)}#confirmation_popup,#prompt_popup{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}#confirmation_popup h4,#prompt_popup h4{font-weight:500;margin-bottom:.5rem}#confirmation_popup sm-button,#prompt_popup sm-button{margin:0}#confirmation_popup .flex,#prompt_popup .flex{padding:0;margin-top:1rem}#confirmation_popup .flex sm-button:first-of-type,#prompt_popup .flex sm-button:first-of-type{margin-right:.6rem;margin-left:auto}#prompt_message{margin-bottom:1.5rem}button:active,.button:active,sm-button:not([disabled]):active,.interact:active{-webkit-transform:scale(0.96);transform:scale(0.96)}.popup__header{display:grid;gap:.5rem;width:100%;padding:0 1.5rem 0 .5rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:auto 1fr auto}.popup__header__close{padding:.5rem;cursor:pointer}.logo{display:grid;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;grid-template-columns:auto 1fr;gap:0 .5rem;margin-right:1rem}.logo h4{text-transform:capitalize;font-size:.9rem;font-weight:600}.logo .main-logo{height:1.4rem;width:1.4rem;fill:rgba(var(--text-color), 1);stroke:none}details summary{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}details[open]>summary{margin-bottom:1rem}details[open]>summary .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}sm-select,sm-option{font-size:.9rem}sm-checkbox{--height: 1rem;--width: 1rem;-webkit-tap-highlight-color:transparent}sm-menu{--background: var(--foreground-color)}menu-option{font-size:.9rem}.warning{background-color:khaki;color:rgba(0,0,0,.7);padding:1rem;border-radius:.5rem;line-height:1.5}.page-layout,#preview_page{display:grid;grid-template-columns:1rem minmax(0, 1fr) 1rem}.page-layout>*,#preview_page>*{grid-column:2/3}#main_header{position:sticky;top:0;display:grid;gap:1rem;padding:1rem;-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:1fr auto auto;grid-column:1/-1;background-color:var(--foreground-color);z-index:2}#filter_panel{position:sticky;top:6.5rem;z-index:1;padding:.5rem 1.5rem;grid-column:1/-1;background-color:var(--foreground-color)}.label{font-size:.8rem;color:rgba(var(--text-color), 0.8);margin-bottom:.2rem}.icon--success{fill:var(--green)}.icon--failure,.icon--error{fill:var(--danger-color)}#main_page{grid-template-columns:minmax(0, 1fr)}#current_article_title{font-weight:700}#article_list_popup{--width: min(64rem, 100%);--min-height: 70vh}#article_list_popup::part(popup-header),#article_list_popup::part(popup-body){padding:.5rem}#article_list_popup .popup__header{padding:1rem;gap:1rem;padding-bottom:0;grid-template-columns:minmax(0, 1fr)}#article_list{grid-template-columns:repeat(auto-fill, minmax(30ch, 1fr))}.article-link{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;padding:1rem;color:rgba(var(--text-color), 0.8);font-weight:500;border-radius:.3rem}.article-link::first-letter{text-transform:uppercase}.default-article::before{-ms-flex-item-align:start;align-self:flex-start;content:"Actively written";margin-bottom:.3rem;font-size:.7rem;background-color:var(--accent-color);padding:.2rem .4rem;border-radius:.2rem;font-weight:500;color:var(--foreground-color)}#edit_sections_popup{--body-padding: 1.2rem}#section_list_container{background-color:rgba(var(--text-color), 0.06);margin:1rem 0;padding:0 .8rem;border-radius:.5rem}.section-card{font-weight:500;font-size:.9rem}.section-card:not(.section-card--new){padding:.8rem 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.section-card--new input{border:none;font-size:inherit;background:inherit;color:inherit;font-weight:inherit;width:100%;padding:.8rem .2rem}.section-card--new input:focus{outline:var(--accent-color) solid}.section-card .remove{padding:.3rem}#insert_section_button{-ms-flex-item-align:start;align-self:flex-start}#article_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:1rem;gap:1rem 0}.heading{font-weight:700}.heading::before{content:"";width:.3rem;height:100%;margin-right:.7rem;border-radius:.5rem;background-color:var(--accent-color)}.heading button{margin-left:auto}.article-section{gap:1rem}.article-section:not(:last-of-type){margin-bottom:1.5rem}.article-section::-webkit-scrollbar{display:none}.content-card{border-radius:.5rem;background-color:var(--foreground-color);-webkit-box-shadow:0 0 0 1px rgba(var(--text-color), 0.16) inset;box-shadow:0 0 0 1px rgba(var(--text-color), 0.16) inset}.content-card.selected{-webkit-box-shadow:0 0 0 .1rem var(--accent-color) inset;box-shadow:0 0 0 .1rem var(--accent-color) inset}.content-card--empty{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.content-card--empty .content__area{min-height:calc(60vh + 3rem);height:100%}.content__header{padding:.5rem}.content__area{border-radius:inherit;padding:1rem;white-space:pre-line;font-size:.9rem;line-height:1.7;color:rgba(var(--text-color), 0.8);background-color:rgba(var(--text-color), 0.02);border-radius:.5rem;-webkit-transition:-webkit-box-shadow .1s;transition:-webkit-box-shadow .1s;transition:box-shadow .1s;transition:box-shadow .1s, -webkit-box-shadow .1s;height:60vh;overflow-y:auto}.content__area:empty::before{content:attr(placeholder);opacity:.6;pointer-events:none}.content__area:focus-within{outline:none;-webkit-box-shadow:0 0 0 .1rem var(--accent-color) inset;box-shadow:0 0 0 .1rem var(--accent-color) inset}.content__options{gap:.5rem;padding:.5rem 1rem;grid-template-columns:auto auto 1fr auto}.content__contributors{font-size:.7rem;background-color:rgba(var(--text-color), 0.06);border-radius:.3rem;padding:.2rem .3rem;color:rgba(var(--text-color), 0.8)}.actionable-button{padding:.5rem .8rem;background-color:rgba(var(--text-color), 0.1);border-radius:2rem;border:solid thin rgba(var(--text-color), 0.3)}.actionable-button__title{font-size:.8rem;margin-left:.3rem}#text_toolbar{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;z-index:1;left:0;top:0;-webkit-transition:-webkit-transform .1s;transition:-webkit-transform .1s;transition:transform .1s;transition:transform .1s, -webkit-transform .1s;background-color:var(--foreground-color);border:solid thin rgba(var(--text-color), 0.2);padding:.2rem;border-radius:.3rem;-webkit-box-shadow:0 .1rem .2rem rgba(0,0,0,.06),0 1rem 1.5rem -0.5rem rgba(0,0,0,.2);box-shadow:0 .1rem .2rem rgba(0,0,0,.06),0 1rem 1.5rem -0.5rem rgba(0,0,0,.2)}.formatting-button{padding:.3rem;border-radius:.3rem;-webkit-transition:background-color .1s;transition:background-color .1s}.formatting-button.active:hover{background-color:var(--accent-color)}.active{background-color:var(--accent-color)}.active .icon{fill:var(--foreground-color)}.quote-template{position:relative;padding:1rem;margin:1rem 0;border-radius:.2rem;border:solid thin rgba(var(--text-color), 0.3);-webkit-box-shadow:.3rem .5rem 0 .1rem rgba(var(--text-color), 0.8);box-shadow:.1rem .2rem 0 .1rem rgba(var(--text-color), 0.8);overflow:hidden;justify-self:center;padding-left:1.3rem figcaption;padding-left-margin-top:.5rem;padding-left-color:rgba(var(--text-color), 0.8);padding-left-font-size:.8rem;padding-left-margin-left:auto}#version_history_panel{border-radius:.5rem;width:min(24rem, 100%);background-color:var(--foreground-color);overflow-y:auto}#version_history_panel>:first-child{padding:1rem}#version_timeline{padding:1rem;height:100%;overflow-y:auto}.history-entry:not(:last-of-type){padding-bottom:1rem;border-bottom:thin solid rgba(var(--text-color), 0.3)}.history-entry:last-of-type::before{content:"CREATED";letter-spacing:.03em;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;justify-self:flex-start;font-weight:500;padding:.2rem .3rem;font-size:.7rem;border-radius:.2rem;border:solid thin rgba(var(--text-color), 0.5)}.entry__time,.entry__author{font-size:.8rem;font-weight:500}.entry__changes{font-size:.9rem;line-height:1.7;color:rgba(var(--text-color), 0.8)}.entry__changes .added>*,.entry__changes .removed>*{background-color:transparent}.entry__changes .added,.entry__changes .added>*{background-color:#00e67650}.entry__changes .removed,.entry__changes .removed>*{color:var(--danger-color);-webkit-text-decoration-color:var(--danger-color);text-decoration-color:var(--danger-color)}.contributor{gap:.5rem;grid-template-columns:auto 1fr}.contributor .icon{grid-row:span 2}.contributor__id{font-size:.8rem;font-weight:700}.contributor__time{font-size:.8rem}#preview_page{padding-bottom:3rem;grid-template-columns:1.5rem minmax(0, 1fr) 1.5rem;overflow-y:auto;height:100%;-ms-flex-line-pack:start;align-content:flex-start}#preview_page header{position:sticky;top:0;z-index:1;padding:1.5rem 0 1rem 0;background-color:rgba(var(--background-color), 1)}#preview_page h3{margin-bottom:1rem}#preview_page h3:not(:first-of-type){margin-top:3rem}#preview_page p{font-family:"noto serif",serif;font-size:1rem}#preview_page p>*{font-family:inherit}#preview__body{padding:1.5rem 0}.preview-group:not(:last-of-type){margin-bottom:1.5rem}.preview-group__buttons{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;background-color:var(--foreground-color);border:solid thin rgba(var(--text-color), 0.2);padding:.2rem;border-radius:.3rem;-webkit-box-shadow:0 .1rem .2rem rgba(0,0,0,.06),0 1rem 1.5rem -0.5rem rgba(0,0,0,.2);box-shadow:0 .1rem .2rem rgba(0,0,0,.06),0 1rem 1.5rem -0.5rem rgba(0,0,0,.2)}.preview-group__buttons button{padding:.5rem}.preview-group__buttons button .icon{height:1rem;width:1rem}#publish_article_popup{--min-height: 50vh}@media screen and (max-width: 40rem){#article_name_wrapper,#selected_content_options{grid-row:2/3;grid-column:1/-1}#article_name_wrapper #filter_button,#selected_content_options #filter_button{margin-left:auto}#article_name_wrapper{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.article-section{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:auto;-ms-flex-negative:0;flex-shrink:0}.content-card{scroll-snap-align:start;-ms-flex-negative:0;flex-shrink:0;width:min(45ch, calc(100% - 2rem))}.hide-on-mobile{display:none}}@media screen and (min-width: 40rem){sm-popup{--width: 24rem}.h1{font-size:2rem}.h2{font-size:1.8rem}.h3{font-size:1.3rem}.h4{font-size:1rem}.popup__header{grid-column:1/-1;padding:1rem 1.5rem 0 .5rem}#confirmation_popup{--width: 24rem}.page-layout{grid-template-columns:1.5rem minmax(0, 1fr) 1.5rem}.hide-on-desktop{display:none}#main_header{padding:1rem 1.5rem;grid-template-columns:auto 1fr auto auto}#filter_panel{top:4.2rem}#main_page.active-sidebar{-ms-scroll-chaining:none;overscroll-behavior:contain;height:100%;overflow-y:hidden;grid-template-rows:auto 1fr;grid-template-columns:minmax(0, 1fr) 24rem}#main_page.active-sidebar #version_history_panel,#main_page.active-sidebar #article_wrapper{-ms-scroll-chaining:none;overscroll-behavior:contain}#main_page.active-sidebar #article_wrapper{height:100%;overflow-y:auto}#article_wrapper{padding:1.5rem}.article-section{display:grid;grid-template-columns:repeat(auto-fill, minmax(40ch, 1fr))}#article_list_popup .popup__header{grid-template-columns:auto 1fr auto;padding-bottom:1rem}#article_list_search{width:16rem}#preview_page{grid-template-columns:1fr 60ch 1fr}.preview-group{position:relative}.preview-group__buttons{position:absolute;right:0;bottom:100%}}@media(any-hover: hover){::-webkit-scrollbar{width:.5rem;height:.5rem}::-webkit-scrollbar-thumb{background:rgba(var(--text-color), 0.3);border-radius:1rem}::-webkit-scrollbar-thumb:hover{background:rgba(var(--text-color), 0.5)}.interact,button{-webkit-transition:background-color .3s,-webkit-transform .3s;transition:background-color .3s,-webkit-transform .3s;transition:background-color .3s,transform .3s;transition:background-color .3s,transform .3s,-webkit-transform .3s}.interact:hover,button:hover{background-color:rgba(var(--text-color), 0.1)}.content-card:not(.selected) sm-checkbox{opacity:0;-webkit-transition:opacity .2s;transition:opacity .2s}.content-card:hover sm-checkbox,.content-card:focus-within sm-checkbox{opacity:1}.preview-group__buttons{-webkit-transition:opacity .1s;transition:opacity .1s;opacity:0}.preview-group{border-radius:.3rem}.preview-group:hover{background-color:rgba(var(--text-color), 0.06)}.preview-group:hover .preview-group__buttons{opacity:1}.preview-group .preview-group__buttons:focus-within{opacity:1}} \ No newline at end of file diff --git a/css/main.scss b/css/main.scss index c446a96..7f600b0 100644 --- a/css/main.scss +++ b/css/main.scss @@ -116,7 +116,8 @@ a:any-link:focus-visible { } sm-input, -sm-textarea { +sm-textarea, +tags-input { font-size: 0.9rem; --border-radius: 0.3rem; } @@ -460,6 +461,8 @@ menu-option { } #filter_panel { + position: sticky; + top: 6.5rem; z-index: 1; padding: 0.5rem 1.5rem; grid-column: 1/-1; @@ -576,7 +579,6 @@ menu-option { .heading { font-weight: 700; - display: flex; &::before { content: ""; width: 0.3rem; @@ -585,14 +587,13 @@ menu-option { border-radius: 0.5rem; background-color: var(--accent-color); } + button{ + margin-left: auto; + } } .article-section { - display: flex; gap: 1rem; - overflow-x: auto; - flex-shrink: 0; - scroll-snap-type: x mandatory; &:not(:last-of-type) { margin-bottom: 1.5rem; } @@ -601,9 +602,6 @@ menu-option { } } .content-card { - scroll-snap-align: start; - width: min(46ch, 100%); - flex-shrink: 0; border-radius: 0.5rem; background-color: var(--foreground-color); box-shadow: 0 0 0 1px rgba(var(--text-color), 0.16) inset; @@ -700,32 +698,22 @@ menu-option { position: relative; padding: 1rem; margin: 1rem 0; - background-color: var(--foreground-color); - border: solid thin rgba(var(--text-color), 0.2); - border-radius: 0.5rem; + border-radius: .2rem; + border: solid thin rgba(var(--text-color), 0.3); + -webkit-box-shadow: .3rem .5rem 0 .1rem rgba(var(--text-color), 0.8); + box-shadow: .1rem .2rem 0 .1rem rgba(var(--text-color), 0.8); overflow: hidden; justify-self: center; - padding-left: 1.3rem; - &::before { - display: flex; - position: absolute; - content: ""; - height: 100%; - width: 0.3rem; - background-color: var(--accent-color); - } - blockquote { - display: flex; - } - .quote { - } + padding-left: 1.3rem figcaption { - margin-top: 0.5rem; - color: rgba(var(--text-color), 0.8); - font-size: 0.8rem; + margin-top: .5rem; + color: rgba(var(--text-color), 0.8); + font-size: .8rem; + margin-left: auto } } + #version_history_panel { border-radius: 0.5rem; width: min(24rem, 100%); @@ -849,18 +837,33 @@ menu-option { } } +#publish_article_popup{ + --min-height: 50vh; +} + @media screen and (max-width: 40rem) { #article_name_wrapper, #selected_content_options { grid-row: 2/3; grid-column: 1/-1; - sm-menu { + #filter_button { margin-left: auto; } } #article_name_wrapper{ justify-content: flex-start; } + .article-section{ + display: flex; + scroll-snap-type: x mandatory; + overflow-x: auto; + flex-shrink: 0; + } + .content-card{ + scroll-snap-align: start; + flex-shrink: 0; + width: min(45ch, calc(100% - 2rem)); + } .hide-on-mobile { display: none; } @@ -901,6 +904,9 @@ menu-option { padding: 1rem 1.5rem; grid-template-columns: auto 1fr auto auto; } + #filter_panel { + top: 4.2rem; + } #main_page { &.active-sidebar { overscroll-behavior: contain; @@ -921,6 +927,10 @@ menu-option { #article_wrapper { padding: 1.5rem; } + .article-section{ + display: grid; + grid-template-columns: repeat(auto-fill, minmax(40ch, 1fr)); + } #article_list_popup { .popup__header { grid-template-columns: auto 1fr auto; diff --git a/index.html b/index.html index 03f92d5..a6c05ae 100644 --- a/index.html +++ b/index.html @@ -83,7 +83,7 @@ - +

Publish article

+ + + +
+
Select category
+ + Entertainment + Politics + Science + Sports + Tech + +
+
+
Add tags
+ +
+ Request publishing +
+ -