aboutsummaryrefslogtreecommitdiff
path: root/assets/sass/components/_poptrox-popup.scss
diff options
context:
space:
mode:
authorGravatar Anshul Gupta <ansg191@yahoo.com> 2020-08-04 16:27:53 -0700
committerGravatar Anshul Gupta <ansg191@yahoo.com> 2020-08-04 16:27:53 -0700
commit3ec2f4a87d8509aed4f42975d8a03b75e78c5218 (patch)
tree96b172b7b49476567331ed4b0758383dfb7870a4 /assets/sass/components/_poptrox-popup.scss
parente37306449b036fc192ddee5db78d3a30197a8f21 (diff)
downloadPortfolio-master.tar.gz
Portfolio-master.tar.zst
Portfolio-master.zip
Import TemplateHEADmaster
Diffstat (limited to 'assets/sass/components/_poptrox-popup.scss')
-rw-r--r--assets/sass/components/_poptrox-popup.scss183
1 files changed, 183 insertions, 0 deletions
diff --git a/assets/sass/components/_poptrox-popup.scss b/assets/sass/components/_poptrox-popup.scss
new file mode 100644
index 0000000..dd883fd
--- /dev/null
+++ b/assets/sass/components/_poptrox-popup.scss
@@ -0,0 +1,183 @@
+///
+/// Big Picture by Pixelarity
+/// pixelarity.com | hello@pixelarity.com
+/// License: pixelarity.com/license
+///
+
+/* Poptrox */
+
+ .poptrox-popup {
+ @include vendor('box-sizing', 'content-box');
+ background: #fff;
+ padding-bottom: 3em;
+ box-shadow: 0 0.1em 0.15em 0 rgba(0, 0, 0, 0.15);
+
+ .loader {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ margin: -1em 0 0 -1em;
+ width: 2em;
+ height: 2em;
+ display: block;
+ font-size: 2em;
+
+ &:before {
+ @include vendor('animation', 'spinner-rotate 0.75s infinite linear !important');
+ -moz-osx-font-smoothing: grayscale;
+ -webkit-font-smoothing: antialiased;
+ font-family: FontAwesome;
+ font-style: normal;
+ font-weight: normal;
+ text-transform: none !important;
+ color: _palette(border);
+ content: '\f1ce';
+ cursor: default;
+ display: block;
+ height: 2em;
+ left: 0;
+ line-height: 2em;
+ position: absolute;
+ text-align: center;
+ top: 0;
+ width: 2em;
+ }
+ }
+
+ .caption {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ background: _palette(bg);
+ width: 100%;
+ height: 3em;
+ line-height: 2.8em;
+ text-align: center;
+ cursor: default;
+ z-index: 1;
+ font-size: 0.9em;
+ }
+
+ .nav-next,
+ .nav-previous {
+ @include vendor('transition', 'opacity #{_duration(transition)} ease-in-out');
+ position: absolute;
+ top: 0;
+ width: 50%;
+ height: 100%;
+ opacity: 0;
+ cursor: pointer;
+ background: rgba(0, 0, 0, 0.01);
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
+ }
+
+ .nav-next:before,
+ .nav-previous:before {
+ content: '';
+ position: absolute;
+ width: 96px;
+ height: 64px;
+ background: url('images/poptrox-nav.svg');
+ top: calc(50% - 1.5em);
+ margin: -32px 0 0 0;
+ }
+
+ &:hover {
+ .nav-next,
+ .nav-previous {
+ opacity: 0.5;
+ }
+
+ .nav-next:hover,
+ .nav-previous:hover {
+ opacity: 1.0;
+ }
+ }
+
+ .nav-previous:before {
+ @include vendor('transform', 'scaleX(-1)');
+ -ms-filter: "FlipH";
+ filter: FlipH;
+ }
+
+ .nav-next {
+ right: 0;
+
+ &:before {
+ right: 0;
+ }
+ }
+
+ .nav-previous {
+ left: 0;
+
+ &:before {
+ left: 0;
+ }
+ }
+
+ .closer {
+ @include vendor('transition', 'opacity #{_duration(transition)} ease-in-out');
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 64px;
+ height: 64px;
+ text-indent: -9999px;
+ z-index: 2;
+ opacity: 0;
+ -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
+
+ &:before {
+ content: '';
+ display: block;
+ position: absolute;
+ right: 16px;
+ top: 16px;
+ width: 40px;
+ height: 40px;
+ border-radius: 100%;
+ box-shadow: inset 0 0 0 2px #fff;
+ background: url('images/poptrox-closer.svg') center center;
+ color: _palette(bg) !important;
+ }
+ }
+
+ &:hover {
+ .closer {
+ opacity: 0.5;
+
+ &:hover {
+ opacity: 1.0;
+ }
+ }
+ }
+
+ body.is-touch & {
+ .nav-next,
+ .nav-previous,
+ .closer {
+ opacity: 1.0 !important;
+ }
+ }
+
+ @include breakpoint('<=small') {
+ .nav-next:before,
+ .nav-previous:before {
+ width: 48px;
+ height: 32px;
+ background-size: contain;
+ margin: -16px 0 0 0;
+ }
+
+ .closer:before {
+ right: 12px;
+ top: 12px;
+ width: 20px;
+ height: 20px;
+ box-shadow: inset 0 0 0 1px #fff;
+ background-size: contain;
+ opacity: 0.65;
+ }
+ }
+ } \ No newline at end of file