mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
ui: back out intrusive style fix, table layout could be better
This commit is contained in:
parent
c022c9a34b
commit
12febf0260
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user