fix styles #298

Merged
inhji merged 2 commits from devel into main 2023-09-09 13:56:33 +02:00

View file

@ -23,59 +23,67 @@
* ============= SITE LAYOUT ============= * ============= SITE LAYOUT =============
*/ */
/* === SITE HEADER === */
#site-header { #site-header {
@apply block px-3 py-6 bg-gradient-to-r from-slate-900 to-slate-950 text-white print:hidden; @apply block px-3 py-6 bg-gradient-to-r from-slate-900 to-slate-950 text-white print:hidden;
}
& nav ul { #site-header nav ul {
@apply flex; @apply flex;
}
& a { #site-header a {
@apply p-3 rounded hover:bg-primary-700 transition; @apply p-3 rounded hover:bg-primary-700 transition;
} }
}
} /* === PRIMARY SIDEBAR === */
#primary-sidebar { #primary-sidebar {
@apply col-span-1; @apply col-span-1;
}
& nav { #primary-sidebar nav {
@apply flex md:flex-row lg:flex-col mb-6 lg:mb-0; @apply flex md:flex-row lg:flex-col mb-6 lg:mb-0;
} }
.menu { #primary-sidebar .menu {
@apply flex-1; @apply flex-1;
} }
}
/* === SITE CONTENT === */
#site-content { #site-content {
@apply grid grid-cols-1 lg:grid-cols-5 gap-0 lg:gap-12; @apply grid grid-cols-1 lg:grid-cols-5 gap-0 lg:gap-12;
@apply px-3 sm:px-0; @apply px-3 sm:px-0;
> #secondary-sidebar {
@apply col-span-1;
} }
> #content-wrapper { #content-wrapper {
@apply col-span-4; @apply col-span-4;
} }
#secondary-sidebar {
@apply col-span-1;
} }
/* /*
* ============= PAGE LAYOUT ============= * ============= PAGE LAYOUT =============
*/ */
/* === PAGE HEADER === */
header.page-header { header.page-header {
@apply border-b border-slate-300; @apply border-b border-slate-300;
}
> h1 { header.page-header h1 {
@apply text-3xl leading-loose font-bold text-slate-900; @apply text-3xl leading-loose font-bold text-slate-900;
} }
> p { header.page-header p {
@apply mb-3; @apply mb-3;
} }
} }
}
/* /*
The components layer is for class-based styles that you want to be able to override with utilities. The components layer is for class-based styles that you want to be able to override with utilities.