mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 19:12:25 -05:00
lil tweaks
This commit is contained in:
parent
6ef4cc36b2
commit
5291146f8a
4 changed files with 24 additions and 14 deletions
|
|
@ -29,7 +29,6 @@
|
||||||
border-radius: $br;
|
border-radius: $br;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: 2;
|
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
@ -59,7 +58,6 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 3;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,6 @@
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.75rem;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
@ -109,11 +107,6 @@
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-spoiler > summary, .text {
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-spoiler > summary {
|
.text-spoiler > summary {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -193,7 +186,6 @@
|
||||||
|
|
||||||
.poll {
|
.poll {
|
||||||
background-color: $gray2;
|
background-color: $gray2;
|
||||||
z-index: 2;
|
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
@ -277,7 +269,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
details.stats-more-info {
|
details.stats-more-info {
|
||||||
z-index: 2;
|
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
|
||||||
& > summary {
|
& > summary {
|
||||||
|
|
@ -350,7 +341,7 @@
|
||||||
.stats-more-info-content {
|
.stats-more-info-content {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 3;
|
z-index: 2;
|
||||||
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|
@ -374,7 +365,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-item:not(.published-at):not(.edit-timeline) {
|
.stats-item:not(.published-at):not(.edit-timeline) {
|
||||||
z-index: 2;
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -338,3 +338,25 @@ Array.from(document.getElementsByTagName('time')).forEach(timeTag => {
|
||||||
timeTag.textContent = dateTimeFormat.format(date);
|
timeTag.textContent = dateTimeFormat.format(date);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// When clicking anywhere that's not an open
|
||||||
|
// stats-info-more-content details dropdown,
|
||||||
|
// close that open dropdown.
|
||||||
|
document.body.addEventListener("click", (e) => {
|
||||||
|
const openStats = document.querySelector("details.stats-more-info[open]");
|
||||||
|
if (!openStats) {
|
||||||
|
// No open stats
|
||||||
|
// details element.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (openStats.contains(e.target)) {
|
||||||
|
// Click is within stats
|
||||||
|
// element, leave it alone.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Click was outside of
|
||||||
|
// stats elements, close it.
|
||||||
|
openStats.removeAttribute("open");
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</dl>
|
</dl>
|
||||||
<details class="stats-more-info">
|
<details class="stats-more-info" name="stats-more-info">
|
||||||
<summary title="More info">
|
<summary title="More info">
|
||||||
<i class="fa fa-fw fa-info" aria-hidden="true"></i>
|
<i class="fa fa-fw fa-info" aria-hidden="true"></i>
|
||||||
<span class="sr-only">More info</span>
|
<span class="sr-only">More info</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue