GrassClipper/resources/style/index.css

250 lines
4.1 KiB
CSS
Raw Normal View History

2022-04-21 01:16:36 +00:00
html { user-select: none; }
2022-04-19 23:54:36 +00:00
body {
2022-04-20 01:12:56 +00:00
overflow: hidden;
2022-04-20 00:07:56 +00:00
height: 85vh;
2022-04-20 01:12:56 +00:00
margin: 0;
font-family: Arial, Helvetica, sans-serif;
2022-04-19 23:54:36 +00:00
}
.darken {
filter: brightness(0.6);
}
2022-04-21 06:04:20 +00:00
#ipList {
position: absolute;
z-index: 99;
padding: 10px;
transform: translate(150px, 370px);
background-color: #fff;
border-radius: 5px;
border: 1px solid #ccc;
width: 200px;
}
#ipList ul {
list-style-type: none;
padding: 0;
margin: 0;
width: 100%;
height: 100%;
overflow: auto;
}
#ipList li {
padding: 4px;
border-bottom: 1px solid #ccc;
}
2022-04-21 06:12:15 +00:00
#ipList li:hover {
color: #ffc61e;
cursor: pointer;
}
2022-04-21 06:04:20 +00:00
#ipList li:last-child {
border-bottom: none;
}
2022-04-21 00:41:49 +00:00
#controlBar {
display: flex;
flex-direction: row;
2022-04-21 01:16:36 +00:00
align-items: center;
2022-04-21 00:41:49 +00:00
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 34px;
background-color: #141414;
z-index: 1;
}
#controlBar div {
color: #c3c3c3;
width: 20px;
2022-04-21 01:16:36 +00:00
height: 80%;
2022-04-21 00:41:49 +00:00
vertical-align: middle;
text-align: center;
padding: 0px 6px;
margin: 0px 2px;
2022-04-21 01:16:36 +00:00
padding-top: 6px;
2022-04-21 00:41:49 +00:00
}
#controlBar div:hover {
cursor: pointer;
background-color: #353535;
}
2022-04-21 01:16:36 +00:00
#titleSection {
color: white;
padding-left: 8px;
}
#version {
display: inline-block;
color: #434343;
}
2022-04-21 00:41:49 +00:00
#controlBar div img {
/* https://codepen.io/sosuke/pen/Pjoqqp */
filter: invert(95%) sepia(0%) saturate(18%) hue-rotate(153deg) brightness(88%) contrast(81%);
2022-04-21 01:16:36 +00:00
height: 60%;
2022-04-21 00:41:49 +00:00
vertical-align: middle;
}
#closeBtn:hover {
background-color: #ff0000 !important;
}
#closeBtn:hover img {
filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(142deg) brightness(107%) contrast(101%);
}
#minBtn {
/* Move all components to the right since this is the first button */
margin-left: auto !important;
}
2022-04-20 00:07:56 +00:00
.playBtn:hover, .smolBtn:hover {
cursor: pointer;
}
.playBtn {
2022-04-19 23:54:36 +00:00
padding: 0 30px;
border-radius: 5px;
border: none;
background: linear-gradient(#ffd326, #ffc61e);
color: #704a1d;
font-weight: bold;
height: 50px;
font-size: 20px;
}
2022-04-21 00:06:35 +00:00
.playBtn:hover {
background: linear-gradient(#ffc61e, #ffd326);
}
.playBtn.disabled {
background: linear-gradient(#9c9c9c, #949494);
color: rgb(226, 226, 226);
cursor: default;
}
2022-04-20 00:07:56 +00:00
.smolBtn {
padding: 0 20px;
border-radius: 5px;
border: none;
background: linear-gradient(#ffd326, #ffc61e);
color: #704a1d;
font-weight: bold;
height: 40px;
font-size: 14px;
}
2022-04-21 00:06:35 +00:00
.smolBtn:hover {
background: linear-gradient(#ffc61e, #ffd326);
}
2022-04-20 00:07:56 +00:00
#bottomBar {
display: flex;
justify-content: center;
width: 100%;
2022-04-20 01:12:56 +00:00
height: 100%;
2022-04-20 00:07:56 +00:00
padding: 20px 0px;
2022-04-20 01:12:56 +00:00
background: #141414;
}
.bottomSection {
display: flex;
flex-direction: column;
height: 100%;
background: #141414;
}
#genshinPath {
color: white;
font-size: 14px;
2022-04-20 00:07:56 +00:00
}
2022-04-19 23:54:36 +00:00
#halvesContainer {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
display: flex;
}
#firstHalf, #secondHalf {
display: flex;
justify-content: center;
width: 100%;
2022-04-20 01:12:56 +00:00
background-repeat: no-repeat;
background-size: cover;
transition: width 0.2s ease-in-out, filter 0.2s ease-in-out;
}
#firstHalf:hover, #secondHalf:hover {
width: calc(100% + 150px);
2022-04-19 23:54:36 +00:00
}
#firstHalf {
2022-04-21 03:22:10 +00:00
border-right: 10px solid #141414;
2022-04-20 01:12:56 +00:00
background-position: -340px;
}
2022-04-21 00:06:35 +00:00
/* Move the first official button to the position on the png */
2022-04-20 01:12:56 +00:00
#firstHalf button {
position: relative;
2022-04-21 01:16:36 +00:00
transform: translate(140px, 500px);
2022-04-20 01:21:29 +00:00
width: 300px;
height: 60px;
2022-04-21 00:06:35 +00:00
}
#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;
2022-04-21 01:16:36 +00:00
transform: translate(115px, 456px);
2022-04-21 00:06:35 +00:00
width: 300px;
height: 60px;
2022-04-21 05:26:25 +00:00
}
#serverInput input, #serverInput img{
display: inline-block;
}
#serverInput img {
height: 20px;
vertical-align: middle;
margin-right: 4px;
}
#serverInput img:hover {
cursor: pointer;
2022-04-19 23:54:36 +00:00
}