Skip to content

Commit

Permalink
Field name visible on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
altruity committed Apr 30, 2020
1 parent 1c69feb commit a87972e
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 29 deletions.
82 changes: 60 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 25 additions & 6 deletions src/shared/css/content.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


[data-init-csk] [data-csk-entry-id] {
[data-init-csk] [data-csk-entry-field] {
cursor: pointer;
position: relative;
transform: scale(1);
Expand All @@ -9,19 +9,38 @@
z-index: 1031;
}

[data-init-csk] .cs-item-name {
position: absolute;
top: -23px;
left: 41px;
width: auto;
height: 23px;
padding: 2px 8px 1px 2px;
background-color: #00a7f7;
color: #FFF;
font-size: 10px;
font-style: italic;
letter-spacing: 0.9px;
line-height: 1.8;
text-transform: capitalize;
}

[data-init-csk] [data-csk-entry-id]:hover::before {
content: 'EDIT';
z-index: 1111;
position: absolute;
top: -23px;
left: -2px;
width: 43px;
padding: 2px 6px 1px;
background-color: #00a7f7;
border-radius: 0.25rem 0.25rem 0 0;
border-radius: 0;
color: #FFF;
font-size: 0.75rem;
font-size: 12px;
font-weight: bold;
letter-spacing: 1px;
line-height: 1.7;
text-transform: uppercase;
top: -1.75rem;
left: -2px;
padding: 0.375rem 0.5rem 0.25rem 0.5rem;
}

[data-init-csk] [data-csk-entry-id]::after {
Expand Down
Loading

0 comments on commit a87972e

Please sign in to comment.