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;
|
||||
webkit-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 {
|
||||
position: relative;
|
||||
|
@ -1422,6 +1424,9 @@ a .season-episodes-card-overlay:hover {
|
|||
background-size: cover;
|
||||
height: 120px;
|
||||
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 {
|
||||
background-position: center;
|
||||
|
@ -1465,7 +1470,7 @@ a .season-episodes-card-overlay:hover {
|
|||
height: 60px;
|
||||
}
|
||||
.home-platforms-instance-list-number {
|
||||
background-color: #e9a049;
|
||||
background-color: #eb8600;
|
||||
float: left;
|
||||
position: absolute;
|
||||
top: -10px;
|
||||
|
@ -1478,6 +1483,9 @@ a .season-episodes-card-overlay:hover {
|
|||
-webkit-border-radius: 50%;
|
||||
-moz-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 {
|
||||
color: #000;
|
||||
|
@ -1540,6 +1548,9 @@ a .season-episodes-card-overlay:hover {
|
|||
background-size: cover;
|
||||
height: 60px;
|
||||
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 {
|
||||
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);
|
||||
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-oval: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;
|
||||
}
|
||||
.home-platforms-instance .slider {
|
||||
background-color: #282828;
|
||||
background-color: #2d2d2d;
|
||||
width: 320px;
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 130px;
|
||||
top: 129px;
|
||||
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 {
|
||||
text-overflow: ellipsis;
|
||||
|
|
|
@ -94,6 +94,7 @@ DOCUMENTATION :: END
|
|||
% endif
|
||||
</a>
|
||||
%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">
|
||||
<div class="slider">
|
||||
<div class="home-platforms-instance-list">
|
||||
|
@ -169,6 +170,7 @@ DOCUMENTATION :: END
|
|||
% endif
|
||||
</a>
|
||||
%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">
|
||||
<div class="slider">
|
||||
<div class="home-platforms-instance-list">
|
||||
|
@ -244,6 +246,7 @@ DOCUMENTATION :: END
|
|||
% endif
|
||||
</a>
|
||||
%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">
|
||||
<div class="slider">
|
||||
<div class="home-platforms-instance-list">
|
||||
|
@ -319,6 +322,7 @@ DOCUMENTATION :: END
|
|||
% endif
|
||||
</a>
|
||||
%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">
|
||||
<div class="slider">
|
||||
<div class="home-platforms-instance-list">
|
||||
|
@ -402,6 +406,7 @@ DOCUMENTATION :: END
|
|||
% endif
|
||||
</a>
|
||||
%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">
|
||||
<div class="slider">
|
||||
<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>
|
||||
%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">
|
||||
<div class="slider">
|
||||
<div class="home-platforms-instance-list">
|
||||
|
@ -522,13 +528,36 @@ DOCUMENTATION :: END
|
|||
% endfor
|
||||
</ul>
|
||||
<script>
|
||||
$('.home-platforms-instance').hover(function() {
|
||||
$(this).css('z-index', 1);
|
||||
$(this).find('.slider').stop().slideDown(500);
|
||||
}, function() {
|
||||
$(this).find('.slider').stop().slideUp(500, function() {
|
||||
$(this).parents('.home-platforms-instance').css('z-index', 0);
|
||||
var inProgress;
|
||||
$('.home-platforms-instance-list-chevron i.fa').on('click',
|
||||
function() {
|
||||
inProgress = true;
|
||||
console.log($(this));
|
||||
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>
|
||||
% else:
|
||||
|
|
|
@ -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>
|
||||
</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 class="checkbox">
|
||||
<label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue