Skip to content

Commit

Permalink
feature: swap arrow on editor state
Browse files Browse the repository at this point in the history
- remove the hardcoded content from the HTML template
- add generated content leveraging the power of CSS content property
in conjunction with the ::before pseudoselector and unicode values
  • Loading branch information
davemo committed Mar 6, 2017
1 parent 4efc9ed commit 2f046f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
border: 1px solid #ccc;
padding: 5px;
}

a {
cursor: pointer;
}

a::before {
content: '\25B6';
}

.editing a::before {
content: '\25BC';
}
</style>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion templates/editor_initializer.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a ng-click="edit(row)">&#9654;</a>
<a ng-click="edit(row)"></a>

0 comments on commit 2f046f5

Please sign in to comment.