8
0

linkactions.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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-link-actions {
  10. padding: var(--ck-spacing-standard);
  11. & .ck-button {
  12. border: 0;
  13. }
  14. & .ck-button.ck-link-actions__preview {
  15. padding: 0;
  16. &,
  17. &:hover,
  18. &:focus,
  19. &:active {
  20. background: none;
  21. border: 0;
  22. }
  23. &:active {
  24. box-shadow: none;
  25. }
  26. &:focus {
  27. & .ck-button__label {
  28. text-decoration: underline;
  29. }
  30. }
  31. & .ck-button__label {
  32. padding: 0 var(--ck-spacing-standard);
  33. color: var(--ck-color-link-default);
  34. text-overflow: ellipsis;
  35. cursor: pointer;
  36. /* Match the box model of the link editor form's input so the balloon
  37. does not change width when moving between actions and the form. */
  38. max-width: var(--ck-input-text-width);
  39. min-width: 3em;
  40. text-align: center;
  41. &:hover {
  42. text-decoration: underline;
  43. }
  44. }
  45. }
  46. &:focus {
  47. /* https://github.com/ckeditor/ckeditor5-link/issues/90 */
  48. outline: none;
  49. }
  50. & > :not(:first-child) {
  51. margin-left: var(--ck-spacing-standard);
  52. }
  53. }