mirror of
https://github.com/flarum/core.git
synced 2025-08-26 17:45:01 +02:00
feat: Declare & Use CSS Custom Properties (#3146)
This commit is contained in:
less
admin
AdminHeader.lessAdminNav.lessDashboardPage.lessExtensionPage.lessExtensionWidget.lessPermissionsPage.lessUsersListPage.less
common
Alert.lessAlertManager.lessApp.lessBadge.lessButton.lessCheckbox.lessDropdown.lessForm.lessFormControl.lessLoadingIndicator.lessModal.lessNavigation.lessPlaceholder.lessSearch.lessSelect.lessTable.lessTextEditor.lessTooltip.lessValidationError.lessmixins.less
mixins
root.lessscaffolding.lesssideNav.lessforum
@@ -1,6 +1,6 @@
|
||||
.Alert {
|
||||
padding: 12px 16px;
|
||||
border-radius: @border-radius;
|
||||
border-radius: var(--border-radius);
|
||||
line-height: 1.5;
|
||||
|
||||
background: var(--alert-bg);
|
||||
@@ -16,14 +16,12 @@
|
||||
.Button.focus {
|
||||
color: var(--alert-color);
|
||||
}
|
||||
|
||||
.Alert--color(@alert-color, @alert-bg);
|
||||
}
|
||||
.Alert--error {
|
||||
.Alert--color(@alert-error-color, @alert-error-bg);
|
||||
.Alert--color(var(--alert-error-color), var(--alert-error-bg));
|
||||
}
|
||||
.Alert--success {
|
||||
.Alert--color(@alert-success-color, @alert-success-bg);
|
||||
.Alert--color(var(--alert-success-color), var(--alert-success-bg));
|
||||
|
||||
a, a:hover {
|
||||
text-decoration: underline;
|
||||
|
Reference in New Issue
Block a user