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 'placeTeaser/placeTeaser';
//@import 'tagList/tagList';
//@import 'navigation/navigation';
//@import 'messageList/messageList';
//@import 'userInfo/userInfo';
@import 'textSection/textSection';
@import 'placeTeaser/placeTeaser';
@import 'tagList/tagList';
@import 'navigation/navigation';
@import 'messageList/messageList';
@import 'userInfo/userInfo';

View File

@ -1,136 +1,16 @@
.LP-PlaceTeaser {
width: 100%;
.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 {
width: 280px;
height: 165px;
}
}
.LP-PlaceTeaser--extended {
display: flex;
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;
}
}
}
@include RV-Turner(200px, 280px);
@include RV-Turner--auto;
&__Image {
@include RV-Turner__Base;
.LP-Image {
height: 100%;
}
}
&__Meta {
@include RV-Turner__Content;
}
}

View File

@ -1,10 +1,12 @@
<article class="LP-PlaceTeaser LP-PlaceTeaser{{modifier}}">
<div class="LP-PlaceTeaser__Image">
<img class="LP-Image" src="{{image}}"/>
<img class="LP-Image" src="{{image}}"/>
</div>
<div class="LP-PlaceTeaser__Meta">
<span class="LP-PlaceTeaser__Title">
{{> @headline headline=title modifier='--teaser'}}
</span>
<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>
</div>
<div class="LP-PlaceTeaser__Description">

View File

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

View File

@ -1,24 +1,28 @@
.LP-LinkList{
@include RV-Grid;
@include RV-Grid--autoWidth;
--itemMinWidth: 350px;
--itemHeight: 3em;
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{
border-left: 1px solid $-light-brown;
width: calc(100% - 1px);
overflow: hidden;
transition: background .3s, color .5s;
transition: background .1s;
height: 100%;
@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 {
background-color: $-almost-white;
--icon-color: #{$-grey};
.LP-LinkList__ItemHover {
opacity: 1;
@ -27,8 +31,9 @@
}
.LP-Link {
@include RV-FlexRow__Item;
@include RV-Spacing__Inner--small;
@include RV-Flex__Item;
padding-left: $-spacing-medium;
color: $-grey;
}
.LP-LinkAdd{

View File

@ -1,66 +1,87 @@
<div class="LP-LinkList">
<ul class="LP-LinkList__Container">
<li class="LP-LinkList__Item"><a href="#" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li>
<li class="LP-LinkList__Item"><a href="#" class="LP-Link"><span class="LP-Text">OSM</span></a></li>
<li class="LP-LinkList__Item"><a href="#" class="LP-Link"><span class="LP-Text">TIM Online</span></a></li>
<li class="LP-LinkList__Item"><a href="#" class="LP-Link"><span class="LP-Text">Google Maps</span></a></li>
<li class="LP-LinkList__Item">
<a href="#" class="LP-Link"><span class="LP-Text">OSM</span></a>
<a href="google.com" class="LP-Link LP-LinkList__ItemHover">
<div class="RV-Iconized__Container RV-Iconized__Container--small">
<svg class="RV-Iconized__Icon" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512.001 512.001"
style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve">
<g>
<g>
<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
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
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
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
L284.286,256.002z" />
</g>
</g>
</svg>
</div>
<ul class="LP-LinkList">
<li class="LP-LinkList__Item"><a href="#" class="LP-Link">
<span class="LP-Text RV-Iconized">
<span class="RV-Iconized__Text">
OSM
</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">
TIM Online
</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">
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 class="LP-LinkList__Item">
<input type="checkbox" id="checkbox123" class="LP-LinkAdd__Trigger" />
<label for="checkbox123" class="LP-LinkAdd__TriggerLabel">
<a href="#" class="LP-Link">
<span class="LP-Text RV-Iconized">
<span class="RV-Iconized__Text">
Link Hinzufügen
</span>
<span class="RV-Iconized__Icon RV-Iconized__Icon--left">
<i class="mdi mdi-plus"></i>
</span>
</span>
</a>
</li>
<li class="LP-LinkList__Item">
<input type="checkbox" id="checkbox123" class="LP-LinkAdd__Trigger" />
<label for="checkbox123" class="LP-LinkAdd__TriggerLabel">
<a class="LP-Link">
<div class="RV-Iconized__Container RV-Iconized__Container--small">
<svg class="RV-Iconized__Icon" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512"
xml:space="preserve">
<g>
<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
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" />
</g>
</svg>
<span class="RV-Iconized__Text">Link hinzufügen</span>
</div>
</a>
</label>
<div class="LP-LinkAdd">
<span class="LP-LinkAdd__Container">
<form class="LP-Form LP-Form--inline">
<fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Basic data</legend>
<div class="LP-Form__Composition LP-Form__Composition--buttons">
<div class="LP-Form__Field LP-Form__Button LP-Input">
<input type="submit" class="LP-Button" value="Submit" />
</div>
<div class="LP-Form__Field LP-Form__Field--narrower">
<div class="LP-Input">
<label for="input123" class="LP-Input__Label">Link URL</label>
<input type="text" id="input123" class="LP-Input__Field" />
</div>
</label>
<div class="LP-LinkAdd">
<span class="LP-LinkAdd__Container">
<form class="LP-Form LP-Form--inline">
<fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Basic data</legend>
<div class="LP-Form__Composition LP-Form__Composition--buttons">
<div class="LP-Form__Field LP-Form__Button LP-Input">
<input type="submit" class="LP-Button" value="Submit" />
</div>
<div class="LP-Form__Field LP-Form__Field--narrower">
<div class="LP-Input">
<label for="input123" class="LP-Input__Label">Link URL</label>
<input type="text" id="input123" class="LP-Input__Field" />
</div>
</div>
</fieldset>
</form>
</span>
</div>
</li>
</ul>
</div>
</div>
</fieldset>
</form>
</span>
</div>
</li>
</ul>

View File

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

View File

@ -27,7 +27,6 @@
margin: 18px 0;
@media (max-width: $-viewport-medium) {
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