views-ui.css

Same filename in this branch
  1. 9 core/themes/seven/css/components/views-ui.css
Same filename in other branches
  1. 8.9.x core/themes/seven/css/components/views-ui.css
  2. 8.9.x core/themes/claro/css/components/views-ui.css
  3. 10 core/themes/claro/css/components/views-ui.css
  4. 11.x core/themes/claro/css/components/views-ui.css
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * Views styling
 */

/* @group Forms */

/**
 * Claro positions the summary absolutely, but does not have a way to ignore
 * details without a summary so we make one up.
 *
 * @todo Neither a fieldset without legend nor a details without summary is
 *   valid HTML markup in any way. Refactor Views UI to not produce such invalid
 *   markup.
 */

details.fieldset-no-legend {
  padding-top: 0;
}

/**
 * Being extra safe here and scoping this to the add view wizard form (where
 * a layout problem occurs for the Display format details if we don't fix its
 * padding), but it's probably safe to just let it apply everywhere.
 */

.views-ui-dialog input.form-submit,
.views-admin a.button,
.views-ui-dialog a.button {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
}

[dir="rtl"] .views-ui-dialog input.form-submit,
[dir="rtl"] .views-admin a.button,
[dir="rtl"] .views-ui-dialog a.button {
  margin-right: 1em;
  margin-left: 0;
}

[dir="rtl"] .views-ui-dialog input.form-submit:first-child,
[dir="rtl"] .views-admin a.button:first-child,
[dir="rtl"] .views-ui-dialog a.button:first-child {
  margin-right: 0;
}

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

.views-ui-dialog .form-item {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.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 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 0.0625rem solid #d3d4d9;
  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(2.3125rem - 2px); /* iOS. */
  padding: calc(0.5rem - 2px) calc(1rem - 1px);
  font-size: 0.79rem;
  line-height: 1.3125rem;
}

[dir="ltr"] .views-ui-dialog .form-element--type-select {
  padding-right: calc(2rem - 1px);
}

[dir="rtl"] .views-ui-dialog .form-element--type-select {
  padding-left: calc(2rem - 1px);
}

.views-ui-dialog .form-element--type-select {
  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: 0.375rem;
  margin-bottom: 0.375rem;
}

.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: 0.75rem; /* LTR */
}

[dir="rtl"] .views-admin .button .links li {
  padding-left: 0.75rem;
}

.views-display-top__extra-actions-wrapper {
  margin: 0.25rem 0.5rem 0.5rem;
}

/* @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: #3371ff;
}

/* @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 1.5rem 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: 1.5rem;
  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 0.3125rem 0.3125rem 0.375rem; /* LTR */
}

[dir="rtl"] .views-tabs li {
  margin-right: 0.375rem;
  margin-left: 0.3125rem;
}

.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: 0.625rem;
  border: 1px solid #cbcbcb;
  border-radius: 0.4375rem;
  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: 0.5rem;
  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: 0.5625rem 0.8125rem 0.5625rem 0.5625rem;
  color: #55565b;
  border: none;
  border-radius: 2px;
  background-color: transparent;
  font-size: 1rem;
  font-weight: 700;
}

.views-tabs .add a::before {
  display: inline-block;
  width: 1em;
  height: calc(1em - 2px);
  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: #0036b1;
  background-color: #f5f8ff;
}

.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: #e5edff;
  box-shadow: 0 0 0 3px #26a769;
}

.views-tabs .add.open a {
  color: #fff;
  background-color: #003ecc;
}

.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: 2.375rem;
  left: -2px; /* LTR */
  margin: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[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 2px 0 0; /* LTR */
}

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

.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: 2px;
  border-bottom-left-radius: 2px;
}

.views-tabs__action-list-button {
  width: 100%;
  margin: 0;
  padding: 0.75rem 1.5rem;
  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: #fff;
  background-color: #003ecc;
}

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

.views-ui-display-tab-bucket .links li + li {
  margin-left: 0.1875rem; /* LTR */
}

[dir="rtl"] .views-ui-display-tab-bucket .links li + li {
  margin-right: 0.1875rem;
  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 #d3d4d9;
}

.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: 0;
  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: 0.4375rem;
  -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: 0;
  border-right: initial;
  border-left: 0 none;
}

/* @end */

/* @end */

/* @group Add view */

.form-item-page-create,
.form-item-block-create {
  margin-top: 0.8125rem;
}

/* @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: 0.25rem;
  /* This selector is aggressive because Claro's reset for .form-items is aggressive. */
  padding-bottom: 0.25rem;
  padding-left: 0.25rem; /* LTR */
}

[dir="rtl"] .filterable-option .form-item.form-type-checkbox {
  padding-right: 0.25rem;
  padding-left: 0.5rem;
}

/* @end */

/* @group Grouping styles
 *
 * For grouping related form elements together, mainly used with exposed
 * filters.
 */

.views-config-group-region {
  display: table;
  margin: 1.5rem 0;
  border: 0.0625rem solid #d3d4d9;
  border-collapse: collapse;
}

.views-config-group-region .views-group-box {
  position: relative;
  display: table-cell;
  padding: 1.5rem;
  border: 0.0625rem solid #d3d4d9;
}

.views-config-group-region .views-group-box--operator {
  padding-right: 3rem;
  border-right-width: 0;
}

[dir="rtl"] .views-config-group-region .views-group-box--operator {
  padding-right: 1.5rem;
  padding-left: 3rem;
  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: 1.5rem; /* LTR */
  margin-left: 3rem; /* LTR */
}

[dir="rtl"] .views-config-group-region .views-group-box--value > .form-item {
  margin-right: 3rem; /* LTR */
  margin-left: 1.5rem; /* 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 #d3d4d9;
}

[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: -1rem; /* LTR */
  padding: 0 0.3rem 0.3rem 0.4rem; /* LTR */
  content: ">";
  color: #828388;
  border: 0.0625rem solid #d3d4d9;
  background: #fff;
  font-size: 2.027rem;
  font-weight: bold;
  line-height: 2.027rem;
}

[dir="rtl"] .views-config-group-region .views-group-box--value > .form-item::after {
  right: -1rem;
  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: 0.25rem;
  }
}

File

core/themes/claro/css/components/views-ui.css

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

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