Backgrid.ColumnManager.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #control {
  2. margin: 0 0 10px 0;
  3. }
  4. div.columnmanager-visibilitycontrol {
  5. margin: 0 auto;
  6. position: relative;
  7. width: 50px;
  8. }
  9. div.columnmanager-visibilitycontrol > button.dropdown-button {
  10. background-image: -moz-linear-gradient(top, #ffffff, #dbdbdb);
  11. background-image: -webkit-gradient(linear,left top,left bottom,
  12. color-stop(0, #ffffff),color-stop(1, #dbdbdb));
  13. filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#dbdbdb');
  14. -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#dbdbdb')";
  15. border: 1px solid #fff;
  16. -moz-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
  17. -webkit-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
  18. box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
  19. text-decoration: none;
  20. text-shadow: #fff 0 1px 0;
  21. color: #597390;
  22. font-weight: bold;
  23. }
  24. div.columnmanager-visibilitycontrol > button.dropdown-button:hover {
  25. background-image: -moz-linear-gradient(top, #ffffff, #eeeeee);
  26. background-image: -webkit-gradient(linear,left top,left bottom,
  27. color-stop(0, #ffffff),color-stop(1, #eeeeee));
  28. filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#eeeeee');
  29. -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#eeeeee')";
  30. color: #000;
  31. }
  32. div.columnmanager-visibilitycontrol > button.dropdown-button:active {
  33. background-image: -moz-linear-gradient(top, #dbdbdb, #ffffff);
  34. background-image: -webkit-gradient(linear,left top,left bottom,
  35. color-stop(0, #dbdbdb),color-stop(1, #ffffff));
  36. filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#dbdbdb', EndColorStr='#ffffff');
  37. -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#dbdbdb', EndColorStr='#ffffff')";
  38. text-shadow: 0px -1px 0 rgba(255, 255, 255, 0.5);
  39. }
  40. div.columnmanager-dropdown-container {
  41. cursor: default;
  42. position: absolute;
  43. z-index: 10;
  44. top: 0;
  45. left: 0;
  46. background: #fff;
  47. border: solid 1px #bbb;
  48. -webkit-box-shadow: #999999 0 1px 3px;
  49. -moz-box-shadow: #999999 0 1px 3px;
  50. box-shadow: #999999 0 1px 3px;
  51. width: 200px;
  52. display: none !important;
  53. min-height: 20px;
  54. max-height: 400px;
  55. font-size: 14px;
  56. line-height: 1.1em;
  57. font-weight: normal;
  58. text-align: left;
  59. color: #444;
  60. text-transform: none;
  61. -webkit-border-radius: 3px;
  62. -moz-border-radius: 3px;
  63. border-radius: 3px;
  64. -moz-background-clip: padding;
  65. -webkit-background-clip: padding-box;
  66. background-clip: padding-box;
  67. pointer-events: none;
  68. }
  69. div.columnmanager-dropdown-container.open {
  70. display: block !important;
  71. pointer-events: auto;
  72. }
  73. .columnmanager-dropdown-container > li {
  74. list-style-type:none;
  75. padding: 5px 0px 0px 20px;
  76. border-bottom: solid 1px lightgray;
  77. cursor: pointer;
  78. }
  79. .columnmanager-dropdown-container > li:hover {
  80. background-color: #f0f0f0;
  81. }
  82. .columnmanager-dropdown-container > li:last-child {
  83. border-bottom: none;
  84. }
  85. .columnmanager-dropdown-container > li > span.indicator {
  86. width: 20px;
  87. display: inline-block;
  88. }
  89. .columnmanager-dropdown-container > li.visible > span.indicator::before {
  90. content: "✓";
  91. color: blue;
  92. }
  93. .columnmanager-dropdown-container > li > span.column-label {
  94. white-space: nowrap;
  95. text-overflow: ellipsis;
  96. overflow: hidden;
  97. display: inline-block;
  98. width: 150px;
  99. }
  100. th.columnVisibility {
  101. overflow: visible;
  102. }