Update README, update script to vertically center the editable text
This commit is contained in:
parent
c2beba0a91
commit
9374a1c1d9
@ -1,6 +1,6 @@
|
|||||||
# Signs @ k-space.ee
|
# Signs @ k-space.ee
|
||||||
|
|
||||||
Make signs the easy way. Just open up your browser, type in the info and print! Yes, print!
|
Make signs the easy way. Just open up your browser, type in the info and print! Yes, print! Go check it out at [https://janesmae.github.io/signs_at_k-space/](https://janesmae.github.io/signs_at_k-space/).
|
||||||
|
|
||||||
![select](/demo.gif)
|
![select](/demo.gif)
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<section class="sheet padding-10mm">
|
<section class="sheet padding-10mm">
|
||||||
<div class="logo">k-space.ee</div>
|
<div class="logo">k-space.ee</div>
|
||||||
<div class="main" contentEditable="true"><br>Hack<br>the<br>planet!</div>
|
<div class="main"><div class="editable">Hack<br>the<br>planet!</div></div>
|
||||||
<div class="subline" contentEditable="true"><br>Never stop learning!<br>And have fun while doing it.</div>
|
<div class="subline"><div class="editable">Never stop learning!<br>And have fun while doing it.</div></div>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sheet {
|
.sheet {
|
||||||
|
display: table;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -24,10 +25,12 @@ body {
|
|||||||
/* Put everything in the correct location */
|
/* Put everything in the correct location */
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
|
display: table-row;
|
||||||
font-size: 15mm;
|
font-size: 15mm;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
|
display: table-row;
|
||||||
font-size: 25mm;
|
font-size: 25mm;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 12.5cm;
|
height: 12.5cm;
|
||||||
@ -36,21 +39,21 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.subline {
|
.subline {
|
||||||
|
display: table-row;
|
||||||
font-size: 12mm;
|
font-size: 12mm;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fix Browser added stylesheet */
|
.editable {
|
||||||
|
display: table-cell;
|
||||||
[contenteditable="true"]:active, [contenteditable="true"]:focus {
|
vertical-align: middle;
|
||||||
|
-webkit-user-modify: read-write;
|
||||||
|
-moz-user-modify: read-write;
|
||||||
|
user-modify: read-write;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
[contenteditable="true"]:focus>style {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Screen **/
|
/** Screen **/
|
||||||
|
|
||||||
@media screen {
|
@media screen {
|
||||||
|
Loading…
Reference in New Issue
Block a user