-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds config and templates for search block (#55)
* adds config and templates for search block * adds styling changes for formatting a page and post using a hero block and adds styling for the search block * updates search display in precontent * removes block config from theme * removes padding from node template --------- Co-authored-by: “Kerry <“kmurphychi@gmail.com”>
- Loading branch information
1 parent
42c32fe
commit d2080d5
Showing
14 changed files
with
471 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
#searchForm { | ||
form { | ||
display: flex; | ||
width: 100%; | ||
|
||
label { | ||
display: none; | ||
} | ||
|
||
button.js-form-submit { | ||
border-radius: 0 6.375rem 6.375rem 0; | ||
height: 3.375rem; | ||
font-size: 1.5rem; | ||
line-height: 1.25; | ||
letter-spacing: -0.01rem; | ||
} | ||
|
||
input { | ||
border-color: #7e92ae; | ||
border-radius: 1.6875rem 0 0 1.6875rem; | ||
height: 3.375rem; | ||
padding-inline-start: 1.875rem; | ||
} | ||
|
||
.form-type-textfield { | ||
width: 100%; | ||
} | ||
} | ||
} | ||
|
||
#precontent { | ||
form { | ||
@include media-breakpoint-up(lg) { | ||
display: flex; | ||
width: 100%; | ||
|
||
justify-content: center; | ||
gap: 1rem; | ||
|
||
label { | ||
display: none; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.modal#searchForm { | ||
.js-form-type-select { | ||
display: none; | ||
} | ||
|
||
@include media-breakpoint-down(lg) { | ||
display: block; | ||
position: relative; | ||
opacity: 1; | ||
|
||
.modal-header { | ||
display: none; | ||
} | ||
|
||
.modal-content { | ||
background: none; | ||
border: none; | ||
box-shadow: none; | ||
} | ||
|
||
.modal-body { | ||
padding: 0; | ||
} | ||
|
||
.modal-dialog { | ||
margin: 0; | ||
transform: none; | ||
transition: none; | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(lg) { | ||
top: 100px; | ||
} | ||
} | ||
|
||
button.btn.search { | ||
@include media-breakpoint-down(lg) { | ||
display: none; | ||
} | ||
} | ||
|
||
.gin--vertical-toolbar.user-logged-in { | ||
.modal#searchForm { | ||
@include media-breakpoint-up(lg) { | ||
top: 160px; | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
config/optional/block.block.saplings_child_local_actions.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
theme: | ||
- saplings_child | ||
id: saplings_child_local_actions | ||
theme: saplings_child | ||
region: header | ||
weight: -7 | ||
provider: null | ||
plugin: local_actions_block | ||
settings: | ||
id: local_actions_block | ||
label: 'Primary admin actions' | ||
label_display: '0' | ||
provider: core | ||
visibility: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
config/optional/block.block.saplings_child_views_block__hero_block_1.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- views.view.hero | ||
module: | ||
- views | ||
theme: | ||
- saplings_child | ||
id: saplings_child_views_block__hero_block_1 | ||
theme: saplings_child | ||
region: hero | ||
weight: -8 | ||
provider: null | ||
plugin: 'views_block:hero-block_1' | ||
settings: | ||
id: 'views_block:hero-block_1' | ||
label: '' | ||
label_display: '0' | ||
provider: views | ||
context_mapping: { } | ||
views_label: '' | ||
items_per_page: none | ||
visibility: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{# | ||
/** | ||
* @file | ||
* Default theme implementation for a branding block. | ||
* | ||
* Each branding element variable (logo, name, slogan) is only available if | ||
* enabled in the block configuration. | ||
* | ||
* Available variables: | ||
* - site_logo: Logo for site as defined in Appearance or theme settings. | ||
* - site_name: Name for site as defined in Site information settings. | ||
* - site_slogan: Slogan for site as defined in Site information settings. | ||
* | ||
* @ingroup templates | ||
*/ | ||
#} | ||
<button type="button" aria-label="Search" aria-labelledby="Search" class="btn search" data-bs-toggle="modal" data-bs-target="#searchForm"><i class="bi bi-search" aria-hidden="true"></i></button> | ||
<div class="modal fade" id="searchForm" tabindex="-1" aria-labelledby="searchForm" aria-modal="true" role="dialog" data-bs-backdrop="false"> | ||
<div class="modal-dialog modal-xl"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | ||
</div> | ||
<div class="modal-body"> | ||
{% block content %} | ||
{{ content }} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
67 changes: 0 additions & 67 deletions
67
templates/overrides/fields/field--node--sa-body--sa-event.html.twig
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.