diff --git a/readme.md b/readme.md index b635aa290b..2be7ed3ef3 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://dokrod.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://dokrod.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..6be3421d47 100644 --- a/src/index.html +++ b/src/index.html @@ -16,17 +16,29 @@ href="style.css" /> - - + +
+ +
- +
+ +
diff --git a/src/style.css b/src/style.css index a63fa10d43..686088bca2 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,72 @@ -/* add styles here */ +* { + box-sizing: border-box; +} + +@font-face { + font-family: Avenir; + src: url(./fonts/Avenir-Book.ttf); + font-weight: 300; +} + +@font-face { + font-family: Avenir-bold; + src: url(./fonts/Avenir-Heavy.ttf); + font-weight: 700; +} + +.serch-bar { + display: flex; + flex-direction: column; + margin-top: 20px; + font-family: Avenir, sans-serif; + width: 100%; + border: 1px solid #e1e7ed; + border-radius: 4px; +} + +.serch-bar::placeholder { + color: #3d4e61; +} + +.serch-bar:active { + font-family: Avenir-bold, sans-serif; + outline: none; +} + +.serch-bar--big { + height: 70px; + padding-left: 62px; + background: url(./images/Search.svg) no-repeat left 26px center / 19px; + font-size: 16px; + box-shadow: 0 1px 8px 0 #3d4e611a; +} + +.serch-bar--big:hover { + box-shadow: 0 4px 4px 0 #00000040; +} + +.serch-bar--big:focus { + background: + url(./images/Search.svg) no-repeat left 26px center / 19px 19px, + linear-gradient(180deg, #fff 0%, #f6f6f7 100%); + text-shadow: 0 4px 4px 0 #00000040; +} + +.serch-bar--small { + height: 42px; + padding-left: 33px; + background: url(./images/Search.svg) no-repeat left 13px center / 11px 11px; + font-family: Avenir, sans-serif; + font-size: 14px; + box-shadow: 0 1px 8px 0 #3d4e611a; +} + +.serch-bar--small:hover { + box-shadow: 0 3px 8px 0 #3d4e6133; +} + +.serch-bar--small:focus { + background: + url(./images/Search.svg) no-repeat left 13px center / 11px, + linear-gradient(180deg, #fff 0%, #f6f6f7 100%); +}