lostplaces-frontend/components/03_Organisms/linkList/_linkList.scss

90 lines
1.8 KiB
SCSS
Raw Normal View History

.LP-LinkList__List{
list-style-type: none;
display: grid;
2020-08-02 23:02:56 +02:00
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
margin: 0;
padding: 0;
.LP-LinkList__Item{
2020-08-01 10:27:23 +02:00
border-left: 1px solid $-light-brown;
2020-08-09 23:43:57 +02:00
width: calc(100% - 1px);
margin-top: 12px;
2020-08-21 10:51:07 +02:00
position: relative;
&--add{
2020-08-21 12:08:51 +02:00
.LP-LinkList__AddTrigger{
display: none;
&:checked{
& ~ .LP-LinkList__AddPlaceHolder{
visibility: hidden;
}
& ~ .LP-LinkList__Add{
display: block;
}
}
2020-08-21 10:51:07 +02:00
}
.LP-LinkList__Add{
position: absolute;
2020-08-21 12:08:51 +02:00
top: 3px;
display: none;
width: 100%;
2020-08-21 10:51:07 +02:00
.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;
2020-08-05 18:22:16 +02:00
width: calc(100% - 1em);
display: block;
2020-08-01 10:27:23 +02:00
color: $-grey;
&--iconized{
padding-top: 0;
padding-bottom: 1.1em;
&:hover{
background-color: #ccc !important;
}
.LP-Text{
padding-top: .1em;
}
}
&:hover{
2020-08-01 10:27:23 +02:00
background-color: $-almost-white;
color: $-wine-red;
}
.LP-Text{
color: inherit;
}
}
}
}
.LP-Link__Icon{
width: 2em;
height: 2em;
2020-08-01 10:27:23 +02:00
fill: $-wine-red;
line-height: 5em;
}
.LP-LinkList__Item .LP-Link__Icon{
position: relative;
top: .7em;
margin-right: .6em;
}