Skip to content

Commit

Permalink
Added css property for progress bar height. (google#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushmatrix authored and Christopher Joel committed Jun 5, 2019
1 parent 846d385 commit 7daa06c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ <h3 class="grouping-title">CSS Custom Properties</h3>
<div>--progress-bar-color</div>
<p>Sets the background-color of the progress bar. Defaults to rgba(0, 0, 0, 0.4).</p>
</li>
<li>
<div>--progress-bar-height</div>
<p>Sets the height of the progress bar. Defaults to 5px.</p>
</li>
<li>
<div>--progress-mask</div>
<p>Sets the background of the progress mask. Defaults to #fff.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ template.innerHTML = `
top: 0;
left: 0;
width: 100%;
height: 5px;
height: var(--progress-bar-height, 5px);
transition: transform 0.09s;
transform-origin: top left;
transform: scaleX(0);
Expand Down

0 comments on commit 7daa06c

Please sign in to comment.