Change interaction to achieve stronger editing affordance

pull/2104/head
Alex P 2017-10-11 14:27:22 -07:00 committed by Andrew Watkins
parent f7025e7e38
commit 5f6f73b46d
2 changed files with 29 additions and 26 deletions

View File

@ -49,7 +49,7 @@ class DashboardEditHeader extends Component {
? <input
maxLength={DASHBOARD_NAME_MAX_LENGTH}
type="text"
className="dashboard-title--input form-control"
className="dashboard-title--input form-control input-sm"
defaultValue={dashboardName}
autoComplete="off"
autoFocus={true}

View File

@ -340,11 +340,14 @@ $tick-script-overlay-margin: 30px;
-----------------------------------------------------------------------------
*/
.dropdown.dashboard-switcher {
margin-right: 10px;
margin-right: 4px;
}
.dropdown.dashboard-switcher .btn.dropdown-toggle {
justify-content: center;
}
.dropdown.dashboard-switcher + h1.page-header__title {
margin-left: 6px;
}
/*
Dashboard Name Editing
@ -352,47 +355,47 @@ $tick-script-overlay-margin: 30px;
*/
.page-header__left.page-header__dash-editable,
.dashboard-title,
.dashboard-title input[type="text"].form-control.dashboard-title--input {
.dashboard-title input[type="text"].form-control.dashboard-title--input,
.dashboard-title h1 {
flex: 1 0 0;
}
.dashboard-title {
display: flex;
input[type="text"].form-control.dashboard-title--input,
input[type="text"].form-control.dashboard-title--input:focus {
position: relative;
top: -1px;
border: 0;
border-radius: 0;
padding: 0;
input[type="text"].form-control.dashboard-title--input:focus,
h1 {
font-size: $page-header-size;
font-weight: $page-header-weight;
padding: 0 7px;
}
input[type="text"].form-control.dashboard-title--input,
input[type="text"].form-control.dashboard-title--input:focus {
font-size: $page-header-size;
font-weight: $page-header-weight;
color: $c-pool;
box-shadow: none;
background-color: transparent;
}
h1 {
@include no-user-select();
border: 2px solid $g0-obsidian;
color: $g17-whisper;
height: 30px;
line-height: 28px;
border-radius: 4px;
margin: 0;
letter-spacing: 0;
text-transform: none;
font-size: $page-header-size;
font-weight: $page-header-weight;
transition: color 0.25s ease;
&:after {
display: inline-block;
margin-left: 4px;
content: "\f058";
font-family: 'icomoon';
color: $g5-pepper;
transition: color 0.25s ease;
}
transition:
color 0.25s ease,
background-color 0.25s ease,
border-color 0.25s ease;
&:hover {
cursor: text;
color: $c-pool;
&:after {color: $c-pool;}
color: $g20-white;
background-color: $g3-castle;
border-color: $g3-castle;
}
}