Skip to content

Commit c5f9ffc

Browse files
committed
added unit labels and added shadow to the result box
1 parent 4e2bd1e commit c5f9ffc

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

public/css/app.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,24 @@ h2 { margin: 0; margin-bottom: 10px; padding: 0; font
3131
/* =MODULES
3232
====================================================== */
3333
/* preview */
34-
.arrow_box { padding: 40px; width: 280px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
34+
.arrow_box { padding: 40px; width: 280px; height: 100px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
3535

3636
/* logo */
3737
.logo { color: #ddf8c6; text-align: center; font-size: 54px; line-height: 54px; font-weight: bold; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
3838

3939
/* configuration */
40-
.configuration { margin-top: 15px; }
40+
.configuration { margin-top: 20px; }
4141
.configuration .section { float: left; width: 195px; }
4242
.configuration .section li { margin-bottom: 5px; }
4343
.configuration .section label { display: inline-block; width: 100px; }
4444

4545
.configuration .size,
46-
.configuration .border_width { width: 30px; }
46+
.configuration .border_width { width: 25px; text-align: right; }
4747

4848
.configuration .color,
4949
.configuration .border_color { width: 60px; }
5050

51-
/* result_code */
52-
.result_code { resize: none; border: 0; padding: 10px; float: right; width: 380px; height: 370px; font-size: 12px; font-family: 'Courier new'; font-weight: bold; background: rgba(0, 0, 0, 0.15); border-radius: 4px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); border: 1px solid rgba(0, 0, 0, 0.2); }
51+
.configuration .unit { font-size: 14px; }
5352

53+
/* result_code */
54+
.result_code { white-space: pre; padding: 10px; float: right; width: 380px; height: 370px; font-size: 12px; font-family: 'Courier new'; font-weight: bold; background: rgba(0, 0, 0, 0.15); border-radius: 4px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); border: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 1px 5px rgba(0, 0, 0, 0.1); }

public/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ <h2>Arrow configuration</h2>
3434
<li>
3535
<label>Size</label>
3636
<input class='size' />
37+
<span class='unit'>px</span>
3738
</li>
3839
<li>
3940
<label>Color</label>
@@ -44,6 +45,7 @@ <h2>Arrow configuration</h2>
4445
<li>
4546
<label>Border width</label>
4647
<input class='border_width' />
48+
<span class='unit'>px</span>
4749
</li>
4850
<li>
4951
<label>Border color</label>
@@ -53,7 +55,7 @@ <h2>Arrow configuration</h2>
5355
</div>
5456
</form>
5557
</div>
56-
<textarea class='result_code' readonly='readonly'></textarea>
58+
<code class='result_code' readonly='readonly'></code>
5759
</div>
5860

5961
<footer id='footer'>

0 commit comments

Comments
 (0)