diff --git a/readme.md b/readme.md index b635aa290b..f6ade05273 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://dkosstenko.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://dkosstenko.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..f1222b1450 100644 --- a/src/index.html +++ b/src/index.html @@ -17,16 +17,22 @@ /> - +
+ +
- +
+ +
diff --git a/src/style.css b/src/style.css index a63fa10d43..42ff81f1af 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,74 @@ -/* add styles here */ +@font-face { + font-family: Avenir; + src: url('./fonts/Avenir.ttc'); +} + +@font-face { + font-family: Avenir-Heavy; + src: url('./fonts/Avenir-Heavy.ttf'); +} + +.search { + display: flex; + + box-sizing: border-box; + + font-family: Avenir, Helvetica, Arial, sans-serif; + font-weight: 300; + + outline: none; + + color: #3d4e61; + + background: url(images/Search.svg) no-repeat; + + margin-top: 20px; + width: 100%; + + border: solid 1px #e1e7ed; + border-radius: 4px; + + box-shadow: 0 1px 8px #3d4e611a; + + transition: + text-shadow 0.2s, + font-weight 0.1s ease-in-out; +} + +.search::placeholder { + color: #3d4e61; +} + +.search:hover { + box-shadow: 0 4px 4px #00000040; +} + +.search:focus { + font-family: Avenir-Heavy, Helvetica, Arial, sans-serif; +} + +.search--big { + font-size: 16px; + + height: 70px; + + background-size: 19px 19px; + background-position: 26px 24px; + + padding-left: 62px; +} + +.search--big:focus { + text-shadow: 0 4px 4px #00000040; +} + +.search--small { + font-size: 14px; + + height: 42px; + + background-size: 11px 11px; + background-position: 13px 15px; + + padding-left: 33px; +}