diff --git a/readme.md b/readme.md index b635aa290b..96d8f3c837 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://rqwif.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://rqwif.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..0ee93d6f89 100644 --- a/src/index.html +++ b/src/index.html @@ -17,16 +17,27 @@ /> - + diff --git a/src/style.css b/src/style.css index a63fa10d43..a07398e5ca 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,92 @@ -/* add styles here */ +@font-face { + font-family: Avenir-Book; + src: url('./fonts/Avenir-Book.ttf') format('truetype'); +} + +@font-face { + font-family: Avenir-Heavy; + src: url('./fonts/Avenir-Heavy.ttf') format('truetype'); +} + +body { + font-family: Avenir-Book, sans-serif; + font-weight: 300; + padding: 0; + margin-top: 0; + height: 100vh; +} + +.search { + width: 100%; + padding-top: 20px; +} + +.search__input { + font-family: Avenir-Book, sans-serif; + width: 100%; + border: 1px solid #e1e7ed; + background-image: url(./images/search.svg); + background-repeat: no-repeat; + background-position: center; + background-size: contain; + display: flex; + border-radius: 4px; + box-shadow: 0 1px 8px rgba(61, 78, 97, 0.1); + box-sizing: border-box; + margin-bottom: 20px; + padding-left: 33px; +} + +.search__input--big { + height: 70px; + padding-left: 62px; + background-size: 19px; + background-position: left 26px center; + font-size: 16px; + font-weight: 100; +} + +.search__input--small { + height: 42px; + font-size: 14px; + font-weight: 400; + background-size: 11px; + background-position: left 13px center; +} + +.search__input::placeholder { + color: rgba(61, 78, 97, 1); +} + +.search__input--big:focus { + box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); + text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); + font-family: Avenir-Heavy, sans-serif; + outline: none; +} + +.search__input--big:hover { + box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); + outline: none; +} + +.search__input--small:hover { + box-shadow: 0 3px 8px rgba(61, 78, 97, 0.2); +} + +.search__input--small:focus { + background-image: url(./images/search.svg), + linear-gradient( + 180deg, + rgba(246, 246, 247, 1) 100%, + rgba(255, 255, 255, 1) 100% + ); + background-repeat: no-repeat, no-repeat; + background-position: + left 13px center, + center; + background-size: 11px, auto; + font-family: Avenir-Heavy, sans-serif; + outline: none; + box-shadow: 0 3px 8px rgba(61, 78, 97, 0.2); +}