update css and fix mobile
This commit is contained in:
parent
f5687fbf32
commit
392ecc99a3
@ -67,5 +67,5 @@ paginate_by = 2
|
|||||||
paginate_path = "blog-posts"
|
paginate_path = "blog-posts"
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
header_class = "freeflow"
|
header_class = "customize"
|
||||||
footer_class = "freeflow"
|
footer_class = "customize"
|
@ -173,28 +173,30 @@ font-weight: 500;
|
|||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
header .freeflow {
|
header .customize {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer .freeflow {
|
footer .customize {
|
||||||
width: 100vw;
|
/* width: 100vw; */
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 40px;
|
padding-top: 40px;
|
||||||
|
padding-bottom: 40px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
footer .freeflow img {
|
footer .customize img {
|
||||||
width: 125px;
|
width: 125px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
header .freeflow div {
|
header .customize div {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
text-transform: uppercase;
|
text-transform: capitalize;
|
||||||
font-weight: 700 !important;
|
font-weight: 700 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -355,6 +357,12 @@ header {
|
|||||||
.header:hover .back {
|
.header:hover .back {
|
||||||
transform: none;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: #636363;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
/* h2 {
|
/* h2 {
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
function toggleMenu(button) {
|
function toggleMenu(button) {
|
||||||
if (displayedMenu === button.id.split("-")[0]) {
|
if (displayedMenu === button.id.split("-")[0]) {
|
||||||
button.className = button.className.replace(" text-blue-500 bg-stone-200 sm:bg-transparent", " text-gray-900");
|
button.className = button.className.replace(" text-green-500 bg-stone-200 sm:bg-transparent", " text-gray-900");
|
||||||
hideMenu(button.id.split("-")[0]);
|
hideMenu(button.id.split("-")[0]);
|
||||||
button.lastElementChild.className = button.lastElementChild.className.replace("rotate-0", "-rotate-90")
|
button.lastElementChild.className = button.lastElementChild.className.replace("rotate-0", "-rotate-90")
|
||||||
displayedMenu = "";
|
displayedMenu = "";
|
||||||
@ -20,7 +20,7 @@
|
|||||||
else {
|
else {
|
||||||
showMenu(button.id.split("-")[0]);
|
showMenu(button.id.split("-")[0]);
|
||||||
button.lastElementChild.className = button.lastElementChild.className.replace("-rotate-90", "rotate-0")
|
button.lastElementChild.className = button.lastElementChild.className.replace("-rotate-90", "rotate-0")
|
||||||
button.className = button.className.replace(" text-gray-900", " text-blue-500 bg-stone-200 sm:bg-transparent");
|
button.className = button.className.replace(" text-gray-900", " text-green-500 bg-stone-200 sm:bg-transparent");
|
||||||
displayedMenu = button.id.split("-")[0]
|
displayedMenu = button.id.split("-")[0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -79,7 +79,7 @@
|
|||||||
buttons.forEach((button) => {
|
buttons.forEach((button) => {
|
||||||
button.addEventListener( 'click', function() { handleClick(button) });
|
button.addEventListener( 'click', function() { handleClick(button) });
|
||||||
})
|
})
|
||||||
document.getElementById("mobile-learn-btn").addEventListener( 'click', toggleMenu);
|
//document.getElementById("mobile-learn-btn").addEventListener( 'click', toggleMenu);
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -97,33 +97,33 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<header id="header-container">
|
<header id="header-container">
|
||||||
{% set header_class = config.extra.header_class | default(value='') %}
|
{% set header_class = config.extra.header_class | default(value='') %}
|
||||||
<div class="{{'z-10 bg-white fixed w-screen ' ~ header_class}}">
|
<div class="{{'z-10 header_BG fixed w-screen max-w-full ' ~ header_class}}">
|
||||||
<div class="relative z-50 shadow">
|
<div class="relative z-50 shadow">
|
||||||
<div class="mx-auto flex z-50 shadow justify-between items-center pl-6 pr-2 md:pr-0 lg:py-5 md:px-12 py-2 lg:px-20 lg:justify-start lg:space-x-20">
|
<div class="mx-auto flex z-50 shadow justify-between items-center pl-6 pr-2 md:pr-0 lg:py-5 md:px-12 py-2 lg:px-20 lg:justify-start lg:space-x-20">
|
||||||
<div>
|
<div>
|
||||||
<a href="/" class="flex">
|
<a href="/" class="flex">
|
||||||
<img class="w-56 h-auto sm:w-15" src="{{logo_path}}" alt="FreeFlow Logo" />
|
<img class="logo" src="{{logo_path}}" alt="Logo" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="-mr-2 -my-2 lg:hidden">
|
<div class="-mr-2 -my-2 lg:hidden">
|
||||||
<button id="hamburger-btn" type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out my-2">
|
<button id="hamburger-btn" type="button" class="mr-4 inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out my-2">
|
||||||
<!-- Heroicon name: menu -->
|
<!-- Heroicon name: menu -->
|
||||||
<svg class="h-6 w-6 text-black" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
<svg class="h-6 w-6 text-black" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
<button id="close-hamburger-btn text-black" type="button" class="hidden lg:hidden inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out my-2">
|
<button id="close-hamburger-btn" type="button" class="hidden lg:hidden inline-flex mr-4 items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out my-2">
|
||||||
<!-- Heroicon name: x -->
|
<!-- Heroicon name: x -->
|
||||||
<svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
<svg class="h-6 w-6 text-black" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
||||||
</svg>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden lg:flex-1 lg:flex lg:items-center lg:justify-end lg:space-x-12">
|
<div class="hidden lg:flex-1 lg:flex lg:items-center lg:justify-end lg:space-x-12">
|
||||||
<nav class="flex space-x-10">
|
<nav class="flex space-x-6">
|
||||||
{% for page in section.pages %}
|
{% for page in section.pages %}
|
||||||
{% if page.extra.menu %} {% continue %} {% endif %}
|
{% if page.extra.menu %} {% continue %} {% endif %}
|
||||||
<a href="{{page.permalink}}" class="text-lg leading-6 text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
|
<a href="{{page.permalink}}" class="text-lg uppercase font-semibold leading-6 text-black focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
|
||||||
{{page.title}}
|
{{page.title}}
|
||||||
</a>
|
</a>
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
@ -133,7 +133,7 @@
|
|||||||
{% if subsection == "footer/_index.md" %} {% continue %} {% endif %}
|
{% if subsection == "footer/_index.md" %} {% continue %} {% endif %}
|
||||||
{% set button_id = subsection ~ "-menu-btn" | slugify %}
|
{% set button_id = subsection ~ "-menu-btn" | slugify %}
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<button type="button" id="{{button_id}}" class="nav_btn text-gray-900 group inline-flex items-center space-x-2 text-lg leading-6 hover:text-blue-300 focus:outline-none transition ease-in-out duration-150">
|
<button type="button" id="{{button_id}}" class="nav_btn text-gray-900 group inline-flex items-center space-x-2 text-lg leading-6 hover:text-green-300 focus:outline-none transition ease-in-out duration-150">
|
||||||
<span>{{ subsection }}</span>
|
<span>{{ subsection }}</span>
|
||||||
<div class="-rotate-90 transition-transform"><svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg></div>
|
<div class="-rotate-90 transition-transform"><svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg></div>
|
||||||
</button>
|
</button>
|
||||||
@ -173,7 +173,7 @@
|
|||||||
<div id="hamburger" class="hidden fixed mt-16 z-20 top-0 inset-x-0 transition transform origin-top-right lg:hidden">
|
<div id="hamburger" class="hidden fixed mt-16 z-20 top-0 inset-x-0 transition transform origin-top-right lg:hidden">
|
||||||
<div>
|
<div>
|
||||||
<div class="shadow-xs h-screen bg-white divide-y-2 divide-gray-50">
|
<div class="shadow-xs h-screen bg-white divide-y-2 divide-gray-50">
|
||||||
<div class="pb-6 sm:px-12 md:px-16 lg:px-20 space-y-6 sm:space-y-8 sm:pb-8 max-h-screen overflow-y-auto">
|
<div class="pt-6 sm:px-12 md:px-16 lg:px-20 space-y-6 sm:space-y-8 sm:pb-8 max-h-screen overflow-y-auto">
|
||||||
|
|
||||||
<nav class="flex flex-col justify-around pb-12">
|
<nav class="flex flex-col justify-around pb-12">
|
||||||
{% for page in section.pages %}
|
{% for page in section.pages %}
|
||||||
@ -224,3 +224,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.logo{
|
||||||
|
width: 250px;
|
||||||
|
}
|
||||||
|
</style>
|
Reference in New Issue
Block a user