views-ui.css

Same filename in this branch
  1. 8.9.x core/themes/seven/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
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/2815083
 * @preserve
 */

/**
 * Views styling
 */

/* @group Forms */

/**
 * Claro 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-dialog input.form-submit,
.views-admin a.button,
.views-ui-dialog a.button {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
}

[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-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;
}

/* @group Dependent options
 */

/* This is necessary to supercede the Claro .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
 *
 * @todo this group contains lots of duplicates from core styles because Claro
 *   has its custom markup for views tabs. Some of these could be removed after
 *   https://www.drupal.org/node/3051605 has been solved.
 */

.views-tabs {
  overflow: visible;
  margin: 0 200px 0 0; /* LTR */
  padding: 0;
  list-style: none;
  text-align: left; /* LTR */
  border-bottom: 0 none;
}

[dir="rtl"] .views-tabs {
  margin-right: 0;
  margin-left: 200px;
  text-align: right;
}

.views-tabs > li {
  float: left; /* LTR */
  padding: 0;
  border-right: 0 none; /* LTR */
}

[dir="rtl"] .views-tabs > li {
  float: right;
  border-right: 1px solid #bfbfbf;
  border-left: 0 none;
}

.views-tabs .open > a {
  position: relative;
  z-index: 51;
}

.views-tabs .views-display-deleted-link {
  text-decoration: line-through;
}

.views-tabs .add {
  position: relative;
}

.views-tabs .action-list {
  position: absolute;
  z-index: 50;
  top: 23px;
  left: 0; /* LTR */
  margin: 0;
}

[dir="rtl"] .views-tabs .action-list {
  right: 0;
  left: auto;
}

.views-tabs .action-list li {
  display: block;
}

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

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

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

.views-tab .action-list li:first-child {
  border-radius: 0 7px 0 0; /* LTR */
}

[dir="rtl"] .views-tab .action-list li:first-child {
  border-radius: 7px 0 0 0;
}

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

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

.views-tabs li,
.views-tabs li.is-active {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.views-tabs li.add ul.action-list li {
  margin: 0;
}

.views-tabs li {
  margin: 0 5px 5px 6px; /* LTR */
}

[dir="rtl"] .views-tabs li {
  margin-right: 6px;
  margin-left: 5px;
}

.views-tabs li + li {
  border-top: 0;
}

.views-tabs li:hover {
  padding-left: 0; /* LTR */
  border: 0;
}

[dir="rtl"] .views-tabs li:hover {
  padding-right: 0;
}

.views-tabs a {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid #cbcbcb;
  border-radius: 7px;
  font-size: small;
  line-height: 1.3333;
}

/* Display a red border if the display doesn't validate. */

.views-tabs li.is-active a.is-active.error,
.views-tabs .error {
  padding: 1px 6px;
  border: 2px solid #ed541d;
}

.views-tabs a:focus {
  outline: none;
}

.views-tabs li a {
  text-decoration: none;
  background-color: #fff;
}

.views-tabs li a:hover,
.views-tabs li.is-active a,
.views-tabs li.is-active a.is-active {
  color: #fff;
  background-color: #555;
}

.views-tabs .open > a {
  position: relative;
  border-bottom: 1px solid transparent;
  background-color: #f1f1f1;
}

.views-tabs .open > a:hover {
  color: #0074bd;
  background-color: #f1f1f1;
}

.views-tabs .action-list li {
  padding: 2px 9px;
  border-width: 0 1px;
  border-style: solid;
  border-color: #cbcbcb;
  background-color: #f1f1f1;
}

.views-tabs .action-list li:first-child {
  border-width: 1px 1px 0;
}

.views-displays .action-list li:last-child {
  border-width: 0 1px 1px;
}

.views-tabs .action-list li:last-child {
  border-width: 0 1px 1px;
}

.views-tabs .action-list input.form-submit {
  margin: 0;
  padding: 0;
  border: medium none;
  background: none repeat scroll 0 0 transparent;
}

.views-tabs .action-list input.form-submit:hover {
  box-shadow: none;
}

.views-tabs .action-list li:hover {
  background-color: #ddd;
}

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

.views-tabs .open a:hover > .icon.add {
  background-position: center 3px;
}

/* @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 Claro 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 Claro'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/claro/css/components/views-ui.css

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

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