-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1237 from lpsinger/modularize-css
Factor out component-specific CSS into modules
- Loading branch information
Showing
12 changed files
with
103 additions
and
530 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 |
---|---|---|
|
@@ -14,7 +14,8 @@ sam.json | |
sam.yaml | ||
|
||
# Generated by sass | ||
/app/css | ||
/app/**/*.css | ||
/app/**/*.css.map | ||
|
||
.env | ||
.eslintcache |
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
24 changes: 24 additions & 0 deletions
24
app/components/nested-checkboxes/nested-checkboxes.module.scss
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,24 @@ | ||
.node { | ||
& { | ||
list-style: url('~/../node_modules/nasawds/src/img/usa-icons/chevron_right.svg'); | ||
} | ||
|
||
&[aria-expanded='true'] { | ||
list-style: url('~/../node_modules/nasawds/src/img/usa-icons/expand_more.svg'); | ||
} | ||
|
||
& [data-testid='checkbox'] { | ||
position: relative; | ||
top: -0.25rem; | ||
display: inline-block; | ||
} | ||
|
||
& label { | ||
margin-top: 0; | ||
margin-bottom: 0.5rem; | ||
} | ||
} | ||
|
||
.leaf { | ||
list-style: none; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.tabs { | ||
& [role='tablist'] { | ||
& { | ||
display: flex; | ||
flex-wrap: wrap; | ||
border-bottom: 1px solid #dee2e6; | ||
position: relative; | ||
} | ||
|
||
& button { | ||
& { | ||
border-width: 1px; | ||
border-style: solid; | ||
border-color: transparent; | ||
border-top-left-radius: 0; | ||
border-top-right-radius: 0; | ||
display: block; | ||
padding: 0.5rem 1rem; | ||
cursor: pointer; | ||
margin: 0; | ||
outline: none; | ||
background-color: #fff; | ||
transition: border 0.2s ease-in-out 0s; | ||
} | ||
|
||
&.active, | ||
&:focus, | ||
&:hover { | ||
border-width: 1px; | ||
border-color: #e9ecef #e9ecef #b41c1c; | ||
} | ||
|
||
&.active { | ||
color: #495057; | ||
background-color: #f8f8f8; | ||
} | ||
} | ||
} | ||
|
||
& [role='tabpanel'] { | ||
text-align: left; | ||
padding: 1rem; | ||
background-color: #f8f8f8; | ||
box-shadow: 1px 1px 2px rgb(204 204 204 / 75%); | ||
} | ||
} |
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.