mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:40:17 +00:00
Hide inflated widgets when Javascript is off
This commit is contained in:
parent
27011cb0f3
commit
85d9774dff
13 changed files with 19 additions and 16 deletions
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -90,6 +90,9 @@ blockquote {
|
|||
max-height: 0px !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
.inflated {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* details tag
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -312,7 +312,7 @@ a:hover {
|
|||
.right {
|
||||
float: right;
|
||||
}
|
||||
.hidden {
|
||||
.hidden, .inflated {
|
||||
display: none;
|
||||
}
|
||||
.clear {
|
||||
|
|
Loading…
Reference in a new issue