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
1 changed files with 18 additions and 3 deletions

View File

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