tables.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. // Tables
  2. // --------------------------------------------------
  3. .table-footer {
  4. background: none;
  5. margin-bottom: 0px;
  6. padding: 0px 8px;
  7. position: relative;
  8. bottom: 20px;
  9. .pager {
  10. margin: 0px 0px;
  11. margin-top: 9px;
  12. padding: 0px;
  13. margin-right: 6px;
  14. &>li {
  15. margin-right: 6px;
  16. &>a {
  17. &:link, &:active, &:visited {
  18. background: darken(@bodyBackground, 8%);
  19. border: none;
  20. .border-radius(3px);
  21. padding: 2px 5px;
  22. }
  23. &:hover {
  24. background-color: @linkColor;
  25. i {
  26. background-image: url("@{iconWhiteSpritePath}");
  27. }
  28. }
  29. }
  30. }
  31. }
  32. .table-count {
  33. padding: 11px 0px;
  34. color: @gray;
  35. }
  36. .form-inline {
  37. margin: 0px;
  38. padding: 6px 0px;
  39. }
  40. .table-actions-right {
  41. margin-right: 16px;
  42. }
  43. }
  44. // Cell colors
  45. .table {
  46. td {
  47. &.perm-show,
  48. &.perm-read,
  49. &.perm-start,
  50. &.perm-reply,
  51. &.perm-upload,
  52. &.perm-download {
  53. text-align: center;
  54. }
  55. }
  56. tr:nth-child(even) {
  57. .perm-show {background-color: lighten(@blue, 40%);}
  58. .perm-read {background-color: lighten(@red, 40%);}
  59. .perm-start {background-color: lighten(@green, 40%);}
  60. .perm-reply {background-color: lighten(@yellow, 40%);}
  61. .perm-upload {background-color: lighten(@pink, 40%);}
  62. .perm-download {background-color: lighten(@orange, 40%);}
  63. }
  64. tr:nth-child(odd) {
  65. .perm-show {background-color: lighten(@blue, 30%);}
  66. .perm-read {background-color: lighten(@red, 30%);}
  67. .perm-start {background-color: lighten(@green, 30%);}
  68. .perm-reply {background-color: lighten(@yellow, 30%);}
  69. .perm-upload {background-color: lighten(@pink, 30%);}
  70. .perm-download {background-color: lighten(@orange, 30%);}
  71. }
  72. }
  73. // Checkbox cell
  74. td, th {
  75. &.check-cell {
  76. width: 32px;
  77. }
  78. .checkbox {
  79. margin-bottom: 0px;
  80. position: relative;
  81. bottom: 1px;
  82. input {
  83. position: relative;
  84. left: 9px;
  85. }
  86. }
  87. }
  88. // Lead cell
  89. td.lead-cell {
  90. font-size: 120%;
  91. }
  92. // Vertically centered table
  93. .table {
  94. td {
  95. vertical-align: middle;
  96. }
  97. select, .yes-no-switch {
  98. margin: 0px;
  99. }
  100. input {
  101. width: 90% !important;
  102. }
  103. .yes-no-switch {
  104. position: relative;
  105. top: 2px;
  106. }
  107. }
  108. // Table sorting styles
  109. th.table-sort {
  110. padding: 0px;
  111. a:link, a:active, a:visited a:hover{
  112. display: block;
  113. padding: 8px;
  114. }
  115. &.sort-active-asc {
  116. a:link, a:active, a:visited {
  117. border-bottom: 3px solid @blue;
  118. padding-bottom: 5px;
  119. }
  120. a:hover {
  121. border-bottom: 3px solid lighten(@red, 30%);
  122. padding-bottom: 5px;
  123. text-decoration: none;
  124. }
  125. }
  126. &.sort-active-desc {
  127. a:link, a:active, a:visited {
  128. border-bottom: 3px solid lighten(@red, 20%);
  129. padding-bottom: 5px;
  130. }
  131. a:hover {
  132. border-bottom: 3px solid lighten(@blue, 10%);
  133. padding-bottom: 5px;
  134. text-decoration: none;
  135. }
  136. }
  137. &.sort-asc {
  138. a:hover {
  139. border-bottom: 3px solid lighten(@blue, 40%);
  140. padding-bottom: 5px;
  141. text-decoration: none;
  142. }
  143. }
  144. &.sort-desc {
  145. a:hover {
  146. border-bottom: 3px solid lighten(@red, 40%);
  147. padding-bottom: 5px;
  148. text-decoration: none;
  149. }
  150. }
  151. }