Skip to content

Commit 4bf3e2c

Browse files
committed
Fixed logo spacing on all devices
1 parent 5ea134d commit 4bf3e2c

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

_layouts/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
{% include sidebar.html %}
1414
<main role="main" class="page-content" id="page-content">
1515
<div class="row">
16-
<div class="col-12 main-logo">
16+
<div class="main-logo">
1717
<a href="{{site.url}}"><img src="{{site.url}}/images/keyboard-green.png"></a>
1818
</div>
19-
<div class="col-12 main-logo-title">
19+
<div class="main-logo-title">
2020
<h1 class="cover-heading">CODEWITH<span id="small-screen-break"><br /></span><span id="suffix"
2121
class="typed-suffix">US</span></h1>
2222
</div>

css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ iframe {
175175
}
176176

177177
.center-when-small {
178+
padding-top: 1em;
178179
text-align: center;
179180
}
180181

@@ -477,6 +478,7 @@ div.event-book-button {
477478

478479
@media screen and (min-width: 769px) {
479480
.center-when-small {
481+
padding-top: 0;
480482
text-align: left;
481483
}
482484

@@ -487,6 +489,7 @@ div.event-book-button {
487489
}
488490

489491
.page-wrapper .main-logo-title {
492+
padding-left: 0;
490493
text-align: left;
491494
width: initial;
492495
}

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
title: Home
3030
---
3131

32+
<div class="center-when-small">
33+
<h1>Welcome to CodeWith!</h1>
34+
</div>
3235
<div class="row intro">
33-
<div class="col-12 center-when-small">
34-
<h1>Welcome to CodeWith!</h1>
35-
</div>
3636
<div class="offset-lg-2 col-lg-8 text-center">
3737
<h4>
3838
Our mission is to create a virtual space for adults to pursue programming-related learning

0 commit comments

Comments
 (0)