1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

progressBar padding修正

This commit is contained in:
Yutaka Ishii
2017-12-11 21:52:08 +09:00
parent 728f105830
commit 9e8d04d806
2 changed files with 13 additions and 3 deletions

View File

@@ -16,7 +16,9 @@ const TodoListPercentage = ({
}) => (
<div styleName='percentageBar' style={{display: isNaN(percentageOfTodo) ? 'none' : ''}}>
<div styleName='progressBar' style={{width: `${percentageOfTodo}%`}}>
<p styleName='percentageText'>{percentageOfTodo}%</p>
<div styleName='progressBarInner'>
<p styleName='percentageText'>{percentageOfTodo}%</p>
</div>
</div>
</div>
)

View File

@@ -9,7 +9,6 @@
font-size: 12px
z-index 100
border-radius 2px
padding-left 10px
.progressBar
background-color: #1EC38B
@@ -17,9 +16,18 @@
border-radius 2px
transition 0.4s cubic-bezier(0.4, 0.4, 0, 1)
.progressBarInner
padding 0 10px
min-width 1px
height 100%
display -webkit-box
display box
justify-content center
align-items center
.percentageText
color #f4f4f4
padding: 2px 43%
font-weight 600
body[data-theme="dark"]