[Focus]focus-within 관련 focus추가.

- :focus-within 에 :focus추가건.
This commit is contained in:
junghoon86.park
2024-02-14 10:26:04 +09:00
parent 44846eca8d
commit 339ba96f9f
21 changed files with 48 additions and 24 deletions

View File

@@ -34,7 +34,8 @@
} }
} }
&:focus-within { &:focus-within,
&:focus {
background-color: @PRIMARY_COLOR_RED; background-color: @PRIMARY_COLOR_RED;
border-color: @PRIMARY_COLOR_RED; border-color: @PRIMARY_COLOR_RED;

View File

@@ -64,7 +64,8 @@
> div { > div {
padding: 0 15px !important; padding: 0 15px !important;
&:focus-within { &:focus-within,
&:focus {
background-color: var( background-color: var(
--list-item-focus-background-color --list-item-focus-background-color
) !important; ) !important;

View File

@@ -16,7 +16,8 @@
width: 47px; width: 47px;
height: 92px; height: 92px;
&:focus-within { &:focus-within,
&:focus {
background-position: center bottom; background-position: center bottom;
transform: scale(1.2); transform: scale(1.2);
} }
@@ -29,7 +30,8 @@
width: 47px; width: 47px;
height: 92px; height: 92px;
&:focus-within { &:focus-within,
&:focus {
background-position: center bottom; background-position: center bottom;
transform: scale(1.2); transform: scale(1.2);
} }

View File

@@ -17,7 +17,8 @@
width: 100% !important; width: 100% !important;
&:focus-within, &:focus-within,
&:hover { &:hover,
&:focus {
box-shadow: 0 0 0 2px #fefefe inset; box-shadow: 0 0 0 2px #fefefe inset;
border: 5px solid @PRIMARY_COLOR_RED; border: 5px solid @PRIMARY_COLOR_RED;
} }
@@ -53,7 +54,8 @@
background-image: url("../../../assets/searchpanel/ico_search_submit.png"); background-image: url("../../../assets/searchpanel/ico_search_submit.png");
&:focus-within, &:focus-within,
&:hover { &:hover,
&:focus {
width: 43px; width: 43px;
height: 43px; height: 43px;
transform: translateY(-50%) scale(1.1); transform: translateY(-50%) scale(1.1);

View File

@@ -12,7 +12,8 @@
background-image: url("../../../assets/button/120x120/btn-top-nor.svg"); background-image: url("../../../assets/button/120x120/btn-top-nor.svg");
/* focuesd */ /* focuesd */
&:focus-within { &:focus-within,
&:focus {
background-image: url("../../../assets/button/120x120/btn-top-foc.svg"); background-image: url("../../../assets/button/120x120/btn-top-foc.svg");
} }
} }

View File

@@ -25,7 +25,8 @@
height: 100%; height: 100%;
} }
&:focus-within { &:focus-within,
&:focus {
outline: 4px solid @PRIMARY_COLOR_RED; outline: 4px solid @PRIMARY_COLOR_RED;
outline-offset: -3px; outline-offset: -3px;
box-shadow: inset 0 0 0 4px @PRIMARY_COLOR_RED, box-shadow: inset 0 0 0 4px @PRIMARY_COLOR_RED,

View File

@@ -64,7 +64,8 @@
} }
/* focused */ /* focused */
&:focus-within { &:focus-within,
&:focus {
&::after { &::after {
.focused(@borderRadius: 12px); .focused(@borderRadius: 12px);
} }

View File

@@ -33,7 +33,8 @@
} }
/* focused */ /* focused */
&:focus-within { &:focus-within,
&:focus {
border-radius: 100%; border-radius: 100%;
.focusDropShadow(); .focusDropShadow();

View File

@@ -161,7 +161,8 @@
} }
/* focused */ /* focused */
&:focus-within { &:focus-within,
&:focus {
&::after { &::after {
.focused(@boxShadow:50px, @borderRadius:12px); .focused(@boxShadow:50px, @borderRadius:12px);
} }

View File

@@ -62,7 +62,8 @@
} }
/* normal focused */ /* normal focused */
&:focus-within { &:focus-within,
&:focus {
&::after { &::after {
.focused(@boxShadow:50px, @borderRadius:12px); .focused(@boxShadow:50px, @borderRadius:12px);
} }

View File

@@ -98,7 +98,8 @@
background-image: url("../../../../assets/button/42x42/btn-prev-thumb-nor.svg"); background-image: url("../../../../assets/button/42x42/btn-prev-thumb-nor.svg");
background-size: 42px 42px; background-size: 42px 42px;
background-repeat: no-repeat; background-repeat: no-repeat;
&:focus-within { &:focus-within,
&:focus {
background-image: url("../../../../assets/button/42x42/btn-prev-thumb-foc.svg"); background-image: url("../../../../assets/button/42x42/btn-prev-thumb-foc.svg");
} }
} }
@@ -112,7 +113,8 @@
background-image: url("../../../../assets/button/42x42/btn-next-thumb-nor.svg"); background-image: url("../../../../assets/button/42x42/btn-next-thumb-nor.svg");
background-size: 42px 42px; background-size: 42px 42px;
background-repeat: no-repeat; background-repeat: no-repeat;
&:focus-within { &:focus-within,
&:focus {
background-image: url("../../../../assets/button/42x42/btn-next-thumb-foc.svg"); background-image: url("../../../../assets/button/42x42/btn-next-thumb-foc.svg");
} }
} }

View File

@@ -73,7 +73,8 @@
} }
} }
/* focused */ /* focused */
&:focus-within { &:focus-within,
&:focus {
border: solid 1px @PRIMARY_COLOR_RED; border: solid 1px @PRIMARY_COLOR_RED;
box-shadow: inset 0 0 0 4px @PRIMARY_COLOR_RED, box-shadow: inset 0 0 0 4px @PRIMARY_COLOR_RED,
0 0 50px 0 rgba(0, 0, 0, 0.5); 0 0 50px 0 rgba(0, 0, 0, 0.5);

View File

@@ -37,7 +37,8 @@
display: flex; display: flex;
> li { > li {
position: relative; position: relative;
&:focus-within { &:focus-within,
&:focus {
&::after { &::after {
.focused(); .focused();
} }

View File

@@ -3,7 +3,8 @@
.fullImg { .fullImg {
position: relative; position: relative;
&:focus-within { &:focus-within,
&:focus {
&::after { &::after {
.focused(); .focused();
} }

View File

@@ -3,7 +3,8 @@
.fullImg { .fullImg {
position: relative; position: relative;
&:focus-within { &:focus-within,
&:focus {
&::after { &::after {
.focused(); .focused();
} }

View File

@@ -8,7 +8,8 @@
> div { > div {
width: 1414px; width: 1414px;
position: relative; position: relative;
&:focus-within { &:focus-within,
&:focus {
&::after { &::after {
.focused(); .focused();
} }

View File

@@ -12,7 +12,8 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&:focus-within { &:focus-within,
&:focus {
&::after { &::after {
.focused(); .focused();
} }

View File

@@ -40,7 +40,8 @@
overflow: unset; overflow: unset;
} }
&:focus-within { &:focus-within,
&:focus {
box-shadow: inset 0 0 0 4px @PRIMARY_COLOR_RED, box-shadow: inset 0 0 0 4px @PRIMARY_COLOR_RED,
0 0 50px 0 rgba(11, 8, 8, 0.5); 0 0 50px 0 rgba(11, 8, 8, 0.5);
color: @PRIMARY_COLOR_RED; color: @PRIMARY_COLOR_RED;

View File

@@ -51,7 +51,8 @@
} }
} }
&:focus-within { &:focus-within,
&:focus {
border: 4px solid @PRIMARY_COLOR_RED; border: 4px solid @PRIMARY_COLOR_RED;
box-shadow: 0 0 50px 0 rgba(11, 8, 8, 0.5); box-shadow: 0 0 50px 0 rgba(11, 8, 8, 0.5);
} }

View File

@@ -41,7 +41,8 @@
padding: 0 15px; padding: 0 15px;
} }
&:focus-within { &:focus-within,
&:focus {
border: 4px solid @PRIMARY_COLOR_RED; border: 4px solid @PRIMARY_COLOR_RED;
background-color: @COLOR_WHITE; background-color: @COLOR_WHITE;
box-shadow: 0 0 50px 0 rgba(11, 8, 8, 0.5); box-shadow: 0 0 50px 0 rgba(11, 8, 8, 0.5);

View File

@@ -35,7 +35,8 @@
} }
} }
&:focus-within { &:focus-within,
&:focus {
background-position: center bottom; background-position: center bottom;
border: 4px solid @PRIMARY_COLOR_RED; border: 4px solid @PRIMARY_COLOR_RED;
box-shadow: 0 0 50px 0 rgba(11, 8, 8, 0.5); box-shadow: 0 0 50px 0 rgba(11, 8, 8, 0.5);