Adapating Organisms / LinkList w Icons

This commit is contained in:
reverend 2021-10-24 12:32:32 +02:00
parent e3688ed070
commit b264b3a559
10 changed files with 14217 additions and 8381 deletions

View File

@ -1,6 +1,6 @@
//@import 'textSection/textSection'; @import 'textSection/textSection';
//@import 'placeTeaser/placeTeaser'; @import 'placeTeaser/placeTeaser';
//@import 'tagList/tagList'; @import 'tagList/tagList';
//@import 'navigation/navigation'; @import 'navigation/navigation';
//@import 'messageList/messageList'; @import 'messageList/messageList';
//@import 'userInfo/userInfo'; @import 'userInfo/userInfo';

View File

@ -1,136 +1,16 @@
.LP-PlaceTeaser { .LP-PlaceTeaser {
width: 100%; @include RV-Turner(200px, 280px);
@include RV-Turner--auto;
.LP-PlaceTeaser__Image {
width: 100%;
overflow: hidden;
.LP-Image {
max-width: unset;
max-height: unset;
object-fit: cover;
}
}
.LP-PlaceTeaser__Meta {
display: flex;
flex-wrap: wrap;
gap: $-spacing-small;
align-items: center;
justify-content: space-between;
padding: 5px;
padding-bottom: 10px;
padding-top: 10px;
.LP-Paragraph {
font-family: $-primary-sans-serif-font;
padding: 0;
margin: 0;
margin-top: 5px;
font-size: 1.3rem;
}
.LP-Headline {
font-family: $-primary-sans-serif-font;
color: $-grey;
font-size: 2rem;
padding: 0px;
margin: 0px;
}
.LP-Icon {
height: 2em;
width: 2em;
}
}
.LP-PlaceTeaser__Description {
font-family: $-primary-sans-serif-font;
color: $-grey;
order: 3;
flex-basis: 100%;
.LP-Paragraph {
font-size: 22px;
}
}
}
@media(min-width: $-viewport-small) {
.LP-PlaceTeaser {
width: 280px;
&__Image { &__Image {
width: 280px; @include RV-Turner__Base;
height: 165px;
.LP-Image {
height: 100%;
} }
} }
.LP-PlaceTeaser--extended { &__Meta {
display: flex; @include RV-Turner__Content;
flex-direction: row;
width: auto;
padding-right: 25px;
height: 165px;
.LP-PlaceTeaser__Meta {
margin: 0;
padding-left: 25px;
display: flex;
flex-wrap: nowrap;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
gap: unset;
.LP-Headline,
.LP-Paragraph {
font-size: unset;
}
.LP-PlaceTeaser__Info {
.LP-Headline {
font-size: 28px;
}
}
.LP-PlaceTeaser__Icons {
margin-top: auto;
ul {
padding: 0;
margin: 0;
}
}
.LP-Icon {
height: 20px;
width: 20px;
}
}
.LP-PlaceTeaser__Description {
display: block;
max-height: 55px;
overflow: hidden;
order: unset;
.LP-Paragraph {
font-size: unset;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
}
}
.LP-PlaceTeaser__Image {
height: 165px;
width: 280px;
flex-shrink: 0;
flex-grow: 0;
}
} }
} }

View File

@ -3,8 +3,10 @@
<img class="LP-Image" src="{{image}}"/> <img class="LP-Image" src="{{image}}"/>
</div> </div>
<div class="LP-PlaceTeaser__Meta"> <div class="LP-PlaceTeaser__Meta">
<span class="LP-PlaceTeaser__Title">
{{> @headline headline=title modifier='--teaser'}}
</span>
<div class="LP-PlaceTeaser__Info"> <div class="LP-PlaceTeaser__Info">
<span class="LP-PlaceTeaser__Title">{{> @headline headline=title modifier='--teaser'}}</span>
<span class="LP-PlaceTeaser__Detail" >{{> @paragraph text=location}}</span> <span class="LP-PlaceTeaser__Detail" >{{> @paragraph text=location}}</span>
</div> </div>
<div class="LP-PlaceTeaser__Description"> <div class="LP-PlaceTeaser__Description">

View File

@ -1,7 +1,7 @@
//@import 'header/header'; @import 'header/header';
//@import 'placeGrid/placeGrid'; @import 'placeGrid/placeGrid';
//@import 'placeList/placeList'; @import 'placeList/placeList';
//@import 'linkList/linkList'; @import 'linkList/linkList';
//@import 'footer/footer'; //@import 'footer/footer';
//@import 'form/form'; //@import 'form/form';
//@import 'imageGrid/imageGrid'; //@import 'imageGrid/imageGrid';

View File

@ -1,24 +1,28 @@
.LP-LinkList{ .LP-LinkList{
@include RV-Grid; @include RV-Grid;
@include RV-Grid--autoWidth;
--itemMinWidth: 350px;
--itemHeight: 3em;
align-items: center; align-items: center;
--icon-color: #{$-light-brown};
.RV-Iconized__Icon {
font-size: calc(var(--itemHeight) * .75);
line-height: 1em;
color: var(--icon-color);
transition: color .1s;
}
.LP-LinkList__Item{ .LP-LinkList__Item{
border-left: 1px solid $-light-brown; border-left: 1px solid $-light-brown;
width: calc(100% - 1px); transition: background .1s;
overflow: hidden; height: 100%;
transition: background .3s, color .5s;
@include RV-Alignment--verticalCenter; @include RV-Alignment--verticalCenter;
@include RV-Flex;
.LP-LinkList__ItemHover {
opacity: 0.5;
@include RV-Alignment--right;
@include RV-FlexRow__Item--fixedSize(min-content);
}
&:hover { &:hover {
background-color: $-almost-white; background-color: $-almost-white;
--icon-color: #{$-grey};
.LP-LinkList__ItemHover { .LP-LinkList__ItemHover {
opacity: 1; opacity: 1;
@ -27,8 +31,9 @@
} }
.LP-Link { .LP-Link {
@include RV-FlexRow__Item; @include RV-Flex__Item;
@include RV-Spacing__Inner--small; padding-left: $-spacing-medium;
color: $-grey;
} }
.LP-LinkAdd{ .LP-LinkAdd{

View File

@ -1,44 +1,66 @@
<div class="LP-LinkList"> <ul class="LP-LinkList">
<ul class="LP-LinkList__Container"> <li class="LP-LinkList__Item"><a href="#" class="LP-Link">
<li class="LP-LinkList__Item"><a href="#" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li> <span class="LP-Text RV-Iconized">
<li class="LP-LinkList__Item"><a href="#" class="LP-Link"><span class="LP-Text">OSM</span></a></li> <span class="RV-Iconized__Text">
<li class="LP-LinkList__Item"><a href="#" class="LP-Link"><span class="LP-Text">TIM Online</span></a></li> OSM
<li class="LP-LinkList__Item"><a href="#" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li> </span>
<li class="LP-LinkList__Item"> <span class="RV-Iconized__Icon RV-Iconized__Icon--left">
<a href="#" class="LP-Link"><span class="LP-Text">OSM</span></a> <i class="mdi mdi-map-outline"></i>
<a href="google.com" class="LP-Link LP-LinkList__ItemHover"> </span>
<div class="RV-Iconized__Container RV-Iconized__Container--small"> </span></a>
<svg class="RV-Iconized__Icon" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" </li>
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512.001 512.001" <li class="LP-LinkList__Item"><a href="#" class="LP-Link">
style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve"> <span class="LP-Text RV-Iconized">
<g> <span class="RV-Iconized__Text">
<g> TIM Online
<path d="M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717 </span>
L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859 <span class="RV-Iconized__Icon RV-Iconized__Icon--left">
c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287 <i class="mdi mdi-map-outline"></i>
l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285 </span>
L284.286,256.002z" /> </span></a>
</g> </li>
</g> <li class="LP-LinkList__Item"><a href="#" class="LP-Link">
</svg> <span class="LP-Text RV-Iconized">
</div> <span class="RV-Iconized__Text">
</a> Google Maps
</span>
<span class="RV-Iconized__Icon RV-Iconized__Icon--left">
<i class="mdi mdi-map-outline"></i>
</span>
</span></a>
</li>
<li class="LP-LinkList__Item"><a href="#" class="LP-Link">
<span class="LP-Text RV-Iconized">
<span class="RV-Iconized__Text">
YouTube Link
</span>
<span class="RV-Iconized__Icon RV-Iconized__Icon--left">
<i class="mdi mdi-youtube"></i>
</span>
</span></a>
</li>
<li class="LP-LinkList__Item"><a href="#" class="LP-Link">
<span class="LP-Text RV-Iconized">
<span class="RV-Iconized__Text">
Twitter Link
</span>
<span class="RV-Iconized__Icon RV-Iconized__Icon--left">
<i class="mdi mdi-twitter"></i>
</span>
</span></a>
</li> </li>
<li class="LP-LinkList__Item"> <li class="LP-LinkList__Item">
<input type="checkbox" id="checkbox123" class="LP-LinkAdd__Trigger" /> <input type="checkbox" id="checkbox123" class="LP-LinkAdd__Trigger" />
<label for="checkbox123" class="LP-LinkAdd__TriggerLabel"> <label for="checkbox123" class="LP-LinkAdd__TriggerLabel">
<a class="LP-Link"> <a href="#" class="LP-Link">
<div class="RV-Iconized__Container RV-Iconized__Container--small"> <span class="LP-Text RV-Iconized">
<svg class="RV-Iconized__Icon" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" <span class="RV-Iconized__Text">
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" Link Hinzufügen
xml:space="preserve"> </span>
<g> <span class="RV-Iconized__Icon RV-Iconized__Icon--left">
<path d="M492,236H276V20c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20v216H20c-11.046,0-20,8.954-20,20s8.954,20,20,20h216 <i class="mdi mdi-plus"></i>
v216c0,11.046,8.954,20,20,20s20-8.954,20-20V276h216c11.046,0,20-8.954,20-20C512,244.954,503.046,236,492,236z" /> </span>
</g> </span>
</svg>
<span class="RV-Iconized__Text">Link hinzufügen</span>
</div>
</a> </a>
</label> </label>
<div class="LP-LinkAdd"> <div class="LP-LinkAdd">
@ -62,5 +84,4 @@
</span> </span>
</div> </div>
</li> </li>
</ul> </ul>
</div>

View File

@ -3,12 +3,17 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style-type: none; list-style-type: none;
display: flex; @include RV-Grid;
flex-direction: row; @include RV-Grid--autoWidth;
flex-wrap: wrap; --itemHeight: 200px;
--itemMinWidth: 280px;
--gap: 15px;
padding: 15px;
justify-content: center;
.LP-PlaceGrid__Item{ .LP-PlaceGrid__Item{
margin: 18px; @include RV-Grid__Item;
} }
.LP-Link{ .LP-Link{

View File

@ -27,7 +27,6 @@
margin: 18px 0; margin: 18px 0;
@media (max-width: $-viewport-medium) { @media (max-width: $-viewport-medium) {
width: 100%; width: 100%;
margin-bottom: $-spacing-large;
} }
} }
} }

File diff suppressed because it is too large Load Diff

1
public/main.css.map Normal file

File diff suppressed because one or more lines are too long