Skip to content

Commit

Permalink
restore uswds files
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork committed Jan 27, 2025
1 parent 2263349 commit 2359d6b
Show file tree
Hide file tree
Showing 11 changed files with 166 additions and 68 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//= require jquery3
//= require jquery-ui
//= require rails-ujs
//= require @uswds/uswds/dist/js/uswds-init
//= require uswds-init.min
//= require heartbeat

function generateUUID() {
Expand Down
2 changes: 2 additions & 0 deletions app/assets/javascripts/uswds-init.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/assets/javascripts/uswds-init.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions app/assets/javascripts/uswds.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/assets/javascripts/uswds.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require uswds-styles
*= require site
*= require font-awesome-all
*= require jquery-ui
*= require @uswds/uswds/dist/css/uswds
*= require_self
*/
1 change: 1 addition & 0 deletions app/assets/stylesheets/widget-uswds-styles.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/assets/stylesheets/widget-uswds-styles.css.map

Large diffs are not rendered by default.

136 changes: 72 additions & 64 deletions app/views/components/widget/_widget-uswds-styles.css.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2695,7 +2695,6 @@
font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;
font-size:1.06rem;
line-height:1.5;
overflow:hidden;
}
.fba-modal-dialog .usa-footer::after, .fba-modal-dialog .usa-footer::before, .fba-modal-dialog .usa-footer *, .fba-modal-dialog .usa-footer *::after, .fba-modal-dialog .usa-footer *::before{
box-sizing:inherit;
Expand Down Expand Up @@ -2796,6 +2795,8 @@
padding-left:1rem;
padding-right:1rem;
box-sizing:border-box;
padding-left:0;
padding-right:0;
}
@media all and (min-width: 64em){
.fba-modal-dialog .usa-footer__primary-container{
Expand All @@ -2819,17 +2820,19 @@
padding-top:1rem;
color:#1b1b1b;
font-weight:700;
border:0;
border-top:1px solid #a9aeb1;
display:block;
}
@media all and (min-width: 30em){
.fba-modal-dialog .usa-footer__primary-link{
padding-left:0;
padding-right:0;
border:none;
}
}
.fba-modal-dialog .usa-footer__primary-link--button{
width:100%;
border:0;
cursor:pointer;
}
.fba-modal-dialog .usa-footer__primary-link--button::before{
Expand Down Expand Up @@ -2953,14 +2956,6 @@
margin-top:0.5rem;
}
}
.fba-modal-dialog .usa-footer__primary-content{
border-top:1px solid #a9aeb1;
}
@media all and (min-width: 30em){
.fba-modal-dialog .usa-footer__primary-content{
border:none;
}
}
.fba-modal-dialog .usa-sign-up{
padding-bottom:2rem;
padding-top:1.5rem;
Expand Down Expand Up @@ -3190,42 +3185,9 @@
.fba-modal-dialog .usa-form abbr[title=required]{
text-decoration:none;
}
.fba-modal-dialog .usa-form .usa-input,
.fba-modal-dialog .usa-form .usa-range,
.fba-modal-dialog .usa-form .usa-select,
.fba-modal-dialog .usa-form .usa-textarea{
.fba-modal-dialog .usa-form :where(.usa-input, .usa-textarea, .usa-select, .usa-range){
max-width:none;
}
.fba-modal-dialog .usa-form .usa-input--2xs,
.fba-modal-dialog .usa-form .usa-input-group--2xs{
max-width:5ex;
}
.fba-modal-dialog .usa-form .usa-input--xs,
.fba-modal-dialog .usa-form .usa-input-group--xs{
max-width:9ex;
}
.fba-modal-dialog .usa-form .usa-input--sm, .fba-modal-dialog .usa-form .usa-input--small,
.fba-modal-dialog .usa-form .usa-input-group--sm,
.fba-modal-dialog .usa-form .usa-input-group--small{
max-width:13ex;
}
.fba-modal-dialog .usa-form .usa-input--md, .fba-modal-dialog .usa-form .usa-input--medium,
.fba-modal-dialog .usa-form .usa-input-group--md,
.fba-modal-dialog .usa-form .usa-input-group--medium{
max-width:20ex;
}
.fba-modal-dialog .usa-form .usa-input--lg,
.fba-modal-dialog .usa-form .usa-input-group--lg{
max-width:30ex;
}
.fba-modal-dialog .usa-form .usa-input--xl,
.fba-modal-dialog .usa-form .usa-input-group--xl{
max-width:40ex;
}
.fba-modal-dialog .usa-form .usa-input--2xl,
.fba-modal-dialog .usa-form .usa-input-group--2xl{
max-width:50ex;
}
.fba-modal-dialog .usa-form .usa-button{
margin-top:0.5rem;
}
Expand Down Expand Up @@ -3842,6 +3804,42 @@
border:2px solid GrayText;
}
}
.fba-modal-dialog .usa-input--2xs,
.fba-modal-dialog .usa-form .usa-input--2xs{
max-width:5ex;
}
.fba-modal-dialog .usa-input--xs,
.fba-modal-dialog .usa-form .usa-input--xs{
max-width:9ex;
}
.fba-modal-dialog .usa-input--sm,
.fba-modal-dialog .usa-form .usa-input--sm{
max-width:13ex;
}
.fba-modal-dialog .usa-input--small,
.fba-modal-dialog .usa-form .usa-input--small{
max-width:13ex;
}
.fba-modal-dialog .usa-input--md,
.fba-modal-dialog .usa-form .usa-input--md{
max-width:20ex;
}
.fba-modal-dialog .usa-input--medium,
.fba-modal-dialog .usa-form .usa-input--medium{
max-width:20ex;
}
.fba-modal-dialog .usa-input--lg,
.fba-modal-dialog .usa-form .usa-input--lg{
max-width:30ex;
}
.fba-modal-dialog .usa-input--xl,
.fba-modal-dialog .usa-form .usa-input--xl{
max-width:40ex;
}
.fba-modal-dialog .usa-input--2xl,
.fba-modal-dialog .usa-form .usa-input--2xl{
max-width:50ex;
}
.fba-modal-dialog .usa-input--error{
border-width:0.25rem;
border-color:#b50909;
Expand Down Expand Up @@ -4780,27 +4778,23 @@
.fba-modal-dialog .usa-prose > table::after, .fba-modal-dialog .usa-prose > table::before, .fba-modal-dialog .usa-prose > table *, .fba-modal-dialog .usa-prose > table *::after, .fba-modal-dialog .usa-prose > table *::before{
box-sizing:inherit;
}
.fba-modal-dialog .usa-prose > table thead th{
.fba-modal-dialog .usa-prose > table thead td,
.fba-modal-dialog .usa-prose > table tfoot td,
.fba-modal-dialog .usa-prose > table th{
background-clip:padding-box;
color:#1b1b1b;
font-weight:700;
line-height:1.3;
}
.fba-modal-dialog .usa-prose > table thead th,
.fba-modal-dialog .usa-prose > table thead td{
background-color:#dfe1e2;
color:#1b1b1b;
}
.fba-modal-dialog .usa-prose > table tbody th{
text-align:left;
}
.fba-modal-dialog .usa-prose > table th,
.fba-modal-dialog .usa-prose > table td{
background-color:white;
border:1px solid #1b1b1b;
font-weight:normal;
padding:0.5rem 1rem;
}
.fba-modal-dialog .usa-prose > table td{
background-color:white;
font-weight:normal;
}
.fba-modal-dialog .usa-prose > table caption{
font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;
font-size:1rem;
Expand Down Expand Up @@ -5051,20 +5045,24 @@
background-color:#e1f3f8;
color:#1b1b1b;
}
.fba-modal-dialog .usa-prose > .usa-table--borderless thead{
.fba-modal-dialog .usa-prose > .usa-table--borderless{
}
.fba-modal-dialog .usa-prose > .usa-table--borderless thead th{
.fba-modal-dialog .usa-prose > .usa-table--borderless th,
.fba-modal-dialog .usa-prose > .usa-table--borderless thead td,
.fba-modal-dialog .usa-prose > .usa-table--borderless tfoot td{
background-color:white;
}
.fba-modal-dialog .usa-prose > .usa-table--borderless th{
border-top:0;
color:#1b1b1b;
}
.fba-modal-dialog .usa-prose > .usa-table--borderless thead th[aria-sort]{
.fba-modal-dialog .usa-prose > .usa-table--borderless th[aria-sort]{
color:#1b1b1b;
}
.fba-modal-dialog .usa-prose > .usa-table--borderless thead th[data-sortable]:not([aria-sort]) .usa-table__header__button .usa-icon > g.unsorted{
.fba-modal-dialog .usa-prose > .usa-table--borderless th[data-sortable]:not([aria-sort]) .usa-table__header__button .usa-icon > g.unsorted{
fill:#1b1b1b;
}
.fba-modal-dialog .usa-prose > .usa-table--borderless thead th[data-sortable]:not([aria-sort]) .usa-table__header__button:hover .usa-icon > g.unsorted{
.fba-modal-dialog .usa-prose > .usa-table--borderless th[data-sortable]:not([aria-sort]) .usa-table__header__button:hover .usa-icon > g.unsorted{
fill:black;
}
.fba-modal-dialog .usa-prose > .usa-table--borderless th,
Expand All @@ -5076,20 +5074,21 @@
.fba-modal-dialog .usa-prose > .usa-table--compact td{
padding:0.25rem 0.75rem;
}
.fba-modal-dialog .usa-prose > .usa-table--striped tbody tr:nth-child(odd) td,
.fba-modal-dialog .usa-prose > .usa-table--striped tbody tr:nth-child(odd) th{
.fba-modal-dialog .usa-prose > .usa-table--striped tbody tr:nth-child(odd) td{
background-color:#f0f0f0;
color:#1b1b1b;
}
.fba-modal-dialog .usa-prose > .usa-table--striped tbody tr:nth-child(odd) td[data-sort-active],
.fba-modal-dialog .usa-prose > .usa-table--striped tbody tr:nth-child(odd) th[data-sort-active]{
.fba-modal-dialog .usa-prose > .usa-table--striped tbody tr:nth-child(odd) td[data-sort-active]{
background-color:#c3ebfa;
color:#1b1b1b;
}
@media all and (max-width: 29.99em){
.fba-modal-dialog .usa-prose > .usa-table--stacked thead{
display:none;
}
.fba-modal-dialog .usa-prose > .usa-table--stacked th{
background-color:white;
}
.fba-modal-dialog .usa-prose > .usa-table--stacked th,
.fba-modal-dialog .usa-prose > .usa-table--stacked td{
border-bottom-width:0;
Expand Down Expand Up @@ -5130,6 +5129,9 @@
.fba-modal-dialog .usa-prose > .usa-table--stacked-header thead{
display:none;
}
.fba-modal-dialog .usa-prose > .usa-table--stacked-header th{
background-color:white;
}
.fba-modal-dialog .usa-prose > .usa-table--stacked-header th,
.fba-modal-dialog .usa-prose > .usa-table--stacked-header td{
border-bottom-width:0;
Expand Down Expand Up @@ -5183,6 +5185,9 @@
.fba-modal-dialog .usa-prose > .width-mobile .usa-table--stacked thead{
display:none;
}
.fba-modal-dialog .usa-prose > .width-mobile .usa-table--stacked th{
background-color:white;
}
.fba-modal-dialog .usa-prose > .width-mobile .usa-table--stacked th,
.fba-modal-dialog .usa-prose > .width-mobile .usa-table--stacked td{
border-bottom-width:0;
Expand Down Expand Up @@ -5221,6 +5226,9 @@
.fba-modal-dialog .usa-prose > .width-mobile .usa-table--stacked-header thead{
display:none;
}
.fba-modal-dialog .usa-prose > .width-mobile .usa-table--stacked-header th{
background-color:white;
}
.fba-modal-dialog .usa-prose > .width-mobile .usa-table--stacked-header th,
.fba-modal-dialog .usa-prose > .width-mobile .usa-table--stacked-header td{
border-bottom-width:0;
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
<% end %>
<%= render "components/footer" %>
<%= render "components/timeout_modal" if current_user %>
<%= javascript_include_tag '@uswds/uswds/dist/js/uswds.min.js', integrity: true %>
<%= javascript_include_tag 'uswds.min', integrity: true %>
</body>
</html>
2 changes: 1 addition & 1 deletion app/views/layouts/public.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
</div>
</div>
</main>
<%= javascript_include_tag '@uswds/uswds/dist/js/uswds.min.js', integrity: true %>
<%= javascript_include_tag 'uswds.min.js', integrity: true %>
</body>
</html>

0 comments on commit 2359d6b

Please sign in to comment.