linkactions.css 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. @import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";
  6. @import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";
  7. @import "../mixins/_focus.css";
  8. @import "../mixins/_shadow.css";
  9. .ck.ck-link-actions {
  10. padding: var(--ck-spacing-standard);
  11. & .ck-button.ck-link-actions__preview {
  12. padding-left: 0;
  13. padding-right: 0;
  14. &,
  15. &:hover,
  16. &:focus,
  17. &:active {
  18. background: none;
  19. }
  20. &:active {
  21. box-shadow: none;
  22. }
  23. &:focus {
  24. & .ck-button__label {
  25. text-decoration: underline;
  26. }
  27. }
  28. & .ck-button__label {
  29. padding: 0 var(--ck-spacing-standard);
  30. color: var(--ck-color-link-default);
  31. text-overflow: ellipsis;
  32. cursor: pointer;
  33. /* Match the box model of the link editor form's input so the balloon
  34. does not change width when moving between actions and the form. */
  35. max-width: var(--ck-input-text-width);
  36. min-width: 3em;
  37. text-align: center;
  38. &:hover {
  39. text-decoration: underline;
  40. }
  41. }
  42. }
  43. &:focus {
  44. /* https://github.com/ckeditor/ckeditor5-link/issues/90 */
  45. outline: none;
  46. }
  47. & > :not(:first-child) {
  48. margin-left: var(--ck-spacing-standard);
  49. }
  50. }