A new userstyle
perchance.org/ai-character-chat by ahmadhasaan29
Details
Authorahmadhasaan29
LicenseNo License
Categoryuserstyles
Created
Updated
Size2.6 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name perchance.org/ai-character-chat
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document url-prefix("https://perchance.org/ai-character-chat") {
/* Modern Dark Theme for Perchance AI Chat */
body {
background: #1a1a1a;
color: #e0e0e0;
font-family: 'Segoe UI', system-ui, sans-serif;
line-height: 1.6;
}
.chat-container {
max-width: 800px;
margin: 2rem auto;
padding: 20px;
background: #252525;
border-radius: 12px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.message {
padding: 1rem;
margin: 1rem 0;
border-radius: 1rem;
max-width: 80%;
animation: messageAppear 0.3s ease;
}
.user-message {
background: #2d2d2d;
border: 1px solid #3d3d3d;
margin-left: auto;
}
.bot-message {
background: #363636;
border: 1px solid #4a4a4a;
margin-right: auto;
}
.input-area {
display: flex;
gap: 1rem;
padding: 1rem;
background: #2d2d2d;
border-radius: 0 0 12px 12px;
}
input[type="text"] {
flex-grow: 1;
padding: 12px;
border: 1px solid #4a4a4a;
border-radius: 8px;
background: #1f1f1f;
color: #e0e0e0;
transition: border-color 0.3s ease;
}
input[type="text"]:focus {
border-color: #646cff;
outline: none;
}
button {
padding: 12px 24px;
background: #646cff;
border: none;
border-radius: 8px;
color: white;
cursor: pointer;
transition: background 0.3s ease;
}
button:hover {
background: #747bff;
}
@keyframes messageAppear {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.chat-container {
margin: 1rem;
border-radius: 8px;
}
.message {
max-width: 90%;
padding: 0.8rem;
}
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #2d2d2d;
}
::-webkit-scrollbar-thumb {
background: #4a4a4a;
border-radius: 4px;
}
}