views-ui.pcss.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/views-ui.pcss.css
  2. 10 core/themes/claro/css/components/views-ui.pcss.css
  3. 11.x core/themes/claro/css/components/views-ui.pcss.css
/**
 * 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.pcss.css

View source
  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 */

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