Files
promptfoo--promptfoo/site/blog/goat/components/RedTeamSuggestions.module.css
T
wehub-resource-sync 0d3cb498a3
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Has been cancelled
Test and Publish Multi-arch Docker Image / test (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Has been cancelled
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Has been cancelled
Validate Renovate Config / Validate Renovate Configuration (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:24:08 +08:00

216 lines
4.0 KiB
CSS

/* Suggestions Component */
.suggestionsGrid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
margin: 0.1rem 0;
}
.suggestionCard {
display: block;
width: 100%;
text-align: left;
padding: 1rem;
background: #ffffff;
border: 1px solid #e5e5e5;
border-radius: 0.5rem;
cursor: pointer;
transition: all 0.2s ease;
}
.suggestionCard:hover {
border-color: #2563eb;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.cardContent {
display: flex;
align-items: flex-start;
gap: 0.75rem;
}
.icon {
font-size: 1.5rem;
line-height: 1;
}
.textContent {
flex: 1;
min-width: 0;
}
.title {
font-size: 0.875rem;
font-weight: 600;
color: #1a1a1a;
margin: 0;
transition: color 0.2s ease;
}
.suggestionCard:hover .title {
color: #2563eb;
}
.description {
font-size: 0.875rem;
color: #666666;
margin: 0.25rem 0 0 0;
line-height: 1.4;
}
@media (min-width: 768px) {
.suggestionsGrid {
grid-template-columns: repeat(2, 1fr);
}
}
/* Dark mode styles for suggestions */
html[data-theme='dark'] .suggestionCard {
background: #262626;
border-color: #404040;
}
html[data-theme='dark'] .suggestionCard:hover {
border-color: #3b82f6;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
html[data-theme='dark'] .title {
color: #ffffff;
}
html[data-theme='dark'] .suggestionCard:hover .title {
color: #3b82f6;
}
html[data-theme='dark'] .description {
color: #a3a3a3;
}
/* Here's how the complete dark mode section should look now */
html[data-theme='dark'] .container {
background: #1a1a1a;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
html[data-theme='dark'] h2,
html[data-theme='dark'] h3 {
color: #ffffff;
}
html[data-theme='dark'] .goalInput {
background: #262626;
border-color: #404040;
color: #ffffff;
}
html[data-theme='dark'] .goalInput:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
html[data-theme='dark'] .attackCard {
background: #262626;
border-color: #404040;
}
html[data-theme='dark'] .iconWrapper {
background: #333333;
}
html[data-theme='dark'] .attackInfo p {
color: #a3a3a3;
}
html[data-theme='dark'] .messageContainer {
background: #262626;
}
html[data-theme='dark'] .target .messageContent {
background: #333333;
color: #ffffff;
}
html[data-theme='dark'] .messageTimestamp {
color: #a3a3a3;
}
html[data-theme='dark'] .button {
background: #262626;
border-color: #404040;
color: #ffffff;
}
html[data-theme='dark'] .button:hover {
border-color: #3b82f6;
color: #3b82f6;
}
html[data-theme='dark'] .cancelButton {
background: #262626;
border-color: #404040;
color: #a3a3a3;
}
html[data-theme='dark'] .cancelButton:hover {
border-color: #3b82f6;
color: #3b82f6;
}
html[data-theme='dark'] .progressBar {
background: #404040;
}
html[data-theme='dark'] .messageContainer::-webkit-scrollbar-track,
html[data-theme='dark'] .attacksGrid::-webkit-scrollbar-track {
background: #262626;
}
html[data-theme='dark'] .messageContainer::-webkit-scrollbar-thumb,
html[data-theme='dark'] .attacksGrid::-webkit-scrollbar-thumb {
background: #404040;
}
html[data-theme='dark'] .messageContainer::-webkit-scrollbar-thumb:hover,
html[data-theme='dark'] .attacksGrid::-webkit-scrollbar-thumb:hover {
background: #525252;
}
html[data-theme='dark'] .tryAgainButtonUnsafe {
background: #262626;
color: #ffffff;
}
html[data-theme='dark'] .tryAgainButtonUnsafe:hover {
background: #333333;
}
html[data-theme='dark'] .tryAgainButton {
background: #333333;
color: #22c55e;
}
html[data-theme='dark'] .tryAgainButton:hover {
background: #404040;
}
html[data-theme='dark'] .runButton:disabled {
background: #333333;
color: #666666;
}
html[data-theme='dark'] .additionalTurnButton:disabled {
background: #333333;
color: #666666;
}
html[data-theme='dark'] .messageMetadata {
border-top-color: rgba(255, 255, 255, 0.1);
border-bottom-color: rgba(255, 255, 255, 0.1);
}
html[data-theme='dark'] .metadataLabel,
html[data-theme='dark'] .metadataValue {
color: #e5e5e5;
}