diff --git a/readme.md b/readme.md index b635aa290b..090536160f 100644 --- a/readme.md +++ b/readme.md @@ -25,12 +25,12 @@ ___ ❗️ 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://tuhusova.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://tuhusova.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. -- [ ] Icon implemented using background-image CSS property -- [ ] Inputs are written inside of 'form' tag with correctly passed attributes -- [ ] All `Typical Mistakes` from `BEM` lesson theory are checked. -- [ ] Code follows all the [Code Style Rules ❗️](./checklist.md) +- [x] Icon implemented using background-image CSS property +- [x] Inputs are written inside of 'form' tag with correctly passed attributes +- [x] All `Typical Mistakes` from `BEM` lesson theory are checked. +- [x] Code follows all the [Code Style Rules ❗️](./checklist.md) diff --git a/src/index.html b/src/index.html index abe507e10c..0f015ec414 100644 --- a/src/index.html +++ b/src/index.html @@ -17,16 +17,28 @@ /> - +
+ +
- +
+ +
diff --git a/src/style.css b/src/style.css index a63fa10d43..d0bef1fed8 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,62 @@ -/* add styles here */ +@font-face { + font-family: Avenir; + src: url('./fonts/Avenir-Book.ttf'); + src: url('./fonts/Avenir-Heavy.ttf'); + src: url('./fonts/Avenir.ttc'); + font-style: normal; + font-weight: normal; + color: rgba(61, 78, 97, 1); +} + +html { + font-family: Avenir, Arial, Helvetica, sans-serif; + font-weight: 300; +} + +.search-bar-input { + margin: 20px 0; + box-sizing: border-box; + border-radius: 4px; + background-image: url(/images/Search.svg); + background-repeat: no-repeat; + width: 100%; + border: 1px solid #e1e7ed; + box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.1); + font-family: inherit; +} + +.search-bar-input--top { + display: flex; + color: #3d4e61; + font-size: 16px; + height: 70px; + padding-left: 62px; + background-size: 19px 19px; + background-position: 26px center; +} + +.search-bar-input--down { + display: flex; + font-size: 14px; + height: 42px; + padding-left: 33px; + background-size: 11px 11px; + background-position: 13px center; +} + +.search-bar-input::placeholder { + color: #3d4e61; +} + +.search-bar-input :hover { + box-shadow: 0 4px 4px 0; + color: rgba(0, 0, 0, 0.25); +} + +.search-bar-input :focus { + box-shadow: 0 4px 4px 0; + color: rgba(0, 0, 0, 0.25); + font-size: 16px; + text-align: left; + font-family: Avenir-Heavy, sans-serif; +}