mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Revert "Re-introduce govuk checkboxes"
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
// Taken from https://github.com/alphagov/govuk-frontend/blob/v2.13.0/src/components/checkboxes/_checkboxes.scss
|
||||
$govuk-touch-target-size: 44px;
|
||||
$govuk-checkboxes-size: 40px;
|
||||
|
||||
.selection-summary {
|
||||
|
||||
.selection-summary__text {
|
||||
@@ -69,30 +65,6 @@ $govuk-checkboxes-size: 40px;
|
||||
|
||||
}
|
||||
|
||||
.govuk-form-group--nested {
|
||||
|
||||
$border-thickness: $govuk-touch-target-size - $govuk-checkboxes-size;
|
||||
$border-indent: $govuk-touch-target-size / 2;
|
||||
|
||||
position: relative;
|
||||
|
||||
// To equalise the spacing between the line and the top/bottom of
|
||||
// the radio
|
||||
margin-top: govuk-spacing(1) + ($border-thickness / 2);
|
||||
margin-bottom: govuk-spacing(1) * -1;
|
||||
padding-left: govuk-spacing(2) + 2;
|
||||
|
||||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: $border-indent * -1;
|
||||
width: $border-thickness;
|
||||
height: 100%;
|
||||
background: $govuk-border-colour;
|
||||
}
|
||||
}
|
||||
|
||||
.selection-content {
|
||||
margin-bottom: govuk-spacing(4);
|
||||
|
||||
|
||||
@@ -24,13 +24,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
$govuk-checkboxes-size: 40px;
|
||||
$govuk-checkboxes-label-padding-left-right: govuk-spacing(3);
|
||||
$message-type-bottom-spacing: govuk-spacing(4);
|
||||
|
||||
.message {
|
||||
|
||||
&-name {
|
||||
@include bold-24;
|
||||
margin: 0;
|
||||
|
||||
a {
|
||||
@@ -66,20 +63,37 @@ $message-type-bottom-spacing: govuk-spacing(4);
|
||||
}
|
||||
|
||||
&-type {
|
||||
color: $govuk-secondary-text-colour;
|
||||
margin: 0 0 $message-type-bottom-spacing 0;
|
||||
padding-left: 0;
|
||||
color: $secondary-text-colour;
|
||||
margin: 0 0 govuk-spacing(4) 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#template-list {
|
||||
|
||||
margin-top: govuk-spacing(6);
|
||||
|
||||
&.top-gutter-5px {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.template-list {
|
||||
|
||||
&-item {
|
||||
|
||||
&-with-checkbox {
|
||||
padding-left: $govuk-checkboxes-size + $govuk-checkboxes-label-padding-left-right;
|
||||
|
||||
position: relative;
|
||||
padding-left: govuk-spacing(9);
|
||||
|
||||
.multiple-choice {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&-hidden-by-default {
|
||||
@@ -109,29 +123,6 @@ $message-type-bottom-spacing: govuk-spacing(4);
|
||||
|
||||
}
|
||||
|
||||
&-label {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
width: $govuk-checkboxes-size + $govuk-checkboxes-label-padding-left-right;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// Fix for GOVUK Frontend selector with high precendence
|
||||
// https://github.com/alphagov/govuk-frontend/blob/v2.13.0/src/components/hint/_hint.scss
|
||||
&-label:not(.govuk-label--m):not(.govuk-label--l):not(.govuk-label--xl)+.template-list-item-hint {
|
||||
margin-bottom: $message-type-bottom-spacing;
|
||||
}
|
||||
|
||||
&-hint {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&-folder,
|
||||
&-template {
|
||||
@include govuk-font($size: 24, $weight: bold, $line-height: 1.25);
|
||||
}
|
||||
|
||||
&-folder {
|
||||
|
||||
Reference in New Issue
Block a user