Skip to content

Commit e395ca7

Browse files
authored
Merge pull request #222 from TechnologyEnhancedLearning/Develop/Feature/TD-4916-consolidate-NHS-design-system-overrides
Develop/feature/td 4916 consolidate nhs design system overrides
2 parents 24d6522 + 98f85e4 commit e395ca7

File tree

4 files changed

+248
-217
lines changed

4 files changed

+248
-217
lines changed
Lines changed: 2 additions & 158 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,4 @@
11
@use "../abstracts/all" as *;
2-
@use "nhsuk" as *;
3-
4-
.nhsuk-u-font-style-italic {
5-
font-style: italic;
6-
}
7-
8-
.nhsuk-button--red {
9-
background-color: $nhsuk-red !important;
10-
11-
&:hover {
12-
background-color: $nhsuk-red-hover !important;
13-
border-color: $nhsuk-red-hover !important;
14-
}
15-
}
16-
17-
.nhsuk-button--beta-login {
18-
background-color: $nhsuk-blue;
19-
box-shadow: 0 4px 0 #002f5c;
20-
}
21-
22-
.nhsuk-button--beta-login:hover {
23-
background-color: $nhsuk-btn-blue-hover;
24-
}
25-
26-
// By default, the text on reverse (white) buttons turns white once clicked, rendering them invisible.
27-
.nhsuk-button--reverse:visited {
28-
color: $nhsuk-black
29-
}
30-
31-
.nhsuk-back-link {
32-
padding: px2rem(20) 0;
33-
margin-bottom: 0;
34-
}
35-
36-
.nhsuk-radios__divider {
37-
text-align: left;
38-
width: unset;
39-
}
40-
41-
.nhsuk-radios__item label {
42-
font-family: $font-stack;
43-
}
44-
45-
/* Conditional radio buttons - Note: The nhsuk-radios__conditional element needs to be a SIBLING of the radio button input element
46-
otherwise the CSS selector won't work. See Views/Bookmark/Move.cshtml for a usage example.
47-
The NHSUK component (nhsuk-radios__conditional) requires JavaScript to work. These tweaks allow it to work without.
48-
*/
49-
.nhsuk-radios__conditional {
50-
display: none;
51-
margin-left: -22px;
52-
margin-top: 8px;
53-
}
54-
55-
.nhsuk-radios__input:checked ~ .nhsuk-radios__conditional {
56-
display: block !important;
57-
}
58-
59-
/* jquery unbobtrusive validation style over */
60-
.nhsuk-error-summary__list li {
61-
color: $nhsuk-red;
62-
}
63-
64-
.nhsuk-form-group.input-validation-error {
65-
@extend .nhsuk-form-group--error;
66-
}
67-
68-
.nhsuk-input.input-validation-error {
69-
@extend .nhsuk-input--error
70-
}
71-
72-
.nhsuk-input:focus {
73-
border: 2px solid #212b32;
74-
box-shadow: inset 0 0 0 2px;
75-
outline: 4px solid #ffeb3b; /* 1 */
76-
outline-offset: 0;
77-
}
782

793
.display--hide {
804
display: none !important;
@@ -119,81 +43,6 @@
11943
display: block !important;
12044
}
12145

122-
123-
.nhsuk-bg-light-blue {
124-
background-color: $nhsuk-light-blue-color;
125-
}
126-
127-
.nhsuk-bg-pale-blue {
128-
background-color: $nhsuk-pale-blue-color;
129-
}
130-
131-
.nhsuk-bg-white {
132-
background-color: $color_nhsuk-white;
133-
}
134-
135-
.nhsuk-width-container.search-width-container {
136-
max-width: px2rem(752);
137-
margin: 0 auto;
138-
padding-left: px2rem(68);
139-
padding-right: px2rem(68);
140-
}
141-
142-
/* One third column layout that switches to full width at the small desktop breakpoint (990px) instead of mobile. */
143-
.nhsuk-grid-column-one-third-small-desktop {
144-
@extend .nhsuk-grid-column-one-third;
145-
width: 33.3333333333% !important;
146-
147-
@media (max-width: px2rem(990)) {
148-
width: 100% !important;
149-
}
150-
}
151-
152-
153-
/* Tweaks to styling for single card view. */
154-
@media(min-width: 768px) and (max-width: 990px) {
155-
.nhsuk-card-group .nhsuk-grid-column-one-third-small-desktop {
156-
max-width: 600px !important;
157-
}
158-
159-
.nhsuk-card-group--centred {
160-
justify-content: center !important;
161-
}
162-
}
163-
164-
.nhsuk-card-banner-container {
165-
padding-bottom: 42.86%;
166-
position: relative;
167-
}
168-
169-
.nhsuk-card-banner {
170-
height: 100%;
171-
object-fit: cover;
172-
object-position: left;
173-
position: absolute;
174-
top: 0;
175-
right: 0;
176-
bottom: 0;
177-
left: 0;
178-
}
179-
180-
.nhsuk-card-banner-empty {
181-
background-color: $nhsuk-pale-blue-color;
182-
border-bottom: 1px solid #d8dde0;
183-
}
184-
185-
.nhsuk-error-message.error-message--margin-bottom-1 {
186-
margin-bottom: nhsuk-spacing(1);
187-
}
188-
189-
.nhsuk-u-margin-bottom-2point5 {
190-
margin-bottom: 12px;
191-
192-
@media(max-width: 641px) {
193-
margin-bottom: 10px;
194-
}
195-
}
196-
19746
.word-break__break-word {
19847
word-break: break-word;
19948
}
@@ -203,12 +52,6 @@
20352
justify-content: space-between;
20453
}
20554

206-
.nhsuk-button--no-shrink {
207-
white-space: nowrap;
208-
margin-top: auto !important;
209-
margin-bottom: auto !important;
210-
}
211-
21255
.modal-footer--buttons {
21356
justify-content: space-between !important;
21457
padding-left: 16px !important;
@@ -217,10 +60,11 @@
21760
margin-top: auto !important;
21861
margin-bottom: auto !important;
21962
}
63+
22064
.validation-summary-valid {
22165
display: none;
22266
}
22367

22468
.field-validation-valid {
22569
display: none !important;
226-
}
70+
}

0 commit comments

Comments
 (0)