Skip to content

Commit

Permalink
Merge remote-tracking branch 'dominikmatt/feature/scrollable-overlay-…
Browse files Browse the repository at this point in the history
…tabs' into develop
  • Loading branch information
wachterjohannes committed Apr 28, 2016
2 parents 41bd39c + 8415ee6 commit 388a4d1
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG for husky

* dev-develop
* BUGFIX #644 Fixed scrollable tabs
* BUGFIX #633 Removed bound effect respectively additional scrollbar

* 0.19.1 (2016-04-26)
Expand Down
5 changes: 4 additions & 1 deletion demos/overlay/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@
tabs: [
{title: 'Info', data: '<h2>Info Tab</h2><p>I dont support Enter and Esc</p>'},
{title: 'Languages', data: '<h2>Languages Tab</h2>'},
{title: 'Versions', data: '<h2>Versions</h2>'}
{title: 'Versions', data: '<h2>Versions</h2>'},
{title: 'preview', data: '<h2>Preview</h2>'},
{title: 'scrollable', data: '<h2>Scrollable</h2>'},
{title: 'last-tab', data: '<h2>last tab</h2>'}
],
languageChanger: {
locales: ['EN', 'DE', 'ES'],
Expand Down
22 changes: 14 additions & 8 deletions dist/husky.css
Original file line number Diff line number Diff line change
Expand Up @@ -9034,17 +9034,18 @@ a.btn-black, a.btn-highlight {
.tabs-container {
background-color: #fff;
position: relative;
overflow: auto;
/**
*** Deactivated Skin
**/
}
/* line 10, ../scss/modules/tabs.scss */
/* line 11, ../scss/modules/tabs.scss */
.tabs-container ul {
padding: 0;
margin: 0;
white-space: nowrap;
}
/* line 15, ../scss/modules/tabs.scss */
/* line 16, ../scss/modules/tabs.scss */
.tabs-container ul li {
display: inline-block;
list-style-type: none;
Expand All @@ -9055,19 +9056,19 @@ a.btn-black, a.btn-highlight {
min-width: 60px;
cursor: pointer;
}
/* line 25, ../scss/modules/tabs.scss */
/* line 26, ../scss/modules/tabs.scss */
.tabs-container ul li a {
color: black;
text-decoration: none;
font-size: 14px;
outline: 0;
}
/* line 33, ../scss/modules/tabs.scss */
/* line 34, ../scss/modules/tabs.scss */
.tabs-container ul li.is-selected a {
color: #52B6CA;
font-weight: bold;
}
/* line 41, ../scss/modules/tabs.scss */
/* line 42, ../scss/modules/tabs.scss */
.tabs-container .marker {
height: 2px;
background: #52B6CA;
Expand All @@ -9076,22 +9077,27 @@ a.btn-black, a.btn-highlight {
width: 0px;
left: 0px;
}
/* line 50, ../scss/modules/tabs.scss */
/* line 51, ../scss/modules/tabs.scss */
.tabs-container .marker.animate {
-moz-transition: left 350ms ease, width 350ms ease;
-o-transition: left 350ms ease, width 350ms ease;
-webkit-transition: left 350ms ease, width 350ms ease;
transition: left 350ms ease, width 350ms ease;
}
/* line 60, ../scss/modules/tabs.scss */
/* line 61, ../scss/modules/tabs.scss */
.tabs-container.deactivated ul li a, .tabs-container.deactivated ul li a:hover {
color: #999;
cursor: default;
}
/* line 64, ../scss/modules/tabs.scss */
/* line 65, ../scss/modules/tabs.scss */
.tabs-container.deactivated ul li.is-selected a {
color: #52B6CA;
}
/* line 71, ../scss/modules/tabs.scss */
.has-language-chooser .tabs-container {
width: calc(100% - 100px);
border-right: 1px solid #e9e9e9;
}

/*styles related to the whole container*/
/* line 10, ../scss/modules/toolbar.scss */
Expand Down
1 change: 1 addition & 0 deletions dist/husky.js
Original file line number Diff line number Diff line change
Expand Up @@ -43578,6 +43578,7 @@ define('__component__$overlay@husky',[], function() {
renderLanguageChanger: function(slide) {
var $element = this.sandbox.dom.createElement('<div/>');

this.sandbox.dom.addClass(this.overlay.$el, 'has-language-chooser');
this.overlay.slides[slide].$languageChanger = this.sandbox.dom.createElement(
'<div class="' + constants.languageChangerClass + '"/>'
);
Expand Down
2 changes: 1 addition & 1 deletion dist/husky.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/husky.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions husky_components/overlay/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ define([], function() {
renderLanguageChanger: function(slide) {
var $element = this.sandbox.dom.createElement('<div/>');

this.sandbox.dom.addClass(this.overlay.$el, 'has-language-chooser');
this.overlay.slides[slide].$languageChanger = this.sandbox.dom.createElement(
'<div class="' + constants.languageChangerClass + '"/>'
);
Expand Down
6 changes: 6 additions & 0 deletions scss/modules/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
$tabsHeight: 50px;
background-color: $white;
position: relative;
overflow: auto;

ul {
padding: 0;
Expand Down Expand Up @@ -66,6 +67,11 @@
}
}
}

.has-language-chooser & {
width: calc(100% - 100px); //reduce language chooser width
border-right: 1px solid $grayLightMedium2;
}
}


0 comments on commit 388a4d1

Please sign in to comment.