views-ui.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. /**
  2. * Views styling
  3. */
  4. /* @group Forms */
  5. /**
  6. * Mediteran 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-add-form details details .details-wrapper {
  22. padding-left: 0;
  23. padding-right: 0;
  24. }
  25. .views-display-tab details.box-padding .details-wrapper {
  26. padding: 0;
  27. }
  28. .views-admin input.form-submit,
  29. .views-ui-dialog input.form-submit,
  30. .views-admin a.button,
  31. .views-ui-dialog a.button {
  32. margin-bottom: 0;
  33. }
  34. [dir="rtl"] .views-admin input.form-submit:first-child,
  35. [dir="rtl"] .views-ui-dialog input.form-submit:first-child,
  36. [dir="rtl"] .views-admin a.button:first-child,
  37. [dir="rtl"] .views-ui-dialog a.button:first-child {
  38. margin-right: 0;
  39. }
  40. .form-radios > .form-item {
  41. margin-top: 5px;
  42. margin-bottom: 0;
  43. }
  44. .form-item-options-expose-required,
  45. .form-item-options-expose-label,
  46. .form-item-options-expose-description {
  47. margin-left: 0;
  48. }
  49. .views-admin-dependent .form-item .form-item,
  50. .views-admin-dependent .form-type-checkboxes,
  51. .views-admin-dependent .form-type-radios,
  52. .views-admin-dependent .form-item .form-item,
  53. .form-item-options-expose-required,
  54. .form-item-options-expose-label,
  55. .form-item-options-expose-description {
  56. margin-bottom: 6px;
  57. margin-top: 6px;
  58. }
  59. .views-admin-dependent .form-type-radio,
  60. .views-admin-dependent .form-radios .form-item {
  61. margin-bottom: 2px;
  62. margin-top: 2px;
  63. }
  64. /* @group Lists */
  65. .views-admin ul.secondary,
  66. .views-admin .item-list ul {
  67. margin: 0;
  68. padding: 0;
  69. }
  70. .views-displays ul.secondary li a,
  71. .views-displays ul.secondary li.is-active a,
  72. .views-displays ul.secondary li.is-active a.is-active {
  73. padding: 6px 16px;
  74. line-height: 14px;
  75. font-size: 12px;
  76. font-weight: 700;
  77. text-transform: uppercase;
  78. }
  79. .views-displays ul.secondary li a {
  80. color: #0074bd;
  81. }
  82. .views-displays ul.secondary li a:focus {
  83. text-decoration: none;
  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 #0074bd;
  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. background-color: transparent;
  103. float: left; /* LTR */
  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. border-bottom: 1px solid #f3f3f3;
  118. }
  119. /* @end */
  120. /* @group Attachment details */
  121. #edit-display-settings-title {
  122. color: #008bcb;
  123. }
  124. /* @end */
  125. /* @group Attachment details tabs
  126. *
  127. * The tabs that switch between sections
  128. */
  129. .views-displays .secondary {
  130. text-align: left; /* LTR */
  131. }
  132. [dir="rtl"] .views-displays .secondary {
  133. text-align: right;
  134. }
  135. .views-admin .icon.add {
  136. background-position: center 2px;
  137. }
  138. .views-displays .secondary a:hover > .icon.add {
  139. background-position: center 2px;
  140. }
  141. .views-displays .secondary .open > a {
  142. border-radius: 0;
  143. }
  144. .views-displays .secondary .open > a:hover,
  145. .views-displays .secondary .open > a:focus {
  146. background-color: white;
  147. }
  148. /* @end */
  149. /* @group Attachment buckets
  150. *
  151. * These are the individual "buckets," or boxes, inside the display settings area
  152. */
  153. .views-ui-display-tab-bucket h3 {
  154. text-transform: uppercase;
  155. }
  156. .views-ui-display-tab-bucket .links {
  157. padding: 2px 6px 4px;
  158. }
  159. .views-ui-display-tab-bucket .links li + li {
  160. margin-left: 3px; /* LTR */
  161. }
  162. [dir="rtl"] .views-ui-display-tab-bucket .links li + li {
  163. margin-left: 0;
  164. margin-right: 3px;
  165. }
  166. /* @end */
  167. /* @group Rearrange filter criteria */
  168. .views-ui-rearrange-filter-form .action-links {
  169. float: left;
  170. margin: 0 0 1em;
  171. padding: 0;
  172. }
  173. .views-ui-rearrange-filter-form .tabledrag-toggle-weight-wrapper {
  174. float: right;
  175. margin-bottom: 1em;
  176. }
  177. .views-ui-rearrange-filter-form table {
  178. border: medium none;
  179. }
  180. .views-ui-rearrange-filter-form [id^="views-row"] {
  181. border: medium none;
  182. }
  183. .views-ui-rearrange-filter-form tr td:last-child {
  184. border-right: medium none; /* LTR */
  185. }
  186. [dir="rtl"] .views-ui-rearrange-filter-form tr td:last-child {
  187. border-left: medium none;
  188. border-right: initial;
  189. }
  190. .views-ui-rearrange-filter-form .filter-group-operator-row {
  191. border-left: 1px solid transparent;
  192. border-right: 1px solid transparent;
  193. }
  194. .views-ui-rearrange-filter-form tr.drag td {
  195. background-color: #fe7;
  196. }
  197. .views-ui-rearrange-filter-form tr.drag-previous td {
  198. background-color: #ffb;
  199. }
  200. /* @end */
  201. /* @group Live preview elements */
  202. .views-query-info pre {
  203. margin-bottom: 0;
  204. margin-top: 0;
  205. }
  206. /* @group Query info table */
  207. .views-query-info table {
  208. -webkit-border-horizontal-spacing: 1px;
  209. -webkit-border-vertical-spacing: 1px;
  210. }
  211. .views-query-info table tr td:last-child {
  212. /* Fixes a Mediteran style that bleeds down into this table unnecessarily */
  213. border-right: 0 none; /* LTR */
  214. }
  215. [dir="rtl"] .views-query-info table tr td:last-child {
  216. border-left: 0 none;
  217. border-right: initial;
  218. }
  219. /* @end */
  220. /* @group Add view */
  221. .form-item-page-create,
  222. .form-item-block-create {
  223. margin-top: 0px;
  224. }
  225. /* @end */
  226. /* @group Modal dialog box
  227. *
  228. * The contents of the popup dialog on the views edit form.
  229. */
  230. .filterable-option .form-item.form-type-checkbox {
  231. /* This selector is aggressive because Mediteran's reset for .form-items is aggressive. */
  232. padding-bottom: 4px;
  233. padding-left: 4px; /* LTR */
  234. padding-top: 4px;
  235. }
  236. [dir="rtl"] .filterable-option .form-item.form-type-checkbox {
  237. padding-left: 8px;
  238. padding-right: 4px;
  239. }
  240. /* @end */
  241. .view-filters form {
  242. display: flex;
  243. }
  244. .view-filters .form--inline .form-item {
  245. width: 100%;
  246. }
  247. .view-filters .form--inline .form-item-permission .form-select {
  248. width: 100%;
  249. }
  250. @media screen and (min-width: 640px) {
  251. .view-filters .form--inline .form-item {
  252. width: 280px;
  253. }
  254. .view-filters .form--inline .form-item-langcode {
  255. width: auto;
  256. }
  257. }