Skip to content

Commit

Permalink
search css
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGuilbotine committed Oct 6, 2021
1 parent f79e246 commit a6c100a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
13 changes: 9 additions & 4 deletions react-app/src/components/SearchQuestions/SearchBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
z-index: 11;
right: 50vw;
width: 25vw;
top: 4px;
top: 5px;
}

.navbar-search__input {
Expand All @@ -27,11 +27,11 @@ div.search-results__container
background-color: #f5f5f5;
display: block;
position: fixed;
width: 23vw;
width: 25vw;
height: auto;
top: 36px;
top: 56px;
margin: 5px;
right: 51vw;
left: 0;
}

div.search-dropdown__container i
Expand Down Expand Up @@ -90,3 +90,8 @@ div.search-dropdown__container i
}

}

.search-icon {
color: black;
font-size: 30px;
}
2 changes: 1 addition & 1 deletion react-app/src/components/SearchQuestions/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function SearchBar() {
placeholder="Search Questions"
onFocus={handleOpen}
/> */}
<i className={"fas fa-search"} onClick={handleOpen}></i>
<i className={"fas fa-search search-icon"} onClick={handleOpen}></i>
</>
}
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { useEffect, useState } from 'react';
import { useDispatch } from 'react-redux';
import { useHistory } from 'react-router-dom';
Expand Down Expand Up @@ -42,7 +41,7 @@ export default function SearchBarDropdown({ setShowModal }) {
autoComplete='off'
autoFocus
/>
<i className={"fas fa-search"}></i>
{/* <i className={"fas fa-search"}></i> */}
</div>
<div className="search-results__container">
<ul>
Expand Down
7 changes: 5 additions & 2 deletions react-app/src/context/Modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@

#search-modal {
position: fixed;
top: 0;
top: 2px;
right: 0;
left: 0;
left: 5px;
bottom: 0;
width: 25vw;
display: flex;
justify-content: center;
/* align-items: center; */
Expand All @@ -46,6 +47,8 @@
}

#search-modal-content {
padding: 0 13px;
border-radius: 5px;
position: absolute;
background-color:white;
}

0 comments on commit a6c100a

Please sign in to comment.