Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 23 additions & 8 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,26 @@
@apply bg-primary border-primary text-white;
}

.btn-secondary {
@apply bg-secondary border-secondary text-white;
}

.btn-tertiary2 {
@apply bg-tertiary2 border-tertiary2 text-white;
}

.btn-primary:hover,
.btn-primary:focus {
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-tertiary2:hover,
.btn-tertiary2:focus {
@apply text-white transition transform duration-200 ease-in-out shadow-md -translate-y-px;
}

.btn-primary:disabled {
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-tertiary2:disabled {
@apply shadow-none translate-y-0;
}

Expand Down Expand Up @@ -86,15 +100,15 @@
}

.font-h1 {
@apply font-headline font-medium text-3xl md:text-4xl leading-tight;
@apply font-headline font-medium text-3xl md:text-4xl leading-tight text-balance;
}

.font-h2 {
@apply font-headline font-medium text-xl md:text-2xl leading-snug;
@apply font-headline font-medium text-xl md:text-2xl leading-snug text-balance;
}

.font-h3 {
@apply font-headline text-lg md:text-xl leading-relaxed;
@apply font-headline text-lg md:text-xl leading-relaxed text-balance;
}

.font-p {
Expand Down Expand Up @@ -183,7 +197,8 @@ textarea:read-only {
@apply relative inline-block;
}

.has-tooltip:hover .tooltip {
.has-tooltip:hover .tooltip,
.has-tooltip:focus-within .tooltip {
@apply block;
}

Expand All @@ -196,8 +211,8 @@ textarea:read-only {
left: 50%;
}

/* offsetting anchor targets to adjust for fixed navbar */
[id]::before {
/* offsetting anchor targets to adjust for fixed navbar; tooltips carry an id only for aria-describedby, not as scroll anchors */
[id]:not([role="tooltip"])::before {
content: '';
display: block;
height: 96px;
Expand Down
Loading