search-results.css
Same filename in this branch
- 11.x core/profiles/demo_umami/themes/umami/css/components/blocks/search/search-results.css
- 11.x core/profiles/demo_umami/themes/umami/css/classy/components/search-results.css
- 11.x core/themes/claro/css/classy/components/search-results.css
- 11.x core/themes/starterkit_theme/css/components/search-results.css
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/css/components/blocks/search/search-results.css
- 9 core/profiles/demo_umami/themes/umami/css/classy/components/search-results.css
- 9 core/themes/olivero/css/components/search-results.css
- 9 core/themes/seven/css/classy/components/search-results.css
- 9 core/themes/claro/css/classy/components/search-results.css
- 9 core/themes/bartik/css/components/search-results.css
- 9 core/themes/bartik/css/classy/components/search-results.css
- 9 core/themes/starterkit_theme/css/components/search-results.css
- 9 core/themes/classy/css/components/search-results.css
- 8.9.x core/profiles/demo_umami/themes/umami/css/components/blocks/search/search-results.css
- 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/search-results.css
- 8.9.x core/themes/seven/css/classy/components/search-results.css
- 8.9.x core/themes/claro/css/classy/components/search-results.css
- 8.9.x core/themes/bartik/css/components/search-results.css
- 8.9.x core/themes/bartik/css/classy/components/search-results.css
- 8.9.x core/themes/classy/css/components/search-results.css
- 10 core/profiles/demo_umami/themes/umami/css/components/blocks/search/search-results.css
- 10 core/profiles/demo_umami/themes/umami/css/classy/components/search-results.css
- 10 core/themes/olivero/css/components/search-results.css
- 10 core/themes/claro/css/classy/components/search-results.css
- 10 core/themes/starterkit_theme/css/components/search-results.css
Search results specific styles.
File
-
core/
themes/ olivero/ css/ components/ search-results.css
View source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Search results specific styles.
- */
-
- .search-results {
- margin-block-end: var(--sp2);
- padding-block: 0;
- padding-inline-start: 0;
- padding-inline-end: 0;
- list-style: none;
- }
-
- @media (min-width: 43.75rem) {
- .search-results {
- margin-block-end: var(--sp3);
- }
- }
-
- .search-result__title {
- margin-block: 0;
- margin-inline-start: 0;
- margin-inline-end: 0;
- color: var(--color-text-neutral-loud);
- font-size: 1.25rem;
- line-height: var(--line-height-base);
- }
-
- .search-result__title a {
- padding-block-end: 0.1875rem;
- transition:
- background-size 0.2s,
- color 0.2s;
- -webkit-text-decoration: none;
- text-decoration: none;
- background-color: transparent;
- background-image: linear-gradient(var(--color--primary-50), var(--color--primary-50)); /* Two values are needed for IE11 support. */
- background-repeat: no-repeat;
- background-position: bottom left; /* LTR */
- background-size: 0 0.1875rem;
- }
-
- .search-result__title a:hover {
- color: var(--color-text-primary-medium);
- }
-
- @media (min-width: 62.5rem) {
- .search-result__title {
- margin-block-end: var(--sp1);
- font-size: 1.875rem;
- line-height: var(--sp3);
- }
- }
-
- [dir="rtl"] .search-result__title a {
- background-position: bottom right;
- }
-
- .search-result__snippet {
- padding-block-end: calc(var(--sp1-5) - 2px);
- }
-
- @media (min-width: 62.5rem) {
- .search-result__snippet {
- padding-block-end: var(--sp3);
- }
- }
-
- .search-result__meta {
- display: flex;
- align-items: center;
- margin-block-end: var(--sp1);
- color: var(--color-text-neutral-soft);
- font-size: 0.875rem;
- line-height: var(--sp);
- }
-
- .search-result__meta a {
- color: var(--color-text-primary-medium);
- font-weight: bold;
- }
-
- .search-results__item {
- position: relative; /* Anchor after pseudo-element. */
- margin-block-end: var(--sp1-5);
- }
-
- .search-results__item::after {
- position: absolute;
- inset-block-end: 0;
- width: var(--sp3);
- height: 0;
- content: "";
- /* Intentionally not using CSS logical properties. */
- border-top: solid 2px var(--color--gray-95);
- }
-
- .search-results__item:last-child {
- margin-block-end: 0;
- }
-
- @media (min-width: 62.5rem) {
- .search-results__item {
- margin-block-end: var(--sp3);
- }
- }
-
- .empty-search-results-text {
- color: var(--color-text-neutral-loud);
- font-family: var(--font-sans);
- font-size: 1.25rem;
- font-weight: bold;
- font-style: normal;
- line-height: var(--sp1-5);
- margin-block: var(--sp);
- }
-
- @media (min-width: 43.75rem) {
- .empty-search-results-text {
- margin-block: var(--sp2);
- font-size: 1.5rem;
- line-height: var(--sp2);
- }
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.