itty-bitty/edit.css
Nicholas Jitkoff d1f51f0da3 Embed scripts
2018-06-10 09:41:58 -05:00

187 lines
No EOL
2.8 KiB
CSS

body {
margin: 0 auto;padding:12vh 10vmin;
max-width:35em;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
line-height:1.5em;
color:rgba(0,0,0,0.87);
}
h1 { font-weight:400; }
h2 { font-weight:500; }
a {
color:#0070E0;
}
*[contenteditable="true"]{display: inline-block;}
body.loaded:not(.edited) #placeholder {
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;
min-height:2em
}
#content {
width:100%;
outline:none;
}
#content:focus {
outline-color: #ccc;
}
#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';
}
#content:empty:before {
content: attr(placeholder);
color: rgba(0, 0, 0, 0.2);
background: transparent;
}
.ib-file {
border-radius: 1em;
background: #ebeff9;
padding: 0.25em 1em;
font-size:smaller;
}
#ib-info {
pointer-events: all;
}
#ib-info:hover {
pointer-events: all;
color:black;
}
/*#toolbar a#copy {
transition: transform 1s;
cursor: default;
}
#copy:active {
transform:translate(0, -0.5em);
transition: transform 100ms;
color:red;
}
*/
#sharehint {
display:none;
position:fixed;
bottom:0;
left:0;
right:0;
font-family:monospace;
font-weight:bold;
text-align:center;
}
@media only screen and (max-device-width: 480px) {
#twitter, #copy {
display:none;
}
#sharehint {
display:block;
}
#menu-share-hint {
display:none;
}
}
#toolbar button {
vertical-align: baseline;
font-family:monospace;
}
#toolbar a.invalid {
text-decoration: line-through;
}
#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;
}
#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;}
.menu {
width:auto;
display:none;
}
#toolbar.menu-visible .menu {
display:block;
}
#toolbar.menu-visible #menu {
opacity:0.54;
}
.menu hr {
border:none;
}