Skip to content

Commit

Permalink
Modified header and footer styling
Browse files Browse the repository at this point in the history
  • Loading branch information
RSAK56 committed Mar 20, 2024
1 parent 89bea79 commit 51a8094
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 22 deletions.
53 changes: 42 additions & 11 deletions resources/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
display: flex;
}

.jscfs {
justify-content: flex-start;
}

.jscc {
justify-content: center;
}
Expand Down Expand Up @@ -44,17 +48,25 @@
flex: 2;
}

.flex-3 {
flex: 3;
}

.flex-0-8 {
flex: 0.8;
}

.margin-left-1 {
margin-left: 1rem;
}

.margin-bottom-16 {
margin-bottom: 1rem;
}

.footer-content-container {
width: 100%;
margin: 0 5%;
margin: 0 14%;
}
</style>

Expand Down Expand Up @@ -259,14 +271,33 @@
<!-- Copy Rights and Social Media Links -->
<div class="display-flex jscsb">
<!-- Column 1 -->
<div class="flex-0-8">
<p class="md-footer-base-content">
<b>
© 2023 Stakater.com
</b>
</p>
<div class="flex-3">
<div class="display-flex jscfs items-center">
<div>
<p class="md-footer-base-content">
<b>
© 2023 Stakater.com
</b>
</p>
</div>
<div class="display-flex margin-left-1">
<a href="https://www.stakater.com/privacy-policy" class="md-footer-base-content">
<b>
Privacy Policy
</b>
</a>
<p class="vertical-divider">
|
</p>
<a href="https://www.stakater.com/terms-of-use" class="md-footer-base-content">
<b>
Terms of Use
</b>
</a>
</div>
</div>
</div>
<div class="display-flex flex-1">
<!-- <div class="display-flex flex-1">
<div class="display-flex jscc items-center">
<a href="https://www.stakater.com/privacy-policy" class="md-footer-base-content">
<b>
Expand All @@ -282,9 +313,9 @@
</b>
</a>
</div>
</div>
<div class="flex-1"></div>
<div class="flex-1"></div>
</div> -->
<!-- <div class="flex-1"></div>
<div class="flex-1"></div> -->
<div class="flex-1">
<!-- Social Links -->
<div class="display-flex jscsa">
Expand Down
11 changes: 2 additions & 9 deletions resources/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,6 @@
{% endif %}
</div>
<!-- Topic -->
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
{% if page.meta and page.meta.title %}
{{ page.meta.title }}
{% else %}
{{ page.title }}
{% endif %}
</span>
</div>
</div>
</div>

Expand Down Expand Up @@ -117,6 +108,7 @@

if (scrollTop > scrollThreshold) {
header.classList.add('md-header--scroll');
header.style.borderBottom = 'none';
search.style.display = 'none';
searchResults.style.display = 'none';
if (colorPaletteToggle) {
Expand All @@ -127,6 +119,7 @@
}
} else {
header.classList.remove('md-header--scroll');
header.style.borderBottom = '';
search.style.display = '';
searchResults.style.display = '';
if (colorPaletteToggle) {
Expand Down
20 changes: 18 additions & 2 deletions resources/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4, .md-typeset h5, .md-typeset h6 {
font-weight: 600;
}

.md-nav__title {
font-size: 0.8rem;
}
.md-nav__link {
font-size: 0.8rem;
}
}


Expand Down Expand Up @@ -70,6 +77,9 @@
color: #fff;
}

.md-header {
border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.md-header__topic{
display: flex;
justify-content: center;
Expand Down Expand Up @@ -113,6 +123,7 @@
font-size: 14px;
font-weight: 400;
}


.md-footer{
background-color: #131414;
Expand All @@ -136,7 +147,7 @@
}

.vertical-divider {
margin: 0 3rem; display: flex; align-items: center; cursor: none; color: #fff;
margin: 0 1rem; display: flex; align-items: center; cursor: none; color: #fff;
}
}

Expand Down Expand Up @@ -181,6 +192,9 @@
color: #282523;
}

.md-header {
border-bottom: 1px solid rgba(23, 25, 28, 0.2);
}
.md-header__topic{
display: flex;
justify-content: center;
Expand Down Expand Up @@ -223,6 +237,8 @@
font-weight: 400;
}



.md-footer{
background-color: white;
border-top: 1px solid rgba(0, 0, 0, 0.2);
Expand All @@ -245,6 +261,6 @@
}

.vertical-divider {
margin: 0 3rem; display: flex; align-items: center; cursor: none; color: black;
margin: 0 1rem; display: flex; align-items: center; cursor: none; color: black;
}
}

0 comments on commit 51a8094

Please sign in to comment.