_changelist.scss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. @import "globals";
  2. /* CHANGELISTS */
  3. #changelist {
  4. position: relative;
  5. width: 100%;
  6. table {
  7. width: 100%;
  8. }
  9. .results {
  10. overflow-x: auto;
  11. -webkit-overflow-scrolling: touch;
  12. @include for-mobile {
  13. position: relative;
  14. left: -20px;
  15. width: calc(100% + 40px);
  16. margin-bottom: 0 !important;
  17. table {
  18. border-radius: 0;
  19. }
  20. thead th, tfoot td {
  21. border-radius: 0
  22. }
  23. }
  24. @include for-phone {
  25. left: -10px;
  26. width: calc(100% + 20px);
  27. }
  28. }
  29. .paginator {
  30. text-align: right;
  31. @include for-mobile {
  32. text-align: left;
  33. }
  34. @include for-phone {
  35. text-align: center;
  36. }
  37. }
  38. }
  39. .change-list {
  40. .hiddenfields {
  41. display: none;
  42. }
  43. .filtered table {
  44. border-right: none;
  45. }
  46. .filtered {
  47. min-height: 400px;
  48. }
  49. .filtered table tbody th {
  50. padding-right: 1em;
  51. }
  52. }
  53. /* CHANGELIST TABLES */
  54. #changelist table {
  55. thead th {
  56. &.action-checkbox-column {
  57. width: 1.5em;
  58. text-align: center;
  59. }
  60. }
  61. tbody td.action-checkbox {
  62. text-align: center;
  63. }
  64. tfoot {
  65. color: #666;
  66. }
  67. }
  68. /* TOOLBAR */
  69. #toolbar {
  70. margin-bottom: 20px;
  71. display: none;
  72. @include for-mobile {
  73. float: none;
  74. }
  75. &.initialized {
  76. display: block;
  77. }
  78. form {
  79. label[for="searchbar"] {
  80. display: none;
  81. }
  82. #searchbar {
  83. margin-bottom: 5px;
  84. margin-right: 2px;
  85. vertical-align: top;
  86. @include for-mobile {
  87. margin-right: 5px;
  88. }
  89. @include for-phone {
  90. width: 100%;
  91. }
  92. }
  93. input[type="submit"] {
  94. &, &:visited, &:hover {
  95. background-color: $primary-button-background-color;
  96. color: $primary-button-text-color;
  97. font-size: 12px;
  98. font-weight: lighter;
  99. padding: 0 20px;
  100. text-transform: uppercase;
  101. vertical-align: middle;
  102. margin-bottom: 5px;
  103. }
  104. &:hover, &:focus {
  105. background-color: $button-hover-background-color;
  106. color: $button-hover-text-color;
  107. }
  108. &:active {
  109. background-color: $button-active-background-color;
  110. color: $button-active-text-color;
  111. }
  112. }
  113. }
  114. }
  115. .changelist-filter-select {
  116. &-wrapper {
  117. margin-right: 2px;
  118. margin-bottom: 5px;
  119. display: inline-block;
  120. vertical-align: top;
  121. @include for-mobile {
  122. margin-right: 5px;
  123. }
  124. @include for-phone {
  125. width: 100%;
  126. }
  127. .select2 {
  128. @include for-phone {
  129. width: 100% !important;
  130. }
  131. }
  132. }
  133. }
  134. /* FILTER COLUMN */
  135. #changelist-filter {
  136. display: none;
  137. }
  138. /* DATE DRILLDOWN */
  139. .change-list ul.toplinks {
  140. display: block;
  141. padding: 0;
  142. margin: 0;
  143. li {
  144. list-style-type: none;
  145. display: inline-block;
  146. margin: 0 5px 5px 0;
  147. background-color: $button-background-color;
  148. color: $button-text-color;
  149. text-decoration: none;
  150. font-size: 14px;
  151. padding: 6px 10px;
  152. border-radius: 4px;
  153. }
  154. a {
  155. &, &:visited {
  156. color: $button-text-color;
  157. }
  158. &:focus, &:hover {
  159. text-decoration: underline;
  160. }
  161. }
  162. }
  163. /* PAGINATOR */
  164. .paginator {
  165. display: none;
  166. line-height: normal;
  167. padding: 0 !important;
  168. margin: 0;
  169. font-size: 12px;
  170. &.initialized {
  171. display: inherit;
  172. }
  173. .pages-wrapper {
  174. margin-left: 10px;
  175. display: inline-block;
  176. margin-bottom: 5px;
  177. @include for-mobile {
  178. margin-left: 0;
  179. }
  180. span, a {
  181. font-size: 14px;
  182. padding: 6px 10px;
  183. display: inline-block;
  184. &:first-child {
  185. border-radius: 4px 0 0 4px;
  186. }
  187. &:last-child {
  188. border-radius: 0 4px 4px 0;
  189. }
  190. &:first-child:last-child {
  191. border-radius: 4px;
  192. }
  193. }
  194. span {
  195. background-color: $button-active-background-color;
  196. color: $button-active-text-color;
  197. &.disabled {
  198. background-color: $button-background-color;
  199. color: $button-text-color;
  200. }
  201. }
  202. a {
  203. &:link, &:visited {
  204. background-color: $button-background-color;
  205. color: $button-text-color;
  206. text-decoration: none;
  207. }
  208. &:focus, &:hover {
  209. background-color: $button-hover-background-color;
  210. color: $button-hover-text-color;
  211. }
  212. }
  213. }
  214. a.showall {
  215. &:link, &:visited {
  216. font-size: 12px;
  217. }
  218. }
  219. .label {
  220. padding: 8px 0;
  221. }
  222. input[type="submit"] {
  223. &, &:hover, &:focus {
  224. font-size: 13px;
  225. padding: 6px 10px;
  226. height: auto;
  227. line-height: normal;
  228. margin: 0 0 0 10px;
  229. }
  230. }
  231. }
  232. /* ACTIONS */
  233. #changelist {
  234. table {
  235. input {
  236. margin: 0;
  237. vertical-align: baseline;
  238. }
  239. tbody tr.selected {
  240. border-color: $content-selected-border-color;
  241. background-color: $content-selected-background-color;
  242. }
  243. }
  244. .actions {
  245. float: left;
  246. display: none;
  247. @include for-mobile {
  248. float: none;
  249. margin-bottom: 20px;
  250. }
  251. @include for-phone {
  252. padding: 0 10px;
  253. }
  254. &.initialized {
  255. display: inline-block;
  256. @include for-mobile {
  257. display: block;
  258. }
  259. }
  260. label {
  261. @include for-mobile {
  262. margin-bottom: 5px;
  263. display: inline-block;
  264. }
  265. @include for-phone {
  266. display: block;
  267. }
  268. }
  269. .select2 {
  270. @include for-phone {
  271. width: 100% !important;
  272. }
  273. }
  274. .labels {
  275. padding: 8px 0;
  276. @include for-phone {
  277. text-align: center;
  278. }
  279. }
  280. span.all, span.action-counter, span.clear, span.question {
  281. display: none;
  282. }
  283. span.clear {
  284. margin-left: 5px;
  285. }
  286. .button {
  287. &, &:visited, &:hover {
  288. display: inline-block;
  289. background-color: $primary-button-background-color;
  290. color: $primary-button-text-color;
  291. border: 0;
  292. border-radius: 4px;
  293. height: 32px;
  294. line-height: 32px;
  295. outline: 0;
  296. font-size: 12px;
  297. font-weight: lighter;
  298. text-align: center;
  299. padding: 0 20px;
  300. text-transform: uppercase;
  301. margin: 0 8px 5px 0;
  302. transition: background $transitions-duration;
  303. @include for-phone {
  304. width: 100%;
  305. }
  306. }
  307. &:hover, &:focus {
  308. background-color: $button-hover-background-color;
  309. color: $button-hover-text-color;
  310. }
  311. &:active {
  312. background-color: $button-active-background-color;
  313. color: $button-active-text-color;
  314. }
  315. }
  316. span {
  317. font-size: 12px;
  318. }
  319. }
  320. }
  321. .changelist-footer {
  322. padding: 20px 0;
  323. background: $background-color;
  324. &.fixed {
  325. position: fixed;
  326. left: $sidebar-width + 20px;
  327. right: 20px;
  328. bottom: 0;
  329. border-top: 2px solid $content-border2-color;
  330. body.popup & {
  331. left: 20px;
  332. }
  333. @include for-mobile {
  334. position: static;
  335. left: auto;
  336. right: auto;
  337. bottom: auto;
  338. border-top: 0;
  339. }
  340. }
  341. &.popup {
  342. left: 20px;
  343. }
  344. }