Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
feat: Add styles for inline Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
theOrlin committed Oct 7, 2016
1 parent 2328142 commit 74ccba8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
6 changes: 3 additions & 3 deletions demo/editor.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<title>Editor</title>
Expand All @@ -14,12 +15,10 @@
</style>
</head>
<body>


<div class="container">
<legend>Editor</legend>

<div data-role="editor"></div>
<div data-role="editor">Inline editor</div>
<hr />
<textarea data-role="editor" rows="20" cols="20"></textarea>
</div>
Expand Down Expand Up @@ -63,4 +62,5 @@


</body>

</html>
21 changes: 20 additions & 1 deletion src/editor/_layout.scss
Expand Up @@ -19,10 +19,29 @@
}
}
.k-editor-inline {
border-width: 2px;
border-width: 0;
padding: $padding-y-sm $padding-x-sm;
word-wrap: break-word;
overflow: auto;
border-radius: $border-radius;
background: none;
}
.k-editor-inline.k-state-active {
padding: calc(#{$padding-y-sm} - 1px) calc(#{$padding-x-sm} - 1px);
border-width: 1px;
}
.k-editortoolbar-dragHandle {
float: left;
cursor: move;
padding: $button-padding-y-sm $button-padding-x-sm;
}
.k-editor-widget {
padding-top: 0;
}
.editorToolbarWindow {
display: flex;
align-items: center;
padding: $padding-y-sm $padding-x-sm;
}


Expand Down

0 comments on commit 74ccba8

Please sign in to comment.