Browse Source

Some work on list items; specifically palette list items at the moment

dev-bank
Bryan Miller 5 years ago
parent
commit
38d0ce86b4
6 changed files with 37 additions and 3 deletions
  1. +17
    -0
      sass/lists.scss
  2. +1
    -1
      sass/style.scss
  3. +3
    -0
      sass/variables.scss
  4. +5
    -1
      views/docks.html
  5. +1
    -1
      views/index.html
  6. +10
    -0
      views/paletteListItem.html

+ 17
- 0
sass/lists.scss View File


.list-container{
width: 100%;
height: 300px;
overflow-y: auto;
overflow-x: hidden;
}


.list-item-container{
background-color: $list-item-bg;
border-radius: 8px;

.item-selected{
background-color: $list-item-selected-bg;
}
}

+ 1
- 1
sass/style.scss View File

@import 'nespalette'; @import 'nespalette';
@import 'modal'; @import 'modal';
@import 'tabs'; @import 'tabs';
@import 'lists';



+ 3
- 0
sass/variables.scss View File

$tabnav-text: #000; $tabnav-text: #000;
$tabnav-content-bg: #EFEFEF; $tabnav-content-bg: #EFEFEF;
$tabnav-content-text: #000; $tabnav-content-text: #000;

$list-item-bg: $menu-bg-color;
$list-item-selected-bg: lighten($menu-bg-color, 25%);

+ 5
- 1
views/docks.html View File

</ul> </ul>
<% tabs.forEach(function(item){ %> <% tabs.forEach(function(item){ %>
<div class="tab-content" fortabs="<%= tabsetname %>" tabid="<%= item.id %>"> <div class="tab-content" fortabs="<%= tabsetname %>" tabid="<%= item.id %>">
<div class="list-container"></div>
<div class="list-container">
<% if(item.hasOwnProperty("tmpl")){ %>
<%- include(item.tmpl) %>
<% } %>
</div>
</div> </div>
<% }); %> <% }); %>
</div> </div>

+ 1
- 1
views/index.html View File

<%- include('docks.html', { <%- include('docks.html', {
tabsetname:"assetlists", tabsetname:"assetlists",
tabs:[ tabs:[
{name:"Palettes", id:"palettes", selected:true},
{name:"Palettes", id:"palettes", tmpl:"paletteListItem.html", selected:true},
{name:"Banks", id:"banks", selected:false}, {name:"Banks", id:"banks", selected:false},
{name:"Attrib. Tables", id:"attrtbls", selected:false} {name:"Attrib. Tables", id:"attrtbls", selected:false}
] ]

+ 10
- 0
views/paletteListItem.html View File

<div class="list-item-container palette-list-item-template hidden">
<div class=pure-g">
<div class=pure-u-1">
<span class="title">Title here</span>
</div>
</div>
<div class="pure-g">

</div>
</div>

Loading…
Cancel
Save