Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set margin/padding properly on mobile breadcrumbs #8733

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
4 changes: 0 additions & 4 deletions cfgov/tccp/jinja2/tccp/cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
<link rel="stylesheet" href="{{ static('apps/tccp/css/main.css') }}">
{% endblock %}

{% block content_modifiers -%}
{{ super() }} u-layout-grid--full-width-breadcrumbs
{%- endblock %}

{% block content_main_modifiers -%}
{{ super() }} htmx-container
{%- endblock %}
Expand Down
19 changes: 8 additions & 11 deletions cfgov/unprocessed/css/enhancements/layout-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
// Tablet and below.
@include respond-to-max($bp-sm-max) {
&__breadcrumbs {
padding-left: math.div(30px, $base-font-size-px) + rem;
padding-right: math.div(30px, $base-font-size-px) + rem;
margin-left: math.div(-30px, $base-font-size-px) + rem;
margin-right: math.div(-30px, $base-font-size-px) + rem;
padding-left: math.div(15px, $base-font-size-px) + rem;
padding-right: math.div(15px, $base-font-size-px) + rem;
margin-left: math.div(-15px, $base-font-size-px) + rem;
margin-right: math.div(-15px, $base-font-size-px) + rem;
background: var(--gray-5);
border-bottom: 1px solid var(--gray-40);
}
Expand All @@ -58,8 +58,10 @@
// Tablet only.
@include respond-to-range($bp-sm-min, $bp-sm-max) {
&__breadcrumbs {
padding-left: math.div(15px, $base-font-size-px) + rem;
padding-right: math.div(15px, $base-font-size-px) + rem;
padding-left: math.div(30px, $base-font-size-px) + rem;
padding-right: math.div(30px, $base-font-size-px) + rem;
margin-left: math.div(-30px, $base-font-size-px) + rem;
margin-right: math.div(-30px, $base-font-size-px) + rem;
}
}

Expand Down Expand Up @@ -100,11 +102,6 @@
}
}

// Modifier to allow breadcrumbs on full-width layouts, as in TCCP
.u-layout-grid--full-width-breadcrumbs {
overflow-x: hidden;
}

// Set default line width.
.u-layout-grid__main,
.u-layout-grid__content-intro {
Expand Down
Loading