| 12345678910111213141516171819202122232425262728293031 |
- /*
- * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- /**
- * Implements a button of given background color.
- *
- * @param {String} $background - Background color of the button.
- * @param {String} $border - Border color of the button.
- */
- @define-mixin ck-button-colors $prefix {
- background: var($(prefix)-background);
- &:not(.ck-disabled) {
- &:hover,
- &:focus {
- background: var($(prefix)-focus-background);
- }
- &:active {
- background: var($(prefix)-active-background);
- box-shadow: inset 0 2px 2px var($(prefix)-active-shadow);
- }
- }
- /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
- &.ck-disabled {
- background: var($(prefix)-disabled-background);
- }
- }
|