@ckeditor/ckeditor5-ui
Version:
The UI framework and standard UI library of CKEditor 5.
40 lines (31 loc) • 730 B
CSS
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
@import "../../mixins/_unselectable.css";
@import "../../mixins/_dir.css";
.ck.ck-button,
a.ck.ck-button {
@mixin ck-unselectable;
position: relative;
display: inline-flex;
align-items: center;
@mixin ck-dir ltr {
justify-content: left;
}
@mixin ck-dir rtl {
justify-content: right;
}
& .ck-button__label {
display: none;
}
&.ck-button_with-text {
& .ck-button__label {
display: inline-block;
}
}
/* Center the icon horizontally in a button without text. */
&:not(.ck-button_with-text) {
justify-content: center;
}
}