fixing: sidebar padding

This commit is contained in:
zhadaarsita 2025-11-08 03:46:55 +07:00
parent d05c32cb6b
commit 789e47d808
2 changed files with 96 additions and 105 deletions

View File

@ -4,17 +4,14 @@
// UTILITIES (GENERATED FROM MAPS)
// ===================================
// Generator otomatis untuk variant warna (background light, soft, alert)
@each $color,
$value in $theme-colors {
@each $color, $value in $theme-colors {
.bg-#{$color}-light {
background-color: rgba($value, 0.25) !important;
}
.bg-#{$color}-soft {
background-color: rgba($value, 0.25);
color: $value;
}
.alert-#{$color} {
background-color: rgba($value, 0.2);
color: color.adjust($value, $lightness: -25%);
@ -38,44 +35,43 @@ html {
.navbar-brand {
font-size: 1.25rem;
i {
font-size: 1.5rem;
}
@media (max-width: 575.98px) {
font-size: 1.1rem;
i {
font-size: 1.25rem;
}
}
}
.navbar-toggler {
padding: 0.25rem 0.5rem;
&:focus {
box-shadow: none;
}
}
.navbar-nav {
.nav-link {
padding: 0.5rem 1rem;
color: #49769F;
&:hover,
&.active {
color: #0C5495;
color: #49769F;
&:hover, &.active {
color: #0C5495;
}
@media (max-width: 991.98px) {
padding: 0.5rem 0;
}
}
}
@media (max-width: 991.98px) {
.navbar-collapse {
margin-top: 1rem;
@ -83,19 +79,19 @@ html {
border-top: 1px solid rgba(0, 0, 0, 0.1);
.navbar-nav {
text-align: left !important;
width: 100%;
text-align: left !important;
width: 100%;
}
.nav-item {
margin: 0 !important;
text-align: left !important;
text-align: left !important;
}
.nav-link {
width: 100%;
width: 100%;
justify-content: start;
padding-left: 0.75rem;
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
@ -104,11 +100,13 @@ html {
// Hero Section
.landing-hero-section {
background: linear-gradient(135deg,
#0C5495 0%,
color.adjust(#0C5495, $lightness: 10%) 100%);
background: linear-gradient(
135deg,
#0C5495 0%,
color.adjust(#0C5495, $lightness: 10%) 100%
);
padding: 60px 0;
@media (min-width: 992px) {
padding: 100px 0;
}
@ -116,12 +114,10 @@ html {
.btn-hero-solid {
background-color: #fff !important;
border-color: #fff !important;
color: $primary !important;
/* Menggunakan warna primary Anda #0C5495 */
color: $primary !important; /* Menggunakan warna primary Anda #0C5495 */
&:hover {
background-color: lighten($primary, 70%) !important;
/* Sedikit keabu-abuan saat hover */
background-color: lighten($primary, 70%) !important; /* Sedikit keabu-abuan saat hover */
border-color: lighten($primary, 70%) !important;
color: $primary !important;
}
@ -136,15 +132,15 @@ html {
display: flex;
align-items: center;
justify-content: center;
i {
font-size: 5rem;
}
@media (min-width: 1200px) {
width: 220px;
height: 220px;
i {
font-size: 6rem;
}
@ -164,7 +160,7 @@ html {
line-height: 1.4;
min-height: 2.8rem;
font-size: 0.9rem;
@media (max-width: 575.98px) {
font-size: 0.85rem;
min-height: 2.4rem;
@ -174,15 +170,15 @@ html {
// Stat Card
.landing-stat-card {
transition: all 0.3s ease;
&:hover {
transform: translateY(-3px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}
h2 {
font-size: 2rem;
@media (min-width: 768px) {
font-size: 2.5rem;
}
@ -191,11 +187,13 @@ html {
// CTA Section
.landing-cta-section {
background: linear-gradient(135deg,
#0C5495 0%,
color.adjust(#0C5495, $lightness: 10%) 100%);
background: linear-gradient(
135deg,
#0C5495 0%,
color.adjust(#0C5495, $lightness: 10%) 100%
);
border-radius: 1rem;
@media (min-width: 768px) {
border-radius: 1.5rem;
}
@ -209,7 +207,6 @@ html {
.card {
box-shadow: $card-box-shadow;
.card-header {
background-color: #fff;
border-bottom: 1px solid rgba(map-get($grays, "dark"), 0.1);
@ -219,7 +216,6 @@ html {
.alert {
border-radius: $border-radius;
box-shadow: $shadow-sm;
.alert-icon {
width: 24px;
display: flex;
@ -233,13 +229,11 @@ html {
border: none;
border-radius: $border-radius-lg;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
.modal-header,
.modal-footer {
border-color: rgba(map-get($grays, "dark"), 0.1);
padding: 1.5rem;
}
.modal-title {
color: map-get($grays, "dark");
font-weight: 700;
@ -381,13 +375,10 @@ body {
.sidebar.bg-primary {
.nav-link {
color: rgba(255, 255, 255, 0.85);
i {
color: rgba(255, 255, 255, 0.85);
}
i { color: rgba(255, 255, 255, 0.85); }
&.py-1 {
color: rgba(255, 255, 255, 0.7);
color: rgba(255, 255, 255, 0.7);
}
}
@ -395,20 +386,14 @@ body {
.nav-link.py-1:hover {
background: rgba(255, 255, 255, 0.05);
color: #fff;
i {
color: #fff;
}
i { color: #fff; }
}
.nav-link.active {
background: rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.1);
color: #fff;
font-weight: 600;
i {
color: #fff;
}
i { color: #fff; }
}
}
@ -622,7 +607,6 @@ nav {
width: 40px;
height: 40px;
border-radius: 10px;
i {
font-size: 1.2rem;
}
@ -637,11 +621,12 @@ nav {
.book-cover {
transition: $transition;
border-radius: $border-radius-sm;
&-container {
background: linear-gradient(135deg,
rgba(map-get($grays, "light"), 0.5) 0%,
rgba(map-get($grays, "light"), 0.8) 100%);
background: linear-gradient(
135deg,
rgba(map-get($grays, "light"), 0.5) 0%,
rgba(map-get($grays, "light"), 0.8) 100%
);
border-radius: $border-radius-sm 0 0 $border-radius-sm;
}
}
@ -650,7 +635,6 @@ nav {
.section-header {
padding-bottom: 15px;
border-bottom: 2px solid map-get($grays, "light");
h5 {
color: map-get($grays, "dark");
font-weight: 700;
@ -661,14 +645,12 @@ nav {
.empty-state {
text-align: center;
padding: 3rem 1rem;
i {
font-size: 4rem;
color: map-get($grays, "dark");
margin-bottom: 1rem;
opacity: 0.25;
}
p {
color: map-get($grays, "dark");
opacity: 0.7;
@ -684,17 +666,13 @@ nav {
--bs-btn-border-color: #{map-get($theme-colors, "primary")};
--bs-btn-hover-color: #{map-get($grays, "dark")};
--bs-btn-hover-bg: #{color.adjust(
map-get($theme-colors, "primary"),
$lightness: -5%)
}
;
--bs-btn-hover-border-color: #{color.adjust(
map-get($theme-colors, "primary"),
$lightness: -7.5%)
}
;
map-get($theme-colors, "primary"),
$lightness: -5%
)};
--bs-btn-hover-border-color: #{color.adjust(
map-get($theme-colors, "primary"),
$lightness: -7.5%
)};
}
// Text clamp untuk truncate multi line
@ -705,11 +683,9 @@ $lightness: -7.5%)
overflow: hidden;
line-height: 1.4;
}
.line-clamp-2 {
-webkit-line-clamp: 2;
}
.line-clamp-3 {
-webkit-line-clamp: 3;
}
@ -718,16 +694,13 @@ $lightness: -7.5%)
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: map-get($grays, "light");
border-radius: 3px;
}
::-webkit-scrollbar-thumb {
background: rgba(map-get($grays, "dark"), 0.25);
border-radius: 3px;
&:hover {
background: rgba(map-get($grays, "dark"), 0.4);
}
@ -801,7 +774,6 @@ $lightness: -7.5%)
transform: translateY(-2px);
border-color: map-get($theme-colors, "primary");
box-shadow: $shadow-md;
.book-cover {
transform: scale(1.03);
}
@ -834,9 +806,11 @@ $lightness: -7.5%)
// Background gradient hero section
.hero-gradient {
background: linear-gradient(135deg,
map-get($theme-colors, "primary") 0%,
color.adjust(map-get($theme-colors, "primary"), $lightness: 10%) 100%);
background: linear-gradient(
135deg,
map-get($theme-colors, "primary") 0%,
color.adjust(map-get($theme-colors, "primary"), $lightness: 10%) 100%
);
}
// Card untuk pilih role (admin/user)
@ -856,9 +830,11 @@ $lightness: -7.5%)
// Panel info di halaman auth
.info-panel {
background: linear-gradient(135deg,
map-get($theme-colors, "primary") 0%,
color.adjust(map-get($theme-colors, "primary"), $lightness: 10%) 100%);
background: linear-gradient(
135deg,
map-get($theme-colors, "primary") 0%,
color.adjust(map-get($theme-colors, "primary"), $lightness: 10%) 100%
);
}
// Panel kiri auth (logo dan branding)
@ -870,13 +846,21 @@ $lightness: -7.5%)
}
.auth-branding {
max-width: 450px;
max-width: 500px;
.auth-logo {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
margin-bottom: 1.5rem;
h1 {
font-size: 3rem;
font-weight: 700;
color: #fff;
margin: 0;
padding-bottom: 5px;
}
}
}
@ -901,17 +885,26 @@ $lightness: -7.5%)
// Responsive auth pages
@media (max-width: 991.98px) {
// Panel Kiri Auth (Di Mobile)
.auth-left-panel {
background-image: none !important;
background-color: map-get($theme-colors, "primary") !important;
background-color: #0C5495;
position: absolute !important;
min-height: 40vh;
}
.d-lg-none {
padding-top: 20vh !important;
top: 5vh !important ;
}
.auth-branding {
.auth-logo {
.icon-circle {
width: 80px !important;
height: 80px !important;
border-radius: 20px !important;
}
h1 {
font-size: 2.5rem;
}
}
}
}
@ -921,7 +914,6 @@ $lightness: -7.5%)
// Override styling DataTables
.dataTables_wrapper {
.dataTables_length,
.dataTables_filter,
.dataTables_info,
@ -938,7 +930,8 @@ $lightness: -7.5%)
&:focus {
outline: none;
border-color: map-get($theme-colors, "primary");
box-shadow: 0 0 0 0.2rem rgba(map-get($theme-colors, "primary"), 0.25);
box-shadow: 0 0 0 0.2rem
rgba(map-get($theme-colors, "primary"), 0.25);
}
}
@ -953,7 +946,6 @@ $lightness: -7.5%)
// Responsive DataTables untuk mobile
@media screen and (max-width: 576px) {
.dataTables_wrapper {
.dataTables_length,
.dataTables_filter {
text-align: center;
@ -966,7 +958,6 @@ $lightness: -7.5%)
margin-top: 1rem;
}
}
table.dataTable td {
white-space: normal !important;
}
@ -1025,4 +1016,4 @@ $lightness: -7.5%)
gap: 0.25rem;
}
}
}
}

View File

@ -48,7 +48,7 @@
</div>
</div>
<div class="d-lg-none position-relative" style="z-index: 10; padding-top: 50vh;">
<div class="d-lg-none position-relative" style="z-index: 10; padding-top: 20vh;">
<div class="container">
<div class="auth-card mx-3">
{{ $slot }}