forked from web-padawan/aybolit
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #341 from conversionxl/raphael/feat/navigation/upd…
…ate-component
- Loading branch information
Showing
24 changed files
with
1,203 additions
and
1,266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@conversionxl/cxl-lumo-styles", | ||
"version": "1.15.0", | ||
"version": "1.15.1", | ||
"author": "CXL <[email protected]>", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
"main": "src/index.js", | ||
|
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
30 changes: 30 additions & 0 deletions
30
packages/cxl-lumo-styles/scss/themes/vaadin-context-menu-overlay.scss
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,30 @@ | ||
|
||
@keyframes cxl-lumo-mobile-menu-overlay-enter { | ||
0% { | ||
transform: translateX(150%); | ||
} | ||
} | ||
|
||
@keyframes cxl-lumo-mobile-menu-overlay-exit { | ||
100% { | ||
transform: translateX(150%); | ||
} | ||
} | ||
|
||
@media (max-width: 568px), (max-height: 568px) { | ||
|
||
/* Animations */ | ||
|
||
:host([opening]) [part='overlay'] { | ||
animation: 0.2s cxl-lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both; | ||
} | ||
|
||
:host([closing]), | ||
:host([closing]) [part='backdrop'] { | ||
animation-delay: 0.14s; | ||
} | ||
|
||
:host([closing]) [part='overlay'] { | ||
animation: 0.14s 0.14s cxl-lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
packages/cxl-lumo-styles/scss/themes/vaadin-dialog-overlay.scss
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,21 @@ | ||
:host([theme~="cxl-marketing-nav-search"]) { | ||
left: 0; | ||
right: 0; | ||
|
||
[part="content"] { | ||
padding: var(--lumo-space-l); | ||
} | ||
|
||
@media (min-width: 568px) { | ||
top: calc(2 * var(--cxl-marketing-nav-height)); | ||
bottom: unset; | ||
|
||
[part="backdrop"] { | ||
opacity: 0; | ||
} | ||
|
||
[part="content"] { | ||
padding: var(--lumo-space-l); | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
packages/cxl-lumo-styles/scss/themes/vaadin-menu-bar-button.scss
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 @@ | ||
:host { | ||
position: relative; | ||
|
||
::after { | ||
content: ""; | ||
position: absolute; | ||
bottom: 0; | ||
height: 1; | ||
width: var(--lumo-size-s); | ||
left: 50%; | ||
transform: translateX(-50%) scale(0); | ||
transform-origin: 50% 100%; | ||
opacity: 0; | ||
transition: 0.14s transform cubic-bezier(0.12, 0.32, 0.54, 1); | ||
will-change: transform, opacity; | ||
} | ||
} | ||
|
||
:host([active]:not([part="overflow-button"])) { | ||
position: relative; | ||
|
||
::after { | ||
content: ""; | ||
transform: translateX(-50%) scale(1); | ||
border-radius: var(--lumo-border-radius-s) var(--lumo-border-radius-s) 0 0; | ||
border: 1px solid var(--lumo-primary-color); | ||
box-shadow: 0px -1px 3px 0px rgba(214, 31, 44, 0.05); | ||
opacity: 1; | ||
transition: 0.14s opacity ease-in, 0.3s transform cubic-bezier(0.12, 0.32, 0.54, 1,5); | ||
} | ||
} |
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,57 @@ | ||
:host([theme~="cxl-marketing-nav"]) { | ||
|
||
[part="container"] { | ||
|
||
.menu-item-split-nav { | ||
/* stylelint-disable-next-line declaration-no-important */ | ||
margin-left: auto !important; | ||
|
||
~ .menu-item-split-nav { | ||
margin-left: revert !important; | ||
} | ||
} | ||
|
||
[part="overflow-button"] { | ||
|
||
vaadin-icon { | ||
&.vaadin-menu-bar-button--icon { | ||
display: none; | ||
} | ||
} | ||
|
||
@media (max-width: 568px) { | ||
display: block; | ||
|
||
::before { | ||
content: none; | ||
} | ||
|
||
vaadin-icon { | ||
height: var(--lumo-icon-size-s); | ||
|
||
&.vaadin-menu-bar-button--icon { | ||
display: block; | ||
|
||
&.close-icon { | ||
display: none; | ||
} | ||
} | ||
|
||
svg { | ||
fill: var(--lumo-shade); | ||
} | ||
} | ||
|
||
&[expanded] { | ||
vaadin-icon.close-icon { | ||
display: block; | ||
} | ||
|
||
vaadin-icon.menu-icon { | ||
display: none; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.