-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fbe71a
commit 6869509
Showing
32 changed files
with
1,225 additions
and
259 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 |
---|---|---|
@@ -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 | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
65 changes: 65 additions & 0 deletions
65
src/client/assets/stylesheets/components/table/_index.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,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 */ |
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 @@ | ||
@import "./index"; |
Oops, something went wrong.