mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2024-11-25 10:01:27 +00:00
Fix links on hover, make About CSS-only
This commit is contained in:
parent
0f4dc6ba3b
commit
d55136d37d
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
<input name="popup" id="overlay2" class="overlay" type="radio">
|
<input name="popup" id="overlay2" class="overlay" type="radio">
|
||||||
<div class="share-wrapper">
|
<div class="share-wrapper">
|
||||||
<div class="u-extra">
|
<div class="u-hidden">
|
||||||
<div class="share">
|
<div class="share">
|
||||||
<label class="dex-btn rounded diaspora" title="Share this page on Diaspora" for="diaspora-share">
|
<label class="dex-btn rounded diaspora" title="Share this page on Diaspora" for="diaspora-share">
|
||||||
<svg role="img" class="dex-icon">
|
<svg role="img" class="dex-icon">
|
||||||
|
|
|
@ -22,14 +22,13 @@
|
||||||
<li><a href="/en/knowledge"><svg class="f-icon"><use xlink:href="#icon-star"></use></svg> <span><%- __('knowledge') %></span></a></li>
|
<li><a href="/en/knowledge"><svg class="f-icon"><use xlink:href="#icon-star"></use></svg> <span><%- __('knowledge') %></span></a></li>
|
||||||
<li><a href="/en/miscellaneous"><svg class="f-icon"><use xlink:href="#icon-star"></use></svg> <span><%- __('more') %></span></a></li>
|
<li><a href="/en/miscellaneous"><svg class="f-icon"><use xlink:href="#icon-star"></use></svg> <span><%- __('more') %></span></a></li>
|
||||||
<li><a href="/en/portal/servers"><svg class="f-icon"><use xlink:href="#icon-star"></use></svg> <span><%- __('portal') %></span></a></li>
|
<li><a href="/en/portal/servers"><svg class="f-icon"><use xlink:href="#icon-star"></use></svg> <span><%- __('portal') %></span></a></li>
|
||||||
<li class="source">
|
<li class="revealer">
|
||||||
<div class="u-extra">
|
<span class="revealer__toggle" tabindex="0"></span>
|
||||||
|
<div class="revealer__text"><span><%- __('about') %></span></div>
|
||||||
|
<div class="u-hidden source">
|
||||||
<a href="https://gitlab.com/distributopia/all-logos-in-one-basket"><%- __('logo') %></a>
|
<a href="https://gitlab.com/distributopia/all-logos-in-one-basket"><%- __('logo') %></a>
|
||||||
<a href="https://git.feneas.org/feneas/fediverse"><%- __('code') %></a>
|
<a href="https://git.feneas.org/feneas/fediverse"><%- __('code') %></a>
|
||||||
</div>
|
</div>
|
||||||
<div id="pulse" class="source__toggle">
|
|
||||||
<button type="button"><%- __('about') %></button>
|
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -30,17 +30,6 @@
|
||||||
overlay.checked = true;
|
overlay.checked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**** Reveal about info ****/
|
|
||||||
|
|
||||||
const about = document.getElementById('pulse');
|
|
||||||
|
|
||||||
about.addEventListener('click', toggleInfo);
|
|
||||||
|
|
||||||
function toggleInfo(e) { // to separate func-helpers file
|
|
||||||
const content = e.currentTarget.previousElementSibling;
|
|
||||||
content.classList.toggle('open');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**** Close share button input on click outside input ****/
|
/**** Close share button input on click outside input ****/
|
||||||
|
|
||||||
const serverForm = document.getElementsByClassName('hidden');
|
const serverForm = document.getElementsByClassName('hidden');
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
.navbar a {
|
.navbar a {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0 0 .1em 1em;
|
padding: 0 0 .1em 2.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar a:hover,
|
.navbar a:hover,
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
right: 0;
|
right: 0;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
padding: 8em 0 1em 20px;
|
padding: 8em 0 1em 0;
|
||||||
background-color: $white;
|
background-color: $white;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
transform: matrix(1, 0, 0, 1, 220, 0);
|
transform: matrix(1, 0, 0, 1, 220, 0);
|
||||||
|
@ -149,34 +149,88 @@
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.source {
|
.revealer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 1.8em;
|
bottom: 1.8em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 -20px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: .85rem;
|
font-size: .85rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.source a {
|
.revealer__toggle {
|
||||||
display: block;
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
font-size: 0;
|
||||||
|
z-index: 4;
|
||||||
|
cursor: pointer;
|
||||||
|
border: none;
|
||||||
|
background: transparent;
|
||||||
|
height: 34px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.source__toggle button {
|
.revealer__toggle:focus {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.revealer__text {
|
||||||
|
position: absolute;
|
||||||
font-family: $font-secondary;
|
font-family: $font-secondary;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background: none;
|
background: none;
|
||||||
color: $golden;
|
color: $black;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-bottom: 1px solid transparent;
|
width: 100%;
|
||||||
&:hover,
|
}
|
||||||
&:focus,
|
|
||||||
&:active {
|
.revealer__toggle,
|
||||||
|
.revealer__text {
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.revealer__toggle:hover ~ .revealer__text > span {
|
||||||
outline: none;
|
outline: none;
|
||||||
border-bottom: 1px solid $golden;
|
border-bottom: 1px solid $golden;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .u-hidden {
|
||||||
|
// visibility: hidden;
|
||||||
|
// opacity: 0;
|
||||||
|
// transform: matrix(1, 0, 0, 1, 0, 0);
|
||||||
|
// transition: .25s ease;
|
||||||
|
// margin-bottom: .5em;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// .u-hidden.open {
|
||||||
|
// visibility: visible;
|
||||||
|
// opacity: 1;
|
||||||
|
// transform: matrix(1, 0, 0, 1, 0, -3);
|
||||||
|
// }
|
||||||
|
|
||||||
|
.u-hidden.source {
|
||||||
|
transform: matrix(1, 0, 0, 1, 0, -30);
|
||||||
|
}
|
||||||
|
|
||||||
|
.u-hidden.source > a {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.revealer__toggle:focus ~ .revealer__text {
|
||||||
|
z-index: 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.revealer__toggle:focus ~ .revealer__text > span {
|
||||||
|
outline: none;
|
||||||
|
border-bottom: 1px solid $golden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.revealer__toggle:focus ~ .u-hidden {
|
||||||
|
opacity: 1;
|
||||||
|
visibility:visible;
|
||||||
|
transform: matrix(1, 0, 0, 1, 0, -35);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@media screen and (max-width: $mq-small) {
|
@media screen and (max-width: $mq-small) {
|
||||||
.hamburger {
|
.hamburger {
|
||||||
width: 170px;
|
width: 170px;
|
||||||
|
@ -196,4 +250,8 @@
|
||||||
.navbar li:not(:last-child) {
|
.navbar li:not(:last-child) {
|
||||||
line-height: 2.5;
|
line-height: 2.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.revealer {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,4 @@ $peertube: #f1680d;
|
||||||
$misskey: #fb4e4e;
|
$misskey: #fb4e4e;
|
||||||
$osada: #008000;
|
$osada: #008000;
|
||||||
$pixelfed: #6736dd;
|
$pixelfed: #6736dd;
|
||||||
$funkwhale: #009FE3;
|
$funkwhale: #009fe3;
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
|
|
||||||
.u-extra {
|
.u-hidden {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: matrix(1, 0, 0, 1, 0, 0);
|
transform: matrix(1, 0, 0, 1, 0, 0);
|
||||||
transition: .2s ease-in;
|
transition: .25s ease;
|
||||||
margin-bottom: .5em;
|
margin-bottom: .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.u-extra.open {
|
.u-hidden.open {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transform: matrix(1, 0, 0, 1, 0, -3);
|
transform: matrix(1, 0, 0, 1, 0, -3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.contents .u-extra {
|
.contents .u-hidden {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
|
|
Loading…
Reference in a new issue