Remove unnecessary float styles and cleanup CSS in the preset list

This commit is contained in:
Quincy Morgan
2019-02-12 16:29:52 -05:00
parent d16dd2f182
commit 5e586419fa
2 changed files with 14 additions and 9 deletions
+5 -5
View File
@@ -254,7 +254,7 @@ export function uiPresetList(context) {
function item(selection) {
var wrap = selection.append('div')
.attr('class', 'preset-list-button-wrap category col12');
.attr('class', 'preset-list-button-wrap category');
function click() {
var isExpanded = d3_select(this).classed('expanded');
@@ -313,7 +313,7 @@ export function uiPresetList(context) {
.html(function() { return preset.name() + '…'; });
box = selection.append('div')
.attr('class', 'subgrid col12')
.attr('class', 'subgrid')
.style('max-height', '0px')
.style('opacity', 0);
@@ -321,7 +321,7 @@ export function uiPresetList(context) {
.attr('class', 'arrow');
sublist = box.append('div')
.attr('class', 'preset-list fillL3 cf fl');
.attr('class', 'preset-list fillL3');
}
@@ -342,7 +342,7 @@ export function uiPresetList(context) {
.duration(200)
.style('opacity', '1')
.style('max-height', 200 + preset.members.collection.length * 190 + 'px')
.style('padding-bottom', '20px');
.style('padding-bottom', '10px');
}
};
@@ -354,7 +354,7 @@ export function uiPresetList(context) {
function PresetItem(preset) {
function item(selection) {
var wrap = selection.append('div')
.attr('class', 'preset-list-button-wrap col12');
.attr('class', 'preset-list-button-wrap');
var button = wrap.append('button')
.attr('class', 'preset-list-button')