diff options
author | Sn4il <sn4il@thedroth.rocks> | 2024-05-03 15:04:13 +0300 |
---|---|---|
committer | Sn4il <sn4il@thedroth.rocks> | 2024-05-03 15:04:13 +0300 |
commit | 575bed34aa0b70091ae0c2d476b3666ce0bef5ff (patch) | |
tree | 522da62ba92497ac0834b426bc9630fff1d8a150 /style.css | |
parent | e01a5cf20e2a3096d7faba87f141b6c4b797d689 (diff) | |
download | sn4il-site-575bed34aa0b70091ae0c2d476b3666ce0bef5ff.tar.gz sn4il-site-575bed34aa0b70091ae0c2d476b3666ce0bef5ff.zip |
Bauhaus design
Diffstat (limited to 'style.css')
-rwxr-xr-x | style.css | 759 |
1 files changed, 345 insertions, 414 deletions
@@ -1,433 +1,364 @@ -@import url('https://fonts.cdnfonts.com/css/sf-mono?styles=36552,36546'); +@charset "UTF-8"; +html, body, div, h1, h2, h3, h4, h5, span, ul, ol, li { + padding: 0; + margin: 0; } -*, -*:before, -*:after { - box-sizing: border-box; -} +ul, ol, li { + list-style: none; } body { - max-width: 48em; - margin: 0 auto; - line-height: 1.5; - padding: 0.5rem 1rem; - word-wrap: break-word; - height: 100%; - background-color: #e2e0de; - color: #363533; - font-weight: 400; - font-size: 15px; - font-family: 'SF Mono', sans-serif; - line-height: 1.725; - text-rendering: geometricPrecision; - display: flex; - flex-direction: column; - overflow-wrap: break-word; -} - -video { - aspect-ratio: 16 / 9; -} - -sup { - padding: 0 2px; - border-radius: 5px; - line-height: 99%; - left: 4px; - position: relative; - bottom: 4px; -} + font-family: Helvetica, Arial; + color: #333333; + font-size: 1em; } -a { - text-decoration: none; - color: #6495ED; -} +.bh-content { + padding-top: 2em; } -pre { - overflow-x: auto; - border-radius: 4px; - background: #dedcd9; - color: #333; - padding: 10px 15px; - font-size: 90%; -} +.bh-row { + width: 80%; + margin: 0 auto; + position: relative; } -code { - border-radius: 3px; - background: #dedcd9; - color: #333; - padding: 0 4px; - font-size: 90%; - border: 1px dotted #666; -} - -blockquote { - border-left: 2px solid #6495ED; - margin-left: 1rem; - padding-left: 1rem; - background: #dedcd9; - border-radius: 4px; -} - -input[type="file"] { - margin-bottom: 1rem; - width: 100%; -} - -select, -input[type=file]::file-selector-button { - background: rgb(201, 201, 203, 0.4); - border: none; - border-radius: 4px; - padding: 0.3rem; -} - -select:hover, -input[type=file]::file-selector-button:hover { - background: rgb(201, 201, 203); -} - -input[type="text"] { - height: auto; - font-size: inherit; +.bh-wide-row { width: 100%; - color: inherit; - border-radius: 4px; - border: inherit; -} - -input[class^="snac-btn-"] { - background: rgb(201, 201, 203, 0.4); - border: none; - border-radius: 4px; - padding: 0.3rem; - font-size: 85%; -} - -input[class^="snac-btn-"]:hover { - background: rgb(201, 201, 203); -} - -input[name="telegram_bot"] { - margin-bottom: 0.5rem; -} - -.snac-note input[value="Post"], -.snac-top-controls input[value="Post"], -.snac-top-controls input[value="Follow"], -.snac-top-controls input[value="Boost"], -.snac-top-controls input[value="Update user info"] { - background: rgb(100, 149, 237, 0.2); - color: #6495ED; - border: none; - border-radius: 4px; - padding: 0.5rem 1rem; - font-weight: 700; -} - -.snac-note input[value="Post"]:hover, -.snac-top-controls input[value="Post"]:hover, -.snac-top-controls input[value="Follow"]:hover, -.snac-top-controls input[value="Boost"]:hover, -.snac-top-controls input[value="Update user info"]:hover { - background: rgb(100, 149, 237, 0.3); -} - -.snac-top-controls input[value="Follow"], -.snac-top-controls input[value="Boost"] { - margin-top: 0.5rem; -} - - -.snac-top-controls > div > details > summary::marker { - content: "✏️ "; -} - -.snac-top-controls #new_post_form details:first-of-type summary::marker { - content: "📎 "; -} - -.snac-top-controls #new_post_form details:last-of-type summary::marker { - content: "📊 "; -} - -.snac-top-controls > details:first-of-type summary::marker { - content: "🗃️ "; -} - -.snac-top-controls > details:last-of-type summary::marker { - content: "⚙️ "; -} - - -form[id$=_reply_form] details:first-of-type summary::marker { - content: "📎 "; -} - -.snac-controls details:first-of-type summary::marker { - content: "🗨️ "; -} - -h2::before { - position: absolute; - left: -1.2rem; - color: #6495ED; - content: "#"; - font-size: 1.5rem; -} + position: relative; } + +.bh-row, .bh-wide-row { + float: none; + clear: both; + padding-bottom: 2em; + border-bottom: 1px solid #ccc; } + .bh-row:before, .bh-row:after, .bh-wide-row:before, .bh-wide-row:after { + content: ""; + display: table; } + .bh-row:after, .bh-wide-row:after { + clear: both; } + +.bh-no-border { + border: none; } + +.bh-col-1 { + width: 8.33333%; + float: left; + position: relative; } -h2 { - position: relative; - display: block; - margin-left: 1rem; -} - -textarea, -input { - outline: none; - padding: 0.3rem; - background: #dedcd9; - border: none; - border-radius: 4px; -} - -textarea[name="bio"], -textarea[name="metadata"] { - width: 100%; -} +.bh-col-2 { + width: 16.66667%; + float: left; + position: relative; } -textarea:focus, -input:focus { - background: #eae9e7; -} +.bh-col-3 { + width: 25%; + float: left; + position: relative; } -summary { - border-radius: 4px; - padding: 0.1rem 0.2rem; - width: fit-content; -} +.bh-col-4 { + width: 33.33333%; + float: left; + position: relative; } -summary:hover { - cursor: pointer; - background: rgb(201, 201, 203, 0.4); -} - -.snac-embedded-video, -img { - max-width: 100%; - border-radius: 4px; -} - -.snac-origin { - font-size: 85%; - color: limegreen; - margin-top: 0.3rem; -} - -.snac-origin>a { - color: #363533; -} - -.snac-score { - float: right; - font-size: 85%; - margin-left: 0.5rem; -} - -.snac-top-user-banner > img { - width: 100%; -} - -.snac-metadata { - margin-bottom: 1rem; -} - -.snac-top-user-name { - font-size: 150%; - margin-bottom: -1.1rem; - margin-top: 0.5rem; -} - -.snac-top-user-id { - font-size: 110%; - margin-bottom: 1rem; -} - -.snac-top-user-bio { - margin-bottom: 1em; -} - -.snac-top-user-bio br { - display: none; -} - -.snac-top-nav { - color: #e2e0de; - display: flex; - align-items: center; - justify-content: end; -} - -.snac-top-nav > a { - text-transform: capitalize; - border-left: 1px solid; - padding-left: 0.6rem; - line-height: 1em; -} +.bh-col-5 { + width: 41.66667%; + float: left; + position: relative; } -.snac-top-nav > a:first-of-type { - padding-left: 0; - border-left: 0; -} +.bh-col-6 { + width: 50%; + float: left; + position: relative; } + +.bh-col-7 { + width: 58.33333%; + float: left; + position: relative; } -.snac-top-nav>a:hover { - text-decoration: underline; -} +.bh-col-8 { + width: 66.66667%; + float: left; + position: relative; } -.snac-top-nav>.snac-avatar { - margin-right: auto; -} +.bh-col-9 { + width: 75%; + float: left; + position: relative; } -.snac-avatar { +.bh-col-10 { + width: 83.33333%; float: left; - height: 2.5rem; - aspect-ratio: 1 / 1; - margin-right: 0.5rem; - border-radius: 8px; -} - -.snac-author { - font-size: 95%; - text-decoration: none; - font-weight: 700; - color: #363533; -} + position: relative; } -.snac-author-tag { - font-size: 90%; - color: #363533; +.bh-col-11 { + width: 91.66667%; + float: left; + position: relative; } + +.bh-col-12 { + width: 100%; + float: left; + position: relative; } + +.bh-vert-1 { + padding-top: 1em; } + +.bh-vert-2 { + padding-top: 2em; } + +.bh-vert-3 { + padding-top: 3em; } + +h1, h2, h3 { + font-weight: bold; + text-transform: uppercase; } + +h1 { + font-size: 3em; + line-height: 1em; + padding-bottom: 0.2em; + display: table; + letter-spacing: -0.02em; } + +h2 { + font-size: 2.3em; + line-height: 1em; + letter-spacing: -0.02em; } + +h3 { + font-size: 1.6em; + line-height: 1.2em; + letter-spacing: -0.02em; } + +p { + font-size: 1.2em; + line-height: 1.7em; + letter-spacing: -0.01em; } + p:last-of-type:after { + display: block; + width: 5em; + height: 5px; + background: #333; + content: " "; + margin: 1em 0 0; } + +a { + color: #333; text-decoration: none; -} - -.snac-pubdate { - color: #a0a0a0; - font-size: 90%; - float: right; -} - -.snac-top-controls { - padding-bottom: 1.5em; -} - -.e-content summary { - margin-bottom: 1rem; - color: palevioletred; -} - -.snac-post { - border-top: 1px solid #c1c1c1; - margin-bottom: 1rem; -} - -.snac-post-header { - line-height: 1.3; -} - -.snac-children { - padding-left: 1.5em; - border-left: 1px solid #c1c1c1; -} - -.snac-textarea { - font-family: inherit; + border-bottom: 1px solid #999; + padding-bottom: 0.2em; } + a:hover { + border-bottom-color: dodgerblue; } + +small { + font-size: 0.8em; + color: #999; } + +aside { + font-size: 0.8em; + color: #999; + font-style: italic; + position: absolute; + width: 25%; } + aside.bh-aside-left { + left: -29%; } + aside.bh-aside-right { + right: -29%; } + +ol, ul { + width: 100%; + clear: both; + float: none; + padding-bottom: 1em; } + ol li, ul li { + font-size: 1.2em; + line-height: 1.7em; } + ol li.bh-title, ul li.bh-title { + font-weight: bold; + border-bottom: 1px solid #ccc; + text-transform: uppercase; + display: table; + margin-bottom: 0.4em; + padding-bottom: 0.4em; + color: #666; } + +ol { + counter-reset: customlistcounter; } + ol li.bh-item:before { + content: counter(customlistcounter); + counter-increment: customlistcounter; + display: block; + position: absolute; + color: #999; + margin-left: -1.5em; } + +ul li.bh-item:before { + content: "–"; + display: block; + position: absolute; + color: #999; + margin-left: -1.5em; } +ul.bh-timeline header { + text-transform: uppercase; + font-size: 0.8em; + font-weight: bold; + color: #666; } +ul.bh-timeline li.bh-timeline-item { + padding-top: 1em; + padding-left: 2em; + border-left: 1px solid #ccc; } + ul.bh-timeline li.bh-timeline-item:before { + content: ""; + display: block; + width: 0.5em; + height: 0.5em; + background: #ccc; + border-radius: 2em; + position: absolute; + margin: 0.6em 0 0 -2.3em; + z-index: 1000; } + ul.bh-timeline li.bh-timeline-item small { + display: block; + line-height: 1.4em; } + ul.bh-timeline li.bh-timeline-item:last-of-type { + position: relative; } + ul.bh-timeline li.bh-timeline-item:last-of-type:after { + height: calc(100% - 1.6em); + width: 20px; + position: absolute; + background: #fff; + display: block; + content: ""; + margin-left: -2.3em; + bottom: 0; + z-index: 999; } +ul.bh-timeline:before { + height: 1.9em; + width: 20px; + position: absolute; + background: #fff; + display: block; + content: ""; + margin-left: -1px; } + +.bh-gray { + color: #999; } + .bh-gray a { + color: #999; } + +.bh-light-gray { + color: #ccc; } + .bh-light-gray a { + color: #ccc; } + +button { + background: #fff; + border: 1px solid #999; + font-size: 1em; + padding: 1em 2em; + border-radius: 3em; + text-transform: uppercase; + font-weight: bold; + color: #999; + cursor: pointer; + outline: none; } + button:hover { + color: dodgerblue; + border-color: dodgerblue; } + button:active { + background: #eee; } + button.bh-cancel { + border-color: #D1200D; + color: #D1200D; } + button.bh-cancel:hover { + border-color: #A10F04; + color: #A10F04; } + button.bh-cancel:active { + background: #eee; } + button.bh-disabled { + border-color: #ccc; + color: #ccc; + cursor: default; } + button.bh-disabled:hover { + border-color: #ccc; + color: #ccc; } + button.bh-disabled:active { + background: #fff; } + +table.bh-table { + width: 100%; + margin: 1em 0; + border-spacing: 0; + border-collapse: separate; } + table.bh-table thead tr th { + font-size: 0.8em; + text-transform: uppercase; + text-align: left; + border-bottom: 2px solid #ccc; + padding-bottom: 1em; } + table.bh-table tbody tr td { + font-size: 1.2em; + padding: 0.7em 0; + border-bottom: 1px solid #ccc; } + table.bh-table tbody tr:last-of-type td { + border-bottom: none; } + +div.bh-input { + margin-bottom: 1.5em; } + div.bh-input small { + padding-top: 0.3em; + display: block; + font-size: 0.75em; } + div.bh-input label { + font-size: 0.7em; + color: #999; + text-transform: uppercase; + font-weight: bold; + margin-bottom: 0.7em; + display: block; } + div.bh-input input[type=text], div.bh-input input[type=password], div.bh-input textarea { + width: 100%; + display: block; + font-family: Helvetica, Arial; + font-size: 1.2em; + color: #333; + background: none; + border: none; + border-bottom: 1px solid #ddd; + padding-bottom: 0.5em; + outline: none; } + div.bh-input input[type=text]:focus, div.bh-input input[type=password]:focus, div.bh-input textarea:focus { + border-color: #999; } + div.bh-input.bh-invalid label { + color: #D1200D; } + div.bh-input.bh-invalid input[type=text], div.bh-input.bh-invalid input[type=password] { + border-bottom-color: #D1200D; } +div.bh-search { width: 100%; - color: inherit; - border-radius: 4px; - border: inherit; -} - -.snac-history { - display: none; -} - -.snac-btn-mute { - float: right; - margin-left: 0.5em; -} - -.snac-btn-unmute { - float: right; - margin-left: 0.5em; -} - -.snac-btn-follow { - float: right; - margin-left: 0.5em; -} - -.snac-btn-unfollow { - float: right; - margin-left: 0.5em; -} - -.snac-btn-hide { - float: right; - margin-left: 0.5em; -} - -.snac-btn-delete { - float: right; - margin-left: 0.5em -} - -.snac-btn-limit { - float: right; - margin-left: 0.5em; -} - -.snac-btn-unlimit { - float: right; - margin-left: 0.5em; -} - -.snac-footer { - margin-top: 2em; - font-size: 75%; - color: #666; -} - -.snac-poll-result { - margin-left: auto; - margin-right: auto; -} - -@media (max-width: 500px) { - body { - font-size: 14px; - } - - sup { - left: 2px; - } - - .snac-children { - padding-left: 1em; - } - - input[class^="snac-btn-"] { - font-size: 80%; - } - - .snac-pubdate { - font-size: 80%; - } - - h2::before { - top: -0.2rem; - } - - .snac-top-nav > a { - padding-left: 0.2rem; - margin: -0.2rem; - } -} + position: relative; } + div.bh-search input { + display: block; + float: left; + background: #fff; + border: 1px solid #ccc; } + div.bh-search input[type=text] { + padding: 1em 2em; + border-top-left-radius: 3em; + border-bottom-left-radius: 3em; + font-size: 1em; + outline: none; + margin-right: 0; + border-right: none; + width: calc(100% - 6em); } + div.bh-search input[type=submit] { + font-size: 0.8em; + padding: 1.3em 2em 1.4em 1em; + border-top-right-radius: 3em; + border-bottom-right-radius: 3em; + text-transform: uppercase; + font-weight: bold; + color: #999; + cursor: pointer; + outline: none; + margin-left: 0; + right: 0; + position: absolute; } + +/*# sourceMappingURL=bauhaus.css.map */ |