tables.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. margin-right: @padding-small-horizontal - 1px;
  21. padding: 0px 6px;
  22. transition: 0s;
  23. color: @text-muted;
  24. font-size: 25px;
  25. line-height: 32px;
  26. &.active, &:active {
  27. top: 0px;
  28. }
  29. &.active {
  30. color: @brand-success;
  31. }
  32. }
  33. .dropdown-menu {
  34. left: auto;
  35. right: 0px;
  36. }
  37. }
  38. }
  39. //== Table panel
  40. //
  41. //**
  42. .table-panel {
  43. border: 1px solid @table-panel-border;
  44. border-radius: @border-radius-base;
  45. box-shadow: 0px 0px 0px 3px @table-panel-shadow;
  46. margin-bottom: @line-height-computed;
  47. }
  48. //== Panel table
  49. //
  50. //**
  51. .table-panel {
  52. table.table {
  53. margin: 0px;
  54. }
  55. }
  56. //== Table row
  57. //
  58. //**
  59. .table-panel {
  60. table.table {
  61. tr {
  62. &.message-row {
  63. td {
  64. padding: @line-height-computed;
  65. p {
  66. margin: 0px;
  67. font-size: @font-size-large;
  68. }
  69. }
  70. }
  71. th {
  72. background: @table-header-bg;
  73. border: none;
  74. padding: @table-condensed-cell-padding @table-cell-padding;
  75. color: @table-header-color;
  76. font-size: @font-size-small;
  77. }
  78. td {
  79. background-color: #fff;
  80. vertical-align: middle;
  81. img {
  82. border-radius: @border-radius-base;
  83. max-width: 30px;
  84. max-height: 30px;
  85. }
  86. &.item-name {
  87. color: @text-color;
  88. font-size: @font-size-large;
  89. a:link, a:visited {
  90. color: @text-color;
  91. }
  92. }
  93. }
  94. &:first-child {
  95. &>:first-child {
  96. border-top-left-radius: (@border-radius-base - 1);
  97. }
  98. &>:last-child {
  99. border-top-right-radius: (@border-radius-base - 1);
  100. }
  101. }
  102. &:last-child {
  103. &>:first-child {
  104. border-bottom-left-radius: (@border-radius-base - 1);
  105. }
  106. &>:last-child {
  107. border-bottom-right-radius: (@border-radius-base - 1);
  108. }
  109. }
  110. }
  111. }
  112. }
  113. //== Row action
  114. //
  115. //**
  116. .table-panel {
  117. table.table {
  118. tr {
  119. td.row-action {
  120. vertical-align: middle;
  121. width: 1%;
  122. .btn, &>form .btn, .dropdown-toggle {
  123. background: none;
  124. border-color: transparent;
  125. .box-shadow(none);
  126. padding: 0px 4px;
  127. position: relative;
  128. top: 0px;
  129. bottom: 0px;
  130. color: @gray-light;
  131. font-size: @font-size-base * 1.6;
  132. &:hover {
  133. top: 0px;
  134. bottom: 0px;
  135. &.btn-default {
  136. color: @gray;
  137. }
  138. &.btn-primary {
  139. color: @brand-primary;
  140. }
  141. &.btn-danger {
  142. color: @brand-danger;
  143. }
  144. &.btn-warning {
  145. color: @brand-warning;
  146. }
  147. &.btn-success {
  148. color: @brand-success;
  149. }
  150. }
  151. &:active {
  152. top: 0px;
  153. bottom: 0px;
  154. &.btn-default {
  155. color: @gray-dark;
  156. }
  157. &.btn-primary {
  158. color: darken(@brand-primary, 20%);
  159. }
  160. &.btn-danger {
  161. color: darken(@brand-danger, 20%);
  162. }
  163. &.btn-warning {
  164. color: darken(@brand-warning, 20%);
  165. }
  166. &.btn-success {
  167. color: darken(@brand-success, 20%);
  168. }
  169. }
  170. }
  171. }
  172. }
  173. }
  174. }
  175. //== Table footer
  176. //
  177. //**
  178. .table-panel {
  179. .table-footer {
  180. background-color: @form-panel-footer-bg;
  181. border-radius: 0px 0px (@border-radius-large - 1px) (@border-radius-large - 1px);
  182. border-top: 1px solid @form-panel-border;
  183. padding: @form-panel-padding;
  184. padding-left: @table-cell-padding;
  185. padding-right: @table-cell-padding;
  186. &>.row {
  187. position: relative;
  188. left: -2px;
  189. margin-left: @table-cell-padding;
  190. }
  191. }
  192. }