From 1e456ae0a7e4a9c2d362358d1f26b2bbb5ab36d1 Mon Sep 17 00:00:00 2001 From: Xavier Date: Sat, 1 Dec 2018 15:49:27 -0800 Subject: [PATCH 1/2] Deselect & cancel --- .../detail/detail-simpledeal-funded.html | 29 +++++++- .../detail/detail-simpledeal-selected.html | 48 ++++++++++-- src/pages/detail/detail-simpledeal.html | 74 +++++++++++++++---- .../hashtag/hashtag-simpledeal-item.html | 2 +- src/pages/hashtag/hashtag-simpledeal.html | 6 +- src/redux/sagas/hashtag-saga.html | 23 ++++-- 6 files changed, 150 insertions(+), 32 deletions(-) diff --git a/src/pages/detail/detail-simpledeal-funded.html b/src/pages/detail/detail-simpledeal-funded.html index 40d3860e..e5616223 100644 --- a/src/pages/detail/detail-simpledeal-funded.html +++ b/src/pages/detail/detail-simpledeal-funded.html @@ -55,6 +55,10 @@ @apply --layout-flex; @apply --body-default; color: var(--sc-grey4); + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; } .price { @@ -162,6 +166,27 @@ opacity: 0.5; } + + .dont-break-out { + + /* These are technically the same, but use both */ + overflow-wrap: break-word; + word-wrap: break-word; + + -ms-word-break: break-all; + /* This is the dangerous one in WebKit, as it breaks things wherever */ + word-break: break-all; + /* Instead use this non-standard one: */ + word-break: break-word; + + /* Adds a hyphen where the word breaks, if supported (No Blink) */ + -ms-hyphens: auto; + -moz-hyphens: auto; + -webkit-hyphens: auto; + hyphens: auto; + + } + @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-resolution: 240dpi) { @@ -175,7 +200,7 @@ @@ -322,6 +353,9 @@ _fund() { this.dispatchEvent(new CustomEvent('fund')); } + _deselect() { + this.dispatchEvent(new CustomEvent('deselect')); + } /** * Verifies user balance and displays error message */ diff --git a/src/pages/detail/detail-simpledeal.html b/src/pages/detail/detail-simpledeal.html index 773c66db..046f4795 100644 --- a/src/pages/detail/detail-simpledeal.html +++ b/src/pages/detail/detail-simpledeal.html @@ -112,7 +112,7 @@ -