_changelist.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  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. &-selection--multiple {
  132. overflow: auto;
  133. height: $input-height !important;
  134. .select2-selection__rendered {
  135. padding: 0 2px !important;
  136. }
  137. .select2-selection__choice {
  138. margin-top: 2px !important;
  139. margin-right: 2px !important;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. /* FILTER COLUMN */
  146. #changelist-filter {
  147. display: none;
  148. }
  149. /* DATE DRILLDOWN */
  150. .change-list ul.toplinks {
  151. display: block;
  152. padding: 0;
  153. margin: 0;
  154. li {
  155. list-style-type: none;
  156. display: inline-block;
  157. margin: 0 5px 5px 0;
  158. background-color: $button-background-color;
  159. color: $button-text-color;
  160. text-decoration: none;
  161. font-size: 14px;
  162. padding: 6px 10px;
  163. border-radius: 4px;
  164. }
  165. a {
  166. &, &:visited {
  167. color: $button-text-color;
  168. }
  169. &:focus, &:hover {
  170. text-decoration: underline;
  171. }
  172. }
  173. }
  174. /* PAGINATOR */
  175. .paginator {
  176. display: none;
  177. line-height: normal;
  178. padding: 0 !important;
  179. margin: 0;
  180. font-size: 12px;
  181. &.initialized {
  182. display: inherit;
  183. }
  184. .pages-wrapper {
  185. margin-left: 10px;
  186. display: inline-block;
  187. margin-bottom: 5px;
  188. @include for-mobile {
  189. margin-left: 0;
  190. }
  191. span, a {
  192. font-size: 14px;
  193. padding: 6px 10px;
  194. display: inline-block;
  195. &:first-child {
  196. border-radius: 4px 0 0 4px;
  197. }
  198. &:last-child {
  199. border-radius: 0 4px 4px 0;
  200. }
  201. &:first-child:last-child {
  202. border-radius: 4px;
  203. }
  204. }
  205. span {
  206. background-color: $button-active-background-color;
  207. color: $button-active-text-color;
  208. &.disabled {
  209. background-color: $button-background-color;
  210. color: $button-text-color;
  211. }
  212. }
  213. a {
  214. &:link, &:visited {
  215. background-color: $button-background-color;
  216. color: $button-text-color;
  217. text-decoration: none;
  218. }
  219. &:focus, &:hover {
  220. background-color: $button-hover-background-color;
  221. color: $button-hover-text-color;
  222. }
  223. }
  224. }
  225. a.showall {
  226. &:link, &:visited {
  227. font-size: 12px;
  228. }
  229. }
  230. .label {
  231. padding: 8px 0;
  232. }
  233. input[type="submit"] {
  234. &, &:hover, &:focus {
  235. font-size: 13px;
  236. padding: 6px 10px;
  237. height: auto;
  238. line-height: normal;
  239. margin: 0 0 0 10px;
  240. }
  241. }
  242. }
  243. /* ACTIONS */
  244. #changelist {
  245. table {
  246. input {
  247. margin: 0;
  248. vertical-align: baseline;
  249. }
  250. tbody tr.selected {
  251. border-color: $content-selected-border-color;
  252. background-color: $content-selected-background-color;
  253. }
  254. }
  255. .actions {
  256. float: left;
  257. display: none;
  258. @include for-mobile {
  259. float: none;
  260. margin-bottom: 20px;
  261. }
  262. @include for-phone {
  263. padding: 0 10px;
  264. }
  265. &.initialized {
  266. display: inline-block;
  267. @include for-mobile {
  268. display: block;
  269. }
  270. }
  271. label {
  272. @include for-mobile {
  273. margin-bottom: 5px;
  274. display: inline-block;
  275. }
  276. @include for-phone {
  277. display: block;
  278. }
  279. }
  280. .select2 {
  281. @include for-phone {
  282. width: 100% !important;
  283. }
  284. }
  285. .labels {
  286. padding: 8px 0;
  287. @include for-phone {
  288. text-align: center;
  289. }
  290. }
  291. span.all, span.action-counter, span.clear, span.question {
  292. display: none;
  293. }
  294. span.clear {
  295. margin-left: 5px;
  296. }
  297. .button {
  298. &, &:visited, &:hover {
  299. display: inline-block;
  300. background-color: $primary-button-background-color;
  301. color: $primary-button-text-color;
  302. border: 0;
  303. border-radius: 4px;
  304. height: 32px;
  305. line-height: 32px;
  306. outline: 0;
  307. font-size: 12px;
  308. font-weight: lighter;
  309. text-align: center;
  310. padding: 0 20px;
  311. text-transform: uppercase;
  312. margin: 0 8px 5px 0;
  313. transition: background $transitions-duration;
  314. @include for-phone {
  315. width: 100%;
  316. }
  317. }
  318. &:hover, &:focus {
  319. background-color: $button-hover-background-color;
  320. color: $button-hover-text-color;
  321. }
  322. &:active {
  323. background-color: $button-active-background-color;
  324. color: $button-active-text-color;
  325. }
  326. }
  327. span {
  328. font-size: 12px;
  329. }
  330. }
  331. }
  332. .changelist-footer {
  333. padding: 20px 0;
  334. background: $background-color;
  335. &.fixed {
  336. position: fixed;
  337. left: $sidebar-width + 20px;
  338. right: 20px;
  339. bottom: 0;
  340. border-top: 2px solid $content-border2-color;
  341. body.popup & {
  342. left: 20px;
  343. }
  344. @include for-mobile {
  345. position: static;
  346. left: auto;
  347. right: auto;
  348. bottom: auto;
  349. border-top: 0;
  350. }
  351. }
  352. &.popup {
  353. left: 20px;
  354. }
  355. }