Files
tabler/core/scss/layout/_page.scss
T

198 lines
3.5 KiB
SCSS

@use '../config' as *;
// Skip-to-content link: hidden via .visually-hidden-focusable until keyboard focus reveals it
.skip-link {
@include focus-ring-transition();
position: fixed;
inset-inline-start: 0;
top: 0;
z-index: $zindex-tooltip;
padding: 0.5rem 1rem;
color: var(--primary-fg, #fff);
text-decoration: none;
background: var(--primary);
&:focus-visible {
@include focus-ring(true);
}
}
.page {
position: relative;
display: flex;
flex-direction: column;
min-height: 100%;
}
.page-center {
justify-content: center;
}
.page-wrapper {
display: flex;
flex: 1;
flex-direction: column;
@include media-print() {
margin: 0 !important;
}
}
.page-wrapper-full {
.page-body:first-child {
margin: 0;
border-top: 0;
}
}
// Content body
.page-body {
display: flex;
flex: 1;
flex-direction: column;
margin-top: var(--page-padding-y);
margin-bottom: var(--page-padding-y);
}
.page-body-card {
flex: 1;
padding: var(--page-padding) 0;
margin-bottom: 0;
background: var(--bg-surface);
border-top: var(--border-width) var(--border-style) $card-border-color;
.page-body ~ & {
margin-top: 0;
}
}
.page-cover-overlay {
position: relative;
&::after {
position: absolute;
inset-inline-start: 0;
inset-inline-end: 0;
top: 0;
bottom: 0;
content: '';
background-image: $overlay-gradient;
}
}
.page-header {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
max-width: 100%;
min-height: 2.25rem;
.page-wrapper & {
margin: var(--page-padding-y) 0 0;
}
}
.page-header-border {
padding: var(--page-padding-y) 0;
margin: 0 !important;
background-color: var(--bg-surface);
border-bottom: var(--border-width) var(--border-style) var(--border-color);
}
.page-pretitle {
@include subheader();
}
.page-title {
display: flex;
align-items: center;
margin: 0;
font-size: $page-title-font-size;
font-weight: $page-title-font-weight;
line-height: $page-title-line-height;
color: inherit;
svg {
width: 1.5rem;
height: 1.5rem;
margin-inline-end: 0.25rem;
}
}
.page-title-lg {
font-size: $h1-font-size;
line-height: $h1-line-height;
}
.page-subtitle {
margin-top: 0.25rem;
color: var(--secondary);
}
// Heading of a section inside the page body, e.g. between groups of cards in a `.row-cards`
.page-section-title {
margin: 1rem 0 0;
font-size: $h2-font-size;
font-weight: $page-title-font-weight;
line-height: $h2-line-height;
}
.page-section-description {
margin: 0.25rem 0 0;
color: var(--secondary);
}
//
// Page cover
//
.page-cover {
--page-cover-blur: 20px;
--page-cover-padding: 1rem;
position: relative;
min-height: 6rem;
padding: var(--page-cover-padding) 0;
overflow: hidden;
background: no-repeat center/cover;
@include media-breakpoint-up(md) {
min-height: 12rem;
}
@include media-breakpoint-up(lg) {
min-height: 15rem;
}
}
.page-cover-img {
position: absolute;
inset-inline-start: calc(-2 * var(--page-cover-blur, 0));
inset-inline-end: calc(-2 * var(--page-cover-blur, 0));
top: calc(-2 * var(--page-cover-blur, 0));
bottom: calc(-2 * var(--page-cover-blur, 0));
z-index: -1;
pointer-events: none;
object-fit: cover;
filter: blur(var(--page-cover-blur));
background-position: center;
background-size: cover;
}
//
// Page tabs
//
.page-tabs {
position: relative;
margin-top: 0.5rem;
}
.page-header-tabs {
.nav-bordered {
border: 0;
}
+ .page-body-card {
margin-top: 0;
}
}