mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-22 07:08:11 +00:00
button styling
This commit is contained in:
parent
3821f5c95a
commit
c5cfe001e8
@ -34,7 +34,7 @@
|
||||
"borderless": false,
|
||||
"maximize": false,
|
||||
"hidden": false,
|
||||
"resizable": true,
|
||||
"resizable": false,
|
||||
"exitProcessOnClose": true
|
||||
},
|
||||
"browser": {},
|
||||
|
@ -11,8 +11,10 @@
|
||||
<button class="playBtn" onclick="launchOfficial()">Play Official</button>
|
||||
</div>
|
||||
<div id="secondHalf">
|
||||
<button class="playBtn" onclick="launchPrivate()">Play Private</button>
|
||||
<input type="text" id="ip" placeholder="IP Address" />
|
||||
<div id="secondControlContainer">
|
||||
<input type="text" id="ip" placeholder="IP Address" />
|
||||
<button class="playBtn" onclick="launchPrivate()">Play Private</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -5,10 +5,6 @@ body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.playBtn:hover, .smolBtn:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
@ -24,6 +20,10 @@ input[type="text"] {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.playBtn:hover {
|
||||
background: linear-gradient(#ffc61e, #ffd326);
|
||||
}
|
||||
|
||||
.smolBtn {
|
||||
padding: 0 20px;
|
||||
border-radius: 5px;
|
||||
@ -35,6 +35,10 @@ input[type="text"] {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.smolBtn:hover {
|
||||
background: linear-gradient(#ffc61e, #ffd326);
|
||||
}
|
||||
|
||||
#bottomBar {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@ -77,10 +81,45 @@ input[type="text"] {
|
||||
background-position: -340px;
|
||||
}
|
||||
|
||||
/* Move the button to the position on the png */
|
||||
/* Move the first official button to the position on the png */
|
||||
#firstHalf button {
|
||||
position: relative;
|
||||
transform: translate(115px, 480px);
|
||||
width: 300px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
#ip {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#secondHalf button {
|
||||
display: block;
|
||||
width: 300px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
#secondHalf input {
|
||||
margin-bottom: 4px;
|
||||
height: 20px;
|
||||
background: white;
|
||||
border: none;
|
||||
border-bottom: 2px solid #4d4d4d;
|
||||
padding: 8px;
|
||||
|
||||
/* border bottom anim */
|
||||
transition: border-bottom 0.1s ease-in-out;
|
||||
}
|
||||
|
||||
#secondHalf input:focus {
|
||||
outline: none;
|
||||
border-bottom: 2px solid #ffc61e;
|
||||
}
|
||||
|
||||
/* Move the second private button the near-bottom */
|
||||
#secondControlContainer {
|
||||
position: relative;
|
||||
transform: translate(115px, 446px);
|
||||
width: 300px;
|
||||
height: 60px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user