diff --git a/readme.md b/readme.md index b635aa290b..9136d60738 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://Valeraom.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://Valeraom.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..861d1a51e0 100644 --- a/src/index.html +++ b/src/index.html @@ -1,5 +1,8 @@ - + - - + +
+ - + +
diff --git a/src/style.css b/src/style.css index a63fa10d43..70057aa7c7 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,87 @@ -/* add styles here */ +@font-face { + font-family: Avenir; + src: url(fonts/Avenir-Book.ttf); +} + +@font-face { + font-family: Avenir; + src: url(fonts/Avenir-Heavy.ttf); + font-weight: bold; +} + +.page { + --width-large-search-bar-icon: 19px; + --height-large-search-bar-icon: 19px; + --width-small-search-bar-icon: 11px; + --height-small-search-bar-icon: 11px; + + font-weight: 300; +} + +.page__search-bar { + margin: 20px 0; +} + +.search-bar__container { + position: relative; +} + +.search-bar__container::before { + content: ''; + position: absolute; + background-image: url(/src/images/Search.svg); + background-repeat: no-repeat; +} + +.search-bar--size--large .search-bar__container::before { + top: 35%; + left: 26px; + width: var(--width-large-search-bar-icon); + height: var(--height-large-search-bar-icon); + background-size: var(--width-large-search-bar-icon) + var(--height-large-search-bar-icon); +} + +.search-bar--size--small .search-bar__container::before { + top: 35%; + left: 13px; + width: var(--width-small-search-bar-icon); + height: var(--height-small-search-bar-icon); + background-size: var(--width-small-search-bar-icon) + var(--height-small-search-bar-icon); +} + +.search-bar__input { + width: 100%; + border: 1px solid #e1e7ed; + border-radius: 4px; + box-sizing: border-box; + font-family: Avenir, sans-serif; + color: #3d4e61; + line-height: 1.2; + box-shadow: 0 1px 8px 0 #3d4e611a; +} + +.search-bar__input:hover { + box-shadow: 0 3px 8px 0 #3d4e6133; +} + +.search-bar__input:focus { + outline: none; + background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%); + font-weight: bold; +} + +.search-bar--size--large .search-bar__input { + padding: 24.4px 62px; + font-size: 16px; +} + +.search-bar--size--small .search-bar__input { + padding: 11.7px 33px; + font-size: 14px; +} + +.search-bar--size--large .search-bar__input:focus { + box-shadow: 0 4px 4px 0 #00000040; +}