8
0

widget.css 814 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. .ck .ck-widget.ck-widget_with-selection-handler {
  6. /* Make the widget wrapper a relative positioning container for the drag handler. */
  7. position: relative;
  8. & .ck-widget__selection-handler {
  9. visibility: hidden;
  10. position: absolute;
  11. & .ck-icon {
  12. /* Make sure the icon in not a subject to fon-size/line-height to avoid
  13. unnecessary spacing around it. */
  14. display: block;
  15. }
  16. }
  17. /* Show the selection handler on mouse hover over the widget. */
  18. &:hover {
  19. & .ck-widget__selection-handler {
  20. visibility: visible;
  21. }
  22. }
  23. /* Show the selection handler when the widget is selected. */
  24. &.ck-widget_selected {
  25. & .ck-widget__selection-handler {
  26. visibility: visible;
  27. }
  28. }
  29. }