search-results.css
Same filename in this branch
- 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
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
- 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
- 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/olivero/css/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
Stylesheet for results generated by the Search module.
File
-
core/
profiles/ demo_umami/ themes/ umami/ css/ components/ blocks/ search/ search-results.css
View source
- /**
- * @file
- * Stylesheet for results generated by the Search module.
- */
-
- .path-search .region-content {
- margin: 0 1.28rem;
- }
-
- .search-form + .item-list > h3 {
- margin: 1.28rem;
- }
- .search-form > .form-wrapper {
- margin-bottom: 1.28rem;
- padding: 0.889rem;
- border: 1px solid #fcece7;
- background: #fff;
- }
-
- @media screen and (min-width: 48em) {
- .search-form > .form-wrapper {
- display: flex;
- flex-wrap: wrap;
- align-items: flex-end;
- margin-bottom: 1.28rem;
- padding: 1.28rem;
- }
- }
-
- /* 77em == the max width of .container + 1em either side */
- @media screen and (min-width: 77.56em) {
- .path-search .region-content {
- margin: 0;
- }
- .search-form > .form-wrapper {
- margin: 0 0 1.28rem;
- }
- }
-
- .search-form .form-type-search {
- margin: 0 0 0.889rem 0;
- }
-
- @media screen and (min-width: 48em) {
- .search-form .form-type-search {
- flex-grow: 1;
- margin: 0 1.28rem 0 0; /* LTR */
- }
-
- [dir="rtl"] .search-form .form-type-search {
- margin-right: 0;
- margin-left: 1.28rem;
- }
- }
-
- .search-form .container-inline label,
- .search-form .container-inline div {
- display: block;
- }
-
- .search-form .form-search {
- margin: 0;
- }
-
- .search-help-link {
- display: inline-block;
- margin: 1.28rem;
- }
-
- /**
- * Advanced Search
- */
- .search-form details > .details-wrapper {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- box-sizing: border-box;
- padding: 1.28rem 0 0;
- }
- .search-form .search-advanced .details-wrapper > fieldset {
- width: 100%;
- margin: 0 0 1rem;
- padding: 1rem;
- }
- /* 480px */
- @media screen and (min-width: 30em) {
- .search-form .search-advanced .details-wrapper > fieldset,
- .search-form .search-advanced .details-wrapper > .action {
- flex-basis: calc(33% - 2%);
- flex-grow: 1;
- min-width: 15rem;
- margin: 1%;
- }
-
- .search-form .search-advanced .details-wrapper > .action {
- padding-top: 0.7rem;
- }
- }
-
- .search-form .search-advanced .form-text {
- width: 100%;
- }
-
- /*
- Search results
- */
- .search-form + h2 {
- margin: 0 1.28rem 1.28rem;
- }
-
- .search-results {
- padding: 0;
- list-style: none;
- }
- /* 77em == the max width of .container + 1em either side */
- @media screen and (min-width: 77em) {
- .search-results {
- margin-right: 0;
- margin-left: 0;
- }
- }
-
- .search-results li {
- margin: 0 0 1rem 0; /* LTR */
- padding: 1.28rem;
- border: 1px solid #fcece7;
- background: #fff;
- }
- /* Without this rule, another RTL rule from item-list.css will break the design */
- [dir=rtl] .search-results li {
- margin: 0 0 1rem 0;
- }
-
- .search-results .search-result__snippet {
- margin-bottom: 0;
- }
- .search-results .search-result__info {
- margin-top: 1.28rem;
- margin-bottom: 0;
- }
-
- .pager__items {
- display: flex;
- justify-content: center;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.