// Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. // For licensing, see LICENSE.md or http://ckeditor.com/license .ck-toolbar { padding: ck-spacing( 'small' ); border: 1px solid ck-color( 'toolbar-border' ); // Allow wrapping toolbar items to the new line. white-space: initial; &_floating { // Disallow wrapping toolbar items to the new line when the toolbar is floating, // resulting in an toolbar shapes when the horizontal space is limited. // https://github.com/ckeditor/ckeditor5-theme-lark/issues/93 white-space: nowrap; } @include ck-unselectable(); @include ck-rounded-corners(); &__separator { width: 1px; height: calc( 1em + 2 * #{ck-spacing( 'medium' )} ); vertical-align: middle; background: ck-color( 'toolbar-border' ); } &__newline { height: ck-spacing( 'small' ); } // (#11) Separate toolbar items. & > * { margin-right: ck-spacing( 'small' ); } & > *:last-child { margin-right: 0; } .ck-toolbar-container & { border: 0; } }