Merge pull request #14278 from haheute/hide-inflated

Hide inflated widgets when Javascript is off
This commit is contained in:
Michael Vogel 2024-07-06 16:52:57 +02:00 committed by GitHub
commit b2cddef723
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 19 additions and 16 deletions

View file

@ -1,4 +1,4 @@
<span id="circle-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('circle-sidebar', 'circle-sidebar-inflated');">
<span id="circle-sidebar-inflated" class="widget inflated fakelink" onclick="openCloseWidget('circle-sidebar', 'circle-sidebar-inflated');">
<h3>{{$title}}</h3>
</span>
<div class="widget" id="circle-sidebar">

View file

@ -1,4 +1,4 @@
<span id="sidebar-accounts-inflated" class="widget fakelink" onclick="openCloseWidget('sidebar-accounts', 'sidebar-accounts-inflated');">
<span id="sidebar-accounts-inflated" class="widget inflated fakelink" onclick="openCloseWidget('sidebar-accounts', 'sidebar-accounts-inflated');">
<h3>{{$title}}</h3>
</span>
<div id="sidebar-accounts" class="widget">

View file

@ -1,4 +1,4 @@
<span id="sidebar-community-no-sharer-inflated" class="widget fakelink" onclick="openCloseWidget('sidebar-community-no-sharer', 'sidebar-community-no-sharer-inflated');">
<span id="sidebar-community-no-sharer-inflated" class="widget inflated fakelink" onclick="openCloseWidget('sidebar-community-no-sharer', 'sidebar-community-no-sharer-inflated');">
<h3>{{$title}}</h3>
</span>
<div id="sidebar-community-no-sharer" class="widget">

View file

@ -1,4 +1,4 @@
<span id="{{$type}}-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('{{$type}}-sidebar', '{{$type}}-sidebar-inflated');">
<span id="{{$type}}-sidebar-inflated" class="widget inflated fakelink" onclick="openCloseWidget('{{$type}}-sidebar', '{{$type}}-sidebar-inflated');">
<h3>{{$title}}</h3>
</span>
<div id="{{$type}}-sidebar" class="widget">

View file

@ -12,7 +12,7 @@ function showHideGroupList() {
}
</script>
<span id="group-list-sidebar-frame">
<span id="group-list-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('group-list-sidebar', 'group-list-sidebar-inflated');">
<span id="group-list-sidebar-inflated" class="widget inflated fakelink" onclick="openCloseWidget('group-list-sidebar', 'group-list-sidebar-inflated');">
<h3>{{$title}}</h3>
</span>
<div id="group-list-sidebar" class="widget">

View file

@ -11,7 +11,7 @@ function showHideDates() {
}
</script>
<span id="datebrowse-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('datebrowse-sidebar', 'datebrowse-sidebar-inflated');">
<span id="datebrowse-sidebar-inflated" class="widget inflated fakelink" onclick="openCloseWidget('datebrowse-sidebar', 'datebrowse-sidebar-inflated');">
<h3>{{$title}}</h3>
</span>
<div id="datebrowse-sidebar" class="widget">

View file

@ -1,4 +1,4 @@
<span id="saved-search-list-inflated" class="widget fakelink" onclick="openCloseWidget('saved-search-list', 'saved-search-list-inflated');">
<span id="saved-search-list-inflated" class="widget inflated fakelink" onclick="openCloseWidget('saved-search-list', 'saved-search-list-inflated');">
<h3>{{$title}}</h3>
</span>
<div class="widget" id="saved-search-list">

View file

@ -1,4 +1,4 @@
<span id="tagblock-inflated" class="widget fakelink" onclick="openCloseWidget('tagblock', 'tagblock-inflated');">
<span id="tagblock-inflated" class="widget inflated fakelink" onclick="openCloseWidget('tagblock', 'tagblock-inflated');">
<h3>{{$title}}</h3>
</span>
<div id="tagblock" class="tagblock widget">

View file

@ -1,4 +1,4 @@
<span id="trending-tags-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('trending-tags-sidebar', 'trending-tags-sidebar-inflated');">
<span id="trending-tags-sidebar-inflated" class="widget inflated fakelink" onclick="openCloseWidget('trending-tags-sidebar', 'trending-tags-sidebar-inflated');">
<h3>{{$title}}</h3>
</span>
<div id="trending-tags-sidebar" class="widget">

View file

@ -90,6 +90,9 @@ blockquote {
max-height: 0px !important;
overflow: hidden !important;
}
.inflated {
display: none;
}
/**
* details tag

View file

@ -1,4 +1,4 @@
<span id="circle-sidebar-inflated" class="widget fakelink" onclick="openCloseWidget('circle-sidebar', 'circle-sidebar-inflated');">
<span id="circle-sidebar-inflated" class="widget inflated fakelink" onclick="openCloseWidget('circle-sidebar', 'circle-sidebar-inflated');">
<h3>{{$title}}</h3>
</span>
<div class="widget" id="circle-sidebar">

View file

@ -1,5 +1,5 @@
{{if $saved}}
<span id="saved-search-list-inflated" class="widget fakelink" onclick="openCloseWidget('saved-search-list', 'saved-search-list-inflated');">
<span id="saved-search-list-inflated" class="widget inflated fakelink" onclick="openCloseWidget('saved-search-list', 'saved-search-list-inflated');">
<h3>{{$title}}</h3>
</span>
<div class="widget" id="saved-search-list">

View file

@ -312,7 +312,7 @@ a:hover {
.right {
float: right;
}
.hidden {
.hidden, .inflated {
display: none;
}
.clear {