mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-19 08:13:00 +05:30
266 lines
4.6 KiB
CSS
Executable File
266 lines
4.6 KiB
CSS
Executable File
header {
|
|
padding: 20px;
|
|
background-color: #ffffff;
|
|
position: fixed;
|
|
top: 0;
|
|
width: 97%;
|
|
z-index: 3;
|
|
}
|
|
|
|
.header.scrolled {
|
|
border-bottom: 1px solid #F2F2F2;
|
|
}
|
|
|
|
.header-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
max-width: 1120px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
font-weight: 500;
|
|
font-size: 18px;
|
|
color: #171C24;
|
|
margin-left: 0;
|
|
}
|
|
|
|
.logo-img {
|
|
width: 35px;
|
|
margin-left: -10px;
|
|
margin-right: 2px;
|
|
}
|
|
.version-number {
|
|
font-size: 10px;
|
|
font-family: system-ui, -apple-system;
|
|
font-weight: 550;
|
|
color: #697483;
|
|
background-color:#ECF0F5;
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
margin-left: 20px;
|
|
margin-bottom: -3px;
|
|
}
|
|
|
|
nav ul {
|
|
list-style: none;
|
|
display: flex;
|
|
gap: 6px;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
nav ul li a {
|
|
text-decoration: none;
|
|
color: #697483;
|
|
margin: 0 12px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
nav ul li a.active {
|
|
color: #BEC7D5;
|
|
}
|
|
|
|
nav ul li a:not(.disabled):hover {
|
|
color: #272B2F;
|
|
}
|
|
|
|
nav ul li a.disabled {
|
|
color: #BEC7D5;
|
|
pointer-events: none;
|
|
cursor: default;
|
|
}
|
|
|
|
@media (max-width: 1189px) {
|
|
.header-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
@media (max-width: 1023px) {
|
|
.header-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
max-width: 730px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
/* Hamburger Menu Styles */
|
|
.burger {
|
|
position: relative;
|
|
width: 25px;
|
|
height: 20px;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
display: none; /* Hidden by default */
|
|
}
|
|
|
|
.burger input {
|
|
display: none;
|
|
}
|
|
|
|
.burger span {
|
|
display: block;
|
|
position: absolute;
|
|
height: 2px;
|
|
width: 100%;
|
|
background: #000;
|
|
border-radius: 9px;
|
|
opacity: 1;
|
|
z-index: 2;
|
|
left: 0;
|
|
transform: rotate(0deg);
|
|
transition: .25s ease-in-out;
|
|
}
|
|
|
|
.burger span:nth-of-type(1) {
|
|
top: 0px;
|
|
transform-origin: left center;
|
|
}
|
|
|
|
.burger span:nth-of-type(2) {
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
transform-origin: left center;
|
|
}
|
|
|
|
.burger span:nth-of-type(3) {
|
|
top: 100%;
|
|
transform-origin: left center;
|
|
transform: translateY(-100%);
|
|
}
|
|
|
|
.burger input:checked ~ span:nth-of-type(1) {
|
|
transform: rotate(45deg);
|
|
top: 0px;
|
|
left: 5px;
|
|
}
|
|
|
|
.burger input:checked ~ span:nth-of-type(2) {
|
|
width: 0%;
|
|
opacity: 0;
|
|
}
|
|
|
|
.burger input:checked ~ span:nth-of-type(3) {
|
|
transform: rotate(-45deg);
|
|
top: 18px;
|
|
left: 5px;
|
|
}
|
|
|
|
.sidebar {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100vh;
|
|
background-color: #ffffff;
|
|
text-align: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
display: flex;
|
|
z-index: 1;
|
|
transition: right 0.3s ease-in-out;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Show sidebar when active */
|
|
.sidebar.active {
|
|
right: 0;
|
|
}
|
|
|
|
|
|
.sidebar ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.sidebar ul li a {
|
|
text-decoration: none;
|
|
color: #5e6775;
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
transition: color 0.3s;
|
|
}
|
|
|
|
.sidebar ul li a:hover {
|
|
color: #272B2F;
|
|
}
|
|
|
|
|
|
/* Adjust position of the hamburger menu */
|
|
@media (max-width: 768px) {
|
|
.burger {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
nav ul {
|
|
display: none;
|
|
}
|
|
.burger input:checked ~ nav ul {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
position: absolute;
|
|
top: 60px;
|
|
left: 0;
|
|
background: #ffffff;
|
|
border-top: 1px solid #F2F2F2;
|
|
padding: 10px 0;
|
|
}
|
|
.burger input:checked ~ .sidebar {
|
|
display: block;
|
|
left: 0;
|
|
}
|
|
.sidebar {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* Adjust the logo alignment */
|
|
@media (max-width: 768px) {
|
|
.logo {
|
|
flex-grow: 1;
|
|
}
|
|
}
|
|
@media (max-width: 700px) {
|
|
.burger {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
}
|
|
@media (max-width: 485px) {
|
|
.burger {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: 25px;
|
|
}
|
|
.sidebar {
|
|
width: 100%;
|
|
}
|
|
|
|
} |