Make navbar sticky and center align the navbar burger on mobile
This commit is contained in:
parent
8a98723783
commit
ed9a5a30b4
1 changed files with 26 additions and 0 deletions
26
config/asset_injector.css.sticky_navbar.yml
Normal file
26
config/asset_injector.css.sticky_navbar.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
uuid: 16f0e340-e8c1-42f3-8be8-e25b8f89cd3e
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- block_visibility_groups
|
||||||
|
id: sticky_navbar
|
||||||
|
label: 'Sticky navbar'
|
||||||
|
code: |-
|
||||||
|
.navbar {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-burger {
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
media: all
|
||||||
|
preprocess: true
|
||||||
|
conditions:
|
||||||
|
condition_group:
|
||||||
|
id: condition_group
|
||||||
|
negate: false
|
||||||
|
block_visibility_group: ''
|
||||||
|
contexts: { }
|
||||||
|
conditions_require_all: true
|
Loading…
Reference in a new issue