tables.less 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. //
  2. // Tables
  3. // --------------------------------------------------
  4. //== Table actions
  5. //
  6. //**
  7. .table-actions {
  8. margin-bottom: @line-height-computed;
  9. height: 36px;
  10. overflow: visible;
  11. &>.pull-left {
  12. margin-right: @line-height-computed / 2;
  13. }
  14. &>.pull-right {
  15. margin-left: @line-height-computed / 2;
  16. &.master-checkbox {
  17. background: none;
  18. border-color: transparent;
  19. .box-shadow(none);
  20. padding: 0px 6px;
  21. color: @gray-light;
  22. font-size: 24px;
  23. line-height: 32px;
  24. &.active, &:active {
  25. top: 0px;
  26. }
  27. &.active {
  28. color: @brand-success;
  29. }
  30. }
  31. .dropdown-menu {
  32. left: auto;
  33. right: 0px;
  34. }
  35. }
  36. }
  37. //== Table panel
  38. //
  39. //**
  40. .table-panel {
  41. border: 1px solid @table-panel-border;
  42. border-radius: @border-radius-base;
  43. box-shadow: 0px 0px 0px 3px @table-panel-shadow;
  44. margin-bottom: @line-height-computed;
  45. }
  46. //== Panel header
  47. //
  48. //**
  49. .table-panel {
  50. .panel-header {
  51. }
  52. }
  53. //== Panel table
  54. //
  55. //**
  56. .table-panel {
  57. table.table {
  58. margin: 0px;
  59. }
  60. }
  61. //== Table row
  62. //
  63. //**
  64. .table-panel {
  65. table.table {
  66. tr {
  67. &.message-row {
  68. td {
  69. padding: @line-height-computed;
  70. p {
  71. margin: 0px;
  72. font-size: @font-size-large;
  73. }
  74. }
  75. }
  76. th {
  77. background: @table-header-bg;
  78. border: none;
  79. padding: @table-condensed-cell-padding @table-cell-padding;
  80. color: @table-header-color;
  81. font-size: @font-size-small;
  82. }
  83. td {
  84. background-color: #fff;
  85. vertical-align: middle;
  86. img {
  87. border-radius: @border-radius-base;
  88. max-width: 30px;
  89. max-height: 30px;
  90. }
  91. &.item-name {
  92. color: @text-color;
  93. font-size: @font-size-large;
  94. a:link, a:visited {
  95. color: @text-color;
  96. }
  97. }
  98. }
  99. &:first-child {
  100. &>:first-child {
  101. border-top-left-radius: (@border-radius-base - 1);
  102. }
  103. &>:last-child {
  104. border-top-right-radius: (@border-radius-base - 1);
  105. }
  106. }
  107. &:last-child {
  108. &>:first-child {
  109. border-bottom-left-radius: (@border-radius-base - 1);
  110. }
  111. &>:last-child {
  112. border-bottom-right-radius: (@border-radius-base - 1);
  113. }
  114. }
  115. }
  116. }
  117. }
  118. //== Row action
  119. //
  120. //**
  121. .table-panel {
  122. table.table {
  123. tr {
  124. td.row-action {
  125. vertical-align: middle;
  126. width: 1%;
  127. .btn, &>form .btn, .dropdown-toggle {
  128. background: none;
  129. border-color: transparent;
  130. .box-shadow(none);
  131. padding: 0px 4px;
  132. position: relative;
  133. top: 0px;
  134. bottom: 0px;
  135. color: @gray-light;
  136. font-size: @font-size-base * 1.6;
  137. &:hover {
  138. top: 0px;
  139. bottom: 0px;
  140. &.btn-default {
  141. color: @gray;
  142. }
  143. &.btn-primary {
  144. color: @brand-secondary;
  145. }
  146. &.btn-danger {
  147. color: @brand-danger;
  148. }
  149. &.btn-warning {
  150. color: @brand-warning;
  151. }
  152. &.btn-success {
  153. color: @brand-success;
  154. }
  155. }
  156. &:active {
  157. top: 0px;
  158. bottom: 0px;
  159. &.btn-default {
  160. color: @gray-dark;
  161. }
  162. &.btn-primary {
  163. color: darken(@brand-secondary, 20%);
  164. }
  165. &.btn-danger {
  166. color: darken(@brand-danger, 20%);
  167. }
  168. &.btn-warning {
  169. color: darken(@brand-warning, 20%);
  170. }
  171. &.btn-success {
  172. color: darken(@brand-success, 20%);
  173. }
  174. }
  175. }
  176. .dropdown-menu {
  177. top: 24px;
  178. &:after {
  179. right: 9px;
  180. }
  181. }
  182. }
  183. }
  184. }
  185. }
  186. //== Row select
  187. //
  188. //**
  189. .table-panel {
  190. table.table {
  191. tr {
  192. &.active {
  193. td {
  194. background-color: fadeOut(@brand-warning, 95%);
  195. }
  196. }
  197. td.row-select {
  198. width: 1%;
  199. label {
  200. padding: 0px;
  201. width: 24px;
  202. height: 24px;
  203. text-align: center;
  204. input {
  205. width: 12px;
  206. height: 12px;
  207. }
  208. &.ninja-label {
  209. border: 0;
  210. clip: rect(0 0 0 0);
  211. height: 1px;
  212. margin: -1px;
  213. overflow: hidden;
  214. padding: 0;
  215. position: absolute;
  216. width: 1px;
  217. }
  218. }
  219. a {
  220. display: block;
  221. width: 24px;
  222. height: 24px;
  223. span {
  224. color: lighten(@gray-light, 5%);
  225. font-size: 24px;
  226. }
  227. &.active {
  228. span {
  229. color: @brand-success;
  230. }
  231. }
  232. }
  233. }
  234. }
  235. }
  236. }
  237. //== Table footer
  238. //
  239. //**
  240. .table-panel {
  241. .table-footer {
  242. background-color: @form-panel-footer-bg;
  243. border-radius: 0px 0px (@border-radius-large - 1px) (@border-radius-large - 1px);
  244. border-top: 1px solid @form-panel-border;
  245. padding: @form-panel-padding;
  246. padding-left: @table-cell-padding;
  247. padding-right: @table-cell-padding;
  248. &>.row {
  249. position: relative;
  250. left: -2px;
  251. margin-left: @table-cell-padding;
  252. }
  253. }
  254. }