mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Add title visibility
This commit is contained in:
parent
1d77ac5829
commit
1135865f02
1 changed files with 7 additions and 7 deletions
14
edit.css
14
edit.css
|
|
@ -48,7 +48,6 @@ body.drag #content {
|
|||
}
|
||||
|
||||
#doc-title {
|
||||
opacity:0.333;
|
||||
outline:none;
|
||||
min-width:180px;
|
||||
top:0;
|
||||
|
|
@ -57,19 +56,20 @@ body.drag #content {
|
|||
font-family:monospace;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
body.edited #doc-title:empty:before,
|
||||
#doc-title:focus:empty:before {
|
||||
content: 'untitled';
|
||||
color: rgba(0, 0, 0, 0.333);
|
||||
}
|
||||
|
||||
#doc-title:focus {
|
||||
opacity:1.0;
|
||||
border-bottom:1px solid #ccc;
|
||||
}
|
||||
|
||||
#doc-title:empty:before {
|
||||
background: transparent;
|
||||
}
|
||||
#doc-title:focus:empty:before {
|
||||
color: rgba(0, 0, 0, 0.333);
|
||||
content: 'title';
|
||||
}
|
||||
|
||||
|
||||
#content:empty:before {
|
||||
content: attr(placeholder);
|
||||
|
|
|
|||
Loading…
Reference in a new issue