fix: replace navbar with responsive desktop and mobile layout
هذا الالتزام موجود في:
270
styles.css
270
styles.css
@@ -123,42 +123,94 @@ textarea {
|
||||
.site-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
z-index: 1000;
|
||||
backdrop-filter: blur(18px);
|
||||
background: rgba(255, 251, 247, 0.72);
|
||||
background: rgba(255, 251, 247, 0.88);
|
||||
border-bottom: 1px solid rgba(43, 27, 27, 0.08);
|
||||
}
|
||||
|
||||
.header-shell {
|
||||
position: relative;
|
||||
min-height: 78px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
min-height: 74px;
|
||||
text-decoration: none;
|
||||
color: var(--text-main);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 16px;
|
||||
box-shadow: var(--shadow-soft);
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.brand-copy {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 28px;
|
||||
font-weight: 800;
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.brand-copy small {
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
padding: 12px 16px;
|
||||
border-radius: 14px;
|
||||
color: var(--text-muted);
|
||||
font-weight: 700;
|
||||
transition: background 0.2s ease, color 0.2s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nav a:hover {
|
||||
background: var(--primary-soft);
|
||||
color: var(--primary-dark);
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
flex: 0 0 auto;
|
||||
display: none;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
box-shadow: 0 14px 34px rgba(74, 30, 30, 0.08);
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
transition: transform 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
|
||||
.menu-toggle:hover {
|
||||
transform: translateY(-1px);
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.menu-toggle span {
|
||||
@@ -181,77 +233,6 @@ textarea {
|
||||
transform: translateY(-7px) rotate(-45deg);
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
color: var(--text-main);
|
||||
margin-inline-start: auto;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
order: 2;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 16px;
|
||||
box-shadow: var(--shadow-soft);
|
||||
}
|
||||
|
||||
.brand-copy {
|
||||
order: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.1;
|
||||
align-items: flex-end;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.brand-copy small {
|
||||
color: var(--text-muted);
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.82;
|
||||
}
|
||||
|
||||
.nav {
|
||||
position: absolute;
|
||||
top: calc(100% - 6px);
|
||||
right: 0;
|
||||
min-width: 240px;
|
||||
display: none;
|
||||
grid-auto-flow: row;
|
||||
gap: 6px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
background: rgba(255, 251, 247, 0.96);
|
||||
box-shadow: 0 24px 50px rgba(43, 27, 27, 0.12);
|
||||
}
|
||||
|
||||
.nav.is-open {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
padding: 12px 14px;
|
||||
border-radius: 14px;
|
||||
color: var(--text-muted);
|
||||
font-weight: 700;
|
||||
transition: color 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
|
||||
.nav a:hover {
|
||||
background: var(--primary-soft);
|
||||
color: var(--primary-dark);
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding-top: 56px;
|
||||
}
|
||||
@@ -1140,7 +1121,118 @@ textarea {
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.header-shell {
|
||||
min-height: 72px;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.brand-copy small {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nav {
|
||||
position: absolute;
|
||||
top: calc(100% + 10px);
|
||||
right: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 6px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
background: rgba(255, 251, 247, 0.98);
|
||||
box-shadow: 0 24px 50px rgba(43, 27, 27, 0.12);
|
||||
}
|
||||
|
||||
.nav.is-open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
width: 100%;
|
||||
padding: 14px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 901px) {
|
||||
.nav {
|
||||
display: flex !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.header-shell {
|
||||
min-height: 72px;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.brand-name {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.brand-copy small {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nav {
|
||||
position: absolute;
|
||||
top: calc(100% + 10px);
|
||||
right: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 6px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
background: rgba(255, 251, 247, 0.98);
|
||||
box-shadow: 0 24px 50px rgba(43, 27, 27, 0.12);
|
||||
}
|
||||
|
||||
.nav.is-open {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.nav a {
|
||||
width: 100%;
|
||||
padding: 14px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 901px) {
|
||||
.nav {
|
||||
display: flex !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
|
||||
.section {
|
||||
padding: 72px 0;
|
||||
}
|
||||
@@ -1204,6 +1296,8 @@ textarea {
|
||||
.header-shell {
|
||||
min-height: 68px;
|
||||
gap: 10px;
|
||||
grid-template-columns: 46px 1fr 46px;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم