-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Styled and updated the sections components (#113)
* Styled and updated the sections components * Updated the fieldset component to fix lint issue * Removed extra styling and unneeded component * Added back the register to FieldsetEdit * Removed the unused pattern variable
- Loading branch information
Showing
17 changed files
with
262 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.