Pārlūkot izejas kodu

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

dev-bank
Bryan Miller pirms 5 gadiem
vecāks
revīzija
38d0ce86b4
6 mainītis faili ar 37 papildinājumiem un 3 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

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


+ 3
- 0
sass/variables.scss Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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>

Notiek ielāde…
Atcelt
Saglabāt