diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-01-24 15:44:31 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-01-24 15:44:31 +0100 |
commit | 0bddf7661d7ece709a18f2d167b928749638f318 (patch) | |
tree | 05aeedc6e1e5e665272188bfaf9801bc795668c7 /src/client/style | |
parent | 257cb6b81d49f5a4a0b514eb095c6ad0f4a9f5cc (diff) |
Add animation to results
Diffstat (limited to 'src/client/style')
-rw-r--r-- | src/client/style/_component-help-box.scss | 23 | ||||
-rw-r--r-- | src/client/style/_component-search.scss | 5 | ||||
-rw-r--r-- | src/client/style/_page-index.scss | 2 | ||||
-rw-r--r-- | src/client/style/index.scss | 2 |
4 files changed, 31 insertions, 1 deletions
diff --git a/src/client/style/_component-help-box.scss b/src/client/style/_component-help-box.scss new file mode 100644 index 0000000..e7457c2 --- /dev/null +++ b/src/client/style/_component-help-box.scss @@ -0,0 +1,23 @@ +.help-box { + position: relative; + margin-top: 32px; + + .arrow { + position: absolute; + background-color: white; + width: 32px; + height: 32px; + top: -16px; + left: 48px; + transform: rotate(45deg); + } + + .bubble { + position: relative; + background-color: white; + font-weight: bold; + margin: 16px; + padding: 16px; + border-radius: 4px; + } +} diff --git a/src/client/style/_component-search.scss b/src/client/style/_component-search.scss index cac1ae3..d819e6f 100644 --- a/src/client/style/_component-search.scss +++ b/src/client/style/_component-search.scss @@ -35,6 +35,11 @@ } } + &__results { + transition: 0.1s ease-in-out min-height; + overflow: hidden; + } + &__result { display: flex; diff --git a/src/client/style/_page-index.scss b/src/client/style/_page-index.scss index 410a542..6fe7739 100644 --- a/src/client/style/_page-index.scss +++ b/src/client/style/_page-index.scss @@ -17,4 +17,4 @@ margin-top: 64px; } } -}
\ No newline at end of file +} diff --git a/src/client/style/index.scss b/src/client/style/index.scss index 9521ab7..d2ad825 100644 --- a/src/client/style/index.scss +++ b/src/client/style/index.scss @@ -8,4 +8,6 @@ body { } @import "page-index"; + @import "component-search"; +@import "component-help-box"; |