_changelist.scss 7.5 KB

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