_states.scss 766 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  2. // For licensing, see LICENSE.md or http://ckeditor.com/license
  3. .ck-hidden {
  4. display: none;
  5. }
  6. .ck-disabled {
  7. opacity: .5;
  8. }
  9. /**
  10. * A visual styling of focused element.
  11. *
  12. * @access public
  13. */
  14. @mixin ck-focus-outline() {
  15. outline: thin dotted;
  16. outline: 5px auto -webkit-focus-ring-color;
  17. // To avoid collision with border in Firefox.
  18. outline-offset: -2px;
  19. }
  20. /**
  21. * Brings visual styling for :focus state.
  22. *
  23. * @access public
  24. */
  25. @mixin ck-user-focus-outline() {
  26. &:focus {
  27. @include ck-focus-outline();
  28. }
  29. }
  30. /**
  31. * Makes element unselectable.
  32. *
  33. * @access public
  34. */
  35. @mixin ck-unselectable() {
  36. -moz-user-select: none;
  37. -webkit-user-select: none;
  38. -ms-user-select: none;
  39. }