Commit 2cb3145f authored by tauriedavis's avatar tauriedavis

Update styles of help message and progress bar

parent b3582109
...@@ -140,11 +140,11 @@ ...@@ -140,11 +140,11 @@
<div :style='{ width: diffPercent }' class='meter-fill'></div> <div :style='{ width: diffPercent }' class='meter-fill'></div>
</div> </div>
<div class='compare-display-container'> <div class='compare-display-container'>
<div class='compare-display pull-left'> <div class='compare-display'>
<span class='compare-label'>Spent</span> <span class='compare-label'>Spent</span>
<span class='compare-value spent'>{{ spentPretty }}</span> <span class='compare-value spent'>{{ spentPretty }}</span>
</div> </div>
<div class='compare-display estimated pull-right'> <div class='compare-display estimated'>
<span class='compare-label'>Est</span> <span class='compare-label'>Est</span>
<span class='compare-value'>{{ estimatedPretty }}</span> <span class='compare-value'>{{ estimatedPretty }}</span>
</div> </div>
......
...@@ -5,7 +5,7 @@ $sidebar_collapsed_width: 62px; ...@@ -5,7 +5,7 @@ $sidebar_collapsed_width: 62px;
$sidebar_width: 220px; $sidebar_width: 220px;
$gutter_collapsed_width: 62px; $gutter_collapsed_width: 62px;
$gutter_width: 290px; $gutter_width: 290px;
$gutter_inner_width: 258px; $gutter_inner_width: 250px;
$sidebar-transition-duration: .15s; $sidebar-transition-duration: .15s;
$sidebar-breakpoint: 1024px; $sidebar-breakpoint: 1024px;
......
...@@ -408,57 +408,61 @@ ...@@ -408,57 +408,61 @@
} }
} }
#issuable-time-tracker { .time_tracker {
padding-bottom: 0;
border-bottom: 0;
> .stopwatch-svg { > .stopwatch-svg {
display: none; display: none;
} }
.time-tracking-help-state { .sidebar-collapsed-icon {
padding: 10px 0; svg {
margin-top: 10px; width: 16px;
border-top: 1px solid #dcdcdc; height: 16px;
fill: #999;
}
} }
.meter-container { .help-button, .close-help-button {
background: $gray-lighter; cursor: pointer;
border-radius: 2px;
} }
.compare-meter {
&.within_estimate {
.meter-fill { .meter-fill {
max-width: 100%; background: $gl-primary;
height: 4px;
background: $gl-text-green;
} }
.help-button, .close-help-button {
cursor: pointer;
} }
.over_estimate {
&.over_estimate {
.meter-fill { .meter-fill {
background: $red-light ; background: $red-light ;
} }
.time-remaining, .compare-value.spent { .time-remaining, .compare-value.spent {
color: $red-light ; color: $red-light ;
} }
} }
.sidebar-collapsed-icon {
svg {
width: 16px;
height: 16px;
fill: #999;
}
} }
.within_estimate { .meter-container {
background: $border-gray-light;
border-radius: 3px;
.meter-fill { .meter-fill {
background: $gl-text-green; max-width: 100%;
height: 5px;
border-radius: 3px;
background: $gl-primary;
} }
} }
.compare-display-container { .compare-display-container {
height: 10px; display: flex;
justify-content: space-between;
margin-top: 5px; margin-top: 5px;
}
.compare-display { .compare-display {
font-size: 13px; font-size: 13px;
color: $gl-gray-light; color: $gl-gray-light;
...@@ -467,4 +471,18 @@ ...@@ -467,4 +471,18 @@
color: $gl-gray; color: $gl-gray;
} }
} }
}
.time-tracking-help-state {
transition: all 1s ease-in-out;
background: $white-light;
margin: 16px -20px 0;
padding: 16px 20px;
border-top: 1px solid $border-gray-light;
border-bottom: 1px solid $border-gray-light;
a:hover {
color: $btn-white-active;
}
}
} }
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
= f.hidden_field 'milestone_id', value: issuable.milestone_id, id: nil = f.hidden_field 'milestone_id', value: issuable.milestone_id, id: nil
= dropdown_tag('Milestone', options: { title: 'Assign milestone', toggle_class: 'js-milestone-select js-extra-options', filter: true, dropdown_class: 'dropdown-menu-selectable', placeholder: 'Search milestones', data: { show_no: true, field_name: "#{issuable.to_ability_name}[milestone_id]", project_id: @project.id, issuable_id: issuable.id, milestones: namespace_project_milestones_path(@project.namespace, @project, :json), ability_name: issuable.to_ability_name, issue_update: issuable_json_path(issuable), use_id: true }}) = dropdown_tag('Milestone', options: { title: 'Assign milestone', toggle_class: 'js-milestone-select js-extra-options', filter: true, dropdown_class: 'dropdown-menu-selectable', placeholder: 'Search milestones', data: { show_no: true, field_name: "#{issuable.to_ability_name}[milestone_id]", project_id: @project.id, issuable_id: issuable.id, milestones: namespace_project_milestones_path(@project.namespace, @project, :json), ability_name: issuable.to_ability_name, issue_update: issuable_json_path(issuable), use_id: true }})
- if issuable.has_attribute?(:time_estimate) - if issuable.has_attribute?(:time_estimate)
#issuable-time-tracker.block #issuable-time-tracker.block.time_tracker
%issuable-time-tracker{ ':time_estimate' => 'issuable.time_estimate', ':time_spent' => 'issuable.total_time_spent', ':human_time_estimate' => 'issuable.human_time_estimate', ':human_time_spent' => 'issuable.human_total_time_spent' } %issuable-time-tracker{ ':time_estimate' => 'issuable.time_estimate', ':time_spent' => 'issuable.total_time_spent', ':human_time_estimate' => 'issuable.human_time_estimate', ':human_time_spent' => 'issuable.human_total_time_spent' }
// Fallback while content is loading // Fallback while content is loading
.title.hide-collapsed .title.hide-collapsed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment