-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ #4 - refactor: refactor previous components sass files to use nest…
…ed syntax for BEM elements
- Loading branch information
1 parent
30b240b
commit 8a848f2
Showing
4 changed files
with
77 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
.mykn-logo .mykn-logo__image { | ||
width: 100%; | ||
object-fit: contain; | ||
max-width: 155px; | ||
overflow: visible; | ||
} | ||
.mykn-logo { | ||
&__image { | ||
width: 100%; | ||
object-fit: contain; | ||
max-width: 155px; | ||
overflow: visible; | ||
} | ||
|
||
.mykn-logo .mykn-logo__handle { | ||
transition: transform var(--animation-duration) var(--animation-timing-function); | ||
} | ||
& &__handle { | ||
transition: transform var(--animation-duration) var(--animation-timing-function); | ||
} | ||
|
||
.mykn-logo[href]:hover .mykn-logo__handle--left, | ||
.mykn-logo[href]:focus .mykn-logo__handle--left { | ||
transform: translateX(-2px); | ||
} | ||
&[href]:hover &__handle--left, | ||
&[href]:focus &__handle--left { | ||
transform: translateX(-2px); | ||
} | ||
|
||
.mykn-logo[href]:active .mykn-logo__handle--left { | ||
transform: translateX(2px); | ||
} | ||
&[href]:active &__handle--left { | ||
transform: translateX(2px); | ||
} | ||
|
||
.mykn-logo[href]:hover .mykn-logo__handle--right, | ||
.mykn-logo[href]:focus .mykn-logo__handle--right { | ||
transform: translateX(2px); | ||
} | ||
&[href]:hover &__handle--right, | ||
&[href]:focus &__handle--right { | ||
transform: translateX(2px); | ||
} | ||
|
||
.mykn-logo[href]:active .mykn-logo__handle--right { | ||
transform: translateX(-2px); | ||
&[href]:active &__handle--right { | ||
transform: translateX(-2px); | ||
} | ||
} |