Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ==UserStyle==
- @name kbin-it theme :D
- @homepageURL https://codeberg.org/blobcat/userstyles
- @supportURL https://codeberg.org/blobcat/userstyles/issues
- @version 0.0.6
- @description Crappy unfinished kbin theme that makes its layout closer to Reddit, may have issues with light themes and mobile
- @author blobcat
- @namespace blobcat
- -------------------------------------------------------------------------------------------------------------------------
- -------- IF YOU ARE ON A DIFFERENT KBIN INSTANCE THAN THE 3 BELOW, PLEASE ADD YOURS TO 2 CODE SECTIONS BELOW!!!! --------
- -------- IN THE 2ND SECTION JUST DUPLICATE ONE OF THE URLS AND REPLACE DOMAIN NAME FROM "kbin.social" TO YOUR --------
- -------- INSTANCE IF YOU DON'T KNOW WHAT REGEX IS AND HOW TO USE IT!!! --------
- -------------------------------------------------------------------------------------------------------------------------
- ==/UserStyle== */
- @-moz-document domain("kbin.social"), domain("karab.in"), domain("fedia.io") {
- #header {
- border-bottom: var(--kbin-section-border);
- }
- #header > .kbin-container {
- max-width: 100%;
- }
- #middle > .kbin-container {
- margin-top: 1.5rem;
- }
- :root {
- --ltextcol: #010101;
- --lbgcol: #fefefe;
- --dtextcol: #ffffff;
- --dbgcol: #313338;
- }
- .options {
- align-items: center;
- border: var(--kbin-section-border);
- border-radius: 4px;
- padding: 5px 12px;
- height: auto;
- }
- .entry {
- padding: 1px 0px;
- }
- .comment {
- grid-gap: 0.0rem;
- padding: 0rem 0rem;
- }
- .options > * a {
- border: none !important;
- border-radius: 20px;
- margin-right: 8px;
- }
- .options > * a:hover, .options > * a.active {
- background-color: rgb(0 0 0 / 10%);
- }
- .options > * a.active:hover {
- background-color: rgb(0 0 0 / 15%);
- }
- #sidebar .section, article.entry {
- border: var(--kbin-section-border);
- border-radius: 4px;
- }
- .post {
- border-radius: 4px;
- }
- .vote button {
- background: transparent;
- border: var(--kbin-section-border);
- border-radius: 4px;
- }
- .vote .active.vote__up button {
- color: #64c597;
- }
- .comment-add .dropdown__menu, .comment-edit .dropdown__menu, .page-entry-create .dropdown__menu, .post-add .dropdown__menu, .post-edit .dropdown__menu {
- top: -17.7rem;
- }
- .dropdown__menu {
- line-height: 1.5;
- }
- .btn__secondary, .btn, markdown-toolbar > * {
- cursor: pointer;
- }
- #sidebar li:last-child, #sidebar figure:last-child {
- border: 0 !important;
- }
- #sidebar .section {
- padding: .5rem .5rem 0 .5rem;
- }
- .sidebar-options {
- margin-bottom: .5rem;
- }
- .dropdown__menu {
- border-radius: 4px;
- }
- #header .login:after {
- content: ' ';
- display: inline-block;
- width: 18px;
- height: 16px;
- background-image: url(https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsoutlined/expand_more/wght300/24px.svg);
- margin-right: 4px;
- }
- body.theme--solarized-dark #header .login:after {
- filter: invert(59%) sepia(5%) saturate(661%) hue-rotate(138deg) brightness(95%) contrast(96%);
- }
- body.theme--solarized-light #header .login:after {
- filter: invert(44%) sepia(7%) saturate(958%) hue-rotate(148deg) brightness(91%) contrast(93%);
- }
- body.theme--dark #header .login:after, body.theme--light #header .login:after, body.theme--kbin #header .login:after {
- filter: invert(100%);
- }
- #header menu {
- margin-right: 8px;
- }
- #header menu .dropdown__menu {
- left: -0.75rem;
- }
- .options--top .options__main li a {
- display: flex;
- padding-left: 2.5rem;
- }
- .options--top .options__main li a:before {
- content: " ";
- display: inline-block;
- width: 32px;
- height: 32px;
- position: absolute;
- margin-left: -2rem;
- margin-top: -0.2rem;
- }
- .theme--dark {
- --kbin-bg: var(--dbgcol);
- --kbin-selection-color: var(--dbgcol);
- --kbin-section-bg: var(--dbgcol);
- --kbin-link-color: var(--dtextcol);
- --kbin-section-border: var(--dbgcol);
- --kbin-text-color: var(--dtextcol);
- }
- .theme--light {
- --kbin-bg: var(--lbgcol);
- --kbin-selection-color: var(--lbgcol);
- --kbin-section-bg: var(--lbgcol);
- --kbin-link-color: var(--ltextcol);
- --kbin-section-border: var(--lbgcol);
- --kbin-text-color: var(--ltextcol);
- }
- .theme--dark .options--top .options__main li a:before, .theme--kbin .options--top .options__main li a:before, .theme--light .options--top .options__main li a:before {
- filter: invert(100%) sepia(9%) saturate(217%) hue-rotate(171deg) brightness(105%) contrast(91%);
- }
- .theme--light .options--top .options__main li:hover a:before, .theme--light .options--top .options__main li a.active:before {
- filter: invert(22%) sepia(17%) saturate(1177%) hue-rotate(170deg) brightness(98%) contrast(85%);
- }
- .theme--solarized-light .options__main li a:before {
- filter: invert(43%) sepia(6%) saturate(1240%) hue-rotate(148deg) brightness(91%) contrast(87%);
- }
- .theme--solarized-light .options--top .options__main li:hover a:before, .theme--solarized-light .options--top .options__main li a.active:before {
- filter: invert(28%) sepia(26%) saturate(396%) hue-rotate(150deg) brightness(94%) contrast(85%);
- }
- .theme--solarized-dark .options--top .options__main li a:before {
- filter: invert(50%) sepia(7%) saturate(1061%) hue-rotate(150deg) brightness(90%) contrast(84%);
- }
- .theme--solarized-dark .options--top .options__main li:hover a:before, .theme--solarized-dark .options--top .options__main li a.active:before {
- filter: invert(100%);
- }
- .options--top .options__main li:nth-child(1) a:before {
- background-image: url(https://cdn.discordapp.com/attachments/918215375836033034/1117516946464854088/top.svg);
- }
- .options--top .options__main li:nth-child(2) a:before {
- background-image: url(https://cdn.discordapp.com/attachments/918215375836033034/1117516415847633056/hot.svg);
- }
- .options--top .options__main li:nth-child(3) a:before {
- background-image: url(https://cdn.discordapp.com/attachments/918215375836033034/1117519184331554856/new.svg);
- }
- .options--top .options__main li:nth-child(4) a:before {
- background-image: url(https://cdn.discordapp.com/attachments/918215375836033034/1117519585097289839/active.svg);
- }
- .options--top .options__main li:nth-child(5) a:before {
- background-image: url(https://cdn.discordapp.com/attachments/918215375836033034/1117519981601624176/commented.svg);
- }
- p code {
- padding: 4px 6px;
- font-size: .8em;
- white-space: normal;
- background: #272822;
- color: #f8f8f2;
- font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
- word-spacing: normal;
- word-break: break-all;
- word-wrap: normal;
- line-height: 1.5;
- -moz-tab-size: 4;
- -o-tab-size: 4;
- tab-size: 4;
- -webkit-hyphens: none;
- -moz-hyphens: none;
- -ms-hyphens: none;
- hyphens: none;
- }
- }
- @-moz-document regexp("^(?:http:\\/\\/|https:\\/\\/)?(?:kbin.social\\/)(?:\\/)?m\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)"), regexp("^(?:http:\\/\\/|https:\\/\\/)?(?:karab.in\\/)(?:\\/)?m\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)"), regexp("^(?:http:\\/\\/|https:\\/\\/)?(?:fedia.io\\/)(?:\\/)?m\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)") {
- article.entry, .options:not(.options--top) {
- border: 0;
- margin-bottom: 0;
- }
- article.entry {
- border-radius: 4px 4px 0 0;
- order: 1;
- }
- .options:not(.options--top, .options-activity) {
- border-radius: 0;
- border-top: var(--kbin-section-border);
- }
- .options.options--top {
- padding: 0;
- }
- #content {
- display: grid;
- }
- #activity {
- order: 2;
- }
- .options {
- order: 4;
- z-index: 3;
- }
- #comment-add {
- order: 3;
- }
- #comments {
- order: 5;
- }
- .options:not(#activity) > .options__main:before {
- content: 'Sort by:';
- display: block;
- margin-right: 8px;
- }
- .sidebar-options {
- align-items: center;
- border: var(--kbin-section-border);
- background: var(--kbin-options-bg);
- border-radius: 4px;
- padding: 10px 12px;
- height: auto;
- }
- #comment-add {
- margin: 0;
- border: 0;
- padding-top: .5rem;
- }
- form[name="entry_comment"] > div {
- margin-bottom: 0;
- line-height: 0;
- }
- form[name="entry_comment"] {
- display: grid;
- grid-template-areas: "a a a a" "b b c c";
- border: var(--kbin-section-border);
- border-radius: 4px;
- }
- form[name="entry_comment"] > div {
- order: 1;
- grid-area: a;
- }
- form[name="entry_comment"] > div > textarea {
- border: 0;
- }
- form[name="entry_comment"] > markdown-toolbar {
- order: 2;
- width: fit-content;
- flex-direction: row;
- grid-area: b;
- }
- form[name="entry_comment"] > markdown-toolbar * {
- display: flex;
- align-items: center;
- }
- form[name="entry_comment"] > .row.actions {
- order: 3;
- flex-direction: row;
- grid-area: c;
- padding: .5rem;
- }
- form[name="entry_comment"] > .row.actions > ul > li > .btn {
- padding: 4px 20px 4px 20px;
- height: 100%;
- }
- #entry_comment_submit {
- padding: 4px 20px 4px 20px;
- border-radius: 20px;
- }
- #entry_comment_submit:hover {
- opacity: 0.8;
- }
- form[name="entry_comment"] > .row.actions select {
- padding: 4px 20px 4px 20px;
- height: 100%;
- }
- .section.comment figure {
- margin-left: 4px;
- }
- .section.comment {
- border-right: 0;
- border-top: 0;
- }
- .section.comment figure:before {
- /* content: ' '; */
- display: block;
- background-color: var(--newCommunityTheme-line);
- width: 2px;
- height: 75%;
- position: absolute;
- left: 4px;
- }
- #main {
- border: var(--kbin-section-border);
- padding: 0;
- border-radius: 4px;
- }
- #middle #main {
- padding: 0;
- height: fit-content;
- }
- .pagination {
- margin-bottom: 0;
- }
- #main > .options--top {
- align-items: center;
- border: var(--kbin-section-border);
- border-radius: 4px;
- padding: 10px 12px;
- height: auto;
- }
- .sidebar-options[data-controller="options"] {
- background: transparent;
- border: 0;
- padding: 0;
- }
- #sidebar > .sidebar-options > .options.options--top {
- align-items: center;
- border: var(--kbin-section-border);
- border-radius: 4px;
- padding: 10px 12px;
- height: auto;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment