backgrid.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. /*
  2. backgrid
  3. http://github.com/cloudflare/backgrid
  4. Copyright (c) 2013-present Cloudflare, Inc. and contributors
  5. Licensed under the MIT license.
  6. */
  7. .backgrid-container {
  8. position: relative;
  9. display: block;
  10. width: 100%;
  11. height: 465px;
  12. padding: 0;
  13. overflow: auto;
  14. border: 0;
  15. }
  16. .backgrid {
  17. width: 100%;
  18. max-width: 100%;
  19. background-color: transparent;
  20. border-collapse: collapse;
  21. -webkit-border-radius: 4px;
  22. -moz-border-radius: 4px;
  23. border-radius: 4px;
  24. }
  25. .backgrid th,
  26. .backgrid td {
  27. display: none;
  28. height: 20px;
  29. max-width: 250px;
  30. padding: 4px 5px;
  31. overflow: hidden;
  32. line-height: 20px;
  33. text-align: left;
  34. text-overflow: ellipsis;
  35. white-space: nowrap;
  36. vertical-align: middle;
  37. border-bottom: 1px solid #DDD;
  38. }
  39. .backgrid th.renderable,
  40. .backgrid td.renderable {
  41. display: table-cell;
  42. }
  43. .backgrid th {
  44. font-weight: bold;
  45. text-align: center;
  46. }
  47. .backgrid th.sortable a {
  48. text-decoration: none;
  49. white-space: nowrap;
  50. cursor: pointer;
  51. }
  52. .backgrid thead th {
  53. vertical-align: bottom;
  54. background-color: #f9f9f9;
  55. }
  56. .backgrid thead th button {
  57. display: block;
  58. padding: 0;
  59. background: none;
  60. border: none;
  61. }
  62. .backgrid.backgrid-striped tbody tr:nth-child(even) {
  63. background-color: #f9f9f9;
  64. }
  65. .backgrid tbody tr.empty {
  66. font-style: italic;
  67. color: gray;
  68. }
  69. .backgrid tbody tr.empty td {
  70. display: table-cell;
  71. text-align: center;
  72. }
  73. .backgrid td.editor {
  74. padding: 0;
  75. }
  76. .backgrid td.editor,
  77. .backgrid tbody tr:nth-child(odd) td.editor {
  78. background-color: rgba(82, 168, 236, 0.1);
  79. outline: 1px solid rgba(82, 168, 236, 0.8);
  80. outline-offset: -1px;
  81. -webkit-box-sizing: border-box;
  82. -moz-box-sizing: border-box;
  83. box-sizing: border-box;
  84. -webkit-transition-duration: 200ms;
  85. -moz-transition-duration: 200ms;
  86. -o-transition-duration: 200ms;
  87. transition-duration: 200ms;
  88. -webkit-transition-property: width, outline, background-color;
  89. -moz-transition-property: width, outline, background-color;
  90. -o-transition-property: width, outline, background-color;
  91. transition-property: width, outline, background-color;
  92. -webkit-transition-timing-function: ease-in-out;
  93. -moz-transition-timing-function: ease-in-out;
  94. -o-transition-timing-function: ease-in-out;
  95. transition-timing-function: ease-in-out;
  96. }
  97. .backgrid td.editor input[type=text] {
  98. display: block;
  99. width: 100%;
  100. height: 100%;
  101. padding: 0 5px;
  102. margin: 0;
  103. background-color: transparent;
  104. border: 0;
  105. outline: 0;
  106. -webkit-box-shadow: none;
  107. -moz-box-shadow: none;
  108. box-shadow: none;
  109. -webkit-box-sizing: border-box;
  110. -moz-box-sizing: border-box;
  111. box-sizing: border-box;
  112. -webkit-appearance: none;
  113. -moz-appearance: none;
  114. }
  115. .backgrid td.editor input[type=text]::-ms-clear {
  116. display: none;
  117. }
  118. .backgrid td.error,
  119. .backgrid tbody tr:nth-child(odd) td.error {
  120. background-color: rgba(255, 210, 77, 0.1);
  121. outline: 1px solid #ffd24d;
  122. }
  123. .backgrid td.editor :focus,
  124. .backgrid th.editor :focus {
  125. outline: 0;
  126. }
  127. .backgrid .sort-caret {
  128. display: inline-block;
  129. width: 0;
  130. height: 0;
  131. margin-left: 0.3em;
  132. border: 0;
  133. content: "";
  134. }
  135. .backgrid .ascending .sort-caret {
  136. vertical-align: baseline;
  137. border-top: none;
  138. border-right: 4px solid transparent;
  139. border-bottom: 4px solid #000000;
  140. border-left: 4px solid transparent;
  141. }
  142. .backgrid .descending .sort-caret {
  143. vertical-align: super;
  144. border-top: 4px solid #000000;
  145. border-right: 4px solid transparent;
  146. border-bottom: none;
  147. border-left: 4px solid transparent;
  148. }
  149. .backgrid .string-cell,
  150. .backgrid .uri-cell,
  151. .backgrid .email-cell,
  152. .backgrid .string-cell.editor input[type=text],
  153. .backgrid .uri-cell.editor input[type=text],
  154. .backgrid .email-cell.editor input[type=text] {
  155. text-align: left;
  156. }
  157. .backgrid .date-cell,
  158. .backgrid .time-cell,
  159. .backgrid .datetime-cell,
  160. .backgrid .number-cell,
  161. .backgrid .integer-cell,
  162. .backgrid .percent-cell,
  163. .backgrid .date-cell.editor input[type=text],
  164. .backgrid .time-cell.editor input[type=text],
  165. .backgrid .datetime-cell.editor input[type=text],
  166. .backgrid .number-cell.editor input[type=text],
  167. .backgrid .integer-cell.editor input[type=text],
  168. .backgrid .percent-cell.editor input[type=text] {
  169. text-align: right;
  170. }
  171. .backgrid .boolean-cell,
  172. .backgrid .boolean-cell.editor input[type=checkbox] {
  173. text-align: center;
  174. }
  175. .backgrid .select-cell {
  176. text-align: center;
  177. }
  178. .backgrid .select-cell.editor {
  179. padding: 0;
  180. }
  181. .backgrid .select-cell.editor select {
  182. display: block;
  183. width: 100%;
  184. height: 28px;
  185. padding: 4px 5px;
  186. margin: 0;
  187. line-height: 28px;
  188. vertical-align: middle;
  189. background-color: white;
  190. border: 0;
  191. outline: 0;
  192. -webkit-box-shadow: none;
  193. -moz-box-shadow: none;
  194. box-shadow: none;
  195. -webkit-box-sizing: border-box;
  196. -moz-box-sizing: border-box;
  197. box-sizing: border-box;
  198. }
  199. .backgrid .select-cell.editor select[multiple] {
  200. height: auto;
  201. }
  202. .backgrid .select-cell.editor :focus {
  203. border: 0;
  204. outline: 0;
  205. }
  206. .backgrid .select-cell.editor select::-moz-focus-inner,
  207. .backgrid .select-cell.editor optgroup::-moz-focus-inner,
  208. .backgrid .select-cell.editor option::-moz-focus-inner,
  209. .backgrid .select-cell.editor select::-o-focus-inner,
  210. .backgrid .select-cell.editor optgroup::-o-focus-inner,
  211. .backgrid .select-cell.editor option::-o-focus-inner {
  212. border: 0;
  213. }