GrassClipper/resources/style/index.css

401 lines
6.5 KiB
CSS
Raw Permalink 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-22 00:05:00 +00:00
.boldTitle {
font-weight: bold;
font-size: 1.2em;
margin-bottom: 6px;
}
#firstTimeBtns {
display: flex;
justify-content: center;
align-items: center;
}
#firstTimeBtns button {
margin: 10px;
}
#firstTimeNotice span {
display: block;
text-align: center;
margin-bottom: 6px;
}
#firstTimeNotice,
2022-04-21 21:53:53 +00:00
#settingsPanel {
display: block;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin-right: -50%;
z-index: 99;
padding: 20px;
background-color: #fff;
border-radius: 2px;
border: 1px solid #141414;
2022-04-22 00:05:00 +00:00
font-family: system-ui;
}
#settingsPanel {
2022-04-23 02:14:40 +00:00
width: 35%;
2022-04-24 23:17:23 +00:00
height: 80%;
2022-04-25 06:55:36 +00:00
overflow: hidden;
2022-04-21 21:53:53 +00:00
}
#fullSettingsTitle {
font-size: 1.5em;
font-weight: bold;
margin-bottom: 10px;
}
#settingsPanelInner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2022-04-23 02:14:40 +00:00
padding: 10px 10%;
2022-04-21 21:53:53 +00:00
}
.settingsRow {
width: 100%;
}
.settingTitle {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 10px;
}
.settingLabel {
display:inline-block;
font-size: 1em;
font-weight: normal;
2022-04-22 00:35:50 +00:00
margin: 10px 0px;
2022-04-21 21:53:53 +00:00
}
2022-04-21 21:57:03 +00:00
.settingSubtitle {
color: rgb(165, 165, 165);
font-size: 0.8em;
font-weight: normal;
}
2022-04-22 00:35:50 +00:00
.settingSection {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.settingSection .smolBtn {
height: 30px;
}
2022-04-23 05:17:26 +00:00
#settingsTitleBar {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
2022-04-21 22:33:14 +00:00
#settingsClose {
display: inline-block;
transition: filter 0.1s ease-in-out;
}
#settingsClose img {
height: 20px;
}
#settingsClose:hover {
filter: invert(85%) sepia(31%) saturate(560%) hue-rotate(329deg) brightness(100%) contrast(92%);
cursor: pointer;
}
2022-04-21 06:04:20 +00:00
#ipList {
position: absolute;
z-index: 99;
padding: 10px;
transform: translate(3vw, 420px);
2022-04-21 06:04:20 +00:00
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%);
}
2022-04-21 10:51:58 +00:00
#titleSection {
2022-04-21 00:41:49 +00:00
/* Move all components to the right since this is the first button */
2022-04-21 10:51:58 +00:00
margin-right: auto !important;
2022-04-21 00:41:49 +00:00
}
2022-04-20 00:07:56 +00:00
.playBtn:hover, .smolBtn:hover {
cursor: pointer;
}
2022-04-22 00:05:00 +00:00
.altBtn {
background: none;
color: #525252;
text-decoration: underline;
border: none;
line-height: 2px;
transition: color 0.05s ease-in-out;
}
.altBtn:hover {
cursor: pointer;
color: #ffd326;
}
2022-04-20 00:07:56 +00:00
.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);
}
2022-04-22 21:18:56 +00:00
.playBtn.disabled,
.smolBtn.disabled {
background: linear-gradient(#9c9c9c, #949494);
color: rgb(226, 226, 226);
cursor: default;
}
2022-04-22 21:18:56 +00:00
.smolBtn.disabled:hover {
background: linear-gradient(#949494, #9c9c9c);
}
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;
2022-04-23 02:30:44 +00:00
flex-direction: row;
2022-04-20 01:12:56 +00:00
height: 100%;
2022-04-23 02:30:44 +00:00
width: 100%;
background: #141414;
justify-content: space-evenly;
}
.bottomSection div {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2022-04-20 01:12:56 +00:00
background: #141414;
2022-04-23 02:30:44 +00:00
margin: 4px;
height: 10%;
2022-04-20 01:12:56 +00:00
}
#gamePath, #serverPath {
2022-04-20 01:12:56 +00:00
color: white;
font-size: 14px;
2022-04-20 00:07:56 +00:00
}
2022-04-22 22:34:24 +00:00
#panelContainer {
2022-04-19 23:54:36 +00:00
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
display: flex;
}
2022-04-22 22:34:24 +00:00
#firstPanel, #secondPanel, #thirdPanel {
2022-04-19 23:54:36 +00:00
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;
}
2022-04-22 22:34:24 +00:00
#firstPanel:hover, #secondPanel:hover, #thirdPanel:hover {
width: calc(100% + 150px);
2022-04-19 23:54:36 +00:00
}
2022-04-22 22:34:24 +00:00
#firstPanel, #secondPanel {
2022-04-21 06:17:50 +00:00
border-right: 6px solid #141414;
2022-04-22 22:58:47 +00:00
}
#firstPanel {
2022-04-25 06:55:36 +00:00
background-position: -200px;
2022-04-20 01:12:56 +00:00
}
2022-04-21 00:06:35 +00:00
/* Move the first official button to the position on the png */
2022-04-23 03:10:13 +00:00
#firstPanel button, #secondPanel button, #thirdPanel button {
display: block;
2022-04-22 22:58:47 +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;
}
2022-04-24 07:32:17 +00:00
#port {
width: 12%;
}
2022-04-22 22:34:24 +00:00
#secondPanel input {
2022-04-21 00:06:35 +00:00
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;
}
2022-04-22 22:34:24 +00:00
#secondPanel input:focus {
2022-04-21 00:06:35 +00:00
outline: none;
border-bottom: 2px solid #ffc61e;
}
/* Move the second private button the near-bottom */
#secondControlContainer {
position: relative;
2022-04-22 22:58:47 +00:00
/* transform: translate(115px, 456px); */
2022-04-21 00:06:35 +00:00
width: 300px;
height: 60px;
2022-04-23 03:12:12 +00:00
margin-top: calc(68vh - 40px) !important;
2022-04-21 05:26:25 +00:00
}
2022-04-22 22:58:47 +00:00
#secondControlContainer, #firstPanel button, #thirdPanel button {
2022-04-23 03:12:12 +00:00
margin-top: 68vh;
2022-04-22 22:58:47 +00:00
}
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
}