diff --git a/packages/design/sass/_uswds-custom-styles.scss b/packages/design/sass/_uswds-custom-styles.scss new file mode 100644 index 00000000..445f3e0d --- /dev/null +++ b/packages/design/sass/_uswds-custom-styles.scss @@ -0,0 +1,157 @@ +@use "uswds-core" as *; + +html { + scroll-behavior: smooth; + } + + h1 { + font-size: units(5); + + span { + display: inline-block; + vertical-align: top; + margin-right: units(2.5); + } + } + + h2 { + margin-top: units(4); + margin-bottom: units(2); + } + + p { + line-height: units(3); + } + + .hide { + display: none; + } + + .show { + display: block; + } + + .usa-app { + display: flex; + min-height: 100vh; + flex-direction: column; + } + + main { + flex: 1; + width: 100%; + } + + .usa-combo-box__input, + .usa-input, + .usa-input-group, + .usa-range, + .usa-select, + .usa-textarea { + max-width: 40rem; + height: 3rem; + } + + .usa-sidenav{ + + .usa-sidenav__item { + .usa-current { + color: #54278f; + + &:after { + background-color: rebeccapurple; + } + } + } + } + + .usa-section { + padding-top: units(5); + padding-bottom: units(5); + } + + .usa-checkbox { + background: none; + } + + .usa-table { + width: 100%; + + .column1 { + width: 50%; + } + + .column2 { + width: 30%; + } + + .column3 { + width: 20%; + } + + .actionColumn { + span { + margin: 0 30px 0 0; + + &:last-child { + margin: 0; + } + } + } + } + + .usa-form--large { + max-width: 32rem; + } + + .usa-legend-wrapper { + word-wrap: break-word; + hyphens: auto; + } + + .usa-legend { + width: -webkit-fill-available; + } + + nav { + background: #F7F9FD; + padding: 0 units(3); + + >ul { + padding-top: units(5); + } + } + + [contentEditable=true]:focus, + [href]:focus, + [tabindex]:focus, + iframe:focus { + outline: units(0.5) solid #783cb9; + } + + .usa-step-indicator__segment { + max-width: 22rem; + + &--current { + + .usa-step-indicator__segment-label { + color: #783cb9; + } + + &::after { + background: #783cb9; + } + } + } + + .videoWrapper { + position: relative; + padding-bottom: 62.5%; + height: 0; + } + + .edit-component-panel { + .usa-fieldset { + margin-top: 0; + } + } \ No newline at end of file diff --git a/packages/design/sass/styles.scss b/packages/design/sass/styles.scss index 9359d3b7..6e52c965 100644 --- a/packages/design/sass/styles.scss +++ b/packages/design/sass/styles.scss @@ -1,168 +1,3 @@ @forward "uswds-theme"; @forward "uswds"; - -html { - scroll-behavior: smooth; -} - -h1 { - font-size: 2.5em; - - span { - display: inline-block; - vertical-align: top; - margin-right: 20px; - } -} - -h2 { - margin-top: 2rem; - margin-bottom: 1rem; -} - -p { - line-height: 1.5rem; -} - -.usa-legend { - font-size: 1.7rem; - font-weight: 700; -} - - -.hide { - display: none; -} - -.show { - display: block; -} - -.usa-app { - display: flex; - min-height: 100vh; - flex-direction: column; -} - -main { - flex: 1; - width: 100%; -/* - >section { - &.grid-container { - margin: 0; - padding: 0; - } - } -*/ -} - -.usa-combo-box__input, -.usa-input, -.usa-input-group, -.usa-range, -.usa-select, -.usa-textarea { - max-width: 40rem; - height: 3rem; -} - -.usa-sidenav{ - - .usa-sidenav__item { - .usa-current { - color: #54278f; - - &:after { - background-color: rebeccapurple; - } - } - } -} - -.usa-section { - padding-top: 2.5rem; - padding-bottom: 2.5rem; -} - -.usa-checkbox { - background: none; -} - -.usa-table { - width: 100%; - - .column1 { - width: 50%; - } - - .column2 { - width: 30%; - } - - .column3 { - width: 20%; - } - - .actionColumn { - span { - margin: 0 30px 0 0; - - &:last-child { - margin: 0; - } - } - } -} - -.usa-form--large { - max-width: 32rem; -} - -.usa-legend-wrapper { - word-wrap: break-word; - hyphens: auto; -} - -.usa-legend { - max-width: 100%; - font-weight: 600; - width: -webkit-fill-available; -} - -nav { - background: #F7F9FD; - padding: 0 1.5rem; - - >ul { - padding-top: 2.6rem; - } -} - -[contentEditable=true]:focus, -[href]:focus, -[tabindex]:focus, -iframe:focus { - outline: 0.25rem solid #783cb9; -} - -.usa-step-indicator__segment { - max-width: 22rem; - - &--current { - - .usa-step-indicator__segment-label { - color: #783cb9; - } - - &::after { - background: #783cb9; - } - } -} - -.videoWrapper { - position: relative; - padding-bottom: 62.5%; - height: 0; -} +@forward "uswds-custom-styles"; diff --git a/packages/design/src/Form/components/Address/index.tsx b/packages/design/src/Form/components/Address/index.tsx index 954ffcee..56160451 100644 --- a/packages/design/src/Form/components/Address/index.tsx +++ b/packages/design/src/Form/components/Address/index.tsx @@ -9,8 +9,8 @@ import { type PatternComponent } from '../..'; const Address: PatternComponent = props => { const { register } = useFormContext(); return ( -
- Mailing address +
+ Mailing address