Skip to content

Commit

Permalink
Improve StoryTags style
Browse files Browse the repository at this point in the history
  • Loading branch information
andreymal committed Jun 8, 2023
1 parent e6de0db commit f7c2b16
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions frontend/src/components/StoryTags/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}

@define-mixin tag-box {
min-height: 2.5em;
min-height: 2.3em;
max-height: 15em;
overflow-y: auto;
background-color: var(--background);
Expand All @@ -23,7 +23,14 @@

padding: 0.3em 0.5em;

width: 80%
width: 80%;

transition: border linear 0.2s, box-shadow linear 0.2s;
}

.react-tagsinput--focused > .tags-container {
border-color: rgba(82, 168, 236, 0.8);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, .6);
}

.tags-input-container {
Expand Down Expand Up @@ -69,6 +76,27 @@
margin: 0.25em 0.5em;
}

.react-autosuggest__container {
flex-grow: 1;

& .dropdown-input {
margin-left: 0;
margin-right: 0;
width: 100%;
height: 28px;
box-sizing: border-box;

/* disable default bootstrap styles */
border: 0;
box-shadow: none;
background-color: transparent;

&:focus {
box-shadow: none;
}
}
}

.react-autosuggest__suggestions-container {
@mixin tag-box;
margin: 0.15em;
Expand All @@ -90,6 +118,10 @@
margin: 0;
}

.react-autosuggest__suggestion {
cursor: pointer;
}

.react-autosuggest__suggestion--highlighted {
filter: var(--highlight-filters);
}

0 comments on commit f7c2b16

Please sign in to comment.