diff --git a/readme.md b/readme.md index b635aa290b..e77e3cd90a 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://pasha28091997.github.io/layout_search-bar-airbnb/) +- [TEST REPORT LINK](https://pasha28091997.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/images/Vector.svg b/src/images/Vector.svg new file mode 100644 index 0000000000..47fc3c9964 --- /dev/null +++ b/src/images/Vector.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/index.html b/src/index.html index abe507e10c..207f4fe76d 100644 --- a/src/index.html +++ b/src/index.html @@ -10,23 +10,43 @@ http-equiv="X-UA-Compatible" content="ie=edge" /> - Document + Search bar airbnb - + - +
+
+
+ +
+
diff --git a/src/style.css b/src/style.css index a63fa10d43..ae4914b12b 100644 --- a/src/style.css +++ b/src/style.css @@ -1 +1,119 @@ /* add styles here */ + +@font-face { + font-family: Avenir; + src: url('./fonts/Avenir-Book.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} + +body { + box-sizing: border-box; + font-family: Avenir, sans-serif; + font-weight: 300; +} + +.search { + position: relative; + display: flex; + color: #3d4e61; + background-color: #fff; + border: 1px solid #e1e7ed; + border-radius: 4px; + align-items: center; + width: calc(100% - 2px); + height: 68px; + margin-top: 20px; +} + +.search:hover { + box-shadow: 0 1px 8px #3d4e611a; +} + +.search_icon { + background: url(./images/Search.svg) no-repeat; + width: 19px; + height: 19px; + margin-left: 26px; + position: absolute; +} + +.search_form { + width: calc(100% - 62px); + height: 22px; + margin-left: 62px; + padding: 0; + position: absolute; +} + +.search_input { + color: #3d4e61; + border-color: #0000; + border: none; + width: calc(100% - 62px); + padding: 0; + font-family: Avenir, sans-serif; + font-size: 16px; + font-weight: 300; +} + +.search_input:focus { + font-weight: bold; +} + +.search-mini { + display: flex; + color: #3d4e61; + background-color: #fff; + border: 1px solid #e1e7ed; + border-radius: 4px; + align-items: center; + width: calc(100% - 2px); + height: 40px; + margin-top: 20px; + font-size: 14px; +} + +.search-mini:hover { + box-shadow: 0 1px 8px #3d4e611a; +} + +.search-mini_icon { + background: url(./images/Search.svg) no-repeat; + width: 11px; + height: 11px; + background-size: cover; + margin: 14px 0 16px 12px; +} + +.search-mini_form { + width: calc(100% - 42px); + height: 20px; + margin-left: 33px; + padding: 0; + position: absolute; +} + +.search-mini_input { + color: #3d4e61; + border-color: #0000; + border: none; + width: calc(100% - 42px); + line-height: 19px; + padding: 0; + font-family: Avenir, sans-serif; + font-size: 14px; + font-weight: 300; +} + +.search-mini_input:focus { + font-weight: bold; +} + +.search-mini .search-mini_form .search-mini_input:focus { + outline: none; +} + +.search .search_form .search_input:focus { + outline: none; +}