_button.css 793 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /**
  6. * Implements a button of given background color.
  7. *
  8. * @param {String} $background - Background color of the button.
  9. * @param {String} $border - Border color of the button.
  10. */
  11. @define-mixin ck-button-colors $prefix {
  12. background: var($(prefix)-background);
  13. &:not(.ck-disabled) {
  14. &:hover {
  15. background: var($(prefix)-hover-background);
  16. }
  17. &:active {
  18. background: var($(prefix)-active-background);
  19. box-shadow: inset 0 2px 2px var($(prefix)-active-shadow);
  20. }
  21. }
  22. /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
  23. &.ck-disabled {
  24. background: var($(prefix)-disabled-background);
  25. }
  26. }