Skip to content

Commit

Permalink
linter formatting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-cognizant committed Feb 28, 2024
1 parent 7fbe71a commit 6869509
Show file tree
Hide file tree
Showing 32 changed files with 1,225 additions and 259 deletions.
64 changes: 33 additions & 31 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "18"
}
}
]
],
"plugins": [
[
"module-resolver",
{
"root": [
"./"
],
"alias": {
"~": "."
}
}
]
],
"env": {
"development": {
"sourceMaps": "inline",
"retainLines": true
}
}
}
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "entry",
"corejs": 3,
"targets": {
"node": "18"
}
}
]
],
"plugins": [
[
"module-resolver",
{
"root": [
"./"
],
"alias": {
"~": "."
}
}
]
],
"env": {
"development": {
"sourceMaps": "inline",
"retainLines": true
}
}
}
9 changes: 9 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"hapi-pino": "12.1.0",
"https-proxy-agent": "7.0.2",
"lodash": "4.17.21",
"moment": "2.30.1",
"node-fetch": "2.7.0",
"nunjucks": "3.2.4",
"pino": "8.18.0",
Expand Down
65 changes: 65 additions & 0 deletions src/client/assets/stylesheets/components/table/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
@include govuk-exports("govuk/component/table") {
.govuk-table {
@include govuk-font($size: 19);
@include govuk-text-colour;
width: 100%;
@include govuk-responsive-margin(6, "bottom");

border-spacing: 0;
border-collapse: collapse;
}

.govuk-table__header {
@include govuk-typography-weight-bold;
}

.govuk-table__header,
.govuk-table__cell {
padding: govuk-spacing(2) govuk-spacing(4) govuk-spacing(2) 0;
border-bottom: 1px solid $govuk-border-colour;
text-align: left;
vertical-align: top;
}

.govuk-table__cell--numeric {
@include govuk-font($size: false, $tabular: true);
}

.govuk-table__header--numeric,
.govuk-table__cell--numeric {
text-align: right;
}

.govuk-table__header:last-child,
.govuk-table__cell:last-child {
padding-right: 0;
}

.govuk-table__caption {
@include govuk-typography-weight-bold;

display: table-caption;
text-align: left;
}

// Modifiers that make captions look more like their equivalent headings
.govuk-table__caption--xl,
.govuk-table__caption--l,
.govuk-table__caption--m {
margin-bottom: govuk-spacing(3);
}

.govuk-table__caption--xl {
@include govuk-typography-responsive($size: 48);
}

.govuk-table__caption--l {
@include govuk-typography-responsive($size: 36);
}

.govuk-table__caption--m {
@include govuk-typography-responsive($size: 24);
}
}

/*# sourceMappingURL=_index.scss.map */
1 change: 1 addition & 0 deletions src/client/assets/stylesheets/components/table/_table.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "./index";
Loading

0 comments on commit 6869509

Please sign in to comment.