diff --git a/readme.md b/readme.md index b635aa290b..bc82982c18 100644 --- a/readme.md +++ b/readme.md @@ -25,8 +25,8 @@ ___ ❗️ Replace `` with your Github username and copy the links to `Pull Request` description: -- [DEMO LINK](https://.github.io/layout_search-bar-airbnb/) -- [TEST REPORT LINK](https://.github.io/layout_search-bar-airbnb/report/html_report/) +- [DEMO LINK](https://berezandiana.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://berezandiana.github.io/layout_search-bar-airbnb/report/html_report/) ❗️ Copy this `Checklist` to the `Pull Request` description after links, and put `- [x]` before each point after you checked it. diff --git a/src/index.html b/src/index.html index abe507e10c..4512c9ebe2 100644 --- a/src/index.html +++ b/src/index.html @@ -17,16 +17,30 @@ /> - + - + diff --git a/src/style.css b/src/style.css index a63fa10d43..8989f5295a 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,84 @@ -/* add styles here */ +@font-face { + font-family: Avenir; + src: url('fonts/Avenir-Book.ttf'); + font-weight: 300; +} + +@font-face { + font-family: Avenir; + src: url('fonts/Avenir-Heavy.ttf'); + font-weight: bold; +} + +body { + padding: 0; +} + +.search-bar { + margin: 20px 0; +} + +.search-bar__input { + box-sizing: border-box; + width: 100%; + height: 70px; + padding-left: 62px; + font-family: Avenir, sans-serif; + font-size: 16px; + color: #3d4e61; + border: 1px solid #e1e7ed; + border-radius: 4px; + background-image: url(./images/Search.svg); + background-repeat: no-repeat; + background-size: 19px; + background-position: 25px center; + box-shadow: 0 1px 8px rgba(61, 78, 97, 0.1); +} + +.search-bar__input--small { + background-size: 11px; + background-position: 12px center; + height: 42px; + font-size: 14px; + font-weight: 400; + padding-left: 33px; +} + +.search-bar__input::placeholder { + color: #3d4e61; + font-weight: 300; + font-size: 16px; +} + +.search-bar__input--small::placeholder { + font-weight: 400; + font-size: 14px; +} + +.search-bar__input:hover { + box-shadow: 0 4px 4px #00000040; +} + +.search-bar__input--small:hover { + box-shadow: 0 3px 8px #3d4e6133; +} + +.search-bar__input:focus { + border: 1px solid #e1e7ed; + text-shadow: 0 4px 4px #00000040; + box-shadow: 0 4px 4px #00000040; + font-weight: bold; + color: #3d4e61; + background: url(./images/Search.svg), + linear-gradient(180deg, #fff 0%, #f6f6f7 100%); + background-repeat: no-repeat, no-repeat; + background-size: 19px, auto; + background-position: + 25px center, + center; +} + +.search-bar__input--small:focus { + background-size: 11px; + background-position: 12px center; +}