Rewritten in less, new floating menu, separated js
This commit is contained in:
parent
e0629a750a
commit
e9f60236a4
16 changed files with 1663 additions and 535 deletions
203
css/style.css
203
css/style.css
|
@ -1,203 +0,0 @@
|
|||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap');
|
||||
@font-face {
|
||||
font-family: 'Minecraft';
|
||||
src: url('../fonts/minecraft.ttf') format('truetype');
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #001;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
--topmenu-bg: rgba(81, 75, 144, 0.4);
|
||||
--popups-rgb: 34;
|
||||
--popups-alpha: 0.8;
|
||||
--hint-alpha: 0.4;
|
||||
--popups-bg: rgba(var(--popups-rgb), var(--popups-rgb), var(--popups-rgb), var(--popups-alpha));
|
||||
}
|
||||
|
||||
img.logo {
|
||||
width: 4rem;
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.menu {
|
||||
top: 0;
|
||||
left: 0;
|
||||
margin: 10px;
|
||||
border-radius: 5px;
|
||||
position: fixed;
|
||||
background-color: var(--topmenu-bg);
|
||||
z-index: 998;
|
||||
}
|
||||
.top-menu {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
align-items: center;
|
||||
}
|
||||
.top-menu li {
|
||||
padding: 10px;
|
||||
}
|
||||
.top-menu li a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.context-menu-like {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
border-radius: 5px;
|
||||
background-color: var(--popups-bg);
|
||||
}
|
||||
.context-menu-like ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.context-menu-like li {
|
||||
padding: 5px;
|
||||
display: block;
|
||||
padding: 10px;
|
||||
border-radius: 5px;
|
||||
color: #fff;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
.context-menu-like li:hover {
|
||||
background-color: #444;
|
||||
}
|
||||
.context-menu-like li a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
.submenu {
|
||||
left: 0;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.submenu:before {
|
||||
content: "";
|
||||
border: solid transparent;
|
||||
position: absolute;
|
||||
left: 8px;
|
||||
bottom: 100%;
|
||||
border-bottom-color: #222;
|
||||
border-width: 9px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
#item-minecraft {
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
span.minecraft-text {
|
||||
font-family: 'Minecraft';
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.popup {
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.card-wrapper {
|
||||
position: absolute;
|
||||
border-radius: 10px;
|
||||
color: #fff;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
}
|
||||
.card { margin: 10px; }
|
||||
|
||||
.about-card-wrapper {
|
||||
margin-top: 18%;
|
||||
margin-left: 65%;
|
||||
}
|
||||
.msg-wrapper {
|
||||
margin-top: 5%;
|
||||
margin-left: 65%;
|
||||
}
|
||||
.card h1 {
|
||||
margin: 0 0 0 0;
|
||||
padding: 0;
|
||||
font-size: 1.8em;
|
||||
font-weight: 700;
|
||||
}
|
||||
.card h2 {
|
||||
margin: 0 0 10px 0;
|
||||
padding: 0;
|
||||
font-size: 1.3em;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.hint {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
top: 40%;
|
||||
left: 35%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: rgba(var(--popups-rgb),var(--popups-rgb),var(--popups-rgb),var(--hint-alpha));
|
||||
backdrop-filter: blur(4px);
|
||||
border-radius: 5px;
|
||||
opacity: 0;
|
||||
transition: opacity 0.4s ease-out 0s;
|
||||
z-index: 1000;
|
||||
}
|
||||
.hint > span {
|
||||
margin: 0;
|
||||
padding: 5px;
|
||||
color: #fff;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
font-size: 1.7em;
|
||||
}
|
||||
|
||||
#stars {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.space-obj {
|
||||
position: fixed;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 997;
|
||||
}
|
||||
.space-obj > img {
|
||||
animation: rotate 480s linear 0s infinite normal;
|
||||
|
||||
/* unselectable */
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
2
css/tuesday.min.css
vendored
2
css/tuesday.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue