views-ui.css

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

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