Initial commit
This commit is contained in:
340
src/styles/styles.css
Normal file
340
src/styles/styles.css
Normal file
@@ -0,0 +1,340 @@
|
||||
:root {
|
||||
--gruvbox-bg: #282828;
|
||||
--gruvbox-bg-soft: #32302f;
|
||||
--gruvbox-bg-alt: #3c3836;
|
||||
--gruvbox-fg: #ebdbb2;
|
||||
--gruvbox-fg-alt: #d5c4a1;
|
||||
--gruvbox-red: #cc241d;
|
||||
--gruvbox-green: #98971a;
|
||||
--gruvbox-yellow: #d79921;
|
||||
--gruvbox-blue: #458588;
|
||||
--gruvbox-purple: #b16286;
|
||||
--gruvbox-aqua: #689d6a;
|
||||
--gruvbox-orange: #d65d0e;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background-color: var(--gruvbox-bg);
|
||||
color: var(--gruvbox-fg);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--gruvbox-blue);
|
||||
text-decoration: none;
|
||||
transition: color 0.3s;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--gruvbox-aqua);
|
||||
}
|
||||
|
||||
.container {
|
||||
display: grid;
|
||||
grid-template-columns: 250px 1fr;
|
||||
grid-template-rows: auto 1fr;
|
||||
grid-template-areas:
|
||||
"header header"
|
||||
"sidebar main";
|
||||
min-height: 100vh;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Header styles */
|
||||
header {
|
||||
grid-area: header;
|
||||
background-color: var(--gruvbox-bg-alt);
|
||||
padding: 1rem;
|
||||
border-bottom: 2px solid var(--gruvbox-orange);
|
||||
}
|
||||
|
||||
/* Navigation Menu with Dropdowns */
|
||||
.main-menu {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
list-style: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.main-menu > li {
|
||||
margin: 0 1.5rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.main-menu li a {
|
||||
color: var(--gruvbox-fg);
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
padding: 0.5rem 0;
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.main-menu > li > a::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background-color: var(--gruvbox-yellow);
|
||||
transition: width 0.3s;
|
||||
}
|
||||
|
||||
.main-menu > li > a:hover::after {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.main-menu > li > a:hover {
|
||||
color: var(--gruvbox-yellow);
|
||||
}
|
||||
|
||||
/* Dropdown menu */
|
||||
.dropdown, .submenu {
|
||||
position: absolute;
|
||||
background-color: var(--gruvbox-bg-alt);
|
||||
border: 1px solid var(--gruvbox-bg-soft);
|
||||
min-width: 180px;
|
||||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
|
||||
z-index: 100;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
top: 100%;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.has-dropdown:hover > .dropdown {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.dropdown > li, .submenu > li {
|
||||
padding: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dropdown > li > a, .submenu > li > a {
|
||||
padding: 0.7rem 1rem;
|
||||
font-size: 0.95rem;
|
||||
border-bottom: 1px solid var(--gruvbox-bg-soft);
|
||||
}
|
||||
|
||||
.dropdown > li:last-child > a, .submenu > li:last-child > a {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.dropdown > li > a:hover, .submenu > li > a:hover {
|
||||
background-color: var(--gruvbox-bg-soft);
|
||||
color: var(--gruvbox-yellow);
|
||||
}
|
||||
|
||||
/* Submenu (third level) */
|
||||
.submenu {
|
||||
left: 100%;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.has-submenu:hover > .submenu {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.has-submenu > a:after {
|
||||
content: '›';
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
/* Sidebar styles */
|
||||
.sidebar {
|
||||
grid-area: sidebar;
|
||||
background-color: var(--gruvbox-bg-soft);
|
||||
padding: 1.5rem;
|
||||
border-right: 1px solid var(--gruvbox-bg-alt);
|
||||
}
|
||||
|
||||
.sidebar-section {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.sidebar-section h2 {
|
||||
color: var(--gruvbox-yellow);
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 0.5rem;
|
||||
border-bottom: 1px solid var(--gruvbox-bg-alt);
|
||||
}
|
||||
|
||||
.news-item {
|
||||
margin-bottom: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px dashed var(--gruvbox-bg-alt);
|
||||
}
|
||||
|
||||
.news-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.news-date {
|
||||
font-size: 0.8rem;
|
||||
color: var(--gruvbox-aqua);
|
||||
}
|
||||
|
||||
.news-title {
|
||||
font-weight: 600;
|
||||
margin: 0.3rem 0;
|
||||
}
|
||||
|
||||
.important-links ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.important-links ul li {
|
||||
margin-bottom: 0.5rem;
|
||||
padding-left: 1rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.important-links ul li::before {
|
||||
content: '»';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: var(--gruvbox-orange);
|
||||
}
|
||||
|
||||
/* Main content styles */
|
||||
main {
|
||||
grid-area: main;
|
||||
padding: 2rem;
|
||||
background-color: var(--gruvbox-bg);
|
||||
}
|
||||
|
||||
.main-content h1 {
|
||||
color: var(--gruvbox-green);
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.main-content h2 {
|
||||
color: var(--gruvbox-yellow);
|
||||
margin: 1.5rem 0 1rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.main-content h3 {
|
||||
color: var(--gruvbox-blue);
|
||||
margin: 1.2rem 0 0.8rem;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.main-content p {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.main-content ul, .main-content ol {
|
||||
margin-bottom: 1rem;
|
||||
margin-left: 1.5rem;
|
||||
}
|
||||
|
||||
.main-content li {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
color: var(--gruvbox-yellow);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.cta-button {
|
||||
display: inline-block;
|
||||
background-color: var(--gruvbox-orange);
|
||||
color: var(--gruvbox-bg);
|
||||
padding: 0.7rem 1.5rem;
|
||||
border-radius: 4px;
|
||||
margin-top: 1.5rem;
|
||||
font-weight: 600;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.cta-button:hover {
|
||||
background-color: var(--gruvbox-red);
|
||||
color: var(--gruvbox-fg);
|
||||
}
|
||||
|
||||
.service-card {
|
||||
background-color: var(--gruvbox-bg-soft);
|
||||
border-radius: 4px;
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
border-left: 3px solid var(--gruvbox-blue);
|
||||
}
|
||||
|
||||
.service-card h3 {
|
||||
color: var(--gruvbox-aqua);
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* Responsive design */
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-areas:
|
||||
"header"
|
||||
"main"
|
||||
"sidebar";
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
border-right: none;
|
||||
border-top: 1px solid var(--gruvbox-bg-alt);
|
||||
}
|
||||
|
||||
/* Mobile menu adjustments */
|
||||
.main-menu {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.main-menu > li {
|
||||
margin: 0.5rem 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
position: static;
|
||||
width: 100%;
|
||||
display: none;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.has-dropdown:hover > .dropdown {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.submenu {
|
||||
position: static;
|
||||
width: 100%;
|
||||
display: none;
|
||||
box-shadow: none;
|
||||
border-left: 2px solid var(--gruvbox-aqua);
|
||||
}
|
||||
|
||||
.has-submenu:hover > .submenu {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user