GrassClipper/resources/style/index.css

603 lines
9.6 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
}
2022-04-30 08:56:00 +00:00
a {
color: #fff;
}
2022-05-02 06:32:51 +00:00
img {
height: 20px;
}
.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;
}
2022-04-27 03:17:29 +00:00
#loginPanel {
2022-04-27 05:24:45 +00:00
height: 50%;
2022-04-27 03:17:29 +00:00
width: 32%;
}
2022-04-27 00:55:16 +00:00
#loginPanel img {
height: 20px;
}
#loginPopupTitle {
display: flex;
justify-content: space-between;
font-size: 1.2em;
font-weight: bold;
}
2022-04-27 03:17:29 +00:00
.authBody {
2022-04-27 01:34:20 +00:00
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
2022-04-27 03:17:29 +00:00
.authBody div {
2022-04-27 01:34:20 +00:00
margin: 6px;
}
2022-04-27 03:17:29 +00:00
.authBody input {
2022-04-27 01:34:20 +00:00
height: 20px;
background: white;
border: none;
border-bottom: 2px solid #4d4d4d;
/* border bottom anim */
transition: border-bottom 0.1s ease-in-out;
}
2022-04-27 03:17:29 +00:00
.authBody input:focus {
2022-04-27 01:34:20 +00:00
outline: none;
border-bottom: 2px solid #ffc61e;
}
#loginPopupTitle img {
height: 20px;
2022-04-27 03:17:29 +00:00
margin-bottom: 8px;
2022-04-27 01:34:20 +00:00
}
#loginPopupTitle img:hover {
filter: invert(85%) sepia(31%) saturate(560%) hue-rotate(329deg) brightness(100%) contrast(92%);
cursor: pointer;
}
2022-04-27 03:17:29 +00:00
#registerPopupServer,
2022-04-27 01:34:20 +00:00
#loginPopupServer {
font-weight: bold;
}
2022-04-27 03:17:29 +00:00
#loginSectionTitle,
#registerSectionTitle {
font-weight: normal;
font-size: 1em;
}
#loginSectionTitle:hover,
#registerSectionTitle:hover {
cursor: pointer;
}
.selectedTitle {
font-weight: bold !important;
border-bottom: 2px solid #ffc61e;
}
.authInputs div {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.authInputs div span {
margin-right: 6px;
}
2022-04-27 05:15:06 +00:00
.error {
background: #e90000;
}
2022-04-27 05:24:45 +00:00
.warn {
background: #ffc61e;
}
2022-04-27 05:15:06 +00:00
2022-04-27 05:24:45 +00:00
.success {
background: #00c200;
2022-04-27 05:15:06 +00:00
}
#registerAlert,
#loginAlert {
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
color: #fff;
2022-04-27 05:24:45 +00:00
text-align: center;
2022-04-27 05:15:06 +00:00
}
#registerAlert img,
#loginAlert img {
height: 20px;
margin: 10px;
filter: invert(100%) sepia(0%) saturate(179%) hue-rotate(253deg) brightness(105%) contrast(101%);
}
#registerAlert span,
#loginAlert span {
margin: 10px;
}
2022-04-22 00:05:00 +00:00
#firstTimeNotice,
2022-04-27 00:55:16 +00:00
#loginPanel,
2022-05-02 05:56:15 +00:00
#downloadPanel,
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;
}
2022-05-02 05:56:15 +00:00
#downloadPanel,
2022-04-22 00:05:00 +00:00
#settingsPanel {
2022-04-23 02:14:40 +00:00
width: 35%;
2022-04-24 23:17:23 +00:00
height: 80%;
2022-05-01 06:09:52 +00:00
overflow: auto;
2022-04-21 21:53:53 +00:00
}
2022-05-02 05:59:11 +00:00
#downloadTitle,
2022-04-21 21:53:53 +00:00
#fullSettingsTitle {
font-size: 1.5em;
font-weight: bold;
margin-bottom: 10px;
}
2022-05-02 05:56:15 +00:00
#downloadPanelInner,
2022-04-21 21:53:53 +00:00
#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
}
2022-05-02 05:56:15 +00:00
.downloadRow,
2022-04-21 21:53:53 +00:00
.settingsRow {
width: 100%;
}
2022-05-02 05:56:15 +00:00
.downloadTitle,
2022-04-21 21:53:53 +00:00
.settingTitle {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 10px;
}
2022-05-02 06:15:04 +00:00
.downloadTitle {
margin: 6px;
}
2022-05-02 05:56:15 +00:00
.downloadLabel,
2022-04-21 21:53:53 +00:00
.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-05-02 05:56:15 +00:00
.downloadSubtitle,
2022-04-21 21:57:03 +00:00
.settingSubtitle {
color: rgb(165, 165, 165);
font-size: 0.8em;
font-weight: normal;
}
2022-05-02 05:56:15 +00:00
.downloadSection,
2022-04-22 00:35:50 +00:00
.settingSection {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
2022-05-02 05:56:15 +00:00
.downloadSection .smolBtn,
2022-04-22 00:35:50 +00:00
.settingSection .smolBtn {
height: 30px;
}
2022-05-02 05:59:11 +00:00
#downloadTitleBar,
2022-04-23 05:17:26 +00:00
#settingsTitleBar {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
2022-05-02 05:56:15 +00:00
#downloadClose,
2022-04-21 22:33:14 +00:00
#settingsClose {
display: inline-block;
transition: filter 0.1s ease-in-out;
}
2022-05-02 05:56:15 +00:00
#downloadClose img,
2022-04-21 22:33:14 +00:00
#settingsClose img {
height: 20px;
}
2022-05-02 05:56:15 +00:00
#downloadClose:hover,
2022-04-21 22:33:14 +00:00
#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-26 09:05:58 +00:00
.openFolderIcon {
display: inline;
height: 20px;
filter: invert(97%) sepia(85%) saturate(12%) hue-rotate(184deg) brightness(103%) contrast(103%);
padding: 10px;
}
.openFolderIcon:hover {
cursor: pointer;
filter: invert(99%) sepia(0%) saturate(1092%) hue-rotate(172deg) brightness(80%) contrast(103%);
}
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
}
2022-04-26 09:05:58 +00:00
.bottomSection div div {
display: flex;
flex-direction: row;
height: 100%;
}
#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-30 08:56:00 +00:00
}
#downloadNotif {
z-index: 99;
position: absolute;
color: #fff;
background: #141414;
border: 1px solid #ccc;
padding: 1em;
top: 80%;
left: 120%;
2022-04-30 08:56:00 +00:00
width: 20%;
border-radius: 5px;
text-align: center;
transition: left 0.5s ease-in-out;
2022-04-30 08:56:00 +00:00
}
#downloadNotif:hover {
cursor: pointer;
border-color: #fff;
}
#downloadNotif img {
height: 20px;
vertical-align: middle;
margin-right: 4px;
filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(16deg) brightness(103%) contrast(101%);
}
#downloadNotif.displayed {
left: 70%;
}
#newestVersion {
font-weight: bold;
2022-04-19 23:54:36 +00:00
}