瀏覽代碼

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

dev-bank
Bryan Miller 5 年之前
父節點
當前提交
38d0ce86b4
共有 6 個檔案被更改,包括 37 行新增3 行删除
  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 查看文件

@@ -0,0 +1,17 @@

.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 查看文件

@@ -9,5 +9,5 @@
@import 'nespalette';
@import 'modal';
@import 'tabs';
@import 'lists';


+ 3
- 0
sass/variables.scss 查看文件

@@ -13,3 +13,6 @@ $tabnav-bg: #878787;
$tabnav-text: #000;
$tabnav-content-bg: #EFEFEF;
$tabnav-content-text: #000;

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

+ 5
- 1
views/docks.html 查看文件

@@ -6,7 +6,11 @@
</ul>
<% tabs.forEach(function(item){ %>
<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>

+ 1
- 1
views/index.html 查看文件

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

+ 10
- 0
views/paletteListItem.html 查看文件

@@ -0,0 +1,10 @@
<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…
取消
儲存