diff --git a/readme.md b/readme.md index d2eb319ba..3b0b05c21 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://Luk2asz.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/styles/blocks/catalog.scss b/src/styles/blocks/catalog.scss index ffb6b2ccc..555074d60 100644 --- a/src/styles/blocks/catalog.scss +++ b/src/styles/blocks/catalog.scss @@ -17,9 +17,15 @@ border: 1px solid #ccc; border-radius: 5px; margin-bottom: 48px; + transition: color $transition-time, transform $transition-time; &:not(:nth-child(4n)) { margin-right: 48px; } + + &:hover { + transform: scale(1.2); + color: #34568b; + } } } diff --git a/src/styles/blocks/header.scss b/src/styles/blocks/header.scss index 638a10fef..fea987972 100644 --- a/src/styles/blocks/header.scss +++ b/src/styles/blocks/header.scss @@ -26,10 +26,15 @@ color: #060b35; list-style: none; line-height: 60px; + transition: color $transition-time; &:not(:last-child) { margin-right: 20px; } + + &:hover { + color: #00acdc; + } } &__link { diff --git a/src/styles/main.scss b/src/styles/main.scss index 465a8cb4a..0a631cba1 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -1,3 +1,4 @@ +@import "utils/variables.scss"; @import "blocks/page"; @import "blocks/header"; @import "blocks/catalog"; diff --git a/src/styles/utils/variables.scss b/src/styles/utils/variables.scss new file mode 100644 index 000000000..c1fd92ec5 --- /dev/null +++ b/src/styles/utils/variables.scss @@ -0,0 +1 @@ +$transition-time: 0.3s;