Skip to content

Commit

Permalink
Website: Update theme for alerts (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw authored Oct 25, 2023
1 parent 7b56d12 commit 107a50c
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions docusaurus/website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,28 +94,34 @@ html[data-theme='dark'] {

/* admonitions */

.alert {
--ifm-alert-background-color-highlight: var(--secondary-shade);
--ifm-alert-background-color: var(--background-secondary);
--ifm-alert-border-color: var(--text-secondary);
}

.alert--info {
--ifm-alert-background-color-highlight: color-mix(in srgb, var(--info-shade), transparent 80%);
--ifm-alert-background-color: color-mix(in srgb, var(--info-main), transparent 80%);
--ifm-alert-border-color: color-mix(in srgb, var(--info-border), transparent 80%);
--ifm-alert-background-color-highlight: color-mix(in srgb, var(--info-shade), transparent 70%);
--ifm-alert-background-color: color-mix(in srgb, var(--info-main), transparent 75%);
--ifm-alert-border-color: color-mix(in srgb, var(--info-border), transparent 15%);
}

.alert--warning {
--ifm-alert-background-color-highlight: color-mix(in srgb, var(--warning-shade), transparent 60%);
--ifm-alert-background-color: color-mix(in srgb, var(--warning-main), transparent 60%);
--ifm-alert-border-color: color-mix(in srgb, var(--warning-border), transparent 60%);
--ifm-alert-background-color-highlight: color-mix(in srgb, var(--warning-shade), transparent 70%);
--ifm-alert-background-color: color-mix(in srgb, var(--warning-main), transparent 75%);
--ifm-alert-border-color: color-mix(in srgb, var(--warning-border), transparent 15%);
}

.alert--success {
--ifm-alert-background-color-highlight: color-mix(in srgb, var(--success-shade), transparent 60%);
--ifm-alert-background-color: color-mix(in srgb, var(--success-main), transparent 60%);
--ifm-alert-border-color: color-mix(in srgb, var(--success-border), transparent 60%);
--ifm-alert-background-color-highlight: color-mix(in srgb, var(--success-shade), transparent 70%);
--ifm-alert-background-color: color-mix(in srgb, var(--success-main), transparent 75%);
--ifm-alert-border-color: color-mix(in srgb, var(--success-border), transparent 15%);
}

.alert--danger {
--ifm-alert-background-color-highlight: color-mix(in srgb, var(--error-shade), transparent 70%);
--ifm-alert-background-color: color-mix(in srgb, var(--error-main), transparent 70%);
--ifm-alert-border-color: color-mix(in srgb, var(--error-border), transparent 70%);
--ifm-alert-background-color: color-mix(in srgb, var(--error-main), transparent 75%);
--ifm-alert-border-color: color-mix(in srgb, var(--error-border), transparent 15%);
}

/* cards */
Expand Down

0 comments on commit 107a50c

Please sign in to comment.