Skip to content

Commit ac01489

Browse files
Style input fields
1 parent 7ef7bd2 commit ac01489

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/index.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ label {
6868
font-weight: bold;
6969
}
7070

71+
input[type=text] {
72+
background: transparent;
73+
border: 0;
74+
border-bottom: 2px solid #a7c3ca;
75+
font-family: GothamRndLight;
76+
transition: border 0.4s ease-in-out;
77+
width: 65%;
78+
}
79+
80+
input:focus{
81+
border:none;
82+
outline:none;
83+
border-bottom:2px solid #fff;
84+
}
85+
7186
.main-content {
7287
display: none; /* by default, main-content is not visible until enable by the javascript menu - except content0 (see below) */
7388
flex-wrap: wrap;
@@ -121,7 +136,6 @@ label {
121136

122137
#pubkey {
123138
margin-bottom: 1em;
124-
font-size: 18px;
125139
}
126140

127141
#serverhelptext {

src/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@
3737
</div>
3838
<div class="column" id="column1">
3939
<h2>Allow Remote Control</h2>
40+
<p>
4041
<label for="pubkey">Your ID</label>
4142
<input type="text" name="pubkey" id="pubkey" disabled size="43">
42-
<a href="#copy" onclick="javascript:copyYourId();"><img width="26" src="../images/copy-icon.png" class="copyicon"></a>
43+
<a href="#copy" onclick="javascript:copyYourId();"><img width="16" src="../images/copy-icon.png" class="copyicon"></a>
44+
</p>
4345
<div id="serverhelptext">When you give your ID to someone running PeerViewer, they can operate your computer until you close this window.</div>
4446
<!-- <button class="bigbutton" onclick="runServer()">Run Server</button> -->
4547
<div id="serverstatus">Initializing...</div>

0 commit comments

Comments
 (0)