Toolbar: better handle breakpoint styling

This commit is contained in:
rektdeckard
2020-08-21 03:21:04 -04:00
parent 208c0ba5b7
commit 6b7a594191
6 changed files with 13 additions and 7 deletions

View File

@@ -23,11 +23,10 @@
input.color-input { input.color-input {
position: relative; position: relative;
height: 100%; height: 100%;
width: 96%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
border: none; border: none;
border-radius: 8px; border-radius: 8px;
margin: 0 0 0 4px;
padding: 0; padding: 0;
cursor: pointer; cursor: pointer;
} }

View File

@@ -3,7 +3,6 @@
flex: 2; flex: 2;
align-items: center; align-items: center;
height: 48px; height: 48px;
margin: 0 4px;
padding: 0 24px; padding: 0 24px;
border-radius: 8px; border-radius: 8px;
color: white; color: white;

View File

@@ -31,7 +31,7 @@ const SearchInput: React.FC<SearchInputProps> = () => {
type="text" type="text"
autoComplete="off" autoComplete="off"
value={value} value={value}
placeholder="Search for an icon" placeholder="Search"
onChange={({ currentTarget }) => setValue(currentTarget.value)} onChange={({ currentTarget }) => setValue(currentTarget.value)}
/> />
{value ? ( {value ? (

View File

@@ -4,7 +4,6 @@
flex: 2; flex: 2;
align-items: center; align-items: center;
height: 48px; height: 48px;
margin: 0 4px;
padding: 0 24px; padding: 0 24px;
color: white; color: white;
border-radius: 8px; border-radius: 8px;

View File

@@ -19,7 +19,6 @@
width: 176px !important; width: 176px !important;
height: 48px !important; height: 48px !important;
justify-content: flex-start; justify-content: flex-start;
margin: 0 4px;
padding: 0 24px !important; padding: 0 24px !important;
color: white; color: white;
border-radius: 8px !important; border-radius: 8px !important;
@@ -28,6 +27,12 @@
border: none !important; border: none !important;
} }
@media screen and (max-width: 558px) {
.react-dropdown-select {
width: 100% !important;
}
}
.react-dropdown-select-content { .react-dropdown-select-content {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@@ -14,9 +14,13 @@ menu.toolbar {
.toolbar-contents { .toolbar-contents {
width: 83.33%; width: 83.33%;
max-width: 1120px; max-width: 1120px;
padding: 8px 0; padding: 0 0 8px;
display: flex; display: flex;
flex-flow: wrap; flex-flow: wrap;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.toolbar-contents > * {
margin: 8px 4px 0;
}