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">
@ -25,7 +25,7 @@ function showHideGroupList() {
</a>
</div>
<div id="sidebar-group-list" class="sidebar-widget-list">
{{* The list of available groups *}}
{{* The list of available groups *}}
<ul id="group-list-sidebar-ul" role="menu">
{{foreach $groups as $group}}
{{if $group.id <= $visible_groups}}

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">
@ -24,7 +24,7 @@ function showHideDates() {
{{if $y == $cutoff_year}}
</ul>
<ul id="posted-date-selector-drop" class="datebrowse-ul" style="display: none;">
{{/if}}
{{/if}}
<li id="posted-date-selector-year-{{$y}}" class="tool">
<a class="datebrowse-link" href="#" onclick="openClose('posted-date-selector-{{$y}}'); return false;">{{$y}}</a>
@ -40,7 +40,7 @@ function showHideDates() {
<li class="tool">
<a class="datebrowse-link" href="{{$url}}/{{$d.1}}/{{$d.2}}">{{$d.0}}</a>
</li>
{{/foreach}}
</ul>
</li>

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">
@ -6,7 +6,7 @@
<h3 id="search">{{$title}}</h3>
</span>
{{$searchbox nofilter}}
<ul role="menu" id="saved-search-ul">
{{foreach $saved as $search}}
<li role="menuitem" class="saved-search-li clear">

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 {