Skip to content

Commit

Permalink
Change column sizes to 70/30 % for each institutions card
Browse files Browse the repository at this point in the history
  • Loading branch information
OnaMosimege committed Apr 19, 2024
1 parent cf24310 commit e60c44e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
23 changes: 16 additions & 7 deletions app/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,11 @@ body {
width: 100%;
padding-right: 10px;
}
.col-sm-6 {
width: 50%;
.left-col {
width: 70%;
}
.right-col {
width: 30%;
}
.uni-card {
width: 98%;
Expand Down Expand Up @@ -231,8 +234,11 @@ body {
width: 100%;
padding-right: 10px;
}
.col-sm-6 {
width: 50%;
.left-col {
width: 70%;
}
.right-col {
width: 30%;
}
}

Expand All @@ -253,9 +259,12 @@ body {
float: left;
padding-right: 10px;
}
.col-sm-6 {
width: 50%;
}
.left-col {
width: 70%;
}
.right-col {
width: 30%;
}
.uni-card {
margin: 10px;
width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions app/templates/app/institutions.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="all-cards section">
<div class="card uni-card">
<div class="row">
<div class="col-sm-6">
<div class="col-sm-6 left-col">
<h5 class="card-title">{{ institution.name }}</h5>
<p class="card-text">
{{ institution.abbreviation }}
Expand All @@ -18,7 +18,7 @@ <h5 class="card-title">{{ institution.name }}</h5>
</p>
<br>
</div>
<div class="col-sm-6">
<div class="col-sm-6 right-col">
<p class="card-text">Profile completion:</p>
<div class="profile-icons">
<i class="bi-star-fill"></i>
Expand Down

0 comments on commit e60c44e

Please sign in to comment.