From 4b5c647ab48bf48829a902b087e7028de11bd570 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Wed, 14 Mar 2012 18:41:23 +0000 Subject: [PATCH 01/18] [grid,ui][s]: switch to bootstrap dropdowns for grid menus. --- css/data-explorer.css | 67 +---------------------------------- css/images/menu-dropdown.png | Bin 1123 -> 0 bytes src/util.js | 12 ------- src/view-grid.js | 46 +++++++++++++++--------- 4 files changed, 30 insertions(+), 95 deletions(-) delete mode 100755 css/images/menu-dropdown.png diff --git a/css/data-explorer.css b/css/data-explorer.css index 7f410fe8..935340d2 100644 --- a/css/data-explorer.css +++ b/css/data-explorer.css @@ -93,40 +93,14 @@ * Data Table Menus *********************************************************/ -a.column-header-menu, a.root-header-menu { +.column-header-menu, a.root-header-menu { float: right; - display: block; - margin: 0 4px 0 0; - width: 17px; - height: 19px; - background-image: url(images/menu-dropdown.png); - background-repeat: no-repeat; -} - -a.row-header-menu:hover, a.root-header-menu:hover { - background-position: -17px 0px; - text-decoration: none; -} - -a.row-header-menu { - float: left; - display: block; - margin: -2px 0 -4px 0; - width: 17px; - height: 18px; - background-image: url(images/menu-dropdown.png); - background-repeat: no-repeat; } .read-only a.row-header-menu { display: none; } -a.column-header-menu:hover { - background-position: -17px 0px; - text-decoration: none; -} - .column-header-recon-stats-bar { margin-top: 10px; height: 4px; @@ -192,45 +166,6 @@ div.data-table-cell-content-numeric > a.data-table-cell-edit { color: red; } -.data-table-menu-overlay { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; -} - -ul.data-table-menu { - display: none; - outline-style: none; - background: white; - color: black; - font-size: 12px; - height: auto; - list-style: none; - overflow: hidden; - position: absolute; - text-align: left; - width: 120px; - z-index: 666; - border: 1px solid #CCC; - border-right: 1px solid #666; - border-bottom: 1px solid #666; - margin: 0; padding: 0; } - ul.data-table-menu * { - margin: 0; - padding: 0; } - ul.data-table-menu a { - line-height: 14px; - color: black; - display: block; - padding: 5px 7px; - text-decoration: none; } - ul.data-table-menu li { - height: 24px; } - ul.data-table-menu li:hover { - background-color: #DBE8F8 } - /* TODO: not sure the rest of this is needed */ .data-table-cell-editor, .data-table-topic-popup { overflow: auto; diff --git a/css/images/menu-dropdown.png b/css/images/menu-dropdown.png deleted file mode 100755 index c733fef7f4b2c5249752673204f7c604a453e5dd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1123 zcmaJ=T}TvB7#&i`EEOw??4fB4GHB;--Q9L_6Wwuh%h|TwiL9r_nd|PL^W)659epYC zA&jWBf?k4pi--y`kqWHd0v}3yDkYM%AT%_DQpE0WCqb&W7-G{cN!0jx$bngAZvq!dU1N$F^N1*$MC zk5I)%*eEn`vZ0ZZiy};*|zO;1c)$qdPQ_dV_1TCw?>6c=0j zo^83cX8Y0W?dym7FN~9Sd#+qfC5nf4c649rK0MvCS=g4m?4%BTE@8d9HjNaJZPT@F zrIjzbVp2iHN$UK={O^y()*WF7-t71^_vB{uL$kPh@#EmdGh^g)?B3(G&r+Qy_9Hu3 Mv@XWquRV3{7e{)Hj{pDw diff --git a/src/util.js b/src/util.js index 35332195..e207faa1 100644 --- a/src/util.js +++ b/src/util.js @@ -1,18 +1,6 @@ var util = function() { var templates = { transformActions: '
  • Global transform...
  • ' - , columnActions: ' \ -
  • Transform...
  • \ -
  • Delete this column
  • \ -
  • Sort ascending
  • \ -
  • Sort descending
  • \ -
  • Hide this column
  • \ - ' - , rowActions: '
  • Delete this row
  • ' - , rootActions: ' \ - {{#columns}} \ -
  • Show column: {{.}}
  • \ - {{/columns}}' , cellEditor: ' \