css: Use SCSS nesting for .portico-header .dropdown ul in portico.scss.

This commit is contained in:
Siddharth Varshney
2020-03-25 05:04:35 +05:30
committed by Tim Abbott
parent 6f1def6a29
commit 0ccb3a3d02

View File

@@ -603,59 +603,54 @@ input.text-error {
border-radius: 4px;
border: 1px solid hsl(0, 0%, 87%);
box-shadow: 0px 2px 5px hsla(0, 0%, 0%, 0.1);
&::before {
content: "\25B2";
position: absolute;
top: -4px;
right: 9px;
font-size: 0.5em;
color: hsl(0, 0%, 87%);
line-height: 0;
transform: scale(1.8, 1);
}
li {
display: list-item;
margin: 0;
padding: 3px 10px;
text-align: left;
opacity: 1;
cursor: pointer;
&:hover {
background-color: hsl(190, 10%, 90%);
transition: none;
}
a {
display: block;
margin: 2px 0px;
padding: 0px;
transition: none;
font-size: 0.9em;
font-weight: 400;
color: hsl(0, 0%, 27%);
}
&:hover a {
background-color: transparent;
}
a i {
margin-right: 5px;
}
}
}
.portico-header .dropdown.show ul {
display: block;
}
.portico-header .dropdown ul::before {
content: "\25B2";
position: absolute;
top: -4px;
right: 9px;
font-size: 0.5em;
color: hsl(0, 0%, 87%);
line-height: 0;
transform: scale(1.8, 1);
}
.portico-header .dropdown ul li {
display: list-item;
margin: 0;
padding: 3px 10px;
text-align: left;
opacity: 1;
cursor: pointer;
&:hover {
background-color: hsl(190, 10%, 90%);
transition: none;
}
a {
display: block;
margin: 2px 0px;
padding: 0px;
transition: none;
font-size: 0.9em;
font-weight: 400;
color: hsl(0, 0%, 27%);
}
&:hover a {
background-color: transparent;
}
a i {
margin-right: 5px;
}
}
.portico-header .dropdown-pill {
border: 1px solid hsla(0, 0%, 0%, 0.2);
border-radius: 4px;