-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Styles to contain tables on mobile view.
This modifies the width of columns to allow all the content to display on mobile viewport. There's been some interesting discussion in alphagov/govuk-design-system-backlog#61 about responsive tables so hopefully we'll soon be able to have a better solution for making tables responsive.
- Loading branch information
1 parent
ce2eaed
commit 947d7c4
Showing
2 changed files
with
30 additions
and
0 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,29 @@ | ||
.app-options { | ||
max-width: 38em; | ||
margin-bottom: govuk-spacing(1); | ||
padding: govuk-spacing(2) govuk-spacing(2) 0 govuk-spacing(2); | ||
background-color: govuk-colour("white"); | ||
|
||
@include govuk-media-query($from: tablet) { | ||
margin-bottom: govuk-spacing(4); | ||
padding: govuk-spacing(5) govuk-spacing(5) 0 govuk-spacing(5); | ||
} | ||
} | ||
|
||
.app-options__table { | ||
@include govuk-media-query(mobile) { | ||
table-layout: fixed; | ||
|
||
.govuk-table__header, | ||
.govuk-table__cell { | ||
padding-right: govuk-spacing(2); | ||
word-break: break-word; | ||
} | ||
} | ||
} | ||
|
||
.app-options__limit-table-cell { | ||
@include govuk-media-query(mobile) { | ||
width: 29%; | ||
} | ||
} |
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