Slightly improved the visual appearance of web pages for TypeScript/JavaScript demos, also tweaked a bit of HTML code.

pull/118/head
Project Nayuki 3 years ago
parent f29c84a2e7
commit 6fb34fddc1

@ -29,6 +29,12 @@
html { html {
font-family: sans-serif; font-family: sans-serif;
} }
h1 {
text-align: center;
}
table {
border-collapse: collapse;
}
td { td {
vertical-align: top; vertical-align: top;
padding-top: 0.2em; padding-top: 0.2em;
@ -38,6 +44,10 @@
white-space: pre; white-space: pre;
padding-right: 0.5em; padding-right: 0.5em;
} }
input[type=number], input[type=text], textarea {
font-size: inherit;
font-family: inherit;
}
input[type=radio], input[type=checkbox] { input[type=radio], input[type=checkbox] {
margin: 0em; margin: 0em;
padding: 0em; padding: 0em;
@ -46,6 +56,11 @@
margin-right: 0.8em; margin-right: 0.8em;
padding-left: 0.2em; padding-left: 0.2em;
} }
hr {
margin: 2em 0em;
border: none;
border-top: 0.1em solid #A0A0A0;
}
</style> </style>
</head> </head>
@ -56,12 +71,12 @@
<p>(Are the JavaScript files missing?)</p> <p>(Are the JavaScript files missing?)</p>
<p>(The JavaScript code needs to be compiled from the TypeScript code.)</p> <p>(The JavaScript code needs to be compiled from the TypeScript code.)</p>
</div> </div>
<form id="loaded" style="display:none" action="#" method="get" onsubmit="return false;"> <form id="loaded" style="display:none" onsubmit="event.preventDefault();">
<table class="noborder" style="width:100%"> <table>
<tbody> <tbody>
<tr> <tr>
<td><strong>Text string:</strong></td> <td><strong>Text string:</strong></td>
<td style="width:100%"><textarea placeholder="Enter your text to be put into the QR Code" id="text-input" style="width:100%; max-width:30em; height:5em; font-family:inherit"></textarea></td> <td><textarea placeholder="Enter your text to be put into the QR Code" id="text-input" style="width:30em; height:5em"></textarea></td>
</tr> </tr>
<tr> <tr>
<td><strong>QR Code:</strong></td> <td><strong>QR Code:</strong></td>

@ -29,6 +29,9 @@
html { html {
font-family: sans-serif; font-family: sans-serif;
} }
h1 {
text-align: center;
}
#output p { #output p {
margin-top: 0.5em; margin-top: 0.5em;
margin-bottom: 0.5em; margin-bottom: 0.5em;
@ -36,7 +39,13 @@
#output canvas { #output canvas {
display: block; display: block;
margin-bottom: 1.5em; margin-bottom: 1.5em;
border: 1px solid #C0C0C0; border: 0.2em solid #D0D0D0;
border-radius: 0.4em;
}
hr {
margin: 2em 0em;
border: none;
border-top: 0.1em solid #A0A0A0;
} }
</style> </style>
</head> </head>

Loading…
Cancel
Save