Skip to content

Commit

Permalink
Merge pull request #72 from palantirnet/FS-48-linting
Browse files Browse the repository at this point in the history
FS-48: Cleanup and Linting and long hand for flex properties
  • Loading branch information
agentrickard authored Mar 19, 2020
2 parents 2823237 + 9099950 commit 196df31
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 13 deletions.
8 changes: 6 additions & 2 deletions src/components/results/_fs-search-results.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
}

.fs-search-results__container--left {
flex: 1 0 0;
flex-grow: 1;
flex-shrink: 0;
flex-basis: 0;
margin-right: 3%;
}

.fs-search-results__container--right {
flex: 3 0 0;
flex-grow: 3;
flex-shrink: 0;
flex-basis: 0;
}

.fs-search-results__image {
Expand Down
3 changes: 0 additions & 3 deletions src/components/sort-menu/_fs-search-scope.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
margin: rhythm(1) 0;
}

.fs-search-scope__filter {
}

.fs-search-scope__select {
@extend %select;
@include adjust-font-size-to($label, .8);
Expand Down
8 changes: 6 additions & 2 deletions src/components/text-search/_fs-autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@
.react-autosuggest {
&__container {
position: relative;
flex: 1;
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
}

&__input {
@include adjust-font-size-to($label, .8);
flex: 1;
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
border: 1px solid $gray-light;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
Expand Down
4 changes: 3 additions & 1 deletion src/components/text-search/_fs-search-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
-webkit-appearance: none;
/* stylelint-enable */
border-radius: 3px 0 0 3px;
flex: 1;
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
border: 1px solid $gray-light;
padding: .5rem;

Expand Down
20 changes: 15 additions & 5 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@
-webkit-appearance: none;
/* stylelint-enable */
border-radius: 3px 0 0 3px;
flex: 1;
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
border: 1px solid #e5e5e5;
padding: .5rem; }
@media (min-width: 900px) {
Expand Down Expand Up @@ -259,12 +261,16 @@
/** These classes are outside of Federated Search app namespace. **/
.react-autosuggest__container {
position: relative;
flex: 1; }
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0; }

.react-autosuggest__input {
font-size: 0.8em;
line-height: 1.46667em;
flex: 1;
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
border: 1px solid #e5e5e5;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
Expand Down Expand Up @@ -564,11 +570,15 @@
display: flex; }

.fs-search-results__container--left {
flex: 1 0 0;
flex-grow: 1;
flex-shrink: 0;
flex-basis: 0;
margin-right: 3%; }

.fs-search-results__container--right {
flex: 3 0 0; }
flex-grow: 3;
flex-shrink: 0;
flex-basis: 0; }

.fs-search-results__label {
color: #555;
Expand Down

0 comments on commit 196df31

Please sign in to comment.