1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-08 09:24:48 +00:00
2024-07-24 13:05:45 -07:00

624 lines
9.8 KiB
CSS

body {
margin: 0;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background-color: #1e1e1e;
color: #fff;
overflow: hidden;
}
.launcher {
width: 75vw;
height: 95vh;
margin: 15px auto 0 auto;
background-color: #333;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
}
.title-bar {
background-color: #2c2c2c;
padding: 10px;
text-align: center;
color: #ddd;
font-size: 14px;
font-weight: 600;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.content {
display: flex;
flex: 1;
overflow: hidden;
}
.sidebar {
background-color: #242424;
width: 200px;
display: flex;
flex-direction: column;
flex-shrink: 0;
border-right: 1px solid #333;
}
.profile {
padding: 20px 10px;
border-bottom: 1px solid #333;
text-align: center;
}
.profile-name {
font-weight: bold;
display: block;
font-size: 16px;
}
.profile-status {
font-size: 12px;
color: #00cc00;
display: block;
margin-top: 5px;
}
nav {
list-style-type: none;
padding: 0;
margin: 0;
flex-grow: 1;
}
.nav-item {
display: flex;
align-items: center;
padding: 15px 20px;
cursor: pointer;
transition: background-color 0.2s;
}
.nav-item:hover,
.nav-item.selected {
background-color: #444;
}
.nav-icon {
width: 24px;
height: 24px;
margin-right: 15px;
}
.nav-text {
font-size: 14px;
}
.main-panel {
flex: 1;
display: flex;
flex-direction: column;
background-color: #202020;
}
.top-bar {
background-color: #2c2c2c;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
color: #ddd;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
flex-shrink: 0;
}
.game-title {
font-size: 18px;
font-weight: bold;
}
.tabs {
display: flex;
}
.tab {
margin-left: 20px;
cursor: pointer;
color: #888;
text-transform: uppercase;
font-size: 14px;
transition: color 0.2s;
}
.tab:hover,
.tab.selected {
color: #00cc00;
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
background-color: #202020;
box-sizing: border-box;
position: relative;
overflow-y: hidden;
scrollbar-width: thin;
scrollbar-color: #555 #333;
}
.cover-image {
display: flex;
flex: 1;
width: 100%;
height: 100%;
object-fit: cover;
}
.installations {
display: flex;
flex: 1;
align-items: center;
justify-content: space-between;
width: 100%;
background-color: #292929;
box-sizing: border-box;
position: absolute;
bottom: 0;
left: 0;
padding: 10px 20px;
border-top: 1px solid #333;
}
.custom-select-wrapper {
position: relative;
display: inline-block;
width: 250px;
}
.custom-select {
display: flex;
align-items: center;
justify-content: center;
font-family: "MinecraftRegular", sans-serif;
font-size: 1em;
padding: 7px;
border: 2px solid #000;
background-color: #048239;
color: #fff;
cursor: pointer;
box-shadow: 4px 4px #4e4e50;
user-select: none;
transition: box-shadow 0.3s;
}
.custom-select:hover {
box-shadow: 6px 6px #4e4e50;
}
.custom-select.open {
border-radius: 0 0 5px 5px;
}
.custom-options {
position: absolute;
bottom: calc(100% + 2px);
left: 0;
right: 0;
border: 2px solid #000;
border-bottom: none;
background-color: #035525;
box-shadow: 4px 4px #4e4e50;
display: none;
border-radius: 5px 5px 0 0;
color: #fff;
scrollbar-width: thin;
scrollbar-color: #048239 #035525;
max-height: 0;
overflow: auto;
transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out;
}
.custom-options.open {
display: block;
max-height: 200px;
padding: 10px 0;
opacity: 1;
}
.custom-option {
display: flex;
align-items: center;
padding: 10px;
cursor: pointer;
border-bottom: 1px solid #000;
transition: background-color 0.3s;
}
.custom-option:last-child {
border-bottom: none;
}
.custom-option:hover {
background-color: #127e3f;
}
.custom-option img {
width: 32px;
height: 32px;
margin-right: 10px;
}
.play-button {
background-color: #0f990f;
border: 2px solid #007700;
padding: 10px 40px;
border-radius: 5px;
cursor: pointer;
color: #fff;
font-size: 16px;
font-weight: bold;
text-transform: uppercase;
transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
overflow: hidden;
position: relative;
}
.play-button::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 300%;
height: 300%;
background-color: rgba(255, 255, 255, 0.1);
transition: all 0.4s ease-out;
border-radius: 50%;
transform: translate(-50%, -50%);
z-index: 0;
}
.play-button:hover::before {
width: 0;
height: 0;
}
.play-button:hover {
background-color: #17b117;
border-color: #005500;
transform: scale(1.05);
}
.play-button span {
position: relative;
z-index: 1;
}
.play-button:hover span {
animation: fluid 1.5s infinite alternate;
}
@keyframes fluid {
0% {
transform: scale(1);
}
100% {
transform: scale(1.1);
}
}
.bottom-bar {
background-color: #2c2c2c;
padding: 10px 20px;
display: flex;
flex-direction: row;
justify-content: space-between;
font-size: 14px;
text-decoration: none;
border-top: 1px solid #333;
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}
.bottom-bar .bottom-bar-links {
display: flex;
}
.bottom-bar .bottom-bar-left {
color: #ddd;
margin-right: 10px;
text-decoration: none;
}
.bottom-bar .bottom-bar-left:hover {
text-decoration: underline;
}
.bottom-bar .bottom-bar-right {
color: #ddd;
}
.news-item {
flex: 1;
padding: 20px;
text-align: left;
overflow: auto;
}
.news-item li {
padding-left: 20px;
}
.minecraft-button {
background-color: #a9a9a9;
border: 1px solid #333;
border-radius: 5px;
padding: 10px 20px;
font-size: 16px;
font-weight: bold;
text-transform: uppercase;
cursor: pointer;
outline: none;
}
.minecraft-button:hover {
background-color: #bdbdbd;
}
.minecraft-button:active {
background-color: #8a8a8a;
}
.version-label {
margin-right: 10px;
}
.downloads {
margin-top: 20px;
justify-content: center;
align-items: center;
overflow: auto;
}
.download-link {
display: inline-block;
background-color: #048239;
color: #fff;
text-decoration: none;
padding: 10px 20px;
border-radius: 5px;
margin-bottom: 10px;
transition: background-color 0.3s;
}
.download-link:hover {
background-color: #00cc00;
}
.top-menu {
background-color: #2c2c2c;
padding: 10px 20px;
display: flex;
justify-content: space-around;
align-items: center;
color: #ddd;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
flex-shrink: 0;
}
.top-menu ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
}
.top-menu ul li {
margin-right: 20px;
cursor: pointer;
font-size: 16px;
color: #ccc;
transition: color 0.2s;
}
.top-menu ul li.selected {
color: #fff;
font-weight: bold;
}
.top-menu ul li:hover {
color: #fff;
}
select {
width: 100%;
padding: 10px;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-weight: bold;
color: #e0e0e0;
background-color: #08a74a;
box-shadow: 4px 4px 0px #2a2a2a, -4px -4px 0px #2a2a2a;
border-radius: 3px;
appearance: none;
background-image: url("/resources/images/icons/dropdown-selector.png"), linear-gradient(45deg, #0a8338, #086126);
background-repeat: no-repeat, repeat;
background-position: right 10px center, 0 0;
background-size: 15px auto, 100%;
cursor: pointer;
transition: box-shadow 0.2s, background-color 0.2s;
}
select:hover {
background-color: #0a8338;
}
select:focus {
outline: none;
box-shadow: 0 0 5px 2px #00cc00;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #1f1f1f;
color: #e0e0e0;
overflow-x: auto;
overflow-y: auto;
max-height: 600px;
}
.mod-list {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
overflow-y: auto;
max-height: 100%;
padding: 10px;
overflow-x: auto;
text-align: center;
scrollbar-width: thin;
scrollbar-color: #555 #333;
}
.mod-item {
background-color: #333;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
padding: 10px;
text-align: center;
}
.mod-item .mod-icon {
width: 80px;
height: 80px;
margin: 0 auto 10px;
}
.mod-item .mod-icon img {
max-width: 100%;
max-height: 100%;
border-radius: 5px;
}
.mod-item .mod-details {
padding: 10px 0;
}
.mod-item .mod-name {
font-size: 16px;
font-weight: bold;
margin-bottom: 5px;
color: #fff;
}
.mod-item .mod-author {
font-size: 12px;
color: #ccc;
margin-bottom: 5px;
}
.mod-item .mod-description {
font-size: 14px;
color: #bbb;
margin-bottom: 10px;
}
.mod-item .mod-links {
display: flex;
justify-content: space-around;
margin-top: 10px;
}
.mod-item .mod-link {
padding: 5px 15px;
background-color: #555;
color: #fff;
text-decoration: none;
border-radius: 7px;
transition: background-color 0.3s;
}
.mod-item .mod-link:hover {
background-color: #777;
}
.top-menu {
background-color: #2c2c2c;
padding: 10px 20px;
display: flex;
justify-content: space-around;
align-items: center;
color: #ddd;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
flex-shrink: 0;
}
#username-form {
margin-top: 20px;
}
#username-input {
width: calc(100% - 22px);
padding: 10px;
margin-bottom: 10px;
border: none;
border-radius: 3px;
background-color: #333;
color: #fff;
}
.username-button {
width: 100%;
padding: 10px;
border: none;
border-radius: 3px;
background-color: #00cc00;
color: #fff;
cursor: pointer;
transition: background-color 0.2s;
}
.username-button:hover {
background-color: #00ff00;
}
.server-list {
display: flex;
flex: 1;
overflow: hidden;
}
.server-list iframe {
width: 100%;
height: 100%;
border: none;
}
.settings {
display: flex;
flex: 1;
align-items: center;
justify-content: center;
}
.upload-button {
background-color: #075f07;
border: none;
padding: 8px 16px;
border-radius: 5px;
cursor: pointer;
color: #fff;
font-size: 18px;
font-weight: bold;
text-transform: none;
transition: background-color 0.2s, transform 0.2s;
}
.upload-button:hover {
background-color: #197d19;
transform: scale(1.05);
}
.upload-button:active {
transform: scale(0.95);
}