linkactions.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. @import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";
  6. @import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";
  7. @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
  8. @import "../mixins/_focus.css";
  9. @import "../mixins/_shadow.css";
  10. @import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";
  11. .ck.ck-link-actions {
  12. padding: var(--ck-spacing-standard);
  13. & .ck-button.ck-link-actions__preview {
  14. padding-left: 0;
  15. padding-right: 0;
  16. & .ck-button__label {
  17. padding: 0 var(--ck-spacing-medium);
  18. color: var(--ck-color-link-default);
  19. text-overflow: ellipsis;
  20. cursor: pointer;
  21. /* Match the box model of the link editor form's input so the balloon
  22. does not change width when moving between actions and the form. */
  23. max-width: var(--ck-input-text-width);
  24. min-width: 3em;
  25. text-align: center;
  26. &:hover {
  27. text-decoration: underline;
  28. }
  29. }
  30. &,
  31. &:hover,
  32. &:focus,
  33. &:active {
  34. background: none;
  35. }
  36. &:active {
  37. box-shadow: none;
  38. }
  39. &:focus {
  40. & .ck-button__label {
  41. text-decoration: underline;
  42. }
  43. }
  44. }
  45. &:focus {
  46. /* https://github.com/ckeditor/ckeditor5-link/issues/90 */
  47. outline: none;
  48. }
  49. @mixin ck-dir ltr {
  50. & .ck-button:not(:first-child) {
  51. margin-left: var(--ck-spacing-standard);
  52. }
  53. }
  54. @mixin ck-dir rtl {
  55. & .ck-button:not(:last-child) {
  56. margin-left: var(--ck-spacing-standard);
  57. }
  58. }
  59. @mixin ck-media-phone {
  60. padding: 0;
  61. width: calc(.8 * var(--ck-input-text-width));
  62. & .ck-button.ck-link-actions__preview {
  63. margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;
  64. & .ck-button__label {
  65. min-width: 0;
  66. max-width: 100%;
  67. }
  68. }
  69. & .ck-button:not(.ck-link-actions__preview) {
  70. padding: var(--ck-spacing-standard);
  71. margin-top: var(--ck-spacing-standard);
  72. border-radius: 0;
  73. border: 0;
  74. border-top: 1px solid var(--ck-color-base-border);
  75. @mixin ck-dir ltr {
  76. margin-left: 0;
  77. &:first-of-type {
  78. border-right: 1px solid var(--ck-color-base-border);
  79. }
  80. }
  81. @mixin ck-dir rtl {
  82. margin-left: 0;
  83. &:last-of-type {
  84. border-right: 1px solid var(--ck-color-base-border);
  85. }
  86. }
  87. }
  88. }
  89. }