diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-06-02 02:44:11 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-06-02 02:44:11 +0200 |
commit | d7d132a9238ec0988750eac6fa498b703d502fb8 (patch) | |
tree | 5441d705acade06f2c138bb21b982d2f23ca8a63 /sw-ui/src/main | |
parent | Add full board preview (diff) | |
download | seven-wonders-d7d132a9238ec0988750eac6fa498b703d502fb8.tar.gz seven-wonders-d7d132a9238ec0988750eac6fa498b703d502fb8.tar.bz2 seven-wonders-d7d132a9238ec0988750eac6fa498b703d502fb8.zip |
Add comment for box shadow override
Diffstat (limited to 'sw-ui/src/main')
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt index 2fae1fb8..b2e12dab 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt @@ -19,6 +19,9 @@ object GameStyles : StyleSheet("GameStyles", isStatic = true) { put("fill", bgColor.toString()) // overrides default white arrow } descendants(".bp3-popover-arrow::before") { + // The popover arrow is implemented with a simple square rotated 45 degrees (like a rhombus). + // Since we use a semi-transparent background, we can see the box shadow of the rest of the arrow through + // the popover, and thus we see the square. This boxShadow(transparent) is to avoid that. boxShadow(Color.transparent) } } |