_modeladmin.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. .modeladmin {
  2. .result-count {
  3. display: block;
  4. font-weight: 500;
  5. &:before {
  6. content: '(';
  7. }
  8. &:after {
  9. content: ')';
  10. }
  11. @include media-breakpoint-up(lg) {
  12. display: inline-block;
  13. margin-inline-start: 0.25em;
  14. }
  15. }
  16. .result-list {
  17. margin-bottom: 0;
  18. }
  19. .listing {
  20. td,
  21. th {
  22. vertical-align: top;
  23. }
  24. thead th.sorted a {
  25. color: theme('colors.text-link-default');
  26. }
  27. tbody {
  28. overflow: auto;
  29. tr:hover ul.actions {
  30. visibility: visible;
  31. }
  32. tr > td {
  33. background-color: inherit;
  34. // stylelint-disable-next-line max-nesting-depth
  35. a.edit-obj {
  36. color: inherit;
  37. font-weight: 600;
  38. }
  39. }
  40. }
  41. }
  42. .changelist-filter {
  43. padding: 0 15px;
  44. h2 {
  45. background-color: theme('colors.surface-header');
  46. font-size: 13px;
  47. line-height: 31px;
  48. margin-top: 0;
  49. padding-inline-start: 8px;
  50. border-bottom: 1px solid theme('colors.border-furniture');
  51. }
  52. h3 {
  53. font-size: 12px;
  54. margin-bottom: 0;
  55. }
  56. ul {
  57. padding-inline-start: 0;
  58. margin-bottom: 25px;
  59. }
  60. li {
  61. list-style-type: none;
  62. margin: 0 0 4px;
  63. padding-inline-start: 0;
  64. }
  65. a {
  66. font-family: $font-sans;
  67. border-radius: 3px;
  68. width: auto;
  69. line-height: 1.2em;
  70. padding: 8px 12px;
  71. font-size: 0.9em;
  72. font-weight: normal;
  73. vertical-align: middle;
  74. display: block;
  75. background-color: theme('colors.surface-page');
  76. border: 1px solid theme('colors.text-button-outline-default');
  77. color: theme('colors.text-button-outline-default');
  78. text-decoration: none;
  79. position: relative;
  80. overflow: hidden;
  81. -webkit-font-smoothing: auto;
  82. // stylelint-disable-next-line property-no-vendor-prefix
  83. -moz-appearance: none;
  84. &:hover {
  85. background-color: theme('colors.text-button-outline-default');
  86. border-color: theme('colors.text-button-outline-default');
  87. color: theme('colors.surface-page');
  88. }
  89. }
  90. li.selected a {
  91. // stylelint-disable-next-line declaration-no-important
  92. color: theme('colors.surface-page') !important;
  93. // stylelint-disable-next-line declaration-no-important
  94. border-color: theme('colors.text-link-default') !important;
  95. background-color: theme('colors.text-link-default');
  96. }
  97. }
  98. .no-search-results {
  99. margin-top: 30px;
  100. h2 {
  101. padding-top: 0.3em;
  102. margin-bottom: 0.3em;
  103. }
  104. img {
  105. float: left;
  106. margin: 0 15px 15px 0;
  107. width: 50px;
  108. }
  109. }
  110. .pagination {
  111. margin-top: 3em;
  112. border-top: 1px dashed theme('colors.border-furniture');
  113. padding: 2em 1em 0;
  114. ul {
  115. margin-top: -1.25em;
  116. }
  117. }
  118. p.no-results {
  119. margin: 30px 1em 0;
  120. }
  121. @include media-breakpoint-up(sm) {
  122. .changelist-filter {
  123. float: right;
  124. padding: 0 1.5%;
  125. }
  126. .result-list {
  127. padding: 0 1.5% 0 0;
  128. &.col12 {
  129. padding-inline-end: 0;
  130. // stylelint-disable-next-line max-nesting-depth
  131. tbody td:last-child {
  132. padding-inline-end: 50px;
  133. }
  134. }
  135. tbody th:first-child {
  136. padding-inline-start: 50px;
  137. }
  138. }
  139. .pagination {
  140. padding-inline-start: 50px;
  141. padding-inline-end: 50px;
  142. }
  143. .pagination.col9 {
  144. width: 73.5%;
  145. }
  146. p.no-results {
  147. margin: 30px 50px 0;
  148. }
  149. }
  150. @include media-breakpoint-up(lg) {
  151. .result-list.col9 {
  152. width: 79%;
  153. }
  154. .changelist-filter {
  155. width: 21%;
  156. }
  157. .pagination.col9 {
  158. width: 77.5%;
  159. }
  160. }
  161. }