-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(editor): make jQuery editor toolbar look like regular toolbar
- Loading branch information
Showing
5 changed files
with
37 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1 @@ | ||
@include exports("editor/theme") { | ||
|
||
|
||
.k-editor { | ||
@include appearance( panel ); | ||
|
||
.k-editor-toolbar { | ||
@include appearance( toolbar ); | ||
} | ||
.k-editable-area { | ||
border-color: $header-border; | ||
} | ||
} | ||
|
||
// Inline Editor | ||
.k-editor-inline { | ||
|
||
// Hover & Actve state | ||
&:hover, | ||
&.k-state-active { | ||
border-color: $panel-border; | ||
} | ||
} | ||
|
||
|
||
// Editor toolbar | ||
.k-editor-toolbar { | ||
|
||
a.k-tool { | ||
@include appearance( button ); | ||
|
||
&:hover, | ||
&.k-state-hover { | ||
@include appearance( hovered-button ); | ||
} | ||
|
||
&:active, | ||
&.k-state-active { | ||
@include appearance( pressed-button ); | ||
} | ||
|
||
&.k-state-selected { | ||
@include appearance( pressed-button ); | ||
} | ||
} | ||
} | ||
|
||
// sass-lint:disable class-name-format | ||
.editorToolbarWindow.k-header.k-window-content { | ||
@include appearance( header ); | ||
} | ||
// sass-lint:enable class-name-format | ||
// sass-lint:disable class-name-format | ||
.k-editor .k-editor-toolbar-wrap, | ||
.k-ct-popup .k-editor-toolbar, | ||
.editorToolbarWindow.k-header.k-window-content { | ||
.k-tool-group { | ||
border-color: $border-color; | ||
} | ||
} | ||
// sass-lint:enable class-name-format | ||
|
||
|
||
// Overflow anchor | ||
.k-editor-toolbar .k-overflow-anchor { | ||
padding: $toolbar-padding-y; | ||
width: $toolbar-inner-calc-size; | ||
height: $toolbar-inner-calc-size; | ||
} | ||
|
||
// TODO: is this the correct place? | ||
.k-editor-dialog { | ||
.k-edit-label { | ||
padding: calc( #{$padding-y} - #{$input-border-width} ) 0; | ||
} | ||
} | ||
|
||
|
||
// Insert table | ||
.k-ct-popup { | ||
.k-state-selected { | ||
@include fill( $selected-text, $selected-bg, $selected-border, none ); | ||
} | ||
} | ||
} | ||
@import "~@progress/kendo-theme-default/scss/editor/_theme.scss"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters