tables.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. input, select, .yes-no-switch {
  98. margin: 0px;
  99. }
  100. .yes-no-switch {
  101. position: relative;
  102. top: 2px;
  103. }
  104. }
  105. // Table sorting styles
  106. th.table-sort {
  107. padding: 0px;
  108. a:link, a:active, a:visited a:hover{
  109. display: block;
  110. padding: 8px;
  111. }
  112. &.sort-active-asc {
  113. a:link, a:active, a:visited {
  114. border-bottom: 3px solid @blue;
  115. padding-bottom: 5px;
  116. }
  117. a:hover {
  118. border-bottom: 3px solid lighten(@red, 30%);
  119. padding-bottom: 5px;
  120. text-decoration: none;
  121. }
  122. }
  123. &.sort-active-desc {
  124. a:link, a:active, a:visited {
  125. border-bottom: 3px solid lighten(@red, 20%);
  126. padding-bottom: 5px;
  127. }
  128. a:hover {
  129. border-bottom: 3px solid lighten(@blue, 10%);
  130. padding-bottom: 5px;
  131. text-decoration: none;
  132. }
  133. }
  134. &.sort-asc {
  135. a:hover {
  136. border-bottom: 3px solid lighten(@blue, 40%);
  137. padding-bottom: 5px;
  138. text-decoration: none;
  139. }
  140. }
  141. &.sort-desc {
  142. a:hover {
  143. border-bottom: 3px solid lighten(@red, 40%);
  144. padding-bottom: 5px;
  145. text-decoration: none;
  146. }
  147. }
  148. }