Fixed default alignment, removed browser added styles when focusing, removed caret being printed

This commit is contained in:
Jaan Janesmae 2018-04-15 20:21:16 +03:00
parent 37ad5457ae
commit c5af1ffe23
No known key found for this signature in database
GPG Key ID: 0A5680076D5563BC

View File

@ -8,16 +8,17 @@ html {
} }
body { body {
margin: 0; margin: 0
width: 297mm;
height: 209mm;
} }
.sheet { .sheet {
margin: 0;
position: relative; position: relative;
box-sizing: border-box; box-sizing: border-box;
page-break-after: always; page-break-after: always;
padding: 10mm; padding: 10mm;
width: 297mm;
height: 209mm
} }
/* Put everything in the correct location */ /* Put everything in the correct location */
@ -39,6 +40,17 @@ body {
text-align: center; text-align: center;
} }
/* Fix Browser added stylesheet */
[contenteditable="true"]:active, [contenteditable="true"]:focus {
border: none;
outline: none;
}
[contenteditable="true"]:focus>style {
display: block;
}
/** Screen **/ /** Screen **/
@media screen { @media screen {
@ -81,5 +93,8 @@ body {
} }
.sheet { .sheet {
overflow: hidden; overflow: hidden;
/* Make input caret transparent */
color: transparent;
text-shadow: 0 0 0 #000;
} }
} }