revisi_skripsi / assets /style.css
aslasacacc's picture
The real final commit, clean start
4253e50
/* assets/style.css */
/* ================================================
Global Styles & Resets
================================================ */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
/* ================================================
Sidebar Styling
================================================ */
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 15rem;
padding: 2rem 1rem;
z-index: 1030;
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.sidebar-title {
font-size: 1.3rem;
margin-bottom: 1rem;
}
.sidebar-link {
display: block;
padding: 0.7rem 1rem;
text-decoration: none;
margin-bottom: 0.5rem;
border-radius: 0.3rem;
transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar-link.active,
.sidebar-link--active {
font-weight: 500;
}
/* --- Profil di Sidebar --- */
.sidebar-profile-container {
border-bottom-width: 1px;
border-bottom-style: solid;
}
.sidebar-profile-avatar,
.sidebar-profile-avatar-icon {
width: 32px;
height: 32px;
min-width: 32px;
min-height: 32px;
border-radius: 50%;
vertical-align: middle;
}
.sidebar-profile-avatar {
object-fit: cover;
border-width: 1px;
border-style: solid;
}
.sidebar-profile-avatar-icon {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
border-width: 1px;
border-style: solid;
border-color: transparent;
}
.sidebar-profile-text {
font-weight: 500;
font-size: 0.9rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: calc(100% - 40px - 0.5rem);
}
/* ================================================
Page Content Styling
================================================ */
#page-content {
margin-left: 15rem;
padding: 2rem;
min-height: 100vh;
width: calc(100% - 15rem);
position: relative;
}
/* ================================================
Tema Terang Styles (Default & Overrides)
================================================ */
body.theme-light .sidebar {
background-color: #f8f9fa;
color: #212529;
border-right: 1px solid #dee2e6;
}
body.theme-light .sidebar-title {
color: #0d6efd;
}
body.theme-light .sidebar-link {
color: #495057;
}
body.theme-light .sidebar-link:hover {
background-color: #e9ecef;
color: #0056b3;
}
body.theme-light .sidebar-link.active,
body.theme-light .sidebar-link--active {
background-color: #0d6efd;
color: white;
}
body.theme-light .sidebar-profile-container {
border-bottom-color: #dee2e6;
}
body.theme-light .sidebar-profile-avatar {
border-color: #adb5bd;
}
body.theme-light .sidebar-profile-avatar-icon {
background-image: url('/assets/default_avatar_light.jpg');
border-color: #adb5bd;
}
/* ================================================
Tema Gelap Styles
================================================ */
body.theme-dark .sidebar {
background-color: #212529;
color: #f8f9fa;
border-right: 1px solid #343a40;
}
body.theme-dark .sidebar-title {
color: #6ea8fe;
}
body.theme-dark .sidebar-link {
color: #adb5bd;
}
body.theme-dark .sidebar-link:hover {
background-color: #343a40;
color: #ffffff;
}
body.theme-dark .sidebar-link.active,
body.theme-dark .sidebar-link--active {
background-color: #0d6efd;
color: white;
}
body.theme-dark .sidebar-profile-container {
border-bottom-color: #495057;
}
body.theme-dark .sidebar-profile-avatar {
border-color: #6c757d;
}
body.theme-dark .sidebar-profile-avatar-icon {
background-image: url('/assets/default_avatar_dark.jpg');
border-color: #6c757d;
}
/* --- Styling Komponen Form untuk Tema Gelap --- */
body.theme-dark .Select-control { /* Kontainer utama dcc.Dropdown */
background-color: #454d55; /* Sedikit lebih terang dari #212529 atau #343a40 */
border: 1px solid #5a6268;
}
body.theme-dark .Select-control .Select-value-label,
body.theme-dark .Select-control .Select-placeholder {
color: #e9ecef !important; /* Warna teks terang */
}
body.theme-dark .Select-control .Select-arrow-zone .Select-arrow {
border-top-color: #e9ecef;
}
body.theme-dark .Select-menu-outer { /* Menu pilihan dropdown */
background-color: #3e444a;
border: 1px solid #5a6268;
}
body.theme-dark .Select-menu-outer .Select-option {
color: #f8f9fa;
background-color: #3e444a;
}
body.theme-dark .Select-menu-outer .Select-option.is-focused {
background-color: #495057;
color: #ffffff;
}
body.theme-dark .Select-menu-outer .Select-option.is-selected {
background-color: #0d6efd;
color: white;
}
/* Untuk dcc.Checklist di tema gelap */
body.theme-dark .rc-checkbox-inner,
body.theme-dark .rc-checkbox-input {
border-color: #adb5bd !important;
}
body.theme-dark .rc-checkbox-checked .rc-checkbox-inner {
background-color: #0d6efd;
border-color: #0d6efd;
}
body.theme-dark .rc-checkbox-checked .rc-checkbox-inner::after {
border-color: white; /* Warna tanda centang */
}
/* Jika label text dari dcc.Checklist juga perlu diubah warnanya (biasanya sudah ikut warna body) */
/* body.theme-dark .your-checklist-label-wrapper-class label {
color: #f8f9fa;
} */
/* Placeholder untuk dbc.Input jika menggunakan tema Bootstrap */
body.theme-dark .form-control::placeholder {
color: #adb5bd;
opacity: 1;
}
body.theme-dark .form-control:-ms-input-placeholder {
color: #adb5bd;
}
body.theme-dark .form-control::-ms-input-placeholder {
color: #adb5bd;
}
/* ================================================
Penyesuaian Font Kartu Beranda & Judul Halaman
================================================ */
/* ... (kode lain di atasnya) ... */
.card .card-body h2,
.card .card-body .h2,
.card .card-body .main-content-text { /* Class kustom jika perlu */
font-size: 1rem; /* KONTEN UTAMA LEBIH KECIL DARI JUDUL KARTU */
font-weight: 400;
line-height: 1.4;
margin-bottom: 0.25rem;
color: #ffffff; /* DIUBAH: dari #333 menjadi putih */
}
body.theme-dark .card .card-body h2,
body.theme-dark .card .card-body .h2,
body.theme-dark .card .card-body .main-content-text {
color: #e9ecef; /* Warna konten untuk tema gelap (ini tetap) */
}
.card .card-body .sub-content-text, /* Class kustom untuk angka/detail */
.card-text small {
font-size: 0.9rem;
font-weight: 400;
color: #f0f0f0; /* DIUBAH: dari #555 menjadi putih pudar (atau #ffffff jika mau putih solid) */
display: block;
margin-top: 0.1rem;
}
body.theme-dark .card .card-body .sub-content-text,
body.theme-dark .card-text small {
color: #bbb; /* Warna konten untuk tema gelap (ini tetap) */
}
/* ================================================
Responsif (Sidebar & Page Content & Kartu)
================================================ */
@media (max-width: 768px) {
.sidebar {
position: relative;
width: 100%;
height: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
padding: 0.5rem 0.25rem;
border-right: none;
}
body.theme-light .sidebar {
border-bottom: 1px solid #dee2e6;
}
body.theme-dark .sidebar {
border-bottom: 1px solid #343a40;
}
.sidebar-title {
display: none;
}
.sidebar-profile-container {
display: none !important;
}
.sidebar-link {
padding: 0.6rem 0.5rem;
margin-bottom: 0;
flex-basis: auto;
flex-grow: 1;
text-align: center;
font-size: 0.85rem;
}
#page-content {
margin-left: 0;
width: 100%;
padding: 1rem;
}
/* Ukuran font kartu di mobile */
.card .card-title,
.card .card-header {
font-size: 1rem;
}
.card .card-body h2,
.card .card-body .h2,
.card .card-body .main-content-text {
font-size: 0.9rem;
}
.card .card-body .sub-content-text,
.card-text small {
font-size: 0.8rem;
}
}