lostplaces-frontend/components/03_Organisms/linkList/_linkList.scss
2020-08-21 10:51:07 +02:00

81 lines
1.7 KiB
SCSS

.LP-LinkList__List{
list-style-type: none;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
margin: 0;
padding: 0;
.LP-LinkList__Item{
border-left: 1px solid $-light-brown;
width: calc(100% - 1px);
margin-top: 12px;
position: relative;
&--add{
input[type=checkbox]:checked ~ .LP-LinkList__Add{
display: block;
}
.LP-LinkList__Add{
position: absolute;
top: 7px;
display: none;
.LP-Form__Fieldset{
min-width:unset;
}
.LP-Form{
display: block;
min-width: 0px;
}
}
}
.LP-Link{
$-link-padding: 1em;
padding: $-link-padding 0 $-link-padding $-link-padding;
width: calc(100% - 1em);
display: block;
color: $-grey;
&--iconized{
padding-top: 0;
padding-bottom: 1.1em;
&:hover{
background-color: #ccc !important;
}
.LP-Text{
padding-top: .1em;
}
}
&:hover{
background-color: $-almost-white;
color: $-wine-red;
}
.LP-Text{
color: inherit;
}
}
}
}
.LP-Link__Icon{
width: 2em;
height: 2em;
fill: $-wine-red;
line-height: 5em;
}
.LP-LinkList__Item .LP-Link__Icon{
position: relative;
top: .7em;
margin-right: .6em;
}