Skip to content

Commit

Permalink
location inputs: better approach for the labels
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Dec 27, 2024
1 parent a617376 commit 6bf0790
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions assets/css/_autocomplete-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,19 +205,46 @@

#trip-planner-input-form--from,
#trip-planner-input-form--to {
--aa-search-input-height: 2rem;

.aa-Form {
border-radius: var(--border-radius-default);
padding: var(--spacing-xs);
}

.aa-InputWrapperPrefix {
order: unset;
display: grid;
grid-template-areas: "stack";
order: 1;
width: calc(var(--aa-spacing) + var(--aa-icon-size) - 1px);

.aa-Label, .aa-LoadingIndicator {
grid-area: stack;
}

.aa-Label {
align-content: center;
color: $brand-primary;
font-size: 1.25rem;
font-weight: bold;
text-align: center;
}
}

.aa-InputWrapperSuffix {
order: 3;
width: calc(var(--aa-spacing) + var(--aa-icon-size) - 1px);
}

.aa-SubmitButton {
user-select: none;
display: none;
}
}

#trip-planner-input-form--from .aa-SubmitButton {
@include fa-icon-solid($fa-var-a);
#trip-planner-input-form--from .aa-Label::before {
content: "A"
}

#trip-planner-input-form--to .aa-SubmitButton {
@include fa-icon-solid($fa-var-b);
#trip-planner-input-form--to .aa-Label::before {
content: "B"
}

0 comments on commit 6bf0790

Please sign in to comment.