views-ui.css

Same filename in this branch
  1. 9 core/themes/claro/css/components/views-ui.css
Same filename in other branches
  1. 8.9.x core/themes/seven/css/components/views-ui.css
  2. 8.9.x core/themes/claro/css/components/views-ui.css
  3. 10 core/themes/claro/css/components/views-ui.css
  4. 11.x core/themes/claro/css/components/views-ui.css
/**
 * Views styling
 */

/* @group Forms */

/**
 * Seven positions the summary absolutely, but does not have a way to ignore
 * details without a summary so we make one up.
 *
 * @todo Neither a fieldset without legend nor a details without summary is
 *   valid HTML markup in any way. Refactor Views UI to not produce such invalid
 *   markup.
 */
details.fieldset-no-legend {
  padding-top: 0;
}

/**
 * Being extra safe here and scoping this to the add view wizard form (where
 * a layout problem occurs for the Display format details if we don't fix its
 * padding), but it's probably safe to just let it apply everywhere.
 */
#views-ui-add-form details details .seven-details__wrapper {
  padding-right: 0;
  padding-left: 0;
}

.views-display-tab details.box-padding .seven-details__wrapper {
  padding: 0;
}

.views-admin input.form-submit,
.views-ui-dialog input.form-submit,
.views-admin a.button,
.views-ui-dialog a.button {
  margin-top: 0;
  margin-right: 0; /* LTR */
  margin-bottom: 0;
}
[dir="rtl"] .views-admin input.form-submit,
[dir="rtl"] .views-ui-dialog input.form-submit,
[dir="rtl"] .views-admin a.button,
[dir="rtl"] .views-ui-dialog a.button {
  margin-right: 1em;
  margin-left: 0;
}
[dir="rtl"] .views-admin input.form-submit:first-child,
[dir="rtl"] .views-ui-dialog input.form-submit:first-child,
[dir="rtl"] .views-admin a.button:first-child,
[dir="rtl"] .views-ui-dialog a.button:first-child {
  margin-right: 0;
}

.form-radios > .form-item {
  margin-top: 3px;
}

/* @group Dependent options
 */

/* This is necessary to supersede the Seven .form-item
 * reset declaration that sets the margin to zero.
 */
.form-item-options-expose-required,
.form-item-options-expose-label,
.form-item-options-expose-field-identifier,
.form-item-options-expose-description {
  margin-left: 1.5em; /* LTR */
}
[dir="rtl"] .form-item-options-expose-required,
[dir="rtl"] .form-item-options-expose-label,
[dir="rtl"] .form-item-options-expose-field-identifier,
[dir="rtl"] .form-item-options-expose-description {
  margin-right: 1.5em;
  margin-left: 0;
}

.views-admin-dependent .form-item .form-item,
.views-admin-dependent .form-type-checkboxes,
.views-admin-dependent .form-type-radios,
.views-admin-dependent .form-item .form-item,
.form-item-options-expose-required,
.form-item-options-expose-label,
.form-item-options-expose-field-identifier,
.form-item-options-expose-description {
  margin-top: 6px;
  margin-bottom: 6px;
}

.views-admin-dependent .form-type-radio,
.views-admin-dependent .form-radios .form-item {
  margin-top: 2px;
  margin-bottom: 2px;
}

/* @end */

/* @group Lists */

.views-admin ul.secondary,
.views-admin .item-list ul {
  margin: 0;
  padding: 0;
}

.views-displays ul.secondary li a,
.views-displays ul.secondary li.is-active a,
.views-displays ul.secondary li.is-active a.is-active {
  padding: 2px 7px 3px;
}

.views-displays ul.secondary li a {
  color: #0074bd;
}

.views-displays ul.secondary li.is-active a,
.views-displays ul.secondary li.is-active a.is-active {
  border: 1px solid transparent;
}

.views-admin .links li {
  padding-right: 0; /* LTR */
}
[dir="rtl"] .views-admin .links li {
  padding-left: 0;
}

.views-admin .button .links li {
  padding-right: 12px; /* LTR */
}
[dir="rtl"] .views-admin .button .links li {
  padding-left: 12px;
}

.views-display-top ul.secondary {
  float: left; /* LTR */
  background-color: transparent;
}
[dir="rtl"] .views-display-top ul.secondary {
  float: right;
}

.views-display-top .secondary .action-list li {
  float: none;
  margin: 0;
}

/* @end */

/* @group Tables */

.views-ui-rearrange-filter-form table td,
.views-ui-rearrange-filter-form table th {
  vertical-align: top;
}

/* @end */

/* @group Attachment details */

#edit-display-settings-title {
  color: #008bcb;
}

/* @end */

/* @group Attachment details tabs
 *
 * The tabs that switch between sections
 */

.views-displays .secondary {
  text-align: left; /* LTR */
}
[dir="rtl"] .views-displays .secondary {
  text-align: right;
}

.views-admin .icon.add {
  background-position: center 3px;
}

.views-displays .secondary a:hover > .icon.add {
  background-position: center -25px;
}

.views-displays .secondary .open > a {
  border-radius: 7px 7px 0 0;
}

.views-displays .secondary .open > a:hover,
.views-displays .secondary .open > a:focus {
  color: #008bcb;
  background-color: #f1f1f1;
}

.views-displays .secondary .action-list li:first-child {
  border-radius: 0 7px 0 0; /* LTR */
}
[dir="rtl"] .views-displays .secondary .action-list li:first-child {
  border-radius: 7px 0 0 0;
}

.views-displays .secondary .action-list li:last-child {
  border-radius: 0 0 7px 7px;
}

.views-displays .secondary .action-list input.form-submit {
  color: #008bcb;
}

/* @end */

/* @group Attachment buckets
 *
 * These are the individual "buckets," or boxes, inside the display settings area
 */

.views-ui-display-tab-bucket h3 {
  text-transform: uppercase;
}

.views-ui-display-tab-bucket .links {
  padding: 2px 6px 4px;
}

.views-ui-display-tab-bucket .links li + li {
  margin-left: 3px; /* LTR */
}
[dir="rtl"] .views-ui-display-tab-bucket .links li + li {
  margin-right: 3px;
  margin-left: 0;
}

/* @end */

/* @group Rearrange filter criteria */

.views-ui-rearrange-filter-form .action-links {
  float: left;
  margin: 0 0 1em;
  padding: 0;
}
.views-ui-rearrange-filter-form .tabledrag-toggle-weight-wrapper {
  float: right;
  margin-bottom: 1em;
}

.views-ui-rearrange-filter-form table {
  border: medium none;
}

.views-ui-rearrange-filter-form [id^="views-row"] {
  border: medium none;
}

.views-ui-rearrange-filter-form tr td:last-child {
  border-right: medium none; /* LTR */
}
[dir="rtl"] .views-ui-rearrange-filter-form tr td:last-child {
  border-right: initial;
  border-left: medium none;
}

.views-ui-rearrange-filter-form .filter-group-operator-row {
  border-right: 1px solid transparent !important;
  border-left: 1px solid transparent !important;
}

.views-ui-rearrange-filter-form tr.drag td {
  background-color: #fe7 !important;
}

.views-ui-rearrange-filter-form tr.drag-previous td {
  background-color: #ffb !important;
}

/* @end */

/* @group Live preview elements */

.views-query-info pre {
  margin-top: 0;
  margin-bottom: 0;
}

/* @group Query info table */

.views-query-info table {
  border-radius: 7px;
  -webkit-border-horizontal-spacing: 1px;
  -webkit-border-vertical-spacing: 1px;
}

.views-query-info table tr td:last-child {
  /* Fixes a Seven style that bleeds down into this table unnecessarily */
  border-right: 0 none; /* LTR */
}
[dir="rtl"] .views-query-info table tr td:last-child {
  border-right: initial;
  border-left: 0 none;
}

/* @end */

/* @end */

/* @group Add view */

.form-item-page-create,
.form-item-block-create {
  margin-top: 13px;
}

/* @end */

/* @group Modal dialog box
 *
 * The contents of the popup dialog on the views edit form.
 */

.filterable-option .form-item.form-type-checkbox {
  padding-top: 4px;
  /* This selector is aggressive because Seven's reset for .form-items is aggressive. */
  padding-bottom: 4px;
  padding-left: 4px; /* LTR */
}
[dir="rtl"] .filterable-option .form-item.form-type-checkbox {
  padding-right: 4px;
  padding-left: 8px;
}

/* @end */

File

core/themes/seven/css/components/views-ui.css

View source
  1. /**
  2. * Views styling
  3. */
  4. /* @group Forms */
  5. /**
  6. * Seven 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 .seven-details__wrapper {
  22. padding-right: 0;
  23. padding-left: 0;
  24. }
  25. .views-display-tab details.box-padding .seven-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-top: 0;
  33. margin-right: 0; /* LTR */
  34. margin-bottom: 0;
  35. }
  36. [dir="rtl"] .views-admin input.form-submit,
  37. [dir="rtl"] .views-ui-dialog input.form-submit,
  38. [dir="rtl"] .views-admin a.button,
  39. [dir="rtl"] .views-ui-dialog a.button {
  40. margin-right: 1em;
  41. margin-left: 0;
  42. }
  43. [dir="rtl"] .views-admin input.form-submit:first-child,
  44. [dir="rtl"] .views-ui-dialog input.form-submit:first-child,
  45. [dir="rtl"] .views-admin a.button:first-child,
  46. [dir="rtl"] .views-ui-dialog a.button:first-child {
  47. margin-right: 0;
  48. }
  49. .form-radios > .form-item {
  50. margin-top: 3px;
  51. }
  52. /* @group Dependent options
  53. */
  54. /* This is necessary to supersede the Seven .form-item
  55. * reset declaration that sets the margin to zero.
  56. */
  57. .form-item-options-expose-required,
  58. .form-item-options-expose-label,
  59. .form-item-options-expose-field-identifier,
  60. .form-item-options-expose-description {
  61. margin-left: 1.5em; /* LTR */
  62. }
  63. [dir="rtl"] .form-item-options-expose-required,
  64. [dir="rtl"] .form-item-options-expose-label,
  65. [dir="rtl"] .form-item-options-expose-field-identifier,
  66. [dir="rtl"] .form-item-options-expose-description {
  67. margin-right: 1.5em;
  68. margin-left: 0;
  69. }
  70. .views-admin-dependent .form-item .form-item,
  71. .views-admin-dependent .form-type-checkboxes,
  72. .views-admin-dependent .form-type-radios,
  73. .views-admin-dependent .form-item .form-item,
  74. .form-item-options-expose-required,
  75. .form-item-options-expose-label,
  76. .form-item-options-expose-field-identifier,
  77. .form-item-options-expose-description {
  78. margin-top: 6px;
  79. margin-bottom: 6px;
  80. }
  81. .views-admin-dependent .form-type-radio,
  82. .views-admin-dependent .form-radios .form-item {
  83. margin-top: 2px;
  84. margin-bottom: 2px;
  85. }
  86. /* @end */
  87. /* @group Lists */
  88. .views-admin ul.secondary,
  89. .views-admin .item-list ul {
  90. margin: 0;
  91. padding: 0;
  92. }
  93. .views-displays ul.secondary li a,
  94. .views-displays ul.secondary li.is-active a,
  95. .views-displays ul.secondary li.is-active a.is-active {
  96. padding: 2px 7px 3px;
  97. }
  98. .views-displays ul.secondary li a {
  99. color: #0074bd;
  100. }
  101. .views-displays ul.secondary li.is-active a,
  102. .views-displays ul.secondary li.is-active a.is-active {
  103. border: 1px solid transparent;
  104. }
  105. .views-admin .links li {
  106. padding-right: 0; /* LTR */
  107. }
  108. [dir="rtl"] .views-admin .links li {
  109. padding-left: 0;
  110. }
  111. .views-admin .button .links li {
  112. padding-right: 12px; /* LTR */
  113. }
  114. [dir="rtl"] .views-admin .button .links li {
  115. padding-left: 12px;
  116. }
  117. .views-display-top ul.secondary {
  118. float: left; /* LTR */
  119. background-color: transparent;
  120. }
  121. [dir="rtl"] .views-display-top ul.secondary {
  122. float: right;
  123. }
  124. .views-display-top .secondary .action-list li {
  125. float: none;
  126. margin: 0;
  127. }
  128. /* @end */
  129. /* @group Tables */
  130. .views-ui-rearrange-filter-form table td,
  131. .views-ui-rearrange-filter-form table th {
  132. vertical-align: top;
  133. }
  134. /* @end */
  135. /* @group Attachment details */
  136. #edit-display-settings-title {
  137. color: #008bcb;
  138. }
  139. /* @end */
  140. /* @group Attachment details tabs
  141. *
  142. * The tabs that switch between sections
  143. */
  144. .views-displays .secondary {
  145. text-align: left; /* LTR */
  146. }
  147. [dir="rtl"] .views-displays .secondary {
  148. text-align: right;
  149. }
  150. .views-admin .icon.add {
  151. background-position: center 3px;
  152. }
  153. .views-displays .secondary a:hover > .icon.add {
  154. background-position: center -25px;
  155. }
  156. .views-displays .secondary .open > a {
  157. border-radius: 7px 7px 0 0;
  158. }
  159. .views-displays .secondary .open > a:hover,
  160. .views-displays .secondary .open > a:focus {
  161. color: #008bcb;
  162. background-color: #f1f1f1;
  163. }
  164. .views-displays .secondary .action-list li:first-child {
  165. border-radius: 0 7px 0 0; /* LTR */
  166. }
  167. [dir="rtl"] .views-displays .secondary .action-list li:first-child {
  168. border-radius: 7px 0 0 0;
  169. }
  170. .views-displays .secondary .action-list li:last-child {
  171. border-radius: 0 0 7px 7px;
  172. }
  173. .views-displays .secondary .action-list input.form-submit {
  174. color: #008bcb;
  175. }
  176. /* @end */
  177. /* @group Attachment buckets
  178. *
  179. * These are the individual "buckets," or boxes, inside the display settings area
  180. */
  181. .views-ui-display-tab-bucket h3 {
  182. text-transform: uppercase;
  183. }
  184. .views-ui-display-tab-bucket .links {
  185. padding: 2px 6px 4px;
  186. }
  187. .views-ui-display-tab-bucket .links li + li {
  188. margin-left: 3px; /* LTR */
  189. }
  190. [dir="rtl"] .views-ui-display-tab-bucket .links li + li {
  191. margin-right: 3px;
  192. margin-left: 0;
  193. }
  194. /* @end */
  195. /* @group Rearrange filter criteria */
  196. .views-ui-rearrange-filter-form .action-links {
  197. float: left;
  198. margin: 0 0 1em;
  199. padding: 0;
  200. }
  201. .views-ui-rearrange-filter-form .tabledrag-toggle-weight-wrapper {
  202. float: right;
  203. margin-bottom: 1em;
  204. }
  205. .views-ui-rearrange-filter-form table {
  206. border: medium none;
  207. }
  208. .views-ui-rearrange-filter-form [id^="views-row"] {
  209. border: medium none;
  210. }
  211. .views-ui-rearrange-filter-form tr td:last-child {
  212. border-right: medium none; /* LTR */
  213. }
  214. [dir="rtl"] .views-ui-rearrange-filter-form tr td:last-child {
  215. border-right: initial;
  216. border-left: medium none;
  217. }
  218. .views-ui-rearrange-filter-form .filter-group-operator-row {
  219. border-right: 1px solid transparent !important;
  220. border-left: 1px solid transparent !important;
  221. }
  222. .views-ui-rearrange-filter-form tr.drag td {
  223. background-color: #fe7 !important;
  224. }
  225. .views-ui-rearrange-filter-form tr.drag-previous td {
  226. background-color: #ffb !important;
  227. }
  228. /* @end */
  229. /* @group Live preview elements */
  230. .views-query-info pre {
  231. margin-top: 0;
  232. margin-bottom: 0;
  233. }
  234. /* @group Query info table */
  235. .views-query-info table {
  236. border-radius: 7px;
  237. -webkit-border-horizontal-spacing: 1px;
  238. -webkit-border-vertical-spacing: 1px;
  239. }
  240. .views-query-info table tr td:last-child {
  241. /* Fixes a Seven style that bleeds down into this table unnecessarily */
  242. border-right: 0 none; /* LTR */
  243. }
  244. [dir="rtl"] .views-query-info table tr td:last-child {
  245. border-right: initial;
  246. border-left: 0 none;
  247. }
  248. /* @end */
  249. /* @end */
  250. /* @group Add view */
  251. .form-item-page-create,
  252. .form-item-block-create {
  253. margin-top: 13px;
  254. }
  255. /* @end */
  256. /* @group Modal dialog box
  257. *
  258. * The contents of the popup dialog on the views edit form.
  259. */
  260. .filterable-option .form-item.form-type-checkbox {
  261. padding-top: 4px;
  262. /* This selector is aggressive because Seven's reset for .form-items is aggressive. */
  263. padding-bottom: 4px;
  264. padding-left: 4px; /* LTR */
  265. }
  266. [dir="rtl"] .filterable-option .form-item.form-type-checkbox {
  267. padding-right: 4px;
  268. padding-left: 8px;
  269. }
  270. /* @end */

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.