mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Added chevrons and more reliable animations
This commit is contained in:
parent
58efd299cc
commit
53fb8b999f
3 changed files with 76 additions and 13 deletions
|
@ -1360,7 +1360,9 @@ a .season-episodes-card-overlay:hover {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
webkit-box-sizing: content-box;
|
webkit-box-sizing: content-box;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
z-index: 0;
|
webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
}
|
}
|
||||||
.home-platforms-instance li {
|
.home-platforms-instance li {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -1422,6 +1424,9 @@ a .season-episodes-card-overlay:hover {
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
width: 80px;
|
width: 80px;
|
||||||
|
webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
}
|
}
|
||||||
.home-platforms-instance-box {
|
.home-platforms-instance-box {
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
@ -1465,7 +1470,7 @@ a .season-episodes-card-overlay:hover {
|
||||||
height: 60px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
.home-platforms-instance-list-number {
|
.home-platforms-instance-list-number {
|
||||||
background-color: #e9a049;
|
background-color: #eb8600;
|
||||||
float: left;
|
float: left;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
|
@ -1478,6 +1483,9 @@ a .season-episodes-card-overlay:hover {
|
||||||
-webkit-border-radius: 50%;
|
-webkit-border-radius: 50%;
|
||||||
-moz-border-radius: 50%;
|
-moz-border-radius: 50%;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
}
|
}
|
||||||
.home-platforms-instance-list-number h4 {
|
.home-platforms-instance-list-number h4 {
|
||||||
color: #000;
|
color: #000;
|
||||||
|
@ -1540,6 +1548,9 @@ a .season-episodes-card-overlay:hover {
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
|
webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
}
|
}
|
||||||
.home-platforms-instance-list-box {
|
.home-platforms-instance-list-box {
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
@ -1571,6 +1582,26 @@ a .season-episodes-card-overlay:hover {
|
||||||
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
.home-platforms-instance:hover .home-platforms-instance-list-chevron i.fa-chevron-down{
|
||||||
|
color: #eb8600;
|
||||||
|
-webkit-transform: rotate(180deg);
|
||||||
|
-ms-transform: rotate(180deg);
|
||||||
|
-o-transform: rotate(180deg);
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
.home-platforms-instance-list-chevron {
|
||||||
|
position: absolute;
|
||||||
|
top: 100px;
|
||||||
|
right: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.home-platforms-instance-list-chevron i {
|
||||||
|
color: #999;
|
||||||
|
font-size: 16px;
|
||||||
|
-webkit-transition: all 0.3s ease;
|
||||||
|
-o-transition: all 0.3s ease;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
a .home-platforms-instance-box:hover,
|
a .home-platforms-instance-box:hover,
|
||||||
a .home-platforms-instance-oval:hover,
|
a .home-platforms-instance-oval:hover,
|
||||||
a .home-platforms-instance-list-box:hover,
|
a .home-platforms-instance-list-box:hover,
|
||||||
|
@ -1583,13 +1614,16 @@ a .home-platforms-instance-list-oval:hover,
|
||||||
box-shadow: inset 0 0 0 2px #e9a049;
|
box-shadow: inset 0 0 0 2px #e9a049;
|
||||||
}
|
}
|
||||||
.home-platforms-instance .slider {
|
.home-platforms-instance .slider {
|
||||||
background-color: #282828;
|
background-color: #2d2d2d;
|
||||||
width: 320px;
|
width: 320px;
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 130px;
|
top: 129px;
|
||||||
left: -10px;
|
left: -10px;
|
||||||
z-index: 2;
|
webkit-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
-moz-box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
box-shadow: 0 0 4px rgba(0,0,0,.3),inset 0 0 0 1px rgba(255,255,255,.1);
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
.history-table-title {
|
.history-table-title {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
|
@ -94,6 +94,7 @@ DOCUMENTATION :: END
|
||||||
% endif
|
% endif
|
||||||
</a>
|
</a>
|
||||||
%if len(top_stat['rows']) > 1:
|
%if len(top_stat['rows']) > 1:
|
||||||
|
<div class="home-platforms-instance-list-chevron"><i class="fa fa-chevron-down"></i></div>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<div class="home-platforms-instance-list">
|
<div class="home-platforms-instance-list">
|
||||||
|
@ -169,6 +170,7 @@ DOCUMENTATION :: END
|
||||||
% endif
|
% endif
|
||||||
</a>
|
</a>
|
||||||
%if len(top_stat['rows']) > 1:
|
%if len(top_stat['rows']) > 1:
|
||||||
|
<div class="home-platforms-instance-list-chevron"><i class="fa fa-chevron-down"></i></div>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<div class="home-platforms-instance-list">
|
<div class="home-platforms-instance-list">
|
||||||
|
@ -244,6 +246,7 @@ DOCUMENTATION :: END
|
||||||
% endif
|
% endif
|
||||||
</a>
|
</a>
|
||||||
%if len(top_stat['rows']) > 1:
|
%if len(top_stat['rows']) > 1:
|
||||||
|
<div class="home-platforms-instance-list-chevron"><i class="fa fa-chevron-down"></i></div>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<div class="home-platforms-instance-list">
|
<div class="home-platforms-instance-list">
|
||||||
|
@ -319,6 +322,7 @@ DOCUMENTATION :: END
|
||||||
% endif
|
% endif
|
||||||
</a>
|
</a>
|
||||||
%if len(top_stat['rows']) > 1:
|
%if len(top_stat['rows']) > 1:
|
||||||
|
<div class="home-platforms-instance-list-chevron"><i class="fa fa-chevron-down"></i></div>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<div class="home-platforms-instance-list">
|
<div class="home-platforms-instance-list">
|
||||||
|
@ -402,6 +406,7 @@ DOCUMENTATION :: END
|
||||||
% endif
|
% endif
|
||||||
</a>
|
</a>
|
||||||
%if len(top_stat['rows']) > 1:
|
%if len(top_stat['rows']) > 1:
|
||||||
|
<div class="home-platforms-instance-list-chevron"><i class="fa fa-chevron-down"></i></div>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<div class="home-platforms-instance-list">
|
<div class="home-platforms-instance-list">
|
||||||
|
@ -477,6 +482,7 @@ DOCUMENTATION :: END
|
||||||
<div class="home-platforms-instance-box" style="background-image: url(interfaces/default/images/platforms/default.png);"></div>
|
<div class="home-platforms-instance-box" style="background-image: url(interfaces/default/images/platforms/default.png);"></div>
|
||||||
</div>
|
</div>
|
||||||
%if len(top_stat['rows']) > 1:
|
%if len(top_stat['rows']) > 1:
|
||||||
|
<div class="home-platforms-instance-list-chevron"><i class="fa fa-chevron-down"></i></div>
|
||||||
<ul class="list-unstyled">
|
<ul class="list-unstyled">
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<div class="home-platforms-instance-list">
|
<div class="home-platforms-instance-list">
|
||||||
|
@ -522,14 +528,37 @@ DOCUMENTATION :: END
|
||||||
% endfor
|
% endfor
|
||||||
</ul>
|
</ul>
|
||||||
<script>
|
<script>
|
||||||
$('.home-platforms-instance').hover(function() {
|
var inProgress;
|
||||||
$(this).css('z-index', 1);
|
$('.home-platforms-instance-list-chevron i.fa').on('click',
|
||||||
$(this).find('.slider').stop().slideDown(500);
|
function() {
|
||||||
}, function() {
|
inProgress = true;
|
||||||
$(this).find('.slider').stop().slideUp(500, function() {
|
console.log($(this));
|
||||||
$(this).parents('.home-platforms-instance').css('z-index', 0);
|
instanceBoxChevron = $(this);
|
||||||
|
instanceBox = $(this).parents('.home-platforms-instance');
|
||||||
|
instanceBoxSlider = instanceBox.find('.slider');
|
||||||
|
instanceBoxSlider.stop().slideToggle(500, function() { inProgress = false; });
|
||||||
|
});
|
||||||
|
$('.home-platforms-instance').on({
|
||||||
|
mouseenter: function() {
|
||||||
|
if (inProgress) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
instanceBox = $(this);
|
||||||
|
instanceBoxChevron = instanceBox.find('.home-platforms-instance-list-chevron i.fa');
|
||||||
|
instanceBoxSlider = instanceBox.find('.slider');
|
||||||
|
instanceBoxSlider.css('z-index', 2);
|
||||||
|
instanceBoxSlider.stop().slideDown(500);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mouseleave: function() {
|
||||||
|
if (inProgress) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
instanceBoxSlider.css('z-index', 1);
|
||||||
|
instanceBoxSlider.stop().slideUp(500);
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
% else:
|
% else:
|
||||||
<div class="text-muted">No stats for selected period.</div><br>
|
<div class="text-muted">No stats for selected period.</div><br>
|
||||||
|
|
|
@ -103,7 +103,7 @@ available_notification_agents = notifiers.available_notification_agents()
|
||||||
<input type="text" class="form-control" data-parsley-type="integer" id="home_stats_count" name="home_stats_count" value="${config['home_stats_count']}" size="3" data-parsley-min="0" data-parsley-max="10" data-parsley-trigger="change" required>
|
<input type="text" class="form-control" data-parsley-type="integer" id="home_stats_count" name="home_stats_count" value="${config['home_stats_count']}" size="3" data-parsley-min="0" data-parsley-max="10" data-parsley-trigger="change" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">Specify the number of items to show in the top lists for the statistics on the home page. Max is 10 items.</p>
|
<p class="help-block">Specify the number of items to show in the top lists for the statistics on the home page. Max is 10 items, default is 5 items, 0 to disable.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue