Skip to content

Commit

Permalink
blogifierdotnet#267 - Editor part 5
Browse files Browse the repository at this point in the history
  • Loading branch information
farzindev committed Apr 7, 2021
1 parent 23d6867 commit 81a59f3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 111 deletions.
2 changes: 1 addition & 1 deletion src/Blogifier.Admin/wwwroot/admin/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Blogifier.Admin/wwwroot/admin/css/app.css.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
}
.CodeMirror-scroll {
overflow: scroll !important;
margin-bottom: -50px;
margin-right: -50px;
padding-bottom: 50px;
margin-bottom: -4rem;
margin-right: -4rem;
padding-bottom: 4rem;
height: 100%;
outline: 0;
position: relative;
Expand Down
118 changes: 12 additions & 106 deletions src/Blogifier.Admin/wwwroot/admin/scss/include/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
.EasyMDEContainer .CodeMirror {
box-sizing: border-box;
height: auto;
border: 1px solid #ddd;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding: 10px;
border: none;
padding: 3rem;
font: inherit;
z-index: 0;
word-wrap: break-word;
Expand Down Expand Up @@ -49,17 +47,9 @@
}
.editor-toolbar {
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
padding: 9px 10px;
border-top: 1px solid #bbb;
border-left: 1px solid #bbb;
border-right: 1px solid #bbb;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
// user-select: none;
border-bottom: 1px solid $gray-200;
display: flex;
}
.editor-toolbar.fullscreen {
width: 100%;
Expand All @@ -78,21 +68,6 @@
.editor-toolbar.fullscreen::before {
width: 20px;
height: 50px;
background: -moz-linear-gradient(left, #fff 0, rgba(255, 255, 255, 0) 100%);
background: -webkit-gradient(
linear,
left top,
right top,
color-stop(0, #fff),
color-stop(100%, rgba(255, 255, 255, 0))
);
background: -webkit-linear-gradient(
left,
#fff 0,
rgba(255, 255, 255, 0) 100%
);
background: -o-linear-gradient(left, #fff 0, rgba(255, 255, 255, 0) 100%);
background: -ms-linear-gradient(left, #fff 0, rgba(255, 255, 255, 0) 100%);
background: linear-gradient(to right, #fff 0, rgba(255, 255, 255, 0) 100%);
position: fixed;
top: 0;
Expand All @@ -103,21 +78,6 @@
.editor-toolbar.fullscreen::after {
width: 20px;
height: 50px;
background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0, #fff 100%);
background: -webkit-gradient(
linear,
left top,
right top,
color-stop(0, rgba(255, 255, 255, 0)),
color-stop(100%, #fff)
);
background: -webkit-linear-gradient(
left,
rgba(255, 255, 255, 0) 0,
#fff 100%
);
background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0, #fff 100%);
background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0, #fff 100%);
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, #fff 100%);
position: fixed;
top: 0;
Expand All @@ -130,24 +90,21 @@
}
.editor-toolbar .easymde-dropdown,
.editor-toolbar button {
background: 0 0;
background: none;
border: 0;
display: inline-block;
text-align: center;
text-decoration: none !important;
height: 30px;
height: 3rem;
width: 3rem;
margin: 0;
padding: 0;
border: 1px solid transparent;
border-radius: 3px;
cursor: pointer;
}
.editor-toolbar button {
width: 30px;
flex-grow: 1;
}
.editor-toolbar button.active,
.editor-toolbar button:hover {
background: #fcfcfc;
border-color: #95a5a6;
background: $gray-100;
}
.editor-toolbar i.separator {
display: inline-block;
Expand All @@ -165,21 +122,7 @@
position: relative;
top: 2px;
}
.editor-toolbar button.heading-1:after {
content: "1";
}
.editor-toolbar button.heading-2:after {
content: "2";
}
.editor-toolbar button.heading-3:after {
content: "3";
}
.editor-toolbar button.heading-bigger:after {
content: "";
}
.editor-toolbar button.heading-smaller:after {
content: "";
}

.editor-toolbar.disabled-for-preview button:not(.no-disable) {
opacity: 0.6;
pointer-events: none;
Expand Down Expand Up @@ -308,43 +251,6 @@
color: #999;
}



.editor-toolbar .easymde-dropdown {
position: relative;
background: linear-gradient(
to bottom right,
#fff 0,
#fff 84%,
#333 50%,
#333 100%
);
border-radius: 0;
border: 1px solid #fff;
}
.editor-toolbar .easymde-dropdown:hover {
background: linear-gradient(
to bottom right,
#fff 0,
#fff 84%,
#333 50%,
#333 100%
);
}
.easymde-dropdown-content {
display: block;
visibility: hidden;
position: absolute;
background-color: #f9f9f9;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
padding: 8px;
z-index: 2;
top: 30px;
}
.easymde-dropdown:active .easymde-dropdown-content,
.easymde-dropdown:focus .easymde-dropdown-content {
visibility: visible;
}
span[data-img-src]::after {
content: "";
background-image: var(--bg-image);
Expand Down
Empty file.
Empty file.

0 comments on commit 81a59f3

Please sign in to comment.