| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /*
- * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
- @import "../../mixins/_unselectable.css";
- @import "../tooltip/mixins/_tooltip.css";
- .ck.ck-button,
- a.ck.ck-button {
- @mixin ck-unselectable;
- @mixin ck-tooltip_enabled;
- position: relative;
- display: inline-flex;
- align-items: center;
- justify-content: left;
- & .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;
- }
- &:hover {
- @mixin ck-tooltip_visible;
- }
- /* Get rid of the native focus outline around the tooltip when focused (but not :hover). */
- &:focus:not(:hover) {
- @mixin ck-tooltip_disabled;
- }
- }
|