fixing: sidebar padding
This commit is contained in:
parent
d05c32cb6b
commit
789e47d808
|
|
@ -4,17 +4,14 @@
|
||||||
// UTILITIES (GENERATED FROM MAPS)
|
// UTILITIES (GENERATED FROM MAPS)
|
||||||
// ===================================
|
// ===================================
|
||||||
// Generator otomatis untuk variant warna (background light, soft, alert)
|
// Generator otomatis untuk variant warna (background light, soft, alert)
|
||||||
@each $color,
|
@each $color, $value in $theme-colors {
|
||||||
$value in $theme-colors {
|
|
||||||
.bg-#{$color}-light {
|
.bg-#{$color}-light {
|
||||||
background-color: rgba($value, 0.25) !important;
|
background-color: rgba($value, 0.25) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-#{$color}-soft {
|
.bg-#{$color}-soft {
|
||||||
background-color: rgba($value, 0.25);
|
background-color: rgba($value, 0.25);
|
||||||
color: $value;
|
color: $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert-#{$color} {
|
.alert-#{$color} {
|
||||||
background-color: rgba($value, 0.2);
|
background-color: rgba($value, 0.2);
|
||||||
color: color.adjust($value, $lightness: -25%);
|
color: color.adjust($value, $lightness: -25%);
|
||||||
|
|
@ -65,8 +62,7 @@ html {
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
color: #49769F;
|
color: #49769F;
|
||||||
|
|
||||||
&:hover,
|
&:hover, &.active {
|
||||||
&.active {
|
|
||||||
color: #0C5495;
|
color: #0C5495;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -104,9 +100,11 @@ html {
|
||||||
|
|
||||||
// Hero Section
|
// Hero Section
|
||||||
.landing-hero-section {
|
.landing-hero-section {
|
||||||
background: linear-gradient(135deg,
|
background: linear-gradient(
|
||||||
|
135deg,
|
||||||
#0C5495 0%,
|
#0C5495 0%,
|
||||||
color.adjust(#0C5495, $lightness: 10%) 100%);
|
color.adjust(#0C5495, $lightness: 10%) 100%
|
||||||
|
);
|
||||||
padding: 60px 0;
|
padding: 60px 0;
|
||||||
|
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
|
|
@ -116,12 +114,10 @@ html {
|
||||||
.btn-hero-solid {
|
.btn-hero-solid {
|
||||||
background-color: #fff !important;
|
background-color: #fff !important;
|
||||||
border-color: #fff !important;
|
border-color: #fff !important;
|
||||||
color: $primary !important;
|
color: $primary !important; /* Menggunakan warna primary Anda #0C5495 */
|
||||||
/* Menggunakan warna primary Anda #0C5495 */
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: lighten($primary, 70%) !important;
|
background-color: lighten($primary, 70%) !important; /* Sedikit keabu-abuan saat hover */
|
||||||
/* Sedikit keabu-abuan saat hover */
|
|
||||||
border-color: lighten($primary, 70%) !important;
|
border-color: lighten($primary, 70%) !important;
|
||||||
color: $primary !important;
|
color: $primary !important;
|
||||||
}
|
}
|
||||||
|
|
@ -191,9 +187,11 @@ html {
|
||||||
|
|
||||||
// CTA Section
|
// CTA Section
|
||||||
.landing-cta-section {
|
.landing-cta-section {
|
||||||
background: linear-gradient(135deg,
|
background: linear-gradient(
|
||||||
|
135deg,
|
||||||
#0C5495 0%,
|
#0C5495 0%,
|
||||||
color.adjust(#0C5495, $lightness: 10%) 100%);
|
color.adjust(#0C5495, $lightness: 10%) 100%
|
||||||
|
);
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
|
|
@ -209,7 +207,6 @@ html {
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
box-shadow: $card-box-shadow;
|
box-shadow: $card-box-shadow;
|
||||||
|
|
||||||
.card-header {
|
.card-header {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-bottom: 1px solid rgba(map-get($grays, "dark"), 0.1);
|
border-bottom: 1px solid rgba(map-get($grays, "dark"), 0.1);
|
||||||
|
|
@ -219,7 +216,6 @@ html {
|
||||||
.alert {
|
.alert {
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
box-shadow: $shadow-sm;
|
box-shadow: $shadow-sm;
|
||||||
|
|
||||||
.alert-icon {
|
.alert-icon {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -233,13 +229,11 @@ html {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: $border-radius-lg;
|
border-radius: $border-radius-lg;
|
||||||
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
||||||
|
|
||||||
.modal-header,
|
.modal-header,
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
border-color: rgba(map-get($grays, "dark"), 0.1);
|
border-color: rgba(map-get($grays, "dark"), 0.1);
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-title {
|
.modal-title {
|
||||||
color: map-get($grays, "dark");
|
color: map-get($grays, "dark");
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|
@ -381,10 +375,7 @@ body {
|
||||||
.sidebar.bg-primary {
|
.sidebar.bg-primary {
|
||||||
.nav-link {
|
.nav-link {
|
||||||
color: rgba(255, 255, 255, 0.85);
|
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 {
|
&.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 {
|
.nav-link.py-1:hover {
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(255, 255, 255, 0.05);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
i { color: #fff; }
|
||||||
i {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link.active {
|
.nav-link.active {
|
||||||
background: rgba(255, 255, 255, 0.1);
|
background: rgba(255, 255, 255, 0.1);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
i { color: #fff; }
|
||||||
i {
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -622,7 +607,6 @@ nav {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
@ -637,11 +621,12 @@ nav {
|
||||||
.book-cover {
|
.book-cover {
|
||||||
transition: $transition;
|
transition: $transition;
|
||||||
border-radius: $border-radius-sm;
|
border-radius: $border-radius-sm;
|
||||||
|
|
||||||
&-container {
|
&-container {
|
||||||
background: linear-gradient(135deg,
|
background: linear-gradient(
|
||||||
|
135deg,
|
||||||
rgba(map-get($grays, "light"), 0.5) 0%,
|
rgba(map-get($grays, "light"), 0.5) 0%,
|
||||||
rgba(map-get($grays, "light"), 0.8) 100%);
|
rgba(map-get($grays, "light"), 0.8) 100%
|
||||||
|
);
|
||||||
border-radius: $border-radius-sm 0 0 $border-radius-sm;
|
border-radius: $border-radius-sm 0 0 $border-radius-sm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -650,7 +635,6 @@ nav {
|
||||||
.section-header {
|
.section-header {
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
border-bottom: 2px solid map-get($grays, "light");
|
border-bottom: 2px solid map-get($grays, "light");
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
color: map-get($grays, "dark");
|
color: map-get($grays, "dark");
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|
@ -661,14 +645,12 @@ nav {
|
||||||
.empty-state {
|
.empty-state {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 3rem 1rem;
|
padding: 3rem 1rem;
|
||||||
|
|
||||||
i {
|
i {
|
||||||
font-size: 4rem;
|
font-size: 4rem;
|
||||||
color: map-get($grays, "dark");
|
color: map-get($grays, "dark");
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
opacity: 0.25;
|
opacity: 0.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
color: map-get($grays, "dark");
|
color: map-get($grays, "dark");
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
|
|
@ -685,16 +667,12 @@ nav {
|
||||||
--bs-btn-hover-color: #{map-get($grays, "dark")};
|
--bs-btn-hover-color: #{map-get($grays, "dark")};
|
||||||
--bs-btn-hover-bg: #{color.adjust(
|
--bs-btn-hover-bg: #{color.adjust(
|
||||||
map-get($theme-colors, "primary"),
|
map-get($theme-colors, "primary"),
|
||||||
$lightness: -5%)
|
$lightness: -5%
|
||||||
}
|
)};
|
||||||
|
--bs-btn-hover-border-color: #{color.adjust(
|
||||||
;
|
|
||||||
--bs-btn-hover-border-color: #{color.adjust(
|
|
||||||
map-get($theme-colors, "primary"),
|
map-get($theme-colors, "primary"),
|
||||||
$lightness: -7.5%)
|
$lightness: -7.5%
|
||||||
}
|
)};
|
||||||
|
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Text clamp untuk truncate multi line
|
// Text clamp untuk truncate multi line
|
||||||
|
|
@ -705,11 +683,9 @@ $lightness: -7.5%)
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.line-clamp-2 {
|
.line-clamp-2 {
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.line-clamp-3 {
|
.line-clamp-3 {
|
||||||
-webkit-line-clamp: 3;
|
-webkit-line-clamp: 3;
|
||||||
}
|
}
|
||||||
|
|
@ -718,16 +694,13 @@ $lightness: -7.5%)
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 6px;
|
width: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
::-webkit-scrollbar-track {
|
||||||
background: map-get($grays, "light");
|
background: map-get($grays, "light");
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
background: rgba(map-get($grays, "dark"), 0.25);
|
background: rgba(map-get($grays, "dark"), 0.25);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: rgba(map-get($grays, "dark"), 0.4);
|
background: rgba(map-get($grays, "dark"), 0.4);
|
||||||
}
|
}
|
||||||
|
|
@ -801,7 +774,6 @@ $lightness: -7.5%)
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
border-color: map-get($theme-colors, "primary");
|
border-color: map-get($theme-colors, "primary");
|
||||||
box-shadow: $shadow-md;
|
box-shadow: $shadow-md;
|
||||||
|
|
||||||
.book-cover {
|
.book-cover {
|
||||||
transform: scale(1.03);
|
transform: scale(1.03);
|
||||||
}
|
}
|
||||||
|
|
@ -834,9 +806,11 @@ $lightness: -7.5%)
|
||||||
|
|
||||||
// Background gradient hero section
|
// Background gradient hero section
|
||||||
.hero-gradient {
|
.hero-gradient {
|
||||||
background: linear-gradient(135deg,
|
background: linear-gradient(
|
||||||
|
135deg,
|
||||||
map-get($theme-colors, "primary") 0%,
|
map-get($theme-colors, "primary") 0%,
|
||||||
color.adjust(map-get($theme-colors, "primary"), $lightness: 10%) 100%);
|
color.adjust(map-get($theme-colors, "primary"), $lightness: 10%) 100%
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Card untuk pilih role (admin/user)
|
// Card untuk pilih role (admin/user)
|
||||||
|
|
@ -856,9 +830,11 @@ $lightness: -7.5%)
|
||||||
|
|
||||||
// Panel info di halaman auth
|
// Panel info di halaman auth
|
||||||
.info-panel {
|
.info-panel {
|
||||||
background: linear-gradient(135deg,
|
background: linear-gradient(
|
||||||
|
135deg,
|
||||||
map-get($theme-colors, "primary") 0%,
|
map-get($theme-colors, "primary") 0%,
|
||||||
color.adjust(map-get($theme-colors, "primary"), $lightness: 10%) 100%);
|
color.adjust(map-get($theme-colors, "primary"), $lightness: 10%) 100%
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Panel kiri auth (logo dan branding)
|
// Panel kiri auth (logo dan branding)
|
||||||
|
|
@ -870,13 +846,21 @@ $lightness: -7.5%)
|
||||||
}
|
}
|
||||||
|
|
||||||
.auth-branding {
|
.auth-branding {
|
||||||
max-width: 450px;
|
max-width: 500px;
|
||||||
|
|
||||||
.auth-logo {
|
.auth-logo {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1rem;
|
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
|
// Responsive auth pages
|
||||||
@media (max-width: 991.98px) {
|
@media (max-width: 991.98px) {
|
||||||
|
|
||||||
// Panel Kiri Auth (Di Mobile)
|
|
||||||
.auth-left-panel {
|
.auth-left-panel {
|
||||||
background-image: none !important;
|
background-image: none !important;
|
||||||
background-color: map-get($theme-colors, "primary") !important;
|
background-color: #0C5495;
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
min-height: 40vh;
|
min-height: 40vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.d-lg-none {
|
.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
|
// Override styling DataTables
|
||||||
|
|
||||||
.dataTables_wrapper {
|
.dataTables_wrapper {
|
||||||
|
|
||||||
.dataTables_length,
|
.dataTables_length,
|
||||||
.dataTables_filter,
|
.dataTables_filter,
|
||||||
.dataTables_info,
|
.dataTables_info,
|
||||||
|
|
@ -938,7 +930,8 @@ $lightness: -7.5%)
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-color: map-get($theme-colors, "primary");
|
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
|
// Responsive DataTables untuk mobile
|
||||||
@media screen and (max-width: 576px) {
|
@media screen and (max-width: 576px) {
|
||||||
.dataTables_wrapper {
|
.dataTables_wrapper {
|
||||||
|
|
||||||
.dataTables_length,
|
.dataTables_length,
|
||||||
.dataTables_filter {
|
.dataTables_filter {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
@ -966,7 +958,6 @@ $lightness: -7.5%)
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table.dataTable td {
|
table.dataTable td {
|
||||||
white-space: normal !important;
|
white-space: normal !important;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
</div>
|
</div>
|
||||||
</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="container">
|
||||||
<div class="auth-card mx-3">
|
<div class="auth-card mx-3">
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue