Skip to content
Closed
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 cms/static/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ $color-ready: $green;
$color-warning: $orange-l2;
$color-error: $red-l2;
$color-staff-only: $black;
$color-visibility-set: $black;

$color-heading-base: $gray-d2;
$color-copy-base: $gray-l1;
Expand Down
29 changes: 28 additions & 1 deletion cms/static/sass/elements/_forms.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
// studio - elements - forms
// ====================

// element-specific utilities
// --------------------
// UI: checkbox/radio inputs
%input-tickable {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!


~ label {
color: $color-copy-base;
}

// STATE: checked/selected
&:checked ~ label {
@extend %t-strong;
color: $ui-action-primary-color-focus;
}
}

// forms - general
// --------------------
input[type="text"],
input[type="email"],
input[type="password"],
Expand Down Expand Up @@ -99,8 +116,18 @@ form {
}
}

// CASE: checkbox input
.field-checkbox .input-checkbox {
@extend %input-tickable;
}

// CASE: radio input
.field-radio .input-radio {
@extend %input-tickable;
}

// CASE: file input
input[type=file] {
input[type="file"] {
@extend %t-copy-sub1;
}

Expand Down
Loading