Add text to empty figure captions

This commit is contained in:
Sam Georges 2014-09-20 16:53:26 +10:00
parent 334725594a
commit feb409c8c6
2 changed files with 13 additions and 0 deletions

View File

@ -1011,6 +1011,10 @@ body .redactor_air .redactor_toolbar {
.redactor_box figure:hover .oc-figure-controls {
display: block;
}
.redactor_box figcaption:empty:before {
opacity: .4;
content: "Type to add caption (optional)";
}
.redactor_box .oc-figure-controls {
background: #dddddd !important;
padding: 0;

View File

@ -113,6 +113,7 @@
}
&:empty:before {
opacity: 0.4;
// @todo Convert to language value
content: "\2014 Type to add citation (optional)";
}
}
@ -126,6 +127,14 @@
display: block
}
figcaption {
&:empty:before {
opacity: .4;
// @todo Convert to language value
content: "Type to add caption (optional)";
}
}
.oc-figure-controls {
background: @color-richeditor-toolbar !important;
padding: 0;