288 lines · 5.5 KB · CSS
RawDownload
/*---------------------------------------------- * 0. Global Reset & Base Styles *----------------------------------------------*/ * {    margin: 0;    padding: 0;    box-sizing: border-box;} body {    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    background-color: #fff;    color: #333;    line-height: 1.6;    display: flex;    flex-direction: column;    min-height: 100vh;} /*---------------------------------------------- * 1. Left Sidebar *----------------------------------------------*/body::before {    content: "";    position: fixed;    top: 0;    left: 0;    width: 40px;    height: 100%;    background-color: #e0e0e0;} /*---------------------------------------------- * 2. Header Section *----------------------------------------------*/header {    text-align: left;    background-color: #f9f9f9;    padding: 20px 50px;    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);} header h1 {    font-size: 32px;    color: #333;    font-family: 'Segoe UI', serif;    margin-bottom: 5px;} header p {    font-size: 14px;    color: #666;    font-family: 'Segoe UI', sans-serif;    line-height: 1.4;} /*---------------------------------------------- * 3. Navigation Bar *----------------------------------------------*/.navbar {    background-color: #fff;    padding-left: 50px;    padding-top: 10px;    padding-bottom: 10px;    border-bottom: 1px solid #e0e0e0;    margin-top: 10px;} .navbar ul {    list-style-type: none;    display: flex;    gap: 20px;    padding: 10px 0;} .navbar ul li {    margin-right: 15px;} .navbar ul li a {    color: #333;    font-size: 16px;    text-decoration: none;    font-weight: 400;    transition: color 0.3s ease;} .navbar ul li a:hover,.navbar ul li a:focus,.navbar ul li a:active {    color: #555;} /*---------------------------------------------- * 4. Content Wrapper *----------------------------------------------*/.content-wrapper {    display: flex;    flex-direction: column;    margin: 20px auto;    background-color: #fff;    border-radius: 8px;    text-align: left;    margin-left: 70px;    max-width: 900px;    padding: 20px;} /*---------------------------------------------- * 5. Resources Section *----------------------------------------------*/.resources-section {    margin: 20px 0;} .resources-section h2 {    font-size: 24px;    margin-bottom: 30px;    font-weight: 700;    text-align: center;    color: #666;} .resource-category {    margin-bottom: 30px;} .resource-category h3 {    font-size: 20px;    margin-bottom: 10px;    font-weight: 600;    color: #4d4d4f;} /*---------------------------------------------- * 6. Resource Cards *----------------------------------------------*/.resource-card {    display: flex;    flex-direction: column;    padding: 20px;    background-color: #f9f9f9;    border: 1px solid #e0e0e0;    border-radius: 8px;    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);} .resource-card ul {    list-style-type: none;} .resource-card ul li {    margin-bottom: 8px;} .resource-card ul li a {    color: #666;    text-decoration: none;    font-size: 16px;    font-weight: 400;    transition: color 0.3s ease;} .resource-card ul li a:hover {    color: #444;} /*---------------------------------------------- * 7. Divider *----------------------------------------------*/hr {    border: none;    border-top: 1px dashed #ccc;    margin: 20px 0;} /*---------------------------------------------- * 8. Footer Section *----------------------------------------------*/footer {    position: relative;    text-align: center;    padding: 20px;    background-color: #f5f5f5;    color: #666;    border-top: 1px solid #e0e0e0;    margin-top: 50px;} /*---------------------------------------------- * 9. Responsive Design *----------------------------------------------*/@media (max-width: 768px) {    .navbar ul {        flex-direction: column;        padding-left: 0;    }     .content-wrapper {        margin-left: 20px;        max-width: 100%;    }     .resource-card {        padding: 15px;    }     .resource-category h3 {        font-size: 18px;    }     .resource-card ul li a {        font-size: 14px;    }} /*---------------------------------------------- * 10. Dark Mode Styles *----------------------------------------------*/@media (prefers-color-scheme: dark) {    body {        background-color: #121212;        color: #e0e0e0;    }     header {        background-color: #1f1f1f;        color: #e0e0e0;        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);    }     header h1, header p {        color: #e0e0e0;    }     .navbar {        background-color: #1f1f1f;        border-bottom: 1px solid #444;    }     .navbar ul li a {        color: #e0e0e0;    }     .navbar ul li a:hover,    .navbar ul li a:focus,    .navbar ul li a:active {        color: #fff;    }     .content-wrapper {        background-color: #1e1e1e;        color: #e0e0e0;        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);    }     .resources-section h2 {        color: #e0e0e0;    }     .resource-category h3 {        color: #f0f0f0;    }     .resource-card {        background-color: #2c2c2c;        border: 1px solid #444;        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);    }     .resource-card ul li a {        color: #e0e0e0;    }     .resource-card ul li a:hover {        color: #fff;    }     hr {        border-top: 1px dashed #444;    }     footer {        background-color: #1f1f1f;        color: #e0e0e0;        border-top: 1px solid #444;    }}