Skip to content

Commit

Permalink
template update
Browse files Browse the repository at this point in the history
  • Loading branch information
thePortus committed Oct 10, 2024
1 parent 894ba66 commit 3891d43
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 12 deletions.
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ GEM
webrick (1.8.1)

PLATFORMS
arm64-darwin-23
x86_64-darwin-23
x86_64-linux

Expand Down
8 changes: 4 additions & 4 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<header class="w-full flex flex-col justify-start items-center">
<!-- medium to larger screens header (invisible on mobile) -->
<div class="normal-header w-full header-container card flex-col justify-start items-center">
<div class="w-full title-font p-2 text-center flex flex-row justify-center items-center">
<div class="my-3 w-full title-font p-2 text-center flex flex-row justify-center items-center">
<a class="tracking-widest" href="{{site.baseurl}}/">
{{ site.title }}
</a>
</div>
<div class="nav-bar w-full flex flex-row justify-between items-center py-2 px-10">
<div class="nav-bar w-full flex flex-row justify-around items-center py-2 px-10 mb-4">
{% for menu_item in site.nav-menu %}
<!-- put dropdown container if submenu exists -->
{% if menu_item.submenu %}
Expand All @@ -22,7 +22,7 @@
{% endif %}
</span>
{% if menu_item.submenu %}
<div class="dropdown-content text-center">
<div class="dropdown-content">
{% for submenu_item in menu_item.submenu %}
<a href="{{ site.baseurl }}/{{ submenu_item.link }}">
{{ submenu_item.title }}
Expand Down Expand Up @@ -84,7 +84,7 @@
{% endif %}
</span>
{% if menu_item.submenu %}
<div class="dropdown-content text-center">
<div class="dropdown-content">
{% for submenu_item in menu_item.submenu %}
<a href="{{ site.baseurl }}/{{ submenu_item.link }}">
{{ submenu_item.title }}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
{% endif %}

{% if page.show-title %}
<h1 class="w-full text-center mt-6 mb-6 text-3xl title-font">{{ page.title }}</h1>
<h1 class="w-full text-center md:mt-36 mt-4 mb-6 text-3xl title-font">{{ page.title }}</h1>
{% endif %}

<div class="mt-6 w-full flex flex-col justify-start items-center">
<div class="md:mb-36 mt-6 w-full flex flex-col justify-start items-center lg:px-40 md:px-20 px-5">
<div class="w-full page-content prose-headings prose prose-{{site.theme-color}}">
{{content}}
</div>
Expand Down
6 changes: 3 additions & 3 deletions _sass/theme-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ $link-base-color: #8A100B; // color of a regular link
$link-visited-color: #8A100B; // color of a regular link when visited
$link-hover-color: #171717; // color of a regular link upon hover
$link-header-base-color: #FAFAFA; // color of a linnk in the site header
$link-header-hover-color: #8A100B; // color of a link in the site header when hovering
$link-header-hover-color: #b29d6c; // color of a link in the site header when hovering
$link-footer-base-color: #FAFAFA; // color of a linnk in the site footer
$link-footer-hover-color: #171717; // color of a link in the site footer when hovering
$link-footer-hover-color: #b29d6c; // color of a link in the site footer when hovering
$link-dropdown-base-color: #171717; // color of the link in the nav menu
$link-dropdown-hover-color: #8A100B; // color of the link in the nav menu when hovering

Expand Down Expand Up @@ -53,7 +53,7 @@ $body-font-style: sans-serif; // either serif or sans serif
/* ===== LAYOUT ===== */
// ONLY change these if you want to change the dimensions of the site's header/content

$site-header-height: 110px; // the size of the site header, used to place the top of the site's content
$site-header-height: 150px; // the size of the site header, used to place the top of the site's content
$site-header-height-mobile: 40px; // header size, but for mobile
$site-footer-height: 92px; // the size of the site footer
$site-footer-height-mobile: 80px; // footer size, but for mobile
Expand Down
15 changes: 12 additions & 3 deletions _sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ h1, h2, h3, h4, h5, h6 {
}

.title-font a:hover {
color: $link-header-base-color !important;
color: $link-header-hover-color !important;
}

pre {
Expand Down Expand Up @@ -145,7 +145,7 @@ sup a:link, sup a:active, sup a:visited, sup a:hover {

/* Used to make various elements 'float' with a shadow */
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1), 0 4px 20px 0 rgba(0, 0, 0, 0.09);
}

.button {
Expand All @@ -154,7 +154,7 @@ sup a:link, sup a:active, sup a:visited, sup a:hover {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.button a, header a:visited {
.button a, .button a:visited {
color: $link-header-base-color !important;
text-decoration: none;
}
Expand Down Expand Up @@ -391,4 +391,13 @@ sup a:link, sup a:active, sup a:visited, sup a:hover {
.mobile-header {
display: flex;
}
}

h3 {
font-size-adjust: 0.70;
}

.prose img {
padding: 0px !important;
margin: 5px 0px 5px 0px !important;
}

0 comments on commit 3891d43

Please sign in to comment.