dc09.ru-old/css/style.css

204 lines
3.6 KiB
CSS
Raw Normal View History

2021-07-23 10:00:33 +03:00
@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;
}
2020-11-19 15:30:45 +03:00
body {
2021-07-23 10:00:33 +03:00
width: 100%;
height: 100%;
overflow: hidden;
2020-11-19 15:30:45 +03:00
padding: 0;
2021-07-23 10:00:33 +03:00
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));
2021-07-23 10:00:33 +03:00
}
img.logo {
width: 4rem;
cursor: default;
pointer-events: none;
2020-11-19 15:30:45 +03:00
}
.menu {
top: 0;
left: 0;
2021-07-23 10:00:33 +03:00
margin: 10px;
border-radius: 5px;
position: fixed;
background-color: var(--topmenu-bg);
2021-07-23 10:00:33 +03:00
z-index: 998;
2020-11-19 15:30:45 +03:00
}
2021-07-23 10:00:33 +03:00
.top-menu {
margin: 0;
padding: 0;
2020-11-19 15:30:45 +03:00
list-style: none;
2021-07-23 10:00:33 +03:00
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);
2021-07-23 10:00:33 +03:00
}
.context-menu-like ul {
2020-11-19 15:30:45 +03:00
margin: 0;
padding: 0;
2021-07-23 10:00:33 +03:00
}
.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;
2020-11-19 15:30:45 +03:00
text-decoration: none;
2021-07-23 10:00:33 +03:00
font-family: 'Montserrat', sans-serif;
font-size: 1.3rem;
2020-11-19 15:30:45 +03:00
}
2021-07-23 10:00:33 +03:00
.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;
2020-11-19 15:30:45 +03:00
}
2021-07-23 10:00:33 +03:00
#item-minecraft {
padding-bottom: 12px;
2020-11-19 15:30:45 +03:00
}
2021-07-23 10:00:33 +03:00
span.minecraft-text {
font-family: 'Minecraft';
font-size: 1.25rem;
2020-11-19 15:30:45 +03:00
}
2021-07-23 10:00:33 +03:00
.popup {
z-index: 999;
2021-02-20 09:44:09 +03:00
}
2020-11-19 15:30:45 +03:00
2021-07-23 10:00:33 +03:00
.card-wrapper {
position: absolute;
border-radius: 10px;
color: #fff;
font-family: 'Montserrat', sans-serif;
2020-11-19 15:30:45 +03:00
}
2021-07-23 10:00:33 +03:00
.card { margin: 10px; }
2021-02-20 09:44:09 +03:00
2021-07-23 10:00:33 +03:00
.about-card-wrapper {
margin-top: 18%;
margin-left: 65%;
2021-02-20 09:44:09 +03:00
}
2021-07-23 10:00:33 +03:00
.msg-wrapper {
margin-top: 5%;
margin-left: 65%;
2021-02-20 09:44:09 +03:00
}
2021-07-23 10:00:33 +03:00
.card h1 {
margin: 0 0 0 0;
padding: 0;
font-size: 1.8em;
font-weight: 700;
2021-02-20 09:44:09 +03:00
}
2021-07-23 10:00:33 +03:00
.card h2 {
margin: 0 0 10px 0;
padding: 0;
font-size: 1.3em;
font-weight: 500;
2021-02-20 09:44:09 +03:00
}
2021-07-23 10:00:33 +03:00
.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;
}
2021-07-23 10:00:33 +03:00
.space-obj {
position: fixed;
text-align: center;
width: 100%;
height: 100%;
z-index: 997;
2021-02-20 09:44:09 +03:00
}
2021-07-23 10:00:33 +03:00
.space-obj > img {
animation: rotate 480s linear 0s infinite normal;
2021-07-23 10:00:33 +03:00
/* 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); }
2021-02-20 09:44:09 +03:00
}