toolbar.css 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. @import "../../../mixins/_rounded.css";
  6. @import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
  7. .ck.ck-toolbar {
  8. @mixin ck-rounded-corners;
  9. background: var(--ck-color-toolbar-background);
  10. padding: 0 var(--ck-spacing-small);
  11. border: 1px solid var(--ck-color-toolbar-border);
  12. & > * {
  13. /* Make sure items wrapped to the next line have v-spacing */
  14. margin-top: var(--ck-spacing-small);
  15. margin-bottom: var(--ck-spacing-small);
  16. }
  17. & > * {
  18. /* (#11) Separate toolbar items. */
  19. margin-right: var(--ck-spacing-small);
  20. }
  21. @mixin ck-dir rtl {
  22. & > * {
  23. /* (#11) Separate toolbar items. */
  24. margin-left: var(--ck-spacing-small);
  25. margin-right: 0;
  26. }
  27. }
  28. &.ck-toolbar_vertical {
  29. /* Items in a vertical toolbar span the entire width. */
  30. padding: 0;
  31. /* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */
  32. & > .ck {
  33. /* Items in a vertical toolbar should span the horizontal space. */
  34. width: 100%;
  35. /* Items in a vertical toolbar should have no margin. */
  36. margin: 0;
  37. /* Items in a vertical toolbar span the entire width so rounded corners are pointless. */
  38. border-radius: 0;
  39. /* Items in a vertical toolbar span the entire width so any border is pointless. */
  40. border: 0;
  41. }
  42. }
  43. @mixin ck-dir ltr {
  44. & > *:last-child {
  45. margin-right: 0;
  46. }
  47. }
  48. @mixin ck-dir rtl {
  49. & > *:last-child {
  50. margin-left: 0;
  51. }
  52. }
  53. @nest .ck-toolbar-container & {
  54. border: 0;
  55. }
  56. }
  57. .ck.ck-toolbar__separator {
  58. align-self: stretch;
  59. width: 1px;
  60. margin-top: 0;
  61. margin-bottom: 0;
  62. background: var(--ck-color-toolbar-border);
  63. }
  64. .ck.ck-toolbar__newline {
  65. margin: 0;
  66. }