You are here

views-ui.pcss.css in Drupal 9

Same filename and directory in other branches
  1. 8 core/themes/claro/css/components/views-ui.pcss.css
/**
 * Views styling
 */

@import "../base/variables.pcss.css";

/* @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;
}

.views-ui-dialog .form--flex {
  display: flex;
  overflow: hidden;
  flex-wrap: wrap;
}

.views-ui-dialog .form-item {
  margin-top: var(--space-m);
  margin-bottom: var(--space-m);
}
.views-ui-dialog .form-type--boolean {
  margin-right: 0;
  margin-left: 0;
}
.views-ui-dialog .form-type--boolean .form-boolean {
  top: 0;
  float: none;
  margin: 0 0.25rem 0 0; /* LTR */
  transform: none;
}
[dir="rtl"] .views-ui-dialog .form-type--boolean .form-boolean {
  margin-right: 0;
  margin-left: 0.25rem;
}

.views-ui-dialog .form-boolean-group .form-type--boolean {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.views-ui-dialog .form-item:first-of-type.description {
  margin: 0 0 var(--space-l) 0;
  padding-bottom: var(--space-s);
  border-bottom: 0.0625rem solid var(--color-lightgray);
  font-weight: bold;
}

/* So "remove" link appears next to the checkbox. */
.views-ui-dialog .draggable .form-type--checkbox {
  display: inline-block;
  margin: 0 0.25rem;
}

.views-ui-dialog .form-element {
  min-height: calc(((var(--input-padding-vertical--small) + var(--input-border-size)) * 2) + var(--input-line-height--small)); /* iOS. */
  padding: var(--input-padding-vertical--small) var(--input-padding-horizontal--small);
  font-size: var(--input-font-size--small);
  line-height: var(--input-line-height--small);
}
.views-ui-dialog .form-element--type-select {
  padding-right: calc((var(--space-m) * 2) + var(--input-border-size) * 2);
  background-position: 100% 56%;
}
/**
 * Elements must communicate width to table rendering.
 * @todo revisit in https://drupal.org/node/3135457
 */
.views-ui-dialog td .form-element {
  width: auto;
}

/* @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-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 .item-list ul {
  margin: 0;
  padding: 0;
}

.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__extra-actions-wrapper {
  margin: calc(var(--space-xs) / 2) var(--space-xs) var(--space-xs);
}

/* @end */

/* @group Tables */

.views-ui-rearrange-filter-form td,
.views-ui-rearrange-filter-form 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 {
  display: flex;
  overflow: visible;
  flex-wrap: wrap;
  margin: 0 var(--space-l) 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: var(--space-l);
  text-align: right;
}
.views-tabs .views-display-deleted-link {
  text-decoration: line-through;
}
.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: 10px;
  border: var(--input-border-size) 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: 8px;
  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 .add {
  position: relative;
}
.views-tabs .add a {
  padding: 9px 13px 9px 9px;
  color: var(--color-davysgray);
  border: none;
  border-radius: var(--base-border-radius);
  background-color: transparent;
  font-size: var(--font-size-base);
  font-weight: 700;
}
.views-tabs .add a::before {
  display: inline-block;
  width: 1em;
  height: calc(1em - (var(--input-border-size) * 2));
  content: "";
  /* Copy of icon from .action-link--icon-plus */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' stroke-width='2' stroke='%23545560'%3E%3Cpath d='m3 8h10'/%3E%3Cpath d='m8 3v10'/%3E%3C/svg%3E");
}
.views-tabs .add a:hover {
  color: var(--color-absolutezero-hover);
  background-color: var(--color-bgblue-hover);
}
.views-tabs .add a:hover::before {
  /* Copy of icon from .action-link--icon-plus:hover */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' stroke-width='2' stroke='%230036b1'%3E%3Cpath d='m3 8h10'/%3E%3Cpath d='m8 3v10'/%3E%3C/svg%3E");
}
.views-tabs .add a:focus {
  background-color: var(--color-bgblue-active);
  box-shadow: 0 0 0 3px #26a769;
}
.views-tabs .add.open a {
  color: var(--color-white);
  background-color: var(--color-absolutezero);
}
.views-tabs .add.open a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' stroke-width='2' stroke='%23FFFFFF'%3E%3Cpath d='m3 8h10'/%3E%3Cpath d='m8 3v10'/%3E%3C/svg%3E");
}
/* Hide core icon, added via JS that isn't accessible via theme function. */
.views-tabs .add .icon.add {
  display: none;
}
.views-tabs .action-list {
  position: absolute;
  z-index: 50;
  top: 38px;
  left: -2px; /* LTR */
  margin: 0;
  box-shadow: var(--details-box-shadow);
}
[dir="rtl"] .views-tabs .action-list {
  right: 0;
  left: auto;
}
.views-tabs .action-list li {
  display: block;
}
.views-tabs .action-list li {
  border-width: 0 1px;
  border-style: solid;
  border-color: #cbcbcb;
  background-color: #fff;
}
.views-tabs .action-list li:first-child {
  border-width: 1px 1px 0;
  border-radius: 0 var(--base-border-radius) 0 0; /* LTR */
}
[dir="rtl"] .views-tabs .action-list li:first-child {
  border-radius: 0 0 0 var(--base-border-radius);
}
.views-tabs .action-list li:last-child,
.views-displays .action-list li:last-child {
  padding-bottom: 0.4rem;
  border-width: 0 1px 1px;
  border-bottom-right-radius: var(--button-border-radius-size);
  border-bottom-left-radius: var(--button-border-radius-size);
}
.views-tabs__action-list-button {
  width: 100%;
  margin: 0;
  padding: var(--space-s) var(--space-l);
  text-align: left;
  border: medium none;
  border-radius: 0;
  background: none repeat scroll 0 0 transparent;
  font-weight: normal;
}
/* RTL required for precedence over core's styles. */
[dir="rtl"] .views-tabs__action-list-button {
  margin: 0;
}
.views-tabs__action-list-button.button:hover,
.views-tabs__action-list-button.button:focus {
  color: var(--color-white);
  background-color: var(--color-absolutezero);
}
/* Remove outline provided by default styling */
.views-tabs__action-list-button:not(:focus) {
  box-shadow: none;
}

/* @end */

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

.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 tr {
  border-bottom: 0;
}
.views-ui-rearrange-filter-form tr:first-of-type {
  border-top: 0.0625rem solid var(--color-lightgray);
}
.views-ui-rearrange-filter-form tr:not(.draggable):hover {
  background: inherit;
}
.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;
}

.views-ui-rearrange-filter-form .tabledrag-cell {
  position: relative;
}

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

.views-ui-rearrange-filter-form .draggable td {
  vertical-align: middle;
}

/* @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 */

/* @group Grouping styles
 *
 * For grouping related form elements together, mainly used with exposed
 * filters.
 */
.views-config-group-region {
  display: table;
  margin: var(--space-l) 0;
  border: 0.0625rem solid var(--color-lightgray);
  border-collapse: collapse;
}
.views-config-group-region .views-group-box {
  position: relative;
  display: table-cell;
  padding: var(--space-l);
  border: 0.0625rem solid var(--color-lightgray);
}
.views-config-group-region .views-group-box--operator {
  padding-right: var(--space-xl);
  border-right-width: 0;
}
[dir="rtl"] .views-config-group-region .views-group-box--operator {
  padding-right: var(--space-l);
  padding-left: var(--space-xl);
  border-right-width: 0.0625rem;
  border-left-width: 0;
}
.views-config-group-region .views-group-box--value {
  padding: 0;
  border-left-width: 0; /* LTR */
}
[dir="rtl"] .views-config-group-region .views-group-box--value {
  border-right-width: 0;
  border-left-width: 0.0625rem;
}
.views-config-group-region .views-group-box--value > .form-item {
  margin-right: var(--space-l); /* LTR */
  margin-left: var(--space-xl); /* LTR */
}
[dir="rtl"] .views-config-group-region .views-group-box--value > .form-item {
  margin-right: var(--space-xl); /* LTR */
  margin-left: var(--space-l); /* LTR */
}
.views-config-group-region .views-group-box--value > .form-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.0625rem;
  height: 100%;
  content: "";
  border-left: 0.0625rem solid var(--color-lightgray);
}
[dir="rtl"] .views-config-group-region .views-group-box--value > .form-item::before {
  right: 0;
}
.views-config-group-region .views-group-box--value > .form-item::after {
  position: absolute;
  z-index: 1;
  top: 3.8rem;
  left: calc(0 - var(--space-m)); /* LTR */
  padding: 0 0.3rem 0.3rem 0.4rem; /* LTR */
  content: ">";
  color: var(--color-oldsilver);
  border: 0.0625rem solid var(--color-lightgray);
  background: #fff;
  font-size: var(--font-size-h1);
  font-weight: bold;
  line-height: var(--font-size-h1);
}

[dir="rtl"] .views-config-group-region .views-group-box--value > .form-item::after {
  right: calc(0 - var(--space-m));
  left: auto;
  padding-right: 0.4rem;
  padding-left: 0.3rem;
}

@media all and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  /**
   * Remove borders from IE11 filter config in IE11, as it does not fully support
   * the CSS needed to size and position them properly. This results in a
   * slightly different presentation for IE11, but one that users are accustomed
   * to with the Seven theme.
   */
  .views-config-group-region .views-group-box--value > .form-item::before,
  .views-config-group-region .views-group-box--value > .form-item::after {
    content: "";
    border: none;
  }
  .views-config-group-region,
  .views-config-group-region .views-group-box {
    border: none;
  }

  /**
   * IE11 has trouble correctly using `justify-content: space-between` when a
   * flex item has the `.visually-hidden` class. This addresses the issue and
   * the end result is the extra action button remains in it's own column on
   * wrap, which matches the experience when using the Seven theme.
   */
  .views-display-top {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .views-display-top__extra-actions-wrapper {
    margin-left: auto; /* LTR */
  }
  [dir="rtl"] .views-display-top__extra-actions-wrapper {
    margin-right: auto;
    margin-left: calc(var(--space-xs) / 2);
  }
}

File

core/themes/claro/css/components/views-ui.pcss.css
View source
  1. /**
  2. * Views styling
  3. */
  4. @import "../base/variables.pcss.css";
  5. /* @group Forms */
  6. /**
  7. * Claro positions the summary absolutely, but does not have a way to ignore
  8. * details without a summary so we make one up.
  9. *
  10. * @todo Neither a fieldset without legend nor a details without summary is
  11. * valid HTML markup in any way. Refactor Views UI to not produce such invalid
  12. * markup.
  13. */
  14. details.fieldset-no-legend {
  15. padding-top: 0;
  16. }
  17. /**
  18. * Being extra safe here and scoping this to the add view wizard form (where
  19. * a layout problem occurs for the Display format details if we don't fix its
  20. * padding), but it's probably safe to just let it apply everywhere.
  21. */
  22. .views-ui-dialog input.form-submit,
  23. .views-admin a.button,
  24. .views-ui-dialog a.button {
  25. margin-top: 0;
  26. margin-right: 0;
  27. margin-bottom: 0;
  28. }
  29. [dir="rtl"] .views-ui-dialog input.form-submit,
  30. [dir="rtl"] .views-admin a.button,
  31. [dir="rtl"] .views-ui-dialog a.button {
  32. margin-right: 1em;
  33. margin-left: 0;
  34. }
  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. .views-ui-dialog .form--flex {
  41. display: flex;
  42. overflow: hidden;
  43. flex-wrap: wrap;
  44. }
  45. .views-ui-dialog .form-item {
  46. margin-top: var(--space-m);
  47. margin-bottom: var(--space-m);
  48. }
  49. .views-ui-dialog .form-type--boolean {
  50. margin-right: 0;
  51. margin-left: 0;
  52. }
  53. .views-ui-dialog .form-type--boolean .form-boolean {
  54. top: 0;
  55. float: none;
  56. margin: 0 0.25rem 0 0; /* LTR */
  57. transform: none;
  58. }
  59. [dir="rtl"] .views-ui-dialog .form-type--boolean .form-boolean {
  60. margin-right: 0;
  61. margin-left: 0.25rem;
  62. }
  63. .views-ui-dialog .form-boolean-group .form-type--boolean {
  64. margin-top: 0.4em;
  65. margin-bottom: 0.4em;
  66. }
  67. .views-ui-dialog .form-item:first-of-type.description {
  68. margin: 0 0 var(--space-l) 0;
  69. padding-bottom: var(--space-s);
  70. border-bottom: 0.0625rem solid var(--color-lightgray);
  71. font-weight: bold;
  72. }
  73. /* So "remove" link appears next to the checkbox. */
  74. .views-ui-dialog .draggable .form-type--checkbox {
  75. display: inline-block;
  76. margin: 0 0.25rem;
  77. }
  78. .views-ui-dialog .form-element {
  79. min-height: calc(((var(--input-padding-vertical--small) + var(--input-border-size)) * 2) + var(--input-line-height--small)); /* iOS. */
  80. padding: var(--input-padding-vertical--small) var(--input-padding-horizontal--small);
  81. font-size: var(--input-font-size--small);
  82. line-height: var(--input-line-height--small);
  83. }
  84. .views-ui-dialog .form-element--type-select {
  85. padding-right: calc((var(--space-m) * 2) + var(--input-border-size) * 2);
  86. background-position: 100% 56%;
  87. }
  88. /**
  89. * Elements must communicate width to table rendering.
  90. * @todo revisit in https://drupal.org/node/3135457
  91. */
  92. .views-ui-dialog td .form-element {
  93. width: auto;
  94. }
  95. /* @group Dependent options */
  96. /* This is necessary to supercede the Claro .form-item
  97. * reset declaration that sets the margin to zero.
  98. */
  99. .form-item-options-expose-required,
  100. .form-item-options-expose-label,
  101. .form-item-options-expose-field-identifier,
  102. .form-item-options-expose-description {
  103. margin-left: 1.5em; /* LTR */
  104. }
  105. [dir="rtl"] .form-item-options-expose-required,
  106. [dir="rtl"] .form-item-options-expose-label,
  107. [dir="rtl"] .form-item-options-expose-field-identifier,
  108. [dir="rtl"] .form-item-options-expose-description {
  109. margin-right: 1.5em;
  110. margin-left: 0;
  111. }
  112. .views-admin-dependent .form-item .form-item,
  113. .views-admin-dependent .form-type-checkboxes,
  114. .views-admin-dependent .form-type-radios,
  115. .views-admin-dependent .form-item .form-item,
  116. .form-item-options-expose-required,
  117. .form-item-options-expose-label,
  118. .form-item-options-expose-field-identifier,
  119. .form-item-options-expose-description {
  120. margin-top: 6px;
  121. margin-bottom: 6px;
  122. }
  123. .views-admin-dependent .form-type-radio,
  124. .views-admin-dependent .form-radios .form-item {
  125. margin-top: 2px;
  126. margin-bottom: 2px;
  127. }
  128. /* @end */
  129. /* @group Lists */
  130. .views-admin .item-list ul {
  131. margin: 0;
  132. padding: 0;
  133. }
  134. .views-admin .links li {
  135. padding-right: 0; /* LTR */
  136. }
  137. [dir="rtl"] .views-admin .links li {
  138. padding-left: 0;
  139. }
  140. .views-admin .button .links li {
  141. padding-right: 12px; /* LTR */
  142. }
  143. [dir="rtl"] .views-admin .button .links li {
  144. padding-left: 12px;
  145. }
  146. .views-display-top__extra-actions-wrapper {
  147. margin: calc(var(--space-xs) / 2) var(--space-xs) var(--space-xs);
  148. }
  149. /* @end */
  150. /* @group Tables */
  151. .views-ui-rearrange-filter-form td,
  152. .views-ui-rearrange-filter-form th {
  153. vertical-align: top;
  154. }
  155. /* @end */
  156. /* @group Attachment details */
  157. #edit-display-settings-title {
  158. color: #008bcb;
  159. }
  160. /* @end */
  161. /* @group Attachment details tabs
  162. *
  163. * The tabs that switch between sections
  164. *
  165. * @todo this group contains lots of duplicates from core styles because Claro
  166. * has its custom markup for views tabs. Some of these could be removed after
  167. * https://www.drupal.org/node/3051605 has been solved.
  168. */
  169. .views-tabs {
  170. display: flex;
  171. overflow: visible;
  172. flex-wrap: wrap;
  173. margin: 0 var(--space-l) 0 0; /* LTR */
  174. padding: 0;
  175. list-style: none;
  176. text-align: left; /* LTR */
  177. border-bottom: 0 none;
  178. }
  179. [dir="rtl"] .views-tabs {
  180. margin-right: 0;
  181. margin-left: var(--space-l);
  182. text-align: right;
  183. }
  184. .views-tabs .views-display-deleted-link {
  185. text-decoration: line-through;
  186. }
  187. .views-tabs li,
  188. .views-tabs li.is-active {
  189. width: auto;
  190. padding: 0;
  191. border: 0;
  192. background: transparent;
  193. }
  194. .views-tabs li.add ul.action-list li {
  195. margin: 0;
  196. }
  197. .views-tabs li {
  198. margin: 0 5px 5px 6px; /* LTR */
  199. }
  200. [dir="rtl"] .views-tabs li {
  201. margin-right: 6px;
  202. margin-left: 5px;
  203. }
  204. .views-tabs li + li {
  205. border-top: 0;
  206. }
  207. .views-tabs li:hover {
  208. padding-left: 0; /* LTR */
  209. border: 0;
  210. }
  211. [dir="rtl"] .views-tabs li:hover {
  212. padding-right: 0;
  213. }
  214. .views-tabs a {
  215. display: inline-block;
  216. padding: 10px;
  217. border: var(--input-border-size) solid #cbcbcb;
  218. border-radius: 7px;
  219. font-size: small;
  220. line-height: 1.3333;
  221. }
  222. /* Display a red border if the display doesn't validate. */
  223. .views-tabs li.is-active a.is-active.error,
  224. .views-tabs .error {
  225. padding: 8px;
  226. border: 2px solid #ed541d;
  227. }
  228. .views-tabs a:focus {
  229. outline: none;
  230. }
  231. .views-tabs li a {
  232. text-decoration: none;
  233. background-color: #fff;
  234. }
  235. .views-tabs li a:hover,
  236. .views-tabs li.is-active a,
  237. .views-tabs li.is-active a.is-active {
  238. color: #fff;
  239. background-color: #555;
  240. }
  241. .views-tabs .add {
  242. position: relative;
  243. }
  244. .views-tabs .add a {
  245. padding: 9px 13px 9px 9px;
  246. color: var(--color-davysgray);
  247. border: none;
  248. border-radius: var(--base-border-radius);
  249. background-color: transparent;
  250. font-size: var(--font-size-base);
  251. font-weight: 700;
  252. }
  253. .views-tabs .add a::before {
  254. display: inline-block;
  255. width: 1em;
  256. height: calc(1em - (var(--input-border-size) * 2));
  257. content: "";
  258. /* Copy of icon from .action-link--icon-plus */
  259. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' stroke-width='2' stroke='%23545560'%3E%3Cpath d='m3 8h10'/%3E%3Cpath d='m8 3v10'/%3E%3C/svg%3E");
  260. }
  261. .views-tabs .add a:hover {
  262. color: var(--color-absolutezero-hover);
  263. background-color: var(--color-bgblue-hover);
  264. }
  265. .views-tabs .add a:hover::before {
  266. /* Copy of icon from .action-link--icon-plus:hover */
  267. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' stroke-width='2' stroke='%230036b1'%3E%3Cpath d='m3 8h10'/%3E%3Cpath d='m8 3v10'/%3E%3C/svg%3E");
  268. }
  269. .views-tabs .add a:focus {
  270. background-color: var(--color-bgblue-active);
  271. box-shadow: 0 0 0 3px #26a769;
  272. }
  273. .views-tabs .add.open a {
  274. color: var(--color-white);
  275. background-color: var(--color-absolutezero);
  276. }
  277. .views-tabs .add.open a::before {
  278. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' stroke-width='2' stroke='%23FFFFFF'%3E%3Cpath d='m3 8h10'/%3E%3Cpath d='m8 3v10'/%3E%3C/svg%3E");
  279. }
  280. /* Hide core icon, added via JS that isn't accessible via theme function. */
  281. .views-tabs .add .icon.add {
  282. display: none;
  283. }
  284. .views-tabs .action-list {
  285. position: absolute;
  286. z-index: 50;
  287. top: 38px;
  288. left: -2px; /* LTR */
  289. margin: 0;
  290. box-shadow: var(--details-box-shadow);
  291. }
  292. [dir="rtl"] .views-tabs .action-list {
  293. right: 0;
  294. left: auto;
  295. }
  296. .views-tabs .action-list li {
  297. display: block;
  298. }
  299. .views-tabs .action-list li {
  300. border-width: 0 1px;
  301. border-style: solid;
  302. border-color: #cbcbcb;
  303. background-color: #fff;
  304. }
  305. .views-tabs .action-list li:first-child {
  306. border-width: 1px 1px 0;
  307. border-radius: 0 var(--base-border-radius) 0 0; /* LTR */
  308. }
  309. [dir="rtl"] .views-tabs .action-list li:first-child {
  310. border-radius: 0 0 0 var(--base-border-radius);
  311. }
  312. .views-tabs .action-list li:last-child,
  313. .views-displays .action-list li:last-child {
  314. padding-bottom: 0.4rem;
  315. border-width: 0 1px 1px;
  316. border-bottom-right-radius: var(--button-border-radius-size);
  317. border-bottom-left-radius: var(--button-border-radius-size);
  318. }
  319. .views-tabs__action-list-button {
  320. width: 100%;
  321. margin: 0;
  322. padding: var(--space-s) var(--space-l);
  323. text-align: left;
  324. border: medium none;
  325. border-radius: 0;
  326. background: none repeat scroll 0 0 transparent;
  327. font-weight: normal;
  328. }
  329. /* RTL required for precedence over core's styles. */
  330. [dir="rtl"] .views-tabs__action-list-button {
  331. margin: 0;
  332. }
  333. .views-tabs__action-list-button.button:hover,
  334. .views-tabs__action-list-button.button:focus {
  335. color: var(--color-white);
  336. background-color: var(--color-absolutezero);
  337. }
  338. /* Remove outline provided by default styling */
  339. .views-tabs__action-list-button:not(:focus) {
  340. box-shadow: none;
  341. }
  342. /* @end */
  343. /* @group Attachment buckets
  344. *
  345. * These are the individual "buckets," or boxes, inside the display settings area
  346. */
  347. .views-ui-display-tab-bucket .links {
  348. padding: 2px 6px 4px;
  349. }
  350. .views-ui-display-tab-bucket .links li + li {
  351. margin-left: 3px; /* LTR */
  352. }
  353. [dir="rtl"] .views-ui-display-tab-bucket .links li + li {
  354. margin-right: 3px;
  355. margin-left: 0;
  356. }
  357. /* @end */
  358. /* @group Rearrange filter criteria */
  359. .views-ui-rearrange-filter-form tr {
  360. border-bottom: 0;
  361. }
  362. .views-ui-rearrange-filter-form tr:first-of-type {
  363. border-top: 0.0625rem solid var(--color-lightgray);
  364. }
  365. .views-ui-rearrange-filter-form tr:not(.draggable):hover {
  366. background: inherit;
  367. }
  368. .views-ui-rearrange-filter-form .action-links {
  369. float: left;
  370. margin: 0 0 1em;
  371. padding: 0;
  372. }
  373. .views-ui-rearrange-filter-form .tabledrag-toggle-weight-wrapper {
  374. float: right;
  375. }
  376. .views-ui-rearrange-filter-form .tabledrag-cell {
  377. position: relative;
  378. }
  379. .views-ui-rearrange-filter-form [id^="views-row"] {
  380. border: medium none;
  381. }
  382. .views-ui-rearrange-filter-form tr td:last-child {
  383. border-right: medium none; /* LTR */
  384. }
  385. [dir="rtl"] .views-ui-rearrange-filter-form tr td:last-child {
  386. border-right: initial;
  387. border-left: medium none;
  388. }
  389. .views-ui-rearrange-filter-form .filter-group-operator-row {
  390. border-right: 1px solid transparent !important;
  391. border-left: 1px solid transparent !important;
  392. }
  393. .views-ui-rearrange-filter-form tr.drag td {
  394. background-color: #fe7 !important;
  395. }
  396. .views-ui-rearrange-filter-form tr.drag-previous td {
  397. background-color: #ffb !important;
  398. }
  399. .views-ui-rearrange-filter-form .draggable td {
  400. vertical-align: middle;
  401. }
  402. /* @end */
  403. /* @group Live preview elements */
  404. .views-query-info pre {
  405. margin-top: 0;
  406. margin-bottom: 0;
  407. }
  408. /* @group Query info table */
  409. .views-query-info table {
  410. border-radius: 7px;
  411. -webkit-border-horizontal-spacing: 1px;
  412. -webkit-border-vertical-spacing: 1px;
  413. }
  414. .views-query-info table tr td:last-child {
  415. /* Fixes a Claro style that bleeds down into this table unnecessarily */
  416. border-right: 0 none; /* LTR */
  417. }
  418. [dir="rtl"] .views-query-info table tr td:last-child {
  419. border-right: initial;
  420. border-left: 0 none;
  421. }
  422. /* @end */
  423. /* @end */
  424. /* @group Add view */
  425. .form-item-page-create,
  426. .form-item-block-create {
  427. margin-top: 13px;
  428. }
  429. /* @end */
  430. /* @group Modal dialog box
  431. *
  432. * The contents of the popup dialog on the views edit form.
  433. */
  434. .filterable-option .form-item.form-type-checkbox {
  435. padding-top: 4px;
  436. /* This selector is aggressive because Claro's reset for .form-items is aggressive. */
  437. padding-bottom: 4px;
  438. padding-left: 4px; /* LTR */
  439. }
  440. [dir="rtl"] .filterable-option .form-item.form-type-checkbox {
  441. padding-right: 4px;
  442. padding-left: 8px;
  443. }
  444. /* @end */
  445. /* @group Grouping styles
  446. *
  447. * For grouping related form elements together, mainly used with exposed
  448. * filters.
  449. */
  450. .views-config-group-region {
  451. display: table;
  452. margin: var(--space-l) 0;
  453. border: 0.0625rem solid var(--color-lightgray);
  454. border-collapse: collapse;
  455. }
  456. .views-config-group-region .views-group-box {
  457. position: relative;
  458. display: table-cell;
  459. padding: var(--space-l);
  460. border: 0.0625rem solid var(--color-lightgray);
  461. }
  462. .views-config-group-region .views-group-box--operator {
  463. padding-right: var(--space-xl);
  464. border-right-width: 0;
  465. }
  466. [dir="rtl"] .views-config-group-region .views-group-box--operator {
  467. padding-right: var(--space-l);
  468. padding-left: var(--space-xl);
  469. border-right-width: 0.0625rem;
  470. border-left-width: 0;
  471. }
  472. .views-config-group-region .views-group-box--value {
  473. padding: 0;
  474. border-left-width: 0; /* LTR */
  475. }
  476. [dir="rtl"] .views-config-group-region .views-group-box--value {
  477. border-right-width: 0;
  478. border-left-width: 0.0625rem;
  479. }
  480. .views-config-group-region .views-group-box--value > .form-item {
  481. margin-right: var(--space-l); /* LTR */
  482. margin-left: var(--space-xl); /* LTR */
  483. }
  484. [dir="rtl"] .views-config-group-region .views-group-box--value > .form-item {
  485. margin-right: var(--space-xl); /* LTR */
  486. margin-left: var(--space-l); /* LTR */
  487. }
  488. .views-config-group-region .views-group-box--value > .form-item::before {
  489. position: absolute;
  490. top: 0;
  491. left: 0;
  492. width: 0.0625rem;
  493. height: 100%;
  494. content: "";
  495. border-left: 0.0625rem solid var(--color-lightgray);
  496. }
  497. [dir="rtl"] .views-config-group-region .views-group-box--value > .form-item::before {
  498. right: 0;
  499. }
  500. .views-config-group-region .views-group-box--value > .form-item::after {
  501. position: absolute;
  502. z-index: 1;
  503. top: 3.8rem;
  504. left: calc(0 - var(--space-m)); /* LTR */
  505. padding: 0 0.3rem 0.3rem 0.4rem; /* LTR */
  506. content: ">";
  507. color: var(--color-oldsilver);
  508. border: 0.0625rem solid var(--color-lightgray);
  509. background: #fff;
  510. font-size: var(--font-size-h1);
  511. font-weight: bold;
  512. line-height: var(--font-size-h1);
  513. }
  514. [dir="rtl"] .views-config-group-region .views-group-box--value > .form-item::after {
  515. right: calc(0 - var(--space-m));
  516. left: auto;
  517. padding-right: 0.4rem;
  518. padding-left: 0.3rem;
  519. }
  520. @media all and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  521. /**
  522. * Remove borders from IE11 filter config in IE11, as it does not fully support
  523. * the CSS needed to size and position them properly. This results in a
  524. * slightly different presentation for IE11, but one that users are accustomed
  525. * to with the Seven theme.
  526. */
  527. .views-config-group-region .views-group-box--value > .form-item::before,
  528. .views-config-group-region .views-group-box--value > .form-item::after {
  529. content: "";
  530. border: none;
  531. }
  532. .views-config-group-region,
  533. .views-config-group-region .views-group-box {
  534. border: none;
  535. }
  536. /**
  537. * IE11 has trouble correctly using `justify-content: space-between` when a
  538. * flex item has the `.visually-hidden` class. This addresses the issue and
  539. * the end result is the extra action button remains in it's own column on
  540. * wrap, which matches the experience when using the Seven theme.
  541. */
  542. .views-display-top {
  543. flex-wrap: nowrap;
  544. justify-content: flex-start;
  545. }
  546. .views-display-top__extra-actions-wrapper {
  547. margin-left: auto; /* LTR */
  548. }
  549. [dir="rtl"] .views-display-top__extra-actions-wrapper {
  550. margin-right: auto;
  551. margin-left: calc(var(--space-xs) / 2);
  552. }
  553. }