-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added SASS support to Vite app and restructured
styles
imports
- Loading branch information
Showing
44 changed files
with
1,078 additions
and
641 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,5 @@ | ||
$grid-colour: #f0f0f0; | ||
$label-colour: #8c8c8c; | ||
$spinner-colour: #005ea5; | ||
$warning-colour: govuk-colour("orange"); | ||
$warning-colour-bg: #ffe4c4; |
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
3 changes: 3 additions & 0 deletions
3
front-end-components/src/components/auto-complete/styles.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,3 @@ | ||
ul.autocomplete__menu { | ||
@include govuk-typography-common; | ||
} |
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
12 changes: 12 additions & 0 deletions
12
front-end-components/src/components/chart-options-phase-mode/styles.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,12 @@ | ||
.chart-options { | ||
display: grid; | ||
grid-template-columns: 75% 25%; | ||
width: 100%; | ||
} | ||
|
||
@media (max-width: 640px) { | ||
.chart-options { | ||
width: 100%; | ||
display: block; | ||
} | ||
} |
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
38 changes: 38 additions & 0 deletions
38
front-end-components/src/components/charts/establishment-tick/styles.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,38 @@ | ||
@import "/src/assets/styles/colours"; | ||
|
||
.recharts-wrapper { | ||
foreignObject>.recharts-tooltip-wrapper .tooltip-table>caption { | ||
width: 370px; | ||
overflow: visible; | ||
white-space: pre-wrap; | ||
} | ||
|
||
.recharts-cartesian-axis { | ||
.recharts-text { | ||
.govuk-link { | ||
fill: $govuk-link-colour; | ||
|
||
&:hover, | ||
&:focus { | ||
fill: $govuk-link-hover-colour; | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
&.establishment-tick { | ||
transform: translate(-0.1em, 0.3em); | ||
} | ||
} | ||
|
||
line.establishment-tick-focus { | ||
&:has(~ text > a) { | ||
stroke: transparent; | ||
stroke-width: 1.5em; | ||
} | ||
|
||
&:has(~ text > a:focus) { | ||
stroke: $govuk-focus-colour; | ||
} | ||
} | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
front-end-components/src/components/charts/school-data-tooltip/styles.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,14 @@ | ||
@import "/src/assets/styles/colours"; | ||
|
||
.recharts-wrapper { | ||
.tooltip-part-year-warning { | ||
border-left: 10px solid $warning-colour; | ||
border-color: $warning-colour; | ||
background-color: $warning-colour-bg; | ||
padding: 6px 12px; | ||
|
||
.govuk-warning-text { | ||
font-size: 16px; | ||
} | ||
} | ||
} |
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
61 changes: 61 additions & 0 deletions
61
front-end-components/src/components/charts/stat/styles.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,61 @@ | ||
@import "../styles"; | ||
@import "/src/assets/styles/colours"; | ||
|
||
.chart-stat abbr.summary { | ||
text-decoration: underline; | ||
text-decoration-style: dotted; | ||
} | ||
|
||
.chart-stat-wrapper .chart-stat-value { | ||
border-top: 1px solid $label-colour; | ||
margin-top: 0.5rem; | ||
} | ||
|
||
.chart-stat-summary { | ||
display: grid; | ||
grid-template-columns: calc(calc(100% - 30px) / 3) calc(calc(100% - 30px) / 3) calc( | ||
calc(100% - 30px) / 3 | ||
); | ||
margin-top: 14px; | ||
padding: 0; | ||
gap: 15px; | ||
width: 100%; | ||
} | ||
|
||
.chart-stat-summary .chart-stat-wrapper { | ||
background-color: $grid-colour; | ||
padding: 10px; | ||
} | ||
|
||
.chart-stat-summary .chart-stat-wrapper .chart-stat-value { | ||
border-top: none; | ||
margin-top: 0.1rem; | ||
margin-bottom: 0.1rem; | ||
overflow-wrap: break-word; | ||
} | ||
|
||
.chart-stat-wrapper.chart-stat-line-chart .chart-stat-value { | ||
color: $series-highlight-colour; | ||
} | ||
|
||
.chart-stat-summary | ||
.chart-stat-wrapper | ||
.chart-stat-value | ||
.chart-stat-value-suffix { | ||
margin-left: 5px; | ||
font-size: 0.38em; | ||
} | ||
|
||
.chart-stat-wrapper.chart-stat-highlight { | ||
color: $series-highlight-colour; | ||
} | ||
|
||
.chart-stat-wrapper.chart-stat-highlight .chart-stat-value { | ||
font-weight: 700; | ||
} | ||
|
||
.chart-stat-wrapper .govuk-body-s, | ||
.chart-stat-wrapper .govuk-body-m, | ||
.chart-stat-wrapper .govuk-body-l { | ||
color: inherit; | ||
} |
Oops, something went wrong.