Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* Disabled Varnish container by default, and moved Drupal to port 8080. Varnish now runs on 8085 (when enabled).

### Added
* Added basic form validation styling.
* Add a default hash salt to settings.docker.php, overrideable using the `DRUPAL_HASH_SALT` environment variable.
* Add a selenium container to the default Docker Compose stack. Selenium is a powerful front end testing and automation tool that allows for cross-browser testing, and replaces the deprecated PhantomJS.
* Add `pantheon.yml` for configuring web docroot in Pantheon deployments.
Expand Down
44 changes: 44 additions & 0 deletions web/themes/custom/scaffold/scss/components/_form.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
$form-error-red: #e62600;
$form-error-dark-red: #a51b00;

.field--widget-options-buttons > fieldset > legend > span.form-required,
label.form-required {
&:after {
content: '*';
color: $form-error-red;
display: inline;
padding-left: rem-calc(3);
}
}

.form-item {
.description.error {
margin-top: 0;
color: $form-error-dark-red;
}
input,
textarea,
select {
&.error {
border-width: 1px;
border-color: $form-error-red;
background-color: hsla(15, 75%, 97%, 1);
box-shadow: inset 0 5px 5px -5px #b8b8b8;
color: $form-error-dark-red;
&:focus {
border-color: $form-error-red;
outline: 0;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 0 2px 0 $form-error-red;
background-color: #fcf4f2;
}
}
}

textarea.error + .cke {
border-width: 1px;
border-color: $form-error-red;
.cke_contents {
background-color: hsla(15, 75%, 97%, 1);
}
}
}
1 change: 1 addition & 0 deletions web/themes/custom/scaffold/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ button, input[type="submit"], input[type="reset"] {

// Import components.
@import "components/logo";
@import "components/form";
// @import "components/navigation";