views-ui.pcss.css

Same filename in other branches
  1. 8.9.x 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
 */

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

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