-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CrmUI - Improve crmUiEditable to support placeholders, and use its ow…
…n css Now this widget supports having a `placeholder`. Also gave it its own css instead of piggybacking off crm-editable classes, as that was a bit messy and Shoreditch was applying some extra stuff which then had to be undone.
- Loading branch information
Showing
5 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* CSS rules for Angular module "crmUI" */ | ||
|
||
/* In-place edit */ | ||
.crm-container [crm-ui-editable] { | ||
padding-left: 2px; | ||
border: 2px dashed transparent; | ||
} | ||
.crm-container [crm-ui-editable]:hover, | ||
.crm-container [crm-ui-editable]:focus { | ||
border: 2px dashed #d1d1d1; | ||
cursor: pointer; | ||
background-color: white !important; | ||
color: initial !important; | ||
} | ||
.crm-container span[crm-ui-editable] { | ||
display: inline-block !important; | ||
padding-right: 2px; | ||
min-height: 1em; | ||
min-width: 3em; | ||
} | ||
.crm-container [crm-ui-editable]:empty:before { | ||
content: attr(placeholder); | ||
color: #9a9a9a; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters