generated from phucbm/gulp-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New theme: Corner layout #40
Open
vandangnhathung
wants to merge
25
commits into
main
Choose a base branch
from
main-corner-layout
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
69e2847
feat(theme): add corner theme
vandangnhathung 39e9d3f
feat(theme): update "corner" theme, style & turn off preventScroll
vandangnhathung fa5c1b1
style(close-button): make the button be sticky with fixed position
vandangnhathung 7754a46
refactor(close-button): move easy-popup-master-corner div into easy p…
vandangnhathung 7719cb6
refactor(close-button): refactor CSS
vandangnhathung 1966be8
refactor(close-button): refactor CSS
vandangnhathung 495ffec
refactor: add comment and avoid returning all the function
vandangnhathung ef0153b
refactor: use isCornerTheme as global variable
vandangnhathung bdef612
refactor(corner-theme): show warning if user input wrong position value
vandangnhathung 00f39f4
refactor(corner-theme): use CLASSES.cornerMaster instead of CLASSES.m…
vandangnhathung a9725cc
refactor(corner-theme): return default position value if the position…
vandangnhathung 685ae4c
refactor(corner-theme): rename global variable
vandangnhathung dbe4d73
refactor(corner-theme): refactor js
vandangnhathung f1cb189
refactor(corner-theme): add comment
vandangnhathung ffe697f
refactor(corner-theme): add comment
vandangnhathung a6c8f7e
refactor(corner-theme): rename "position" to "cornerPosition"
vandangnhathung 69aa105
feat(html): update structure html
phucbm 796424a
feat(html): allow click outside to close
phucbm 31adad1
refactor(corner-theme): clean up css (not done yet)
vandangnhathung 92a894e
refactor: convert css to scss
vandangnhathung e21c929
refactor: refactor scss
vandangnhathung 310d87b
refactor: refactor scss
vandangnhathung 8bf7168
refactor(html): add comment, rename var
phucbm e4a0198
refactor(corner-theme): revise code
vandangnhathung 580c238
refactor(corner-theme): add cornerFade layout
vandangnhathung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,81 @@ | ||
// Base styles | ||
.easy-popup-master-corner { | ||
--ep-close-color: #000; | ||
--ep-max-width: 450px; | ||
transition: opacity 0.4s ease, transform 0.4s ease; | ||
position: fixed; | ||
bottom: unset; | ||
right: unset; | ||
top: unset; | ||
left: unset; | ||
opacity: 1; | ||
visibility: visible; | ||
height: unset; | ||
width: unset; | ||
display: block; | ||
|
||
&:not(.open) { | ||
transform: translateX(0); | ||
pointer-events: none; | ||
} | ||
|
||
.easy-popup-overflow { | ||
overflow: unset; | ||
} | ||
|
||
.easy-popup-container { | ||
padding: 0; | ||
|
||
.easy-popup-inner { | ||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); | ||
border-radius: var(--ep-radius); | ||
overflow: hidden; | ||
max-height: calc(100vh - (var(--ep-corner-offset) * 2)); | ||
overflow-y: auto; | ||
} | ||
} | ||
|
||
// Position variants | ||
&.top-left { | ||
top: var(--ep-corner-offset); | ||
left: var(--ep-corner-offset); | ||
} | ||
|
||
&.top-right { | ||
top: var(--ep-corner-offset); | ||
right: var(--ep-corner-offset); | ||
} | ||
|
||
&.bottom-left { | ||
bottom: var(--ep-corner-offset); | ||
left: var(--ep-corner-offset); | ||
} | ||
|
||
&.bottom-right { | ||
bottom: var(--ep-corner-offset); | ||
right: var(--ep-corner-offset); | ||
} | ||
|
||
.ep-close-button { | ||
transform: translate(0); | ||
} | ||
|
||
@media only screen and (max-width: 1023px) { | ||
--ep-corner-offset: 0px; | ||
--ep-padding: 15px; | ||
padding: var(--ep-padding); | ||
|
||
.easy-popup-container .easy-popup-inner { | ||
max-height: calc(100vh - (var(--ep-padding) * 2)); | ||
} | ||
} | ||
|
||
// Slide animations | ||
&.is-slide-rlt:not(.open) { | ||
transform: translateX(100%); | ||
} | ||
|
||
&.is-slide-lrt:not(.open) { | ||
transform: translateX(-100%); | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do some positions have all top left bottom right properties, while some do not?