Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the inline css in html files and put it to the custom.css file #388

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
2 changes: 0 additions & 2 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@

.contact-section{
background-color: #F3F3F3;
padding-bottom: 40px;
padding-top: 40px;
}

.contact-section .row{
Expand Down
20 changes: 12 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
<div class="page-header header-filter" data-parallax="true"
style="background-image: url('assets/img/header-image.webp')">
<div class="container">
<div class="title text-left">
<h1>St. Anthony's College</h1>
<p style="font-family: 'Roboto'; font-size: 20px; font-weight: 400;">
Since 1854
</p>
<div class="row">
<div class="col-md-12 ml-auto mr-auto">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason for using a row and a col here? I think it works the same even without the row and column

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason for using a row and a col here? I think it works the same even without the row and column

Yeah I checked nothing happening

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So shall I remove that @Piumal1999 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah

Ok @Piumal1999 I removed that

<div class="title text-left">
<h1>St. Anthony's College</h1>
<h4>
Since 1854
</h4>
</div>
<a href="{{ site.baseurl }}/history" class="btn btn-primary btn-sm">OUR HISTORY</a>
</div>
</div>
<a href="{{ site.baseurl }}/history" class="btn btn-primary btn-sm">OUR HISTORY</a>
</div>
</div>
<!-- End of Header -->
Expand Down Expand Up @@ -70,7 +74,7 @@ <h4 class="card-title">Nam aliquam bibendum ullamcorper. Praesent tempor</h4>
<div class="section pt-0">
<h2 class="section-name"> Quick Access </h2>
<div class="d-flex justify-content-center">
<div class="row" style="width: 71rem;">
<div class="row container">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move the container class to line 76. Also, we can remove d-flex justify-content-center classes because there's no any changes from those.

<h2 class="section-name"> Quick Access </h2>
<div class="container">
    <div class="row">

<div class="col-md-6">
<div class="card">
<div class="card-body pt-2">
Expand Down Expand Up @@ -142,7 +146,7 @@ <h2 class="section-name">What’s happening this week?</h2>
<!-- End of Calendar section-->
</div>
<!-- Contact section-->
<div class="contact-section">
<div class="contact-section py-5">
<h2 class="section-name">Contact Us</h2>
<h2 class="section-name">
<a href="tel:+94 081 221 3652">
Expand Down