Skip to content

Commit

Permalink
ensure progress bars are same cross browser
Browse files Browse the repository at this point in the history
  • Loading branch information
natestemen committed Jun 7, 2023
1 parent a20a5d0 commit c9f1497
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
22 changes: 11 additions & 11 deletions _includes/assets/css/projects.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
margin: 5px;
}


.tag-list {
line-height: 2rem;
display: flex;
Expand Down Expand Up @@ -85,26 +84,27 @@ label {
}

progress {
border: none;
border-radius: 0.5em;
border: 0.15em solid black;
border-radius: 1em;
color: var(--color-secondary);
background-color: var(--color-bg);
transform: rotate(180deg);
width: 100%;
}

progress::-webkit-progress-bar {
background: var(--color-border);
border: 2.5px solid black;
border-radius: 8px;
progress::-moz-progress-bar {
background: var(--color-secondary);
}

progress::-webkit-progress-bar {
background: white;
border-radius: 1em;
}

progress::-webkit-progress-value {
background: rgb(117, 117, 117);
border-radius: 5px 0px 0px 5px;
background: var(--color-secondary);
border-radius: 1em 0px 0px 1em;
}


.page-container {
max-width: 1200px;
margin: 0 10%;
Expand Down
3 changes: 2 additions & 1 deletion _includes/components/projectlist.njk
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

{% set num_completed = project_meta.num_bounties - project_meta.num_open_bounties %}
<label for="bounty-progress">
Bounties open: {{ project_meta.num_open_bounties }}/{{project_meta.num_bounties}} </label>
Bounties open: {{ project_meta.num_open_bounties }}/{{ project_meta.num_bounties }}
</label>
<progress id="bounty-progress" max={{ project_meta.num_bounties }} value={{ num_completed }}></progress>
</div>
{% endif %}
Expand Down

0 comments on commit c9f1497

Please sign in to comment.