app/webpack/stylesheets/_shame.scss
// Ported from v1 stylesheets
.dz-error-message {
color: $govuk-error-colour;
}
#js-provider-roles {
display: none;
}
.claim-count {
font-weight: 400;
text-align: right;
}
// Start a new claim
.expense-cost {
legend {
margin-bottom: 0;
padding-bottom: 0;
font-weight: normal;
}
label {
margin-top: 0;
margin-bottom: 0;
}
}
// claims-list.SCSS
#claims-list {
margin: 0;
padding: 0;
li {
padding: 0;
list-style-type: none;
}
}
#claims-list>li {
padding: 1rem;
clear: both;
overflow: hidden;
background-color: govuk-colour("light-grey");
&:nth-child(even) {
background-color: govuk-colour("light-grey");
}
}
.case-data-headings {
margin: 0;
padding: 0;
li {
// @include span-columns(4);
list-style-type: none;
}
}
.detail-link {
padding: .5rem;
border: $govuk-border-width-form-element solid transparent;
color: $govuk-button-text-colour;
text-decoration: none;
}
.claim-controls {
.toggle {
display: inline-block;
width: 42px;
height: 24px;
margin: 0 0 $gutter-two-thirds 2px;
background-position: 0 -48px;
cursor: pointer;
&.expanded {
background-position: 0 0;
}
}
}
.status-indicator {
width: $gutter-two-thirds;
height: $gutter-two-thirds;
}
// claim-accordion.SCSS
form {
.extra-margin {
margin-right: .2em;
margin-left: .2em;
}
.validation-error {
display: block;
clear: left;
color: $govuk-error-colour;
}
h2 {
margin-top: $gutter-two-thirds;
}
fieldset legend {
font-weight: 700;
}
.user-form {
border-bottom: 0;
}
textarea {
width: govuk-grid-widths('full');
font-size: 1em;
}
h2+fieldset {
margin-top: 0;
padding-top: 0;
}
.nested-fields {
position: relative;
margin-bottom: $gutter-two-thirds;
td,
th {
border-top: 1px solid govuk-colour("mid-grey");
border-bottom: 0;
}
&.extra-data th,
&.extra-data td {
border-top: 0;
border-bottom: 1px solid govuk-colour("mid-grey");
}
}
}
.has-file {
border-color: govuk-colour("green");
color: govuk-colours-organisations("ministry-of-justice");
font-weight: 700;
}
.warning {
display: block;
padding: $gutter-half;
color: govuk-colour("red");
}
.remove-expense:first-child a {
display: none;
}
.defendants {
.nested-fields .indent-fieldset {
padding: 0;
}
}
.indent-fieldset {
padding-top: $gutter-one-sixth;
padding-bottom: $gutter-one-sixth;
padding-left: $gutter-half;
border-bottom: 0;
border-left: 5px solid $govuk-border-colour;
}
// ADMIN.SCSS
.working-pattern {
li {
display: inline;
display: inline-block;
width: 15%;
padding-top: .3em;
border-top: 1px solid govuk-colour("black");
border-right: 1px solid govuk-colour("black");
border-bottom: 1px solid govuk-colour("black");
text-align: center;
&:first-child {
border-left: 1px solid govuk-colour("black");
}
}
.working-day {
background-color: govuk-colour("mid-grey");
}
}
// FLASH-NOTICES MESS
.flash {
width: govuk-grid-widths('two-thirds');
margin: auto;
padding: $gutter-one-sixth;
font-weight: 700;
&.alert {
color: govuk-colour("red");
}
}
// claims-table.SCSS
.totals {
padding-top: $gutter-two-thirds;
padding-bottom: $gutter-two-thirds;
text-align: right;
}
.filter-by-value {
margin-right: $gutter-one-sixth;
margin-left: $gutter-one-sixth;
}
// search result for tables when nothing exists
.search-summary .panel-indent {
margin-top: 0;
margin-right: 0;
}
// Page specific styling for the Claims detail page
.claim-header,
.claim-detail-header {
margin-bottom: $gutter-half;
}
// Other Claim Navigation
.other-claims {
text-align: right;
}
.evidence-checklist-read-only .selected {
width: 16px;
height: 16px;
margin-right: 10px;
}
// Styling for Claims Messaging
.messages {
.none {
color: govuk-colour("black");
}
.new-message {
width: 26px;
height: 26px;
margin-left: $gutter-one-sixth;
}
>* {
vertical-align: middle;
}
}
// icons.SCSS
.search-icon {
width: 16px;
height: 16px;
}
.confirmation-tick {
width: 36px;
height: 36px;
}
.contact-us-footer {
margin-top: $gutter-two-thirds;
margin-bottom: $gutter-two-thirds;
padding-top: $gutter-two-thirds;
clear: both;
border-top: 1px solid $govuk-border-colour;
}
// Dropzone
.dropzone {
display: flex;
margin-bottom: $govuk-gutter + $gutter-one-third;
padding: $govuk-gutter * 2;
transition: outline-offset .1s ease-in-out, background-color .1s linear;
outline: 2px dashed $govuk-secondary-text-colour;
text-align: center;
align-items: flex-start;
justify-content: center;
label {
@include govuk-font(19);
position: absolute;
left: -9999em;
}
}
.dropzone-enhanced {
label {
position: static;
left: 0;
margin-bottom: 0;
padding: $gutter-one-third $gutter-two-thirds;
border: none;
color: $govuk-text-colour;
background-color: govuk-colour("light-grey");
appearance: none;
&:hover {
background-color: $govuk-border-colour;
}
}
[type="file"] {
position: absolute;
left: -9999em;
}
}
.dropzone-dragover {
outline: 2px dashed $govuk-secondary-text-colour;
outline-offset: -$gutter-one-third;
background: govuk-colour("black");
}
.dropzone-focused {
outline: none;
box-shadow: 0 0 1px 4px $govuk-focus-colour;
}
.files {
margin-bottom: $govuk-gutter;
table-layout: fixed;
.error {
font-weight: 700;
overflow-wrap: break-word;
word-break: break-word;
}
.success {
color: govuk-colour("green");
font-weight: 700;
}
td,
th {
word-break: break-all;
}
td:first-child,
th:first-child {
width: 50%;
}
progress {
width: govuk-grid-widths('full');
margin-top: $gutter-one-sixth;
}
}
// Dropzone end
.b {
font-weight: 700;
}
.error .error-message {
@include govuk-font(16);
}
.form-date p {
margin-bottom: 0;
}
.panel-margin-fix {
margin-bottom: $govuk-gutter;
}
.disk-evidence {
display: block;
color: $govuk-error-colour;
}
.js-allocation-page #page-h1 {
margin-bottom: 0;
}
// banner: https://moj-design-system.herokuapp.com/components/banner
.moj-banner {
@extend .error-summary; // stylelint-disable-line scss/at-extend-no-missing-placeholder
width: calc(100% - 40px); // 40px is magic number for padding and border
border: 5px solid #1d70b8;
color: #1d70b8;
font-size: 0; // Removes white space when using inline-block on child element.
.moj-banner__icon {
margin-right: 10px;
float: left;
fill: currentcolor;
}
.moj-banner__message {
font-size: 1.1875rem;
line-height: 1.3158;
}
.govuk-heading-m {
display: block;
margin-top: 0;
color: #0b0c0c;
font-size: 18px;
font-weight: 700;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
h2 {
display: block;
font-size: 1.5em;
font-weight: 700;
margin-block-start: .83em;
margin-block-end: .83em;
margin-inline-start: 0;
margin-inline-end: 0;
}
}
}
#download-files-report {
td:first-child,
th:first-child {
width: 50%;
}
}
// Ported from v1 stylesheets
.search-form {
@include govuk-clearfix;
}
.js-cw-claim-assessment {
.error {
display: none;
}
}
.fee-date-to {
div {
display: inline;
}
}
#offence-list {
padding: 0;
.offence-item {
margin: 0;
padding: $gutter-one-third;
border-bottom: 1px solid $govuk-border-colour;
.align-centre {
text-align: center;
}
}
.offence-item:nth-child(odd) {
color: govuk-colour("black");
background-color: govuk-colour("light-grey");
}
.offence-item:hover {
color: govuk-colour("black");
background-color: govuk-colour("light-grey");
}
.offence-item .offence-item-button {
visibility: hidden;
}
.offence-item:hover .offence-item-button {
visibility: visible;
}
.empty-message {
border-bottom: 1px solid $govuk-border-colour;
color: govuk-colour("black");
background-color: govuk-colour("light-grey");
}
}
.selected-offence {
padding: $gutter-half $govuk-gutter;
background: govuk-colour("light-grey");
}
.highlight {
background-color: govuk-colour("yellow");
}
.error {
color: $govuk-error-colour;
}