[DE] added scroll buttons for the short tabs panel
This commit is contained in:
parent
d9858934d0
commit
62587692c6
|
@ -133,6 +133,7 @@ define([
|
||||||
|
|
||||||
onWindowResize: function(e) {
|
onWindowResize: function(e) {
|
||||||
this.onLayoutChanged('window');
|
this.onLayoutChanged('window');
|
||||||
|
Common.NotificationCenter.trigger('window:resize');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="box-tabs">
|
<div class="box-tabs">
|
||||||
<div class="extra left"></div>
|
<div class="extra left"></div>
|
||||||
<section class="tabs">
|
<section class="tabs">
|
||||||
<a href="#" class="link">
|
<a href="#" class="scroll left">
|
||||||
<i class="icon"><</i>
|
<i class="icon"><</i>
|
||||||
</a>
|
</a>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -11,11 +11,11 @@
|
||||||
<a href="#" data-tab="<%= tabs[i].action %>" title="<%= tabs[i].caption %>"><%= tabs[i].caption %></a>
|
<a href="#" data-tab="<%= tabs[i].action %>" title="<%= tabs[i].caption %>"><%= tabs[i].caption %></a>
|
||||||
</li>
|
</li>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
<div class="marker"></div>
|
||||||
</ul>
|
</ul>
|
||||||
<a href="#" class="link">
|
<a href="#" class="scroll right">
|
||||||
<i class="icon">></i>
|
<i class="icon">></i>
|
||||||
</a>
|
</a>
|
||||||
<div class="marker"></div>
|
|
||||||
</section>
|
</section>
|
||||||
<div class="extra right">SomeDocument.docx</div>
|
<div class="extra right">SomeDocument.docx</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -21,18 +21,21 @@
|
||||||
ul {
|
ul {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
height: 100%;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex-grow: 1;
|
list-style: none;
|
||||||
|
font-size: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
height: 100%;
|
||||||
|
//background-color: #a6c995;
|
||||||
|
|
||||||
> a {
|
> a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: @height-tabs;
|
line-height: @height-tabs;
|
||||||
|
height: 100%;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
@ -58,17 +61,31 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.marker {
|
.marker {
|
||||||
position: absolute;
|
position: relative;
|
||||||
border-top: 3px solid green;
|
border-top: 3px solid green;
|
||||||
bottom: 0;
|
top: -4px;
|
||||||
-webkit-transition: width .2s, left .2s ease-out;
|
-webkit-transition: width .2s, left .2s ease-out;
|
||||||
transition: width .2s, left .2s ease-out;
|
transition: width .2s, left .2s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
.tabs:not(.short) {
|
||||||
|
.scroll {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll {
|
||||||
line-height: @height-tabs;
|
line-height: @height-tabs;
|
||||||
min-width: 20px;
|
min-width: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
&.left{
|
||||||
|
box-shadow: 5px 0 20px 5px rgba(208, 221, 182, .8)
|
||||||
|
}
|
||||||
|
&.right{
|
||||||
|
box-shadow: -5px 0 20px 5px rgba(208, 221, 182, .8)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.extra {
|
.extra {
|
||||||
|
|
Loading…
Reference in a new issue