Skip to content

Commit

Permalink
feat: 馃拕 table colunm_resize_handle and selected_cell style
Browse files Browse the repository at this point in the history
  • Loading branch information
Leecason committed Dec 31, 2019
1 parent abfb489 commit 5beb81d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/components/ElementTiptap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ export default {
overflow: auto;
padding: 5px;
text-align: left;
.resize-cursor {
cursor: ew-resize;
cursor: col-resize;
}
}
.ProseMirror {
Expand Down Expand Up @@ -375,6 +380,11 @@ export default {
}
}
.tableWrapper {
margin: 1em 0;
overflow-x: auto;
}
table {
border-collapse: collapse;
table-layout: fixed;
Expand All @@ -391,12 +401,35 @@ export default {
padding: 3px 5px;
position: relative;
vertical-align: top;
&.selectedCell::after {
background-color: #ecf5ff;
bottom: 0;
content: "";
left: 0;
pointer-events: none;
position: absolute;
right: 0;
top: 0;
z-index: 2;
}
}
th {
font-weight: 500;
text-align: left;
}
.column-resize-handle {
background-color: #b3d8ff;
bottom: 0;
pointer-events: none;
position: absolute;
right: -2px;
top: 0;
width: 4px;
z-index: 20;
}
}
&__placeholder {
Expand Down

0 comments on commit 5beb81d

Please sign in to comment.