/css/ - post your custom CSS

48 replies·1673 views·
Pinned
User avatar
Coemskong

Making da soyart ou algo assim

1 month ago#4030(edited 2 weeks ago)
Post your custom CSS here
/ 3
User avatar
custard

looking_at_you

1 week ago#269666
Fully fixed version, forgot about buttons on profiles

@import "tailwindcss";
@theme {
--font-sans: "Segoe UI", "Frutiger", system-ui, -apple-system, sans-serif;
--color-background: linear-gradient(180deg, #0099ff 0%, #bfe6ff 30%, #ffffff 100%);
--color-foreground: #0f172a;
--color-card: rgba(255, 255, 255, 0.7);
--color-primary: #0ea5e9;
--color-border: rgba(255, 255, 255, 0.8);
--color-ring: #00eaff;
}
@layer theme {
.dark {
--color-background: linear-gradient(180deg, #020617 0%, #0c4a6e 100%);
--color-foreground: #f0f9ff;
--color-card: rgba(0, 15, 30, 0.6);
--color-border: rgba(56, 189, 248, 0.3);
--color-muted: rgba(7, 89, 133, 0.5);
}
}
@layer base {
:root {
--radius: 12px;
--glass-blur: blur(12px);
}
html {
background: var(--color-background) fixed;
min-height: 100vh;
}
body {
@apply antialiased;
color: var(--color-foreground);
}
svg, [role="img"]:not([style*="mask-image"]), .lucide {
width: 1.25rem !important;
height: 1.25rem !important;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)) !important;
}
[style*="mask-image"] {
width: 1rem !important;
height: 1rem !important;
flex-shrink: 0 !important;
}
*::-webkit-scrollbar { width: 14px; }
*::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #7dd3fc 0%, #0284c7 100%);
border: 2px solid white;
border-radius: 999px;
box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
}
@layer components {
[role="switch"] {
all: unset;
cursor: pointer;
position: relative;
display: inline-flex;
width: 2.25rem !important;
height: 1.1rem !important;
border-radius: 999px !important;
border: 1.5px solid rgba(0, 0, 0, 0.4) !important;
overflow: hidden;

transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;

background: linear-gradient(180deg, #ff4d4d 0%, #b91c1c 100%) !important;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
}
[role="switch"]::after {
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 100%);
pointer-events: none;
z-index: 1;
}
[role="switch"][aria-checked="true"] {
background: linear-gradient(180deg, #4ade80 0%, #15803d 100%) !important;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 8px rgba(74, 222, 128, 0.4) !important;
}
[role="switch"] span {
display: none !important;
}
button:not([role="switch"]),
[id="ui-button"],
.bbcode-link {
position: relative;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-weight: 600;
padding: 0.4rem 1.2rem;
border-radius: 8px;
border: 1px solid rgba(255,255,255,0.9) !important;
border-bottom: 2px solid rgba(0, 50, 100, 0.3) !important;
background: linear-gradient(180deg,
rgba(255,255,255,0.95) 0%,
rgba(255,255,255,0.4) 49%,
rgba(0,0,0,0.05) 50%,
rgba(255,255,255,0.2) 100%
) !important;
background-color: #f8fafc !important;
color: #0369a1 !important;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}
button:not([role="switch"]):hover {
transform: translateY(-1px);
filter: brightness(1.05);
box-shadow: 0 5px 15px rgba(0,180,255,0.4);
color: #0099ff !important;
}
.dark button:not([role="switch"]) {
background: linear-gradient(180deg,
rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 49%,
rgba(0,0,0,0.3) 50%, rgba(255,255,255,0.1) 100%
) !important;
background-color: #0c4a6e !important;
color: #ffffff !important;
border-color: rgba(56, 189, 248, 0.4) !important;
text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.card, .bg-card, .bg-background {
background: var(--color-card) !important;
backdrop-filter: var(--glass-blur);
border: 1px solid var(--color-border) !important;
box-shadow: 0 4px 25px rgba(0, 50, 150, 0.12), inset 0 1px 0 rgba(255,255,255,0.9) !important;
border-radius: 12px;
position: relative;
overflow: hidden;
}
.cardafter, .bg-cardafter {
content: '';
position: absolute;
top: -50%; left: -10%;
width: 200%; height: 100%;
background: linear-gradient(165deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 35%);
transform: rotate(-5deg);
pointer-events: none;
}
.bbcode-quote {
background: rgba(255,255,255,0.35) !important;
border-left: 5px solid #0ea5e9 !important;
border-radius: 4px 12px 12px 4px;
padding: 1rem;
}
.bbcode-rainbow {
background: linear-gradient(90deg, #ff0000, #ffea00, #00ff00, #00eaff, #0044ff, #ff00ff, #ff0000);
background-size: 200% auto;
-webkit-background-clip: text;
color: transparent;
animation: rainbow-shift 4s linear infinite;
}
}
@keyframes rainbow-shift {
to { background-position: 200% center; }
}
@font-face {
font-family: 'TransLibri';
src: url('/src/assets/fonts/TransLibri.otf') format('opentype');
}
User avatar
custard

looking_at_you

1 week ago#269676
I forgot about profile backgrounds on that one
User avatar
custard

looking_at_you

1 week ago#269722
Final version

@import "tailwindcss";
@theme {
--font-sans: "Segoe UI", "Frutiger", system-ui, -apple-system, sans-serif;
--color-background: linear-gradient(180deg, #0099ff 0%, #bfe6ff 30%, #ffffff 100%);
--color-foreground: #0f172a;
--color-card: rgba(255, 255, 255, 0.7);
--color-primary: #0ea5e9;
--color-border: rgba(255, 255, 255, 0.8);
--color-ring: #00eaff;
}
@layer theme {
.dark {
--color-background: linear-gradient(180deg, #020617 0%, #0c4a6e 100%);
--color-foreground: #f0f9ff;
--color-card: rgba(0, 15, 30, 0.6);
--color-border: rgba(56, 189, 248, 0.3);
--color-muted: rgba(7, 89, 133, 0.5);
}
}
@layer base {
:root {
--radius: 12px;
--glass-blur: blur(12px);
}
html {
background: var(--color-background) fixed;
min-height: 100vh;
}
body {
@apply antialiased;
color: var(--color-foreground);
}

svg, [role="img"]:not(.absolute), .lucide, span[style*="mask-image"]:not(.absolute) {
width: 1.25rem !important;
height: 1.25rem !important;
min-width: 1.25rem !important;
flex-shrink: 0 !important;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4)) !important;
}
*::-webkit-scrollbar { width: 14px; }
*::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #7dd3fc 0%, #0284c7 100%);
border: 2px solid white;
border-radius: 999px;
box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
}
@layer components {
[role="switch"] {
all: unset;
cursor: pointer;
position: relative;
display: inline-flex;
width: 2.25rem !important;
height: 1.1rem !important;
border-radius: 999px !important;
border: 1.5px solid rgba(0, 0, 0, 0.4) !important;
overflow: hidden;
/* Smooth Transition */
transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease !important;
/* Default Red State */
background: linear-gradient(180deg, #ff4d4d 0%, #b91c1c 100%) !important;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.3) !important;
}
[role="switch"]::after {
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 50%;
background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 100%);
pointer-events: none;
}
[role="switch"][aria-checked="true"] {
background: linear-gradient(180deg, #4ade80 0%, #15803d 100%) !important;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 8px rgba(74, 222, 128, 0.4) !important;
}
[role="switch"] span { display: none !important; }
button:not([role="switch"]),
[id="ui-button"],
.bbcode-link {
position: relative;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
font-weight: 600;
padding: 0.4rem 1.2rem;
border-radius: 8px;
border: 1px solid rgba(255,255,255,0.9) !important;
border-bottom: 2px solid rgba(0, 50, 100, 0.3) !important;
background: linear-gradient(180deg,
rgba(255,255,255,0.95) 0%,
rgba(255,255,255,0.4) 49%,
rgba(0,0,0,0.05) 50%,
rgba(255,255,255,0.2) 100%
) !important;
background-color: #f8fafc !important;
color: #0369a1 !important;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}
button:not([role="switch"]):hover {
transform: translateY(-1px);
filter: brightness(1.05);
box-shadow: 0 5px 15px rgba(0,180,255,0.4);
color: #0099ff !important;
}
.dark button:not([role="switch"]) {
background: linear-gradient(180deg,
rgba(255,255,255,0.3) 0%,
rgba(255,255,255,0.1) 49%,
rgba(0,0,0,0.3) 50%,
rgba(255,255,255,0.1) 100%
) !important;
background-color: #0c4a6e !important;
color: #ffffff !important;
border-color: rgba(56, 189, 248, 0.4) !important;
text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.card, .bg-card, .bg-background {
background: var(--color-card) !important;
backdrop-filter: var(--glass-blur);
border: 1px solid var(--color-border) !important;
box-shadow:
0 4px 25px rgba(0, 50, 150, 0.12),
inset 0 1px 0 rgba(255,255,255,0.9) !important;
border-radius: 12px;
position: relative;
overflow: hidden;
opacity: 1 !important;
}
.cardafter, .bg-cardafter {
content: '';
position: absolute;
top: -50%; left: -10%;
width: 200%; height: 100%;
background: linear-gradient(165deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 35%);
transform: rotate(-5deg);
pointer-events: none;
z-index: 1;
}
.bbcode-quote {
background: rgba(255,255,255,0.35) !important;
border-left: 5px solid #0ea5e9 !important;
border-radius: 4px 12px 12px 4px;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
padding: 1rem;
}
.dark .bbcode-quote {
background: rgba(0, 20, 40, 0.4) !important;
border-left-color: #38bdf8 !important;
}
.bbcode-rainbow {
background: linear-gradient(90deg, #ff0000, #ffea00, #00ff00, #00eaff, #0044ff, #ff00ff, #ff0000);
background-size: 200% auto;
-webkit-background-clip: text;
color: transparent;
animation: rainbow-shift 4s linear infinite;
}
}
@keyframes rainbow-shift {
to { background-position: 200% center; }
}
@font-face {
font-family: 'TransLibri';
src: url('/src/assets/fonts/TransLibri.otf') format('opentype');
}
User avatar
Warrior-Z

Keep Raging On Me / BooruBVLL Since 2023

1 week ago#270390
Updated the Old Soybooru CSS to have black text instead of gray.
https://files.catbox.moe/ck3qsi.txt
User avatar
Broot

Brootally Honest

1 week ago#270589(edited 1 week ago)
Warrior-Z
Updated the Old Soybooru CSS to have black text instead of gray.
https://files.catbox.moe/ck3qsi.txt
Gem, but I initially avoided that since it inherits the border colour
User avatar
Warrior-Z

Keep Raging On Me / BooruBVLL Since 2023

1 week ago#270680
Broot
Warrior-Z
Show quoted text
Updated the Old Soybooru CSS to have black text instead of gray.
https://files.catbox.moe/ck3qsi.txt
Gem, but I initially avoided that since it inherits the border colour
I barely noticed that, should we update it again or leave it?
User avatar
Broot

Brootally Honest

1 week ago#270731(edited 1 week ago)
Warrior-Z
Broot
Show quoted text
Gem, but I initially avoided that since it inherits the border colour
I barely noticed that, should we update it again or leave it?
Sure if you want
User avatar
Broot

Brootally Honest

1 week ago#270785
Warrior-Z
Broot
Show quoted text
Gem, but I initially avoided that since it inherits the border colour
I barely noticed that, should we update it again or leave it?
this should be good
https://files.catbox.moe/ovn65x.txt
User avatar
DNBooru

Hello SHRQQM

1 week ago#307420(edited 6 days ago)
CSS to get rid of the brimstone that one Ghanan chudfaggot keeps spamming everywhere

.bbcode-thumb:has(> img[src="/api/booru/posts/202761/thumbnail"]),
.bbcode-thumb:has(> img[src="/api/booru/posts/202747/thumbnail"]),
.bbcode-thumb:has(> img[src="/api/booru/posts/202309/thumbnail"]),
.bbcode-thumb:has(> img[src="/api/booru/posts/202226/thumbnail"]),
.bbcode-thumb:has(> img[src="/api/booru/posts/202275/thumbnail"]),
.bbcode-thumb:has(> img[src="/api/booru/posts/202086/thumbnail"]) {
background-image: url('/api/booru/posts/173582/thumbnail');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.bbcode-thumb > img[src="/api/booru/posts/202761/thumbnail"],
.bbcode-thumb > img[src="/api/booru/posts/202309/thumbnail"],
.bbcode-thumb > img[src="/api/booru/posts/202226/thumbnail"],
.bbcode-thumb > img[src="/api/booru/posts/202275/thumbnail"],
.bbcode-thumb > img[src="/api/booru/posts/202747/thumbnail"],
.bbcode-thumb > img[src="/api/booru/posts/202086/thumbnail"] {
visibility: hidden;
}
/ 3
Log in to reply to this thread.