diff --git a/readme.md b/readme.md index b635aa290b..c37b19518e 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://LX-y-ka.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://LX-y-ka.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..b8b26268a7 100644 --- a/src/index.html +++ b/src/index.html @@ -18,14 +18,16 @@ diff --git a/src/style.css b/src/style.css index a63fa10d43..4d61730bd1 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,107 @@ /* add styles here */ +@font-face { + font-family: Avenir-Book; + src: url('fonts/Avenir-Book.ttf'); +} + +@font-face { + font-family: Avenir-Heavy; + src: url('fonts/Avenir-Heavy.ttf'); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + padding-left: 8px; + padding-right: 8px; +} + +.search-bar--big { + height: 70px; + width: 100%; + padding: 25px 25px 25px 62px; + margin-top: 20px; + + font-family: Avenir-Book, sans-serif; + color: #3d4e61; + font-weight: 300; + font-size: 16px; + + background-image: url(images/Search.svg); + background-position: 26px center; + background-size: 19px 19px; + background-repeat: no-repeat; + + border: 1px solid #e1e7ed; + border-radius: 4px; + box-shadow: 0 1px 8px rgba(61, 78, 97, 0.1); +} + +.search-bar--big:hover { + box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); +} + +.search-bar--big:focus { + background: url(images/Search.svg), + linear-gradient(180deg, #fff 0%, #f6f6f7 100%); + background-position: 26px center; + background-size: 19px 19px; + background-repeat: no-repeat; + outline: 1px solid #e1e7ed; + font-family: Avenir-Heavy, sans-serif; +} + +.search-bar--big::placeholder { + font-family: Avenir-Book, sans-serif; + color: #3d4e61; + font-weight: 300; + font-size: 16px; +} + +.search-bar--small { + margin-top: 20px; + height: 42px; + width: 100%; + padding: 10px 10px 10px 33px; + + font-family: Avenir-Book, sans-serif; + color: #3d4e61; + font-weight: 300; + font-size: 14px; + + background-image: url(images/Search.svg); + background-position: 13px center; + background-size: 11px 11px; + background-repeat: no-repeat; + + border: 1px solid #e1e7ed; + box-shadow: 0 1px 8px rgba(61, 78, 97, 0.1); + border-radius: 4px; +} + +.search-bar--small:hover { + box-shadow: 0 3px 8px rgba(61, 78, 97, 0.2); +} + +.search-bar--small:focus { + background: url(images/Search.svg), + linear-gradient(180deg, #fff 0%, #f6f6f7 100%); + background-position: 13px center; + background-size: + 11px 11px, + auto; + background-repeat: no-repeat; + outline: 1px solid #e1e7ed; + font-family: Avenir-Heavy, sans-serif; +} + +.search-bar--small::placeholder { + font-family: Avenir-Book, sans-serif; + color: #3d4e61; + font-weight: 300; + font-size: 14px; +}