Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

toolbar.admin.css

.ckeditor5-toolbar-disabled {
  display: flex;
  justify-content: space-between;
}
.ckeditor5-toolbar-available {
  flex: 1;
}

.ckeditor5-toolbar-tray {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  min-height: 40px;
  margin: 0 0 0.5em 0;
  padding: 0;
  list-style: none;
  /* Disallow any user selections in the drag-and-drop toolbar config UI. */
  user-select: none;
}

.ckeditor5-toolbar-active__buttons {
  margin: 5px 0;
  padding: 0.1667em 0.1667em 0.08em;
  border: 1px solid #c4c4c4;
  border-radius: 2px;
  background: #fafafa;
}

.ckeditor5-toolbar-item,
.ckeditor5-toolbar-button {
  display: block;
  min-width: 36px;
  height: 36px;
  cursor: move;
  border-radius: 2px;
}

.ckeditor5-toolbar-item {
  position: relative;
  margin: 5px 8px 5px 0;
}

.ckeditor5-toolbar-disabled .ckeditor5-toolbar-item {
  border: 1px solid #e6e6e6;
}

.ckeditor5-toolbar-button {
  border: none;
  background-color: #eee;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.ckeditor5-toolbar-button:focus,
.ckeditor5-toolbar-button:hover {
  color: #000;
  background-color: #e6e6e6;
}

.ckeditor5-toolbar-button:focus,
.ckeditor5-toolbar-button:hover,
.ckeditor5-toolbar-button {
  text-decoration: none;
}
.ckeditor5-toolbar-tooltip {
  position: absolute;
  z-index: 1;
  left: 50%;
  display: block;
  padding: 6px 10px;
  transform: translate(-50%, 2px);
  text-transform: capitalize;
  color: #fff;
  border-radius: 3px;
  background: #333;
  font-size: 12px;
  line-height: 1;
}

.ckeditor5-toolbar-tooltip::before {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 0;
  height: 5px;
  content: "";
  transform: translateX(-50%);
  border-right: solid 5px transparent;
  border-bottom: solid 5px #333;
  border-left: solid 5px transparent;
}

.ckeditor5-toolbar-button + .ckeditor5-toolbar-tooltip {
  visibility: hidden;
}
.ckeditor5-toolbar-button[data-expanded="true"] + .ckeditor5-toolbar-tooltip {
  visibility: visible;
}

File

core/modules/ckeditor5/css/toolbar.admin.css

View source
  1. .ckeditor5-toolbar-disabled {
  2. display: flex;
  3. justify-content: space-between;
  4. }
  5. .ckeditor5-toolbar-available {
  6. flex: 1;
  7. }
  8. .ckeditor5-toolbar-tray {
  9. display: flex;
  10. flex-flow: row wrap;
  11. align-items: center;
  12. min-height: 40px;
  13. margin: 0 0 0.5em 0;
  14. padding: 0;
  15. list-style: none;
  16. /* Disallow any user selections in the drag-and-drop toolbar config UI. */
  17. user-select: none;
  18. }
  19. .ckeditor5-toolbar-active__buttons {
  20. margin: 5px 0;
  21. padding: 0.1667em 0.1667em 0.08em;
  22. border: 1px solid #c4c4c4;
  23. border-radius: 2px;
  24. background: #fafafa;
  25. }
  26. .ckeditor5-toolbar-item,
  27. .ckeditor5-toolbar-button {
  28. display: block;
  29. min-width: 36px;
  30. height: 36px;
  31. cursor: move;
  32. border-radius: 2px;
  33. }
  34. .ckeditor5-toolbar-item {
  35. position: relative;
  36. margin: 5px 8px 5px 0;
  37. }
  38. .ckeditor5-toolbar-disabled .ckeditor5-toolbar-item {
  39. border: 1px solid #e6e6e6;
  40. }
  41. .ckeditor5-toolbar-button {
  42. border: none;
  43. background-color: #eee;
  44. background-repeat: no-repeat;
  45. background-position: center;
  46. background-size: 20px;
  47. }
  48. .ckeditor5-toolbar-button:focus,
  49. .ckeditor5-toolbar-button:hover {
  50. color: #000;
  51. background-color: #e6e6e6;
  52. }
  53. .ckeditor5-toolbar-button:focus,
  54. .ckeditor5-toolbar-button:hover,
  55. .ckeditor5-toolbar-button {
  56. text-decoration: none;
  57. }
  58. .ckeditor5-toolbar-tooltip {
  59. position: absolute;
  60. z-index: 1;
  61. left: 50%;
  62. display: block;
  63. padding: 6px 10px;
  64. transform: translate(-50%, 2px);
  65. text-transform: capitalize;
  66. color: #fff;
  67. border-radius: 3px;
  68. background: #333;
  69. font-size: 12px;
  70. line-height: 1;
  71. }
  72. .ckeditor5-toolbar-tooltip::before {
  73. position: absolute;
  74. top: -10px;
  75. left: 50%;
  76. width: 0;
  77. height: 5px;
  78. content: "";
  79. transform: translateX(-50%);
  80. border-right: solid 5px transparent;
  81. border-bottom: solid 5px #333;
  82. border-left: solid 5px transparent;
  83. }
  84. .ckeditor5-toolbar-button + .ckeditor5-toolbar-tooltip {
  85. visibility: hidden;
  86. }
  87. .ckeditor5-toolbar-button[data-expanded="true"] + .ckeditor5-toolbar-tooltip {
  88. visibility: visible;
  89. }

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal