mirror of
https://github.com/Gabi-Zar/Silk-Fly-Launcher.git
synced 2026-04-17 05:26:04 +02:00
Add themes and clean main.js and style.css
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Segoe UI", sans-serif;
|
||||
cursor: url("assets/cursor.png") 0 0, auto !important;
|
||||
}
|
||||
|
||||
:root {
|
||||
--primary-color: rgba(255, 25, 0, 0.3);
|
||||
--secondary-color: #ff6b6b;
|
||||
--background-color: rgba(255, 72, 0, 0.2);
|
||||
|
||||
--text-color: #eee;
|
||||
--transparent-black: rgba(0, 0, 0, 0.4);
|
||||
--darker-transparent-black: rgba(0, 0, 0, 0.8);
|
||||
--transparent-grey: rgba(30, 30, 30, 0.8)
|
||||
}
|
||||
|
||||
body {
|
||||
background: black;
|
||||
color: #eee;
|
||||
@@ -18,7 +28,7 @@ body {
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.background_video {
|
||||
.background-video {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@@ -31,8 +41,8 @@ body {
|
||||
|
||||
.sidebar {
|
||||
width: 280px;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
border-right: 1px solid rgba(255, 0, 0, 0.15);
|
||||
background: var(--darker-transparent-black);
|
||||
border-right: 1px solid var(--background-color);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -43,18 +53,16 @@ body {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 32px;
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid rgba(255, 72, 0, 0.2);
|
||||
transition: background 0.2s;
|
||||
border-bottom: 1px solid var(--background-color);
|
||||
transition: background 0.2s ease;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
background: rgba(255, 0, 0, 0.08);
|
||||
background: var(--background-color);
|
||||
}
|
||||
|
||||
.logo_img {
|
||||
.logo-img {
|
||||
height: 50px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.nav {
|
||||
@@ -70,11 +78,11 @@ body {
|
||||
font-size: 13px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
color: #fff;
|
||||
color: var(--text-color);
|
||||
margin-bottom: 10px;
|
||||
|
||||
padding: 0 4px 4px;
|
||||
border-bottom: 1px solid #ff6b6b;
|
||||
border-bottom: 1px solid var(--secondary-color);
|
||||
}
|
||||
|
||||
.nav button {
|
||||
@@ -82,17 +90,16 @@ body {
|
||||
padding: 10px 14px;
|
||||
margin-bottom: 8px;
|
||||
background: transparent;
|
||||
border: 1px solid black;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 4px;
|
||||
color: #eee;
|
||||
cursor: pointer;
|
||||
color: var(--text-color);
|
||||
text-align: left;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.nav button:hover {
|
||||
background: rgba(255, 72, 0, 0.2);
|
||||
border-color: rgba(255, 25, 0, 0.3);
|
||||
background: var(--background-color);
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.content {
|
||||
@@ -103,7 +110,7 @@ body {
|
||||
.content h1 {
|
||||
font-size: 28px;
|
||||
margin-bottom: 20px;
|
||||
color: #ffffff;
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
@@ -111,19 +118,18 @@ body {
|
||||
.content h2 {
|
||||
font-size: 24px;
|
||||
margin-bottom: 20px;
|
||||
color: #ffffff;
|
||||
color: var(--text-color);
|
||||
padding: 0 4px 4px;
|
||||
border-bottom: 1px solid #ff6b6b;
|
||||
border-bottom: 1px solid var(--secondary-color);
|
||||
}
|
||||
|
||||
.view {
|
||||
width: 100%;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
background: var(--darker-transparent-black);
|
||||
border-radius: 12px;
|
||||
padding: 40px;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: 0 0 50px var(--darker-transparent-black);
|
||||
overflow: auto;
|
||||
height: 90%;
|
||||
}
|
||||
@@ -139,35 +145,33 @@ body {
|
||||
flex: 1;
|
||||
height: 30px;
|
||||
padding: 0 12px;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border: 1px solid #ff6b6b;
|
||||
background: var(--transparent-black);
|
||||
border: 1px solid var(--secondary-color);
|
||||
border-radius: 4px;
|
||||
color: #eee;
|
||||
color: var(--text-color);
|
||||
font-size: 13px;
|
||||
outline: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.input:hover {
|
||||
background: rgba(0, 0, 0, 0.55);
|
||||
border-color: rgba(255, 25, 0, 0.3);
|
||||
background: var(--darker-transparent-black);
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
background: rgba(0, 0, 0, 0.65);
|
||||
border-color: rgba(255, 25, 0, 0.3);
|
||||
box-shadow: 0 0 0 1px rgba(255, 25, 0, 0.2);
|
||||
background: var(--darker-transparent-black);
|
||||
border-color: var(--primary-color);
|
||||
box-shadow: 0 0 0 1px var(--primary-color);
|
||||
}
|
||||
|
||||
.default-button {
|
||||
width: 120px;
|
||||
height: 40px;
|
||||
padding: 2px;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border: 1px solid #ff6b6b;
|
||||
background: var(--transparent-black);
|
||||
border: 1px solid var(--secondary-color);
|
||||
border-radius: 4px;
|
||||
color: #eee;
|
||||
cursor: pointer;
|
||||
color: var(--text-color);
|
||||
font-size: 16px;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
@@ -176,19 +180,17 @@ body {
|
||||
}
|
||||
|
||||
.default-button:hover {
|
||||
background: rgba(255, 72, 0, 0.2);
|
||||
border-color: rgba(255, 25, 0, 0.3);
|
||||
background: var(--background-color);
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.important-button {
|
||||
width: 120px;
|
||||
height: 40px;
|
||||
padding: 2px;
|
||||
background: rgba(100, 0, 0, 0.4);
|
||||
border: 1px solid rgba(200, 25, 0);
|
||||
border-radius: 4px;
|
||||
color: #eee;
|
||||
cursor: pointer;
|
||||
color: var(--text-color);
|
||||
font-size: 16px;
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
@@ -208,6 +210,10 @@ body {
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.longer-button {
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
.search-container {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
@@ -221,7 +227,7 @@ body {
|
||||
border: none;
|
||||
border-radius: 50px;
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
color: #fff;
|
||||
color: var(--text-color);
|
||||
outline: none;
|
||||
transition: background 0.3s, width 0.3s;
|
||||
}
|
||||
@@ -238,20 +244,15 @@ body {
|
||||
transform: translateY(-50%);
|
||||
background: none;
|
||||
border: none;
|
||||
color: #fff;
|
||||
color: var(--text-color);
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mods-container {
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
transform: translateY(50px);
|
||||
background: rgba(30, 30, 30, 0.8);
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
box-shadow: 0 0 50px rgba(30, 30, 30, 0.15);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
@@ -262,12 +263,10 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
}
|
||||
|
||||
.mod-container:not(:last-child) {
|
||||
border-bottom: 1px solid rgba(150, 25, 0, 0.5);
|
||||
|
||||
border-bottom: 1px solid var(--secondary-color);
|
||||
}
|
||||
|
||||
.mod-text {
|
||||
@@ -275,17 +274,10 @@ body {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.mod-actions {
|
||||
margin-top: 12px;
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.mod-icon {
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
object-fit: contain;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
@@ -293,16 +285,17 @@ body {
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: #101010;
|
||||
background: var(--transparent-grey);
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgb(120, 25, 0);
|
||||
border-radius: 7px;
|
||||
background: var(--primary-color);
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: rgb(170, 25, 0);
|
||||
background: var(--secondary-color);
|
||||
}
|
||||
|
||||
.transparent-text {
|
||||
@@ -316,10 +309,36 @@ body {
|
||||
}
|
||||
|
||||
.link {
|
||||
color: #ffffff;
|
||||
color: var(--text-color);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.link:hover {
|
||||
color: #ff6b6b;
|
||||
color: var(--secondary-color);
|
||||
}
|
||||
|
||||
.themes-div {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.themes-menu {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background: var(--darker-transparent-black);
|
||||
border: 1px solid var(--secondary-color);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.themes-menu.show {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.themes-menu li {
|
||||
padding: 6px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.themes-menu li:hover {
|
||||
background: var(--background-color);
|
||||
}
|
||||
Reference in New Issue
Block a user