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 @@ ...@@ -27,9 +27,6 @@
.typeahead { .typeahead {
overflow: hidden; overflow: hidden;
} }
table {
table-layout: fixed;
}
</style> </style>
<!-- Favicon --> <!-- Favicon -->
......
...@@ -10,12 +10,6 @@ ...@@ -10,12 +10,6 @@
<!-- /row--> <!-- /row-->
</main> </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 <?php
if (isset($widgetCollection)): if (isset($widgetCollection)):
// sort by name // sort by name
......
...@@ -69,10 +69,6 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system ...@@ -69,10 +69,6 @@ $pagetitle .= sprintf(' | %s.%s', $config['system']['hostname'], $config['system
z-index: 2000; z-index: 2000;
} }
table {
table-layout: fixed;
}
ol.example li.placeholder { ol.example li.placeholder {
position: relative; position: relative;
} }
......
...@@ -61,13 +61,6 @@ function hook_ipv4v6(classname, data_id) { ...@@ -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) * transform input forms for better mobile experience (stack description on top)
* @param match: query pattern to match tables * @param match: query pattern to match tables
...@@ -125,11 +118,6 @@ function hook_stacked_form_tables(match) ...@@ -125,11 +118,6 @@ function hook_stacked_form_tables(match)
++index; ++index;
} }
}); });
if (isBreakpoint('xs')) {
root_node.css('table-layout', 'auto');
} else {
root_node.css('table-layout', 'fixed');
}
} }
$( window ).resize(root_node.do_resize); $( window ).resize(root_node.do_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