diff --git a/readme.md b/readme.md index d2eb319ba..a3408f728 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # Frontend practice with catalog page and hovers Replace `` with your Github username and copy the links to Pull Request description: -- [DEMO LINK](https://.github.io/layout_catalog_hovers/) +- [DEMO LINK](https://usernameluke.github.io/layout_catalog_hovers/) > Follow [this instructions](https://github.com/mate-academy/layout_task-guideline#how-to-solve-the-layout-tasks-on-github) diff --git a/src/index.html b/src/index.html index 044119cfc..7ae7bc763 100644 --- a/src/index.html +++ b/src/index.html @@ -13,7 +13,7 @@ > - +
diff --git a/src/styles/blocks/catalog.scss b/src/styles/blocks/catalog.scss index ffb6b2ccc..d3435ebe3 100644 --- a/src/styles/blocks/catalog.scss +++ b/src/styles/blocks/catalog.scss @@ -17,6 +17,12 @@ border: 1px solid #ccc; border-radius: 5px; margin-bottom: 48px; + transition: transform 300ms, color 300ms; + + &:hover { + transform: scale(120%); + color: #34568b; + } &:not(:nth-child(4n)) { margin-right: 48px; diff --git a/src/styles/blocks/header.scss b/src/styles/blocks/header.scss index 638a10fef..78560242d 100644 --- a/src/styles/blocks/header.scss +++ b/src/styles/blocks/header.scss @@ -38,5 +38,10 @@ text-transform: uppercase; font-size: 12px; font-weight: 500; + transition: color 300ms; + + &:hover { + color: #00acdc; + } } } diff --git a/src/styles/main.css b/src/styles/main.css new file mode 100644 index 000000000..fea3c027a --- /dev/null +++ b/src/styles/main.css @@ -0,0 +1,83 @@ +.page { + font-family: Roboto, sans-serif; +} + +.page__body { + margin: 0; +} + +.header { + display: flex; + align-items: center; + justify-content: space-between; + box-sizing: border-box; + height: 60px; + padding: 0 50px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); +} + +.header__logo { + height: 40px; +} + +.nav__list { + display: flex; + margin: 0; + padding: 0; +} + +.nav__item { + position: relative; + color: #060b35; + list-style: none; + line-height: 60px; +} + +.nav__item:not(:last-child) { + margin-right: 20px; +} + +.nav__link { + color: inherit; + text-decoration: none; + text-transform: uppercase; + font-size: 12px; + font-weight: 500; + transition: color 300ms; +} + +.nav__link:hover { + color: #00acdc; +} + +.catalog { + display: flex; + flex-wrap: wrap; + max-width: 944px; + margin: 0 auto; + padding: 50px 0; +} + +.catalog__card { + display: flex; + justify-content: center; + align-items: center; + box-sizing: border-box; + width: 200px; + height: 300px; + border: 1px solid #ccc; + border-radius: 5px; + margin-bottom: 48px; + transition: transform 300ms, color 300ms; +} + +.catalog__card:hover { + transform: scale(120%); + color: #34568b; +} + +.catalog__card:not(:nth-child(4n)) { + margin-right: 48px; +} + +/*# sourceMappingURL=main.css.map */ diff --git a/src/styles/main.css.map b/src/styles/main.css.map new file mode 100644 index 000000000..a3739dffe --- /dev/null +++ b/src/styles/main.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["blocks/page.scss","blocks/header.scss","blocks/catalog.scss"],"names":[],"mappings":"AAAA;EACE;;AAEA;EACE;;;ACJJ;EACE;EACA;EACA;EACA;EAEA;EACA;EAEA;;AAEA;EACE;;;AAKF;EACE;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAEA;EACE;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AC3CN;EACE;EACA;EAEA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAGF;EACE","file":"main.css"} \ No newline at end of file