views-ui.pcss.css 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. /**
  2. * Views styling
  3. */
  4. /* @group Forms */
  5. /**
  6. * Claro positions the summary absolutely, but does not have a way to ignore
  7. * details without a summary so we make one up.
  8. *
  9. * @todo Neither a fieldset without legend nor a details without summary is
  10. * valid HTML markup in any way. Refactor Views UI to not produce such invalid
  11. * markup.
  12. */
  13. details.fieldset-no-legend {
  14. padding-top: 0;
  15. }
  16. /**
  17. * Being extra safe here and scoping this to the add view wizard form (where
  18. * a layout problem occurs for the Display format details if we don't fix its
  19. * padding), but it's probably safe to just let it apply everywhere.
  20. */
  21. .views-ui-dialog input.form-submit,
  22. .views-admin a.button,
  23. .views-ui-dialog a.button {
  24. margin-top: 0;
  25. margin-right: 0;
  26. margin-bottom: 0;
  27. }
  28. [dir="rtl"] .views-ui-dialog input.form-submit,
  29. [dir="rtl"] .views-admin a.button,
  30. [dir="rtl"] .views-ui-dialog a.button {
  31. margin-right: 1em;
  32. margin-left: 0;
  33. }
  34. [dir="rtl"] .views-ui-dialog input.form-submit:first-child,
  35. [dir="rtl"] .views-admin a.button:first-child,
  36. [dir="rtl"] .views-ui-dialog a.button:first-child {
  37. margin-right: 0;
  38. }
  39. /* @group Dependent options
  40. */
  41. /* This is necessary to supercede the Claro .form-item
  42. * reset declaration that sets the margin to zero.
  43. */
  44. .form-item-options-expose-required,
  45. .form-item-options-expose-label,
  46. .form-item-options-expose-description {
  47. margin-left: 1.5em; /* LTR */
  48. }
  49. [dir="rtl"] .form-item-options-expose-required,
  50. [dir="rtl"] .form-item-options-expose-label,
  51. [dir="rtl"] .form-item-options-expose-description {
  52. margin-right: 1.5em;
  53. margin-left: 0;
  54. }
  55. .views-admin-dependent .form-item .form-item,
  56. .views-admin-dependent .form-type-checkboxes,
  57. .views-admin-dependent .form-type-radios,
  58. .views-admin-dependent .form-item .form-item,
  59. .form-item-options-expose-required,
  60. .form-item-options-expose-label,
  61. .form-item-options-expose-description {
  62. margin-top: 6px;
  63. margin-bottom: 6px;
  64. }
  65. .views-admin-dependent .form-type-radio,
  66. .views-admin-dependent .form-radios .form-item {
  67. margin-top: 2px;
  68. margin-bottom: 2px;
  69. }
  70. /* @end */
  71. /* @group Lists */
  72. .views-admin ul.secondary,
  73. .views-admin .item-list ul {
  74. margin: 0;
  75. padding: 0;
  76. }
  77. .views-displays ul.secondary li a,
  78. .views-displays ul.secondary li.is-active a,
  79. .views-displays ul.secondary li.is-active a.is-active {
  80. padding: 2px 7px 3px;
  81. }
  82. .views-displays ul.secondary li a {
  83. color: #0074bd;
  84. }
  85. .views-displays ul.secondary li.is-active a,
  86. .views-displays ul.secondary li.is-active a.is-active {
  87. border: 1px solid transparent;
  88. }
  89. .views-admin .links li {
  90. padding-right: 0; /* LTR */
  91. }
  92. [dir="rtl"] .views-admin .links li {
  93. padding-left: 0;
  94. }
  95. .views-admin .button .links li {
  96. padding-right: 12px; /* LTR */
  97. }
  98. [dir="rtl"] .views-admin .button .links li {
  99. padding-left: 12px;
  100. }
  101. .views-display-top ul.secondary {
  102. float: left; /* LTR */
  103. background-color: transparent;
  104. }
  105. [dir="rtl"] .views-display-top ul.secondary {
  106. float: right;
  107. }
  108. .views-display-top .secondary .action-list li {
  109. float: none;
  110. margin: 0;
  111. }
  112. /* @end */
  113. /* @group Tables */
  114. .views-ui-rearrange-filter-form table td,
  115. .views-ui-rearrange-filter-form table th {
  116. vertical-align: top;
  117. }
  118. /* @end */
  119. /* @group Attachment details */
  120. #edit-display-settings-title {
  121. color: #008bcb;
  122. }
  123. /* @end */
  124. /* @group Attachment details tabs
  125. *
  126. * The tabs that switch between sections
  127. *
  128. * @todo this group contains lots of duplicates from core styles because Claro
  129. * has its custom markup for views tabs. Some of these could be removed after
  130. * https://www.drupal.org/node/3051605 has been solved.
  131. */
  132. .views-tabs {
  133. overflow: visible;
  134. margin: 0 200px 0 0; /* LTR */
  135. padding: 0;
  136. list-style: none;
  137. text-align: left; /* LTR */
  138. border-bottom: 0 none;
  139. }
  140. [dir="rtl"] .views-tabs {
  141. margin-right: 0;
  142. margin-left: 200px;
  143. text-align: right;
  144. }
  145. .views-tabs > li {
  146. float: left; /* LTR */
  147. padding: 0;
  148. border-right: 0 none; /* LTR */
  149. }
  150. [dir="rtl"] .views-tabs > li {
  151. float: right;
  152. border-right: 1px solid #bfbfbf;
  153. border-left: 0 none;
  154. }
  155. .views-tabs .open > a {
  156. position: relative;
  157. z-index: 51;
  158. }
  159. .views-tabs .views-display-deleted-link {
  160. text-decoration: line-through;
  161. }
  162. .views-tabs .add {
  163. position: relative;
  164. }
  165. .views-tabs .action-list {
  166. position: absolute;
  167. z-index: 50;
  168. top: 23px;
  169. left: 0; /* LTR */
  170. margin: 0;
  171. }
  172. [dir="rtl"] .views-tabs .action-list {
  173. right: 0;
  174. left: auto;
  175. }
  176. .views-tabs .action-list li {
  177. display: block;
  178. }
  179. .views-tab a:hover > .icon.add {
  180. background-position: center -25px;
  181. }
  182. .views-tab .open > a {
  183. border-radius: 7px 7px 0 0;
  184. }
  185. .views-tab .open > a:hover,
  186. .views-tab .open > a:focus {
  187. color: #008bcb;
  188. background-color: #f1f1f1;
  189. }
  190. .views-tab .action-list li:first-child {
  191. border-radius: 0 7px 0 0; /* LTR */
  192. }
  193. [dir="rtl"] .views-tab .action-list li:first-child {
  194. border-radius: 7px 0 0 0;
  195. }
  196. .views-tab .action-list li:last-child {
  197. border-radius: 0 0 7px 7px;
  198. }
  199. .views-tab .action-list input.form-submit {
  200. color: #008bcb;
  201. }
  202. .views-tabs li,
  203. .views-tabs li.is-active {
  204. width: auto;
  205. padding: 0;
  206. border: 0;
  207. background: transparent;
  208. }
  209. .views-tabs li.add ul.action-list li {
  210. margin: 0;
  211. }
  212. .views-tabs li {
  213. margin: 0 5px 5px 6px; /* LTR */
  214. }
  215. [dir="rtl"] .views-tabs li {
  216. margin-right: 6px;
  217. margin-left: 5px;
  218. }
  219. .views-tabs li + li {
  220. border-top: 0;
  221. }
  222. .views-tabs li:hover {
  223. padding-left: 0; /* LTR */
  224. border: 0;
  225. }
  226. [dir="rtl"] .views-tabs li:hover {
  227. padding-right: 0;
  228. }
  229. .views-tabs a {
  230. display: inline-block;
  231. padding: 3px 7px;
  232. border: 1px solid #cbcbcb;
  233. border-radius: 7px;
  234. font-size: small;
  235. line-height: 1.3333;
  236. }
  237. /* Display a red border if the display doesn't validate. */
  238. .views-tabs li.is-active a.is-active.error,
  239. .views-tabs .error {
  240. padding: 1px 6px;
  241. border: 2px solid #ed541d;
  242. }
  243. .views-tabs a:focus {
  244. outline: none;
  245. }
  246. .views-tabs li a {
  247. text-decoration: none;
  248. background-color: #fff;
  249. }
  250. .views-tabs li a:hover,
  251. .views-tabs li.is-active a,
  252. .views-tabs li.is-active a.is-active {
  253. color: #fff;
  254. background-color: #555;
  255. }
  256. .views-tabs .open > a {
  257. position: relative;
  258. border-bottom: 1px solid transparent;
  259. background-color: #f1f1f1;
  260. }
  261. .views-tabs .open > a:hover {
  262. color: #0074bd;
  263. background-color: #f1f1f1;
  264. }
  265. .views-tabs .action-list li {
  266. padding: 2px 9px;
  267. border-width: 0 1px;
  268. border-style: solid;
  269. border-color: #cbcbcb;
  270. background-color: #f1f1f1;
  271. }
  272. .views-tabs .action-list li:first-child {
  273. border-width: 1px 1px 0;
  274. }
  275. .views-displays .action-list li:last-child {
  276. border-width: 0 1px 1px;
  277. }
  278. .views-tabs .action-list li:last-child {
  279. border-width: 0 1px 1px;
  280. }
  281. .views-tabs .action-list input.form-submit {
  282. margin: 0;
  283. padding: 0;
  284. border: medium none;
  285. background: none repeat scroll 0 0 transparent;
  286. }
  287. .views-tabs .action-list input.form-submit:hover {
  288. box-shadow: none;
  289. }
  290. .views-tabs .action-list li:hover {
  291. background-color: #ddd;
  292. }
  293. .views-tabs a:hover > .icon.add {
  294. background-position: center -25px;
  295. }
  296. .views-tabs .open a:hover > .icon.add {
  297. background-position: center 3px;
  298. }
  299. /* @end */
  300. /* @group Attachment buckets
  301. *
  302. * These are the individual "buckets," or boxes, inside the display settings area
  303. */
  304. .views-ui-display-tab-bucket h3 {
  305. text-transform: uppercase;
  306. }
  307. .views-ui-display-tab-bucket .links {
  308. padding: 2px 6px 4px;
  309. }
  310. .views-ui-display-tab-bucket .links li + li {
  311. margin-left: 3px; /* LTR */
  312. }
  313. [dir="rtl"] .views-ui-display-tab-bucket .links li + li {
  314. margin-right: 3px;
  315. margin-left: 0;
  316. }
  317. /* @end */
  318. /* @group Rearrange filter criteria */
  319. .views-ui-rearrange-filter-form .action-links {
  320. float: left;
  321. margin: 0 0 1em;
  322. padding: 0;
  323. }
  324. .views-ui-rearrange-filter-form .tabledrag-toggle-weight-wrapper {
  325. float: right;
  326. margin-bottom: 1em;
  327. }
  328. .views-ui-rearrange-filter-form table {
  329. border: medium none;
  330. }
  331. .views-ui-rearrange-filter-form [id^="views-row"] {
  332. border: medium none;
  333. }
  334. .views-ui-rearrange-filter-form tr td:last-child {
  335. border-right: medium none; /* LTR */
  336. }
  337. [dir="rtl"] .views-ui-rearrange-filter-form tr td:last-child {
  338. border-right: initial;
  339. border-left: medium none;
  340. }
  341. .views-ui-rearrange-filter-form .filter-group-operator-row {
  342. border-right: 1px solid transparent !important;
  343. border-left: 1px solid transparent !important;
  344. }
  345. .views-ui-rearrange-filter-form tr.drag td {
  346. background-color: #fe7 !important;
  347. }
  348. .views-ui-rearrange-filter-form tr.drag-previous td {
  349. background-color: #ffb !important;
  350. }
  351. /* @end */
  352. /* @group Live preview elements */
  353. .views-query-info pre {
  354. margin-top: 0;
  355. margin-bottom: 0;
  356. }
  357. /* @group Query info table */
  358. .views-query-info table {
  359. border-radius: 7px;
  360. -webkit-border-horizontal-spacing: 1px;
  361. -webkit-border-vertical-spacing: 1px;
  362. }
  363. .views-query-info table tr td:last-child {
  364. /* Fixes a Claro style that bleeds down into this table unnecessarily */
  365. border-right: 0 none; /* LTR */
  366. }
  367. [dir="rtl"] .views-query-info table tr td:last-child {
  368. border-right: initial;
  369. border-left: 0 none;
  370. }
  371. /* @end */
  372. /* @end */
  373. /* @group Add view */
  374. .form-item-page-create,
  375. .form-item-block-create {
  376. margin-top: 13px;
  377. }
  378. /* @end */
  379. /* @group Modal dialog box
  380. *
  381. * The contents of the popup dialog on the views edit form.
  382. */
  383. .filterable-option .form-item.form-type-checkbox {
  384. padding-top: 4px;
  385. /* This selector is aggressive because Claro's reset for .form-items is aggressive. */
  386. padding-bottom: 4px;
  387. padding-left: 4px; /* LTR */
  388. }
  389. [dir="rtl"] .filterable-option .form-item.form-type-checkbox {
  390. padding-right: 4px;
  391. padding-left: 8px;
  392. }
  393. /* @end */