style hover link
This commit is contained in:
parent
0fed6cfd12
commit
1fa9bf1e10
5 changed files with 48 additions and 30 deletions
|
|
@ -9,9 +9,6 @@
|
||||||
padding: var(--unit--vertical) var(--unit--horizontal);
|
padding: var(--unit--vertical) var(--unit--horizontal);
|
||||||
transition: height 0.2s ease-in-out;
|
transition: height 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
#main-header.minimized {
|
|
||||||
height: calc(var(--unit--vertical) * 3);
|
|
||||||
}
|
|
||||||
#logo {
|
#logo {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,15 +27,20 @@ button.toggle.right.open::before {
|
||||||
|
|
||||||
#tabs {
|
#tabs {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: -30svh;
|
margin-top: -25svh;
|
||||||
margin-bottom: 30svh;
|
margin-bottom: 30svh;
|
||||||
|
transition: margin-top 0.5s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tabs.open {
|
||||||
|
margin-bottom: calc(3 * var(--unit--vertical));
|
||||||
}
|
}
|
||||||
|
|
||||||
.active-tab {
|
.active-tab {
|
||||||
max-height: 70vh;
|
max-height: 60svh;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
margin-top: calc((var(--unit--vertical) * 0.5));
|
margin-top: var(--unit--vertical);
|
||||||
transition: height 0.5s ease-in-out;
|
transition: max-height 0.5s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-cover.open .active-tab {
|
.page-cover.open .active-tab {
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,28 @@ h4,
|
||||||
h5,
|
h5,
|
||||||
p {
|
p {
|
||||||
font-weight: var(--font-weight-light);
|
font-weight: var(--font-weight-light);
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: var(--font-size-xl);
|
||||||
|
}
|
||||||
|
|
||||||
|
article h2 {
|
||||||
|
margin-bottom: calc(var(--unit--vertical) / 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-center {
|
||||||
|
--margin-left: calc(4 * var(--unit--horizontal));
|
||||||
|
width: calc(100% - var(--margin-left));
|
||||||
|
margin-left: var(--margin-left);
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-title {
|
||||||
|
line-height: 1;
|
||||||
|
text-align: left;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-weight: var(--font-weight-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
p,
|
p,
|
||||||
|
|
@ -53,19 +75,6 @@ button,
|
||||||
font-size: var(--font-size-xxl) !important;
|
font-size: var(--font-size-xxl) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-center {
|
|
||||||
--margin-left: calc(4 * var(--unit--horizontal));
|
|
||||||
width: calc(100% - var(--margin-left));
|
|
||||||
margin-left: var(--margin-left);
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-title {
|
|
||||||
line-height: 1;
|
|
||||||
text-align: left;
|
|
||||||
box-sizing: border-box;
|
|
||||||
font-weight: var(--font-weight-light);
|
|
||||||
}
|
|
||||||
|
|
||||||
p,
|
p,
|
||||||
li,
|
li,
|
||||||
button,
|
button,
|
||||||
|
|
@ -100,6 +109,17 @@ button {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a * {
|
||||||
|
transition: font 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.no-line:hover * {
|
||||||
|
font-weight: 250;
|
||||||
|
}
|
||||||
|
a:not(.no-line):hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
a:not(.no-line) {
|
a:not(.no-line) {
|
||||||
text-decoration: dotted;
|
text-decoration: dotted;
|
||||||
text-decoration-color: #fff;
|
text-decoration-color: #fff;
|
||||||
|
|
@ -108,7 +128,7 @@ a:not(.no-line) {
|
||||||
text-decoration-thickness: 0.5px;
|
text-decoration-thickness: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
article p {
|
article p:not(:last-child) {
|
||||||
margin-bottom: var(--unit--vertical);
|
margin-bottom: var(--unit--vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,11 +42,4 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
window.addEventListener("scroll", () => {
|
window.addEventListener("scroll", () => {
|
||||||
toggleLogoState();
|
toggleLogoState();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (
|
|
||||||
navigator.userAgent.toLowerCase().includes("safari") &&
|
|
||||||
window.innerWidth < 800
|
|
||||||
) {
|
|
||||||
document.querySelector("#tabs").classList.add("safari");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,8 @@ $activeTab = isset($activeTab) ? Str::slug($activeTab) : '';
|
||||||
|
|
||||||
<nav id="tabs" x-data="{
|
<nav id="tabs" x-data="{
|
||||||
activeTab: '<?= $activeTab ?>'
|
activeTab: '<?= $activeTab ?>'
|
||||||
}">
|
}"
|
||||||
|
:class="activeTab.length > 0 ? 'open' : 'close'">
|
||||||
<div class="toggle-btns | flex space-between" style="
|
<div class="toggle-btns | flex space-between" style="
|
||||||
--content:space-between;
|
--content:space-between;
|
||||||
">
|
">
|
||||||
|
|
@ -22,7 +23,9 @@ $activeTab = isset($activeTab) ? Str::slug($activeTab) : '';
|
||||||
@click="toggleTab($data, 'texts')"
|
@click="toggleTab($data, 'texts')"
|
||||||
>textes</button>
|
>textes</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="active-tab" x-show="activeTab.length > 0">
|
<div
|
||||||
|
class="active-tab"
|
||||||
|
>
|
||||||
<section
|
<section
|
||||||
x-show="activeTab === '<?=$left['slug'] ?>'">
|
x-show="activeTab === '<?=$left['slug'] ?>'">
|
||||||
<?= $left['content'] ?>
|
<?= $left['content'] ?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue