awesome-chatgpt-prompts/embed-preview-style.css

208 lines
5.1 KiB
CSS
Raw Normal View History

2025-06-16 16:07:02 +03:00
/* Custom CSS variables for dynamic theming */
:root {
/* These will be dynamically set by JavaScript based on light/dark colors */
--primary: 59 130 246; /* Default blue-500 */
--background: 255 255 255;
--foreground: 15 23 42;
--muted: 248 250 252;
--muted-foreground: 100 116 139;
--border: 226 232 240;
--accent: 16 185 129;
}
/* Dynamic color classes */
.bg-dynamic-background { background-color: rgb(var(--background)); }
.bg-dynamic-muted { background-color: rgb(var(--muted)); }
.bg-dynamic-primary { background-color: rgb(var(--primary)); }
.bg-dynamic-accent { background-color: rgb(var(--accent)); }
.text-dynamic-foreground { color: rgb(var(--foreground)); }
.text-dynamic-muted-foreground { color: rgb(var(--muted-foreground)); }
.text-dynamic-primary { color: rgb(var(--primary)); }
.text-dynamic-accent { color: rgb(var(--accent)); }
.border-dynamic-border { border-color: rgb(var(--border)); }
.border-dynamic-primary { border-color: rgb(var(--primary)); }
/* Dynamic color opacity variants for pills */
.bg-dynamic-primary\/10 { background-color: rgb(var(--primary) / 0.1); }
.bg-dynamic-primary\/20 { background-color: rgb(var(--primary) / 0.2); }
.border-dynamic-primary\/20 { border-color: rgb(var(--primary) / 0.2); }
.border-dynamic-primary\/30 { border-color: rgb(var(--primary) / 0.3); }
/* Custom animations */
@keyframes slideIn {
from { opacity: 0; transform: translateY(-8px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-slide-in {
animation: slideIn 0.3s ease-out;
}
/* Mention highlighting */
.mention {
background-color: rgb(var(--primary) / 0.1);
color: rgb(var(--primary));
padding: 0.125rem 0.375rem;
border-radius: 0.25rem;
font-weight: 500;
}
/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: rgb(var(--border));
border-radius: 2px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: rgb(var(--muted-foreground));
}
/* Focus styles */
.focus-ring:focus {
outline: 2px solid rgb(var(--primary));
outline-offset: 2px;
}
/* Viewer mode specific styles */
.viewer-mode .prompt-input {
cursor: default;
}
.viewer-mode .prompt-input:focus {
outline: none;
2025-06-16 23:07:09 +03:00
}
/* Hide scrollbar for horizontal scrolling pills */
.scrollbar-hide {
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}
/* Touch target improvements for mobile */
.touch-target {
min-height: 44px;
min-width: 44px;
display: flex;
align-items: center;
justify-content: center;
}
2025-06-16 23:33:48 +03:00
/* Fixed height for prompt container to enable scrolling */
#prompt-container {
height: calc(100vh - 140px); /* Fixed height minus header and footer space */
min-height: 100px;
max-height: calc(100vh - 120px);
/* max-height: 100vh; */
}
@media (max-width: 640px) {
#prompt-container {
height: calc(100vh - 120px); /* Smaller on mobile */
max-height: calc(100vh - 120px);
}
}
/* Ensure prompt text scrolls within container */
#prompt-text {
height: 100%;
overflow-y: auto !important;
flex: 1;
white-space: wrap;
}
2025-06-16 23:07:09 +03:00
/* Responsive improvements */
@media (max-width: 640px) {
/* Ensure context pills don't wrap and scroll horizontally */
#context-pills {
flex-wrap: nowrap;
scrollbar-width: none;
-ms-overflow-style: none;
}
/* More compact pill spacing on mobile */
.pill,
#settings-pills .pill,
#settings-pills > * {
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
white-space: nowrap;
}
/* Ensure button maintains minimum touch target */
#copy-button {
min-height: 44px;
min-width: 44px;
}
/* Adjust text size in prompt area for better mobile readability */
#prompt-text {
line-height: 1.5;
}
/* Make sure settings pills don't overflow */
#settings-pills {
overflow: hidden;
}
/* Compact layout adjustments */
.viewer-mode {
gap: 0.5rem;
}
}
/* Very small mobile devices */
@media (max-width: 480px) {
/* Even more compact spacing */
.pill,
#settings-pills .pill,
#settings-pills > * {
padding: 0.125rem 0.375rem;
font-size: 0.6875rem;
}
/* Smaller button on very small screens */
#copy-button {
width: 36px;
height: 36px;
min-width: 36px;
min-height: 36px;
}
#copy-button svg {
width: 14px;
height: 14px;
}
}
/* Ensure proper touch behavior */
@media (hover: none) and (pointer: coarse) {
/* All interactive elements get proper touch targets */
button,
.pill,
#settings-pills > * {
min-height: 44px;
}
/* Remove hover effects on touch devices */
button:hover {
opacity: 1;
}
/* Add active states for better feedback */
button:active {
transform: scale(0.95);
transition: transform 0.1s ease;
}
2025-06-16 16:07:02 +03:00
}