Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Redesign: Form field tweaks #2468

Merged
merged 3 commits into from
Jan 21, 2019
Merged
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
8 changes: 4 additions & 4 deletions res/css/views/elements/_Field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ limitations under the License.
border-radius: 4px;
transition: border-color 0.25s;
border: 1px solid $input-border-color;
padding: 8px 10px;
padding: 8px 9px;
}

.mx_Field input:focus {
outline: 0;
border-color: $input-valid-border-color;
border-color: $input-focused-border-color;
}

.mx_Field input::placeholder {
Expand All @@ -56,7 +56,7 @@ limitations under the License.
position: absolute;
left: 0px;
top: 0px;
margin: 6px 8px;
margin: 7px 8px;
padding: 2px;
}

Expand All @@ -73,5 +73,5 @@ limitations under the License.
}

.mx_Field input:focus + label {
color: $input-valid-border-color;
color: $input-focused-border-color;
}
1 change: 1 addition & 0 deletions res/themes/dharma/css/_dharma.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ $input-darker-bg-color: rgba(193, 201, 214, 0.29);
$input-darker-fg-color: #9fa9ba;
$input-lighter-bg-color: #f2f5f8;
$input-lighter-fg-color: $input-darker-fg-color;
$input-focused-border-color: #238cf5;
$input-valid-border-color: #7ac9a1;

$field-focused-label-bg-color: #ffffff;
Expand Down
1 change: 1 addition & 0 deletions res/themes/light/css/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ $button-bg-color: #7ac9a1;
$button-fg-color: white;
// apart from login forms, which have stronger border
$strong-input-border-color: #c7c7c7;
$input-focused-border-color: #238cf5;
$input-valid-border-color: #7ac9a1;

$field-focused-label-bg-color: #ffffff;
Expand Down