Skip to content

Commit

Permalink
element aligned to the right also inrease its size
Browse files Browse the repository at this point in the history
  • Loading branch information
akbarsazish committed Aug 4, 2023
1 parent f656c53 commit 2230b2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Book.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const BookInfo = ({ book }) => {
<div className="circle">
</div>
<div className="percentage">
<p className="competion-percentage"> 80 % </p>
<p className="competion-percentage"> 64 % </p>
<p className="completed"> completed </p>
</div>
</div>
Expand Down
12 changes: 7 additions & 5 deletions src/components/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,14 @@ button {

.competion-percentage {
margin: 12px 2px 2px 22px;
font-size: 22px;
font-size: 2rem;
font-weight: bold;
}

.completed {
margin: 2px 22px;
color: gray;
font-size: 0.87rem;
}

.book-item {
Expand All @@ -176,6 +177,7 @@ button {
.book-improvment {
display: flex;
padding: 10px 5px;
float: right;
}

.book-category {
Expand Down Expand Up @@ -216,8 +218,8 @@ ul {

.circle {
position: relative;
width: 4.25rem;
height: 4.25rem;
width: 5rem;
height: 5rem;
border-radius: 50%;
background: conic-gradient(#2c88d9 230deg, rgb(18, 18, 18, 0.1) 0deg);
display: flex;
Expand All @@ -228,8 +230,8 @@ ul {
.circle::before {
content: '';
position: absolute;
height: 3.7rem;
width: 3.7rem;
height: 4.3rem;
width: 4.3rem;
border-radius: 50%;
background-color: #fff;
}
Expand Down

0 comments on commit 2230b2c

Please sign in to comment.