From ec7067e7bdccab3a9cec720aba0304b10ee05495 Mon Sep 17 00:00:00 2001 From: Aviral Dasgupta Date: Fri, 17 Jun 2016 04:58:39 +0530 Subject: [PATCH] Autocomplete style --- .../views/rooms/Autocomplete.css | 42 +++++++++++++++++++ .../views/rooms/MessageComposer.css | 5 +++ 2 files changed, 47 insertions(+) create mode 100644 src/skins/vector/css/matrix-react-sdk/views/rooms/Autocomplete.css diff --git a/src/skins/vector/css/matrix-react-sdk/views/rooms/Autocomplete.css b/src/skins/vector/css/matrix-react-sdk/views/rooms/Autocomplete.css new file mode 100644 index 00000000..1fa88f20 --- /dev/null +++ b/src/skins/vector/css/matrix-react-sdk/views/rooms/Autocomplete.css @@ -0,0 +1,42 @@ +.mx_Autocomplete { + position: absolute; + bottom: 0; + z-index: 1000; + width: 100%; + border: 1px solid #e5e5e5; + background: rgba(255, 255, 255, 0.9); + border-bottom: none; + border-radius: 4px 4px 0 0; +} + +.mx_Autocomplete_ProviderSection { + padding: 12px; + border-bottom: 1px solid #e5e5e5; +} + +.mx_Autocomplete_ProviderSection * { + padding: 4px; + border-radius: 4px; +} + +.mx_Autocomplete_provider_name { + color: #76cfa6; +} + +.autocomplete-enter { + opacity: 0.01; +} + +.autocomplete-enter.autocomplete-enter-active { + opacity: 1; + transition: opacity 300ms ease-in; +} + +.autocomplete-leave { + opacity: 1; +} + +.autocomplete-leave.autocomplete-leave-active { + opacity: 0.01; + transition: opacity 300ms ease-in; +} diff --git a/src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css b/src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css index 8cced52c..9242af89 100644 --- a/src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css +++ b/src/skins/vector/css/matrix-react-sdk/views/rooms/MessageComposer.css @@ -21,6 +21,11 @@ limitations under the License. border-top: 1px solid #e5e5e5; } +.mx_MessageComposer_autocomplete_wrapper { + position: relative; + height: 0; +} + .mx_MessageComposer_row { display: flex; flex-direction: row;