diff --git a/css/popup.css b/css/popup.css new file mode 100644 index 0000000..f332868 --- /dev/null +++ b/css/popup.css @@ -0,0 +1,35 @@ +.popup { + width: 800px; + width: -webkit-fit-content; + width: -moz-fit-content; + width: fit-content; + min-width: 400px; + color: #191919; + background-color: #f2f2f2; + border-radius: 8px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); + padding: 25.64px 40px; + } + + .popup img { + display: block; + margin: auto; + } + + .popup img:not(:first-child) { + margin-top: 20px; + } + + .popup img:not(:last-child) { + margin-bottom: 20px; + } + + .popup .notch { + width: 20px; + height: 20px; + border-color: #f2f2f2; + } + + .PopupContent p:not(:last-child) { + margin-bottom: 30px; + } \ No newline at end of file diff --git a/lib/card/index.html b/lib/card/index.html index cfb1396..2e228b6 100644 --- a/lib/card/index.html +++ b/lib/card/index.html @@ -7,6 +7,7 @@ + @@ -59,26 +60,29 @@
-

A Demo Card with selectors

+
+

A Demo Card with selectors

- - - - - - - - - - - -

Lorem ipsum dolor sit - amet, - consetetur sadipscing elitr.

+ + + + + + + + + + + +

Lorem ipsum dolor sit + amet, + consetetur sadipscing elitr.

+
+
@@ -93,7 +97,7 @@ const wrapper2 = new CardWrapper(demoCardWithSelector) wrapper2.handleClicksAsTaps() wrapper2.onTap('.highlight', event => { - Highlight.toggleHighlight(event.target) + Card.loadHighlightPopup(event) }) wrapper2.onTap('.link', event => { diff --git a/lib/card/popup.html b/lib/card/popup.html new file mode 100644 index 0000000..4c2673e --- /dev/null +++ b/lib/card/popup.html @@ -0,0 +1,10 @@ +
+ +

+ Popup +

+

+ Lorem ipsum... +

+ +
\ No newline at end of file