You are here

views-ui.pcss.css in Drupal 10

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

.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-gray-200);
  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: var(--color-blue-400);
}

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