8
0

linkactions.css 1.3 KB

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