- new mode for tabs "stack", which displays widgets vertically

This commit is contained in:
jean-emmanuel 2015-09-14 12:23:27 +02:00 • committed by bordun
parent d10b041e41
commit 6fc7c4a656
4 changed files with 22 additions and 4 deletions

View file

@ -609,6 +609,18 @@ form {
}
}
.tab.stack {
display: flex;
flex-direction: column;
.widget {
height:auto;
flex-shrink: 0;
> .label {
background:linear-gradient(90deg,$bg-button-flat,transparentize($bg-button-flat,1));
}
}
}
/* STRIP (contains any widgets) */
@ -1203,13 +1215,15 @@ form {
flex-shrink: 0;
.led {
padding:10rem 1px 0;
padding:10rem 1px 5rem;
div {
border-radius: 3px;
border-radius: 100%;
width: 60%;
margin: 0 auto;
overflow: hidden;
background:$color-border;
span {
padding-bottom:50%;
padding-bottom:100%;
display:block;
background-color:$color-accent;
}

View file

@ -23,6 +23,8 @@ parsetabs = function(tabs,parent,sub){
var tabContent = $(document.createElement('div')).addClass('tab').attr('id',id);
if (tabData.mode=='stack') tabContent.addClass('stack')
if (tabData.tabs) {
parsetabs(tabData.tabs,parent=tabContent,sub=true);
} else {

View file

@ -13,7 +13,7 @@ TABS =
widgets:[
{
id: "a",
type:"knob"
type:"led"
}
,
{

View file

@ -1727,6 +1727,7 @@ TABS =
},
{
id: "Gates",
mode:"stack",
widgets: [
{
id: "Gate_Kick",
@ -3904,6 +3905,7 @@ TABS =
},
{
id: "Gates",
mode:"stack",
widgets: [
{
id: "Gate_Vx_Dag",