diff --git a/src/link.js b/src/link.js index d6775a1..30b0c4b 100644 --- a/src/link.js +++ b/src/link.js @@ -20,7 +20,6 @@ import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview'; import LinkFormView from './ui/linkformview'; import linkIcon from '../theme/icons/link.svg'; -import '../theme/theme.scss'; const linkKeystroke = 'Ctrl+K'; diff --git a/src/ui/linkformview.js b/src/ui/linkformview.js index 0133651..543d845 100644 --- a/src/ui/linkformview.js +++ b/src/ui/linkformview.js @@ -19,6 +19,8 @@ import FocusTracker from '@ckeditor/ckeditor5-utils/src/focustracker'; import FocusCycler from '@ckeditor/ckeditor5-ui/src/focuscycler'; import KeystrokeHandler from '@ckeditor/ckeditor5-utils/src/keystrokehandler'; +import '../../theme/linkform.css'; + /** * The link form view controller class. * diff --git a/theme/components/linkform.scss b/theme/components/linkform.scss deleted file mode 100644 index 9e9b389..0000000 --- a/theme/components/linkform.scss +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -// For licensing, see LICENSE.md or http://ckeditor.com/license - -@import '~@ckeditor/ckeditor5-theme-lark/theme/helpers/_spacing'; - -.ck-link { - &-form { - padding: ck-spacing( 'large' ); - overflow: hidden; - - &:focus { - // https://github.com/ckeditor/ckeditor5-link/issues/90 - outline: none; - } - - .ck-input-text { - // https://github.com/ckeditor/ckeditor5-link/issues/145 - width: 100%; - } - - .ck-label { - margin-bottom: ck-spacing( 'tiny' ); - } - - &__actions { - clear: both; - padding-top: ck-spacing( 'large' ); - - .ck-button { - float: right; - - // "Save" and "Cancel" buttons. - & + .ck-button { - margin-right: ck-spacing( 'medium' ); - } - - // The "Unlink" button. - &:last-child { - float: left; - - // https://github.com/ckeditor/ckeditor5-link/issues/145 - margin-right: 4 * ck-spacing( 'medium' ); - } - } - } - } -} diff --git a/theme/linkform.css b/theme/linkform.css new file mode 100644 index 0000000..be749f4 --- /dev/null +++ b/theme/linkform.css @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md. + */ + +.ck-link-form { + overflow: hidden; +} + +.ck-link-form__actions { + clear: both; + + & .ck-button { + float: right; + + /* The "Unlink" button.*/ + &:last-child { + float: left; + } + } +} diff --git a/theme/theme.scss b/theme/theme.scss deleted file mode 100644 index b8725b4..0000000 --- a/theme/theme.scss +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. -// For licensing, see LICENSE.md or http://ckeditor.com/license - -@import './components/linkform';