-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Preview Button * Add preview Icon * Add preview button and block * Add js script for controling preview * Update preview.js * Add base data to preview * Add preview - name - url - photo - description - email * Update preview.png * Add Links to preview * Add links to preview * Add default preview * Add animation * Move preview.js to index.js * Update Icon * Add Preview for theme * Themes Load images * js preview in new html window independent * default theme * Rename css * Final preview Feature * Add meta data * Make preview only for devices min-width: 1000px * Update index.php * Update .gitignore
- Loading branch information
Showing
4 changed files
with
219 additions
and
4 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 +1 @@ | ||
/dist/ | ||
/dist/ |
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,44 @@ | ||
:root{ | ||
--buttonSize: 70px; | ||
--buttonOffset: 10px; | ||
--buttonRadius: 10px; | ||
--previewWidth: 30vw; | ||
--previewHeight: 100vh; | ||
--previewXOffset: 0; | ||
--previewYOffset: 0; | ||
--animationDuration: 500ms; | ||
} | ||
#previewButton { | ||
position: fixed; | ||
width: var(--buttonSize); | ||
height: var(--buttonSize); | ||
bottom: var(--buttonOffset); | ||
right: var(--buttonOffset); | ||
border-radius: var(--buttonRadius); | ||
z-index: 2; | ||
} | ||
|
||
#previewButton > *{ | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
#previewBlock{ | ||
position: fixed; | ||
top: var(--previewYOffset); | ||
right: var(--previewXOffset); | ||
width: var(--previewWidth); | ||
height: var(--previewHeight); | ||
z-index: 1; | ||
transition: var(--animationDuration); | ||
right: -100%; | ||
} | ||
|
||
@media screen and (max-width: 1000px){ | ||
#previewButton{ | ||
display: none; | ||
} | ||
#previewBlock{ | ||
display: none; | ||
} | ||
} |
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