dropdown.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. @import "../../../mixins/_rounded.css";
  6. @import "../../../mixins/_disabled.css";
  7. @import "../../../mixins/_shadow.css";
  8. .ck-dropdown {
  9. /* Enable font size inheritance, which allows fluid UI scaling. */
  10. font-size: inherit;
  11. /* A triangle displayed to indicate this is actually a dropdown. */
  12. & .ck-dropdown__icon {
  13. right: var(--ck-spacing-standard);
  14. }
  15. &.ck-disabled .ck-dropdown__icon {
  16. @mixin ck-disabled;
  17. }
  18. & .ck-button.ck-dropdown__button {
  19. /* A space to accommodate the triangle. */
  20. padding-right: calc(2.5 * var(--ck-spacing-standard));
  21. /* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */
  22. &.ck-disabled .ck-button__label {
  23. @mixin ck-disabled;
  24. }
  25. /* #23 */
  26. & .ck-button__label {
  27. width: 7em;
  28. overflow: hidden;
  29. text-overflow: ellipsis;
  30. }
  31. }
  32. }
  33. .ck-dropdown__panel {
  34. @mixin ck-rounded-corners;
  35. @mixin ck-drop-shadow;
  36. background: var(--ck-color-dropdown-panel-background);
  37. border: 1px solid var(--ck-color-dropdown-panel-border);
  38. /* Compensate double border from button and from box when positioned below the button. */
  39. bottom: 1px;
  40. /* Make sure the panel is at least as wide as the dropdown's button. */
  41. min-width: 100%;
  42. }