diff --git a/readme.md b/readme.md index b635aa290b..4665b3e873 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://ITguy-star.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://ITguy-star.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..193e46ecdb 100644 --- a/src/index.html +++ b/src/index.html @@ -17,16 +17,29 @@ /> - +
+ +
- +
+ +
diff --git a/src/style.css b/src/style.css index a63fa10d43..43b46356da 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,81 @@ -/* add styles here */ +/* #region Fonts */ +@font-face { + font-family: 'Avenir Book'; + src: url(./fonts/Avenir-Book.ttf); + font-weight: 300; +} + +@font-face { + font-family: 'Avenir Heavy'; + src: url(./fonts/Avenir-Heavy.ttf); + font-weight: 700; +} + +/* #endregion */ + +/* #region Base Styles */ + +.search-form { + margin-top: 20px; +} + +.search-form__input { + width: 100%; + border: 1px solid #e1e7ed; + box-shadow: 0 1px 8px #3d4e611a; + border-radius: 4px; + font-family: 'Avenir Book', Arial, sans-serif; + font-weight: 300; + color: #3d4e61; + box-sizing: border-box; +} + +.search-form__input::placeholder { + color: #3d4e61; +} + +/* States */ +.search-form__input:hover { + box-shadow: 0 3px 8px #3d4e6133; +} + +.search-form__input:focus { + font-family: 'Avenir Heavy', Arial, sans-serif; + font-weight: 700; + outline: none; + text-shadow: 0 4px 4px #00000040; +} + +/* #endregion */ + +/* #region Modifiers */ + +/* Big Form */ +.search-form--big { + margin-top: 20px; +} + +.search-form__input--big { + height: 70px; + padding-left: 62px; + background: url(images/Search.svg) no-repeat 26px 25px; + background-size: 18px 18px; + font-size: 16px; + line-height: 22px; +} + +/* Small Form */ +.search-form--small { + margin-top: 20px; +} + +.search-form__input--small { + height: 42px; + padding-left: 33px; + background: url(images/Search.svg) no-repeat 13px 15px; + background-size: 10px 10px; + font-size: 14px; + line-height: 20px; +} + +/* #endregion */