8
0

_button.css 754 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  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. &:focus {
  16. background: var($(prefix)-focus-background);
  17. }
  18. &:active {
  19. background: var($(prefix)-active-background);
  20. box-shadow: inset 0 2px 2px var($(prefix)-active-shadow);
  21. }
  22. }
  23. /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */
  24. &.ck-disabled {
  25. background: var($(prefix)-disabled-background);
  26. }
  27. }