0
Fork 0
mirror of https://projects.blender.org/infrastructure/gitea-custom.git synced 2024-12-22 07:13:09 -05:00

Theme: Style alert blocks in bthree-dark theme

Fixes #92
This commit is contained in:
Pablo Vazquez 2024-07-22 12:43:11 +02:00
parent 4046fb3138
commit a690061baf
2 changed files with 49 additions and 1 deletions

View file

@ -72,6 +72,7 @@
/* Colors for buttons, labels, etc. */ /* Colors for buttons, labels, etc. */
--color-red: hsl(0, 56.4%, 54.1%); --color-red: hsl(0, 56.4%, 54.1%);
--color-red-light: hsl(0, 56.5%, 48.6%); --color-red-light: hsl(0, 56.5%, 48.6%);
--color-red-dark-1: hsl(3deg, 75%, 59%);
--color-orange: hsl(23.8, 89%, 42.4%); --color-orange: hsl(23.8, 89%, 42.4%);
--color-orange-light: hsl(23.6, 88.7%, 38%); --color-orange-light: hsl(23.6, 88.7%, 38%);
--color-yellow: hsl(44.8, 97%, 40.6%); --color-yellow: hsl(44.8, 97%, 40.6%);
@ -84,8 +85,12 @@
--color-teal-light: hsl(176.8, 100%, 26%); --color-teal-light: hsl(176.8, 100%, 26%);
--color-blue: hsl(206, 56%, 50.2%); --color-blue: hsl(206, 56%, 50.2%);
--color-blue-light: hsl(206, 55%, 45.3%); --color-blue-light: hsl(206, 55%, 45.3%);
--color-blue-dark-1: hsl(213deg, 89%, 64%);
--color-blue-dark-bg: hsla(213deg, 89%, 64%, .15);
--color-violet: hsl(259.2, 66.5%, 65%); --color-violet: hsl(259.2, 66.5%, 65%);
--color-violet-light: hsl(259.1, 66.2%, 58%); --color-violet-light: hsl(259.1, 66.2%, 58%);
--color-violet-dark-1: hsl(262deg, 66%, 66%);
--color-violet-dark-bg: hsla(262deg, 66%, 66%, .15);
--color-purple: hsl(285, 55.9%, 58%); --color-purple: hsl(285, 55.9%, 58%);
--color-purple-light: hsl(285, 55.6%, 52%); --color-purple-light: hsl(285, 55.6%, 52%);
--color-pink: hsl(326, 64.6%, 50.2%); --color-pink: hsl(326, 64.6%, 50.2%);
@ -128,7 +133,7 @@
--color-warning-text: hsl(44.7, 96.8%, 50.8%); --color-warning-text: hsl(44.7, 96.8%, 50.8%);
--color-info-border: hsl(210, 50%, 37.6%); --color-info-border: hsl(210, 50%, 37.6%);
--color-info-bg: hsl(216.3, 33.3%, 22.4%); --color-info-bg: hsl(216.3, 33.3%, 22.4%);
--color-info-text: hsl(201.8, 79.3%, 56.5%); --color-info-text: hsl(213deg, 89%, 64%);
--color-body: #202327; --color-body: #202327;

View file

@ -120,6 +120,49 @@
.restructuredtext section dl dt { .restructuredtext section dl dt {
font-style: normal; font-style: normal;
} }
/* Alert blocks. */
blockquote.attention-note {
background-color: var(--color-info-bg);
border-left-color: var(--color-blue-dark-1);
}
strong.attention-note, span.attention-note {
color: var(--color-blue-dark-1);
}
blockquote.attention-tip {
background-color: var(--color-success-bg);
border-left-color: var(--color-success-text);
}
strong.attention-tip, span.attention-tip {
color: var(--color-success-text);
}
blockquote.attention-important {
background-color: var(--color-violet-dark-bg);
border-left-color: var(--color-violet-dark-1);
}
strong.attention-important, span.attention-important {
color: var(--color-violet-dark-1);
}
blockquote.attention-warning {
background-color: var(--color-warning-bg);
border-left-color: var(--color-warning-text);
}
strong.attention-warning, span.attention-warning {
color: var(--color-warning-text);
}
blockquote.attention-caution {
background-color: var(--color-error-bg);
border-left-color: var(--color-red-dark-1);
}
strong.attention-caution, span.attention-caution {
color: var(--color-red-dark-1);
}
</style> </style>
<script defer data-domain="projects.blender.org" src="https://analytics.blender.org/js/script.js"></script> <script defer data-domain="projects.blender.org" src="https://analytics.blender.org/js/script.js"></script>