itty-bitty/edit.css

191 lines
2.9 KiB
CSS
Raw Normal View History

2018-05-26 00:16:21 +00:00
body {
2018-05-28 01:05:32 +00:00
margin: 0 auto;padding:12vh 10vmin;
2018-05-26 00:16:21 +00:00
max-width:35em;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
2018-05-28 01:05:32 +00:00
line-height:1.5em;
color:rgba(0,0,0,0.87);
2018-05-26 00:16:21 +00:00
}
h1 { font-weight:400; }
h2 { font-weight:500; }
2018-05-30 05:10:16 +00:00
a {
color:#0070E0;
}
2018-06-10 14:41:58 +00:00
*[contenteditable="true"]{display: inline-block;}
body.loaded:not(.edited) #placeholder {
2018-05-26 00:16:21 +00:00
display:block;
}
#placeholder {
display:none;
font-style:italic;
color:rgba(0,0,0,0.3);
pointer-events: none;
position:absolute;
}
body.drag #content {
outline: 3px dashed #ccc;
background-color:#fafafa;
border-radius:1em;
pointer-events: all;
}
#content, #placeholder{
margin:-1em; padding: 1em;
2018-07-04 17:47:41 +00:00
min-height:7em
2018-05-26 00:16:21 +00:00
}
#content {
2018-06-10 14:41:58 +00:00
width:100%;
2018-05-26 00:16:21 +00:00
outline:none;
}
#content:focus {
outline-color: #ccc;
}
2018-06-10 14:41:58 +00:00
#doc-title {
opacity:0.333;
outline:none;
min-width:180px;
top:0;
position:absolute;
padding:0.5em 0;
font-family:monospace;
font-weight:bold;
}
#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';
}
2018-05-26 00:16:21 +00:00
#content:empty:before {
content: attr(placeholder);
color: rgba(0, 0, 0, 0.2);
background: transparent;
}
2018-07-04 19:22:21 +00:00
#doc-file {
2018-05-26 00:16:21 +00:00
border-radius: 1em;
background: #ebeff9;
padding: 0.25em 1em;
font-size:smaller;
2018-07-04 19:22:21 +00:00
margin-bottom:2em;
}
#doc-file:empty {
display:none;
2018-05-26 00:16:21 +00:00
}
#ib-info {
2018-06-10 14:41:58 +00:00
pointer-events: all;
2018-05-26 00:16:21 +00:00
}
2018-06-10 14:41:58 +00:00
#ib-info:hover {
pointer-events: all;
color:black;
}
2018-05-26 00:16:21 +00:00
/*#toolbar a#copy {
transition: transform 1s;
cursor: default;
}
#copy:active {
transform:translate(0, -0.5em);
transition: transform 100ms;
color:red;
}
*/
2018-06-10 14:41:58 +00:00
#sharehint {
display:none;
position:fixed;
bottom:0;
left:0;
2018-05-26 00:16:21 +00:00
right:0;
2018-05-28 01:05:32 +00:00
font-family:monospace;
font-weight:bold;
2018-06-10 14:41:58 +00:00
text-align:center;
}
@media only screen and (max-device-width: 480px) {
#twitter, #copy {
display:none;
}
#sharehint {
display:block;
}
#menu-share-hint {
display:none;
}
2018-05-26 00:16:21 +00:00
}
#toolbar button {
vertical-align: baseline;
2018-05-28 01:05:32 +00:00
font-family:monospace;
2018-05-26 00:16:21 +00:00
}
#toolbar a.invalid {
text-decoration: line-through;
}
2018-06-10 14:41:58 +00:00
#length {opacity:0.54;}
/*body.edited #toolbar {
opacity:1.0;
transform: translateY(0);
}
*/
#toolbar {
position:fixed;
top:0;
right:0;
padding:0.5em 1em;
text-align:right;
font-family:monospace;
font-weight:bold;
/*transform: translateY(-2em);*/
transition: transform 100ms ease-out;
background-color:white;
border-bottom-left-radius: 1em;
cursor:pointer;
}
2018-05-26 00:16:21 +00:00
2018-06-10 14:41:58 +00:00
#menus-share-hint {
content:'hello';
}
#toolbar .disabled {
opacity:0.333;
}
#toolbar a {margin-left:0.5em; cursor: pointer; text-decoration:none; color:#333;}
#toolbar a:hover { text-decoration: underline; color:#111;}
2018-05-26 00:16:21 +00:00
2018-06-10 14:41:58 +00:00
.menu {
width:auto;
display:none;
}
#toolbar.menu-visible .menu {
display:block;
}
2018-05-26 00:16:21 +00:00
2018-05-28 01:05:32 +00:00
2018-06-10 14:41:58 +00:00
#toolbar.menu-visible #menu {
opacity:0.54;
2018-07-04 17:47:41 +00:00
}
2018-05-26 00:16:21 +00:00
2018-06-10 14:41:58 +00:00
.menu hr {
border:none;
}