From ab3f53cb270f991675a1725d9b0ddc6466fb126a Mon Sep 17 00:00:00 2001 From: Mary Kate Date: Tue, 4 Aug 2020 21:57:54 -0500 Subject: [PATCH] styles on filter form --- app/soapbox/features/filters/index.js | 84 ++++++++++++++------------- app/styles/components/filters.scss | 27 +++++++++ 2 files changed, 71 insertions(+), 40 deletions(-) diff --git a/app/soapbox/features/filters/index.js b/app/soapbox/features/filters/index.js index c1a2a66f9..60b406a82 100644 --- a/app/soapbox/features/filters/index.js +++ b/app/soapbox/features/filters/index.js @@ -139,22 +139,24 @@ class Filters extends ImmutablePureComponent {
- - - - +
+ +
+ +
+
@@ -164,30 +166,32 @@ class Filters extends ImmutablePureComponent { - - - - +
+ + + + +
diff --git a/app/styles/components/filters.scss b/app/styles/components/filters.scss index 9b99437f2..de1e6ee96 100644 --- a/app/styles/components/filters.scss +++ b/app/styles/components/filters.scss @@ -13,7 +13,34 @@ &:last-child { border-bottom: 0; } + } + .fields-group .two-col { + display: flex; + align-items: flex-start; + width: 100%; + justify-content: flex-start; + flex-wrap: wrap; + + div.input { + width: 45%; + margin-right: 20px; + + .label_input { + width: 100%; + } + } + + @media(max-width: 485px){ + div.input { + width: 100%; + margin-right: 5px; + + .label_input { + width: auto; + } + } + } } .filter__container {