1
0
mirror of https://github.com/lexogrine/cs2-react-hud.git synced 2026-05-03 19:53:11 +02:00

Updated setup to vite and moved to hooks instead of class

This commit is contained in:
Hubert Walczak
2023-11-02 12:11:03 +01:00
parent 44f173f23c
commit f88baa5fc9
90 changed files with 7411 additions and 2706 deletions
+58 -46
View File
@@ -1,57 +1,69 @@
@import "fonts/montserrat.css";
@import "fonts/stratum2.css";
html,
body,
#root {
width: 100%;
height: 100%;
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 0;
font-family: 'Stratum2', 'Montserrat', 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/*background-image: url('./assets/bg.png');/**/
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
@font-face {
font-family: 'Louis George Cafe';
src: local('Louis George Cafe'), url('./fonts/Louis George Cafe.ttf') format('truetype');
h1 {
font-size: 3.2em;
line-height: 1.1;
}
@font-face {
font-family: 'Rounded_Elegance';
src: local('Rounded_Elegance'), url('./fonts/Rounded_Elegance.ttf') format('truetype');
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
.layout {
width: 100%;
height: 100%;
perspective: 500px;
}
:root {
--main-panel-color: rgba(12, 15, 18, 0.85);
--sub-panel-color: rgba(0, 0, 0, 0.83);
--white-dull: rgba(10, 5, 5, 0.25);
--white-full: rgba(250, 250, 250, 1);
--white-half: rgba(250, 250, 250, 0.5);
--color-gray: rgba(191, 191, 191, 1.0);
--color-moneys: #a7d32e;
--dev-purple: rgba(200, 0, 255, 1);
--color-t: #c19511;
--color-ct: #5788a8;
--color-new-t: #f0c941;
--color-new-ct: #5ab8f4;
--color-bomb: #f22222;
--color-defuse: #2222f2;
}