_tables.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. table,
  2. tbody,
  3. thead {
  4. display: inline-block;
  5. width: 100%;
  6. }
  7. .gpm-details {
  8. width: 100%;
  9. @include flex(auto);
  10. }
  11. td {
  12. border: 0;
  13. border-bottom: 1px solid darken($content-bg, 5%);
  14. }
  15. tr {
  16. @include transition(all 0.2s ease);
  17. @include display(flex);
  18. @include flex-wrap(wrap);
  19. th {
  20. display: block;
  21. @include flex(1);
  22. font-weight: bold;
  23. &:first-child {
  24. padding-left: $padding-default;
  25. }
  26. &:last-child {
  27. padding-right: $padding-default;
  28. }
  29. }
  30. td {
  31. display: block;
  32. @include flex(1);
  33. &.double {
  34. @include flex(2);
  35. }
  36. &:first-child {
  37. padding-left: $padding-default;
  38. @include breakpoint(mobile-only) {
  39. padding-left: .5rem;
  40. .plugin-update-button {
  41. float: left;
  42. }
  43. }
  44. }
  45. &:last-child, &.gpm-actions {
  46. padding-right: $padding-default;
  47. }
  48. &.gpm-actions {
  49. line-height: 1;
  50. text-align: right;
  51. position: relative;
  52. .gpm-details-expand {
  53. position: absolute;
  54. top: 12px;
  55. right: 12px;
  56. }
  57. }
  58. &.gpm-details {
  59. margin: 0;
  60. padding: 0;
  61. background-color: #f7f7f7;
  62. @include breakpoint(mobile-only){
  63. word-wrap: break-word;
  64. }
  65. > .table-wrapper {
  66. display: none;
  67. td {
  68. border-bottom: 0;
  69. }
  70. }
  71. tbody {
  72. width: 100%;
  73. }
  74. }
  75. }
  76. &:last-child {
  77. td {
  78. border-bottom: 0;
  79. }
  80. }
  81. &:hover {
  82. background: lighten($content-bg,2%);
  83. }
  84. }
  85. //Fixes for Kendo calendar on Firefox
  86. .k-calendar-container {
  87. table,
  88. tbody,
  89. thead {
  90. width: 100%;
  91. }
  92. thead {
  93. th:first-child {
  94. padding-left: 0;
  95. }
  96. th:last-child {
  97. padding-right: 0.5rem;
  98. }
  99. }
  100. }