/* Density: Compact - see ks.global.config.ks_density (models/ks_global_config.py)
   for why zoom (not transform/scale) is used: it's real layout scaling, so
   getBoundingClientRect/offsetWidth stay accurate for drag-drop, the Ace
   editor widget, and Bootstrap dropdown/tooltip positioning. */
:root {
  zoom: 90%;
}
/* Ace (ace_editor - used by every "Edit View"/QWeb/code-editor dialog in
   Developer Tools) computes click-to-cursor position from its own font
   metrics rather than purely from getBoundingClientRect, and that math
   doesn't survive a fractional CSS zoom cleanly - clicks land on the wrong
   character/line. zoom compounds through nesting in Chromium (a zoom:X%
   descendant inside a zoom:Y% ancestor renders at X%*Y% of true size), so
   111.111% here (100/90) cancels the 90% above back out to a true 100% for
   just this widget, leaving the rest of the compact density untouched. */
.ace_editor {
  zoom: 111.111%;
}
