Fix problems with option-input component
This commit is contained in:
@@ -38,9 +38,12 @@
|
|||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover,
|
&:hover {
|
||||||
&:focus {
|
|
||||||
border: 1px solid $cBlueHover;
|
border: 1px solid $cBlueHover;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
border: 1px solid $cBlackHover;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -147,15 +147,24 @@
|
|||||||
border: 1px solid $cMainLine;
|
border: 1px solid $cMainLine;
|
||||||
|
|
||||||
&.is-active,
|
&.is-active,
|
||||||
&:hover,
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border: 1px solid $cBlue;
|
border: 1px solid $cBlackHover;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border: 1px solid $cBlueHover;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
border-top-left-radius: 4px;
|
border-top-left-radius: 4px;
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
+ .CDB-OptionInput-item::after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
@@ -167,14 +176,24 @@
|
|||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
|
|
||||||
|
&.is-active::after,
|
||||||
|
&:focus::after,
|
||||||
&:hover::after {
|
&:hover::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: -1px;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 100%;
|
height: calc(100% + 2px);
|
||||||
background-color: $cBlue;
|
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.is-active::after,
|
||||||
|
&:focus::after {
|
||||||
|
background-color: $cBlackHover;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover::after {
|
||||||
|
background-color: $cBlueHover;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -191,9 +210,3 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.CDB-OptionInput-item:first-child .CDB-OptionInput-content {
|
|
||||||
border-bottom-left-radius: 4px;
|
|
||||||
}
|
|
||||||
.CDB-OptionInput-item.is-active > .CDB-OptionInput-content {
|
|
||||||
border-bottom: 1px solid $cMainBg;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user