Added basic text fields to character sheet
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
#textOutput.notEditing{
|
||||
cursor: default;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#textInput {
|
||||
width:100%;
|
||||
height:100%;
|
||||
box-sizing: border-box; /* For IE and modern versions of Chrome */
|
||||
-moz-box-sizing: border-box; /* For Firefox */
|
||||
-webkit-box-sizing: border-box;
|
||||
.editBox {
|
||||
min-height: 36px;
|
||||
width: 300px;
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
<template name="textField">
|
||||
{{#if editing}}
|
||||
<div id="textInput" class={{outputClass}} contenteditable=true>{{input}}</div>
|
||||
<div id="textInput" class="editBox {{outputClass}}" contenteditable=true>{{input}}</div>
|
||||
{{else}}
|
||||
<div id="textOutput" class={{outputClass}}>
|
||||
<div id="textOutput" class="editBox {{outputClass}}">
|
||||
{{output}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user