Commit 12febf02 authored by Franco Fichtner's avatar Franco Fichtner

ui: back out intrusive style fix, table layout could be better

parent c022c9a3
......@@ -27,9 +27,6 @@
.typeahead {
overflow: hidden;
}
table {
table-layout: fixed;
}
</style>
<!-- Favicon -->
......
......@@ -10,12 +10,6 @@
<!-- /row-->
</main>
<!-- viewport breakpoint detection -->
<div class="device-xs visible-xs"></div>
<div class="device-sm visible-sm"></div>
<div class="device-md visible-md"></div>
<div class="device-lg visible-lg"></div>
<?php
if (isset($widgetCollection)):
// sort by name
......
......@@ -69,10 +69,6 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system
z-index: 2000;
}
table {
table-layout: fixed;
}
ol.example li.placeholder {
position: relative;
}
......
......@@ -61,13 +61,6 @@ function hook_ipv4v6(classname, data_id) {
});
}
/**
* return the current viewport size from: http://stackoverflow.com/questions/18575582/how-to-detect-responsive-breakpoints-of-twitter-bootstrap-3-using-javascript
* @param alias: the bootstrap viewport name, e.g. 'xs'
*/
function isBreakpoint( alias ) {
return $('.device-' + alias).is(':visible');
}
/**
* transform input forms for better mobile experience (stack description on top)
* @param match: query pattern to match tables
......@@ -125,11 +118,6 @@ function hook_stacked_form_tables(match)
++index;
}
});
if (isBreakpoint('xs')) {
root_node.css('table-layout', 'auto');
} else {
root_node.css('table-layout', 'fixed');
}
}
$( window ).resize(root_node.do_resize);
root_node.do_resize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment