<a class="a-event-link" href="">
    <div class="a-event-link__image">
        <figure class="a-image a-image--cover">

            <img src="/img/dv.jpg" alt="Die Delegierten schreiten zur Abstimmung" title="This is a linked image" class="a-image__image a-image__image--fp a-image__image--fp-">

            <figcaption>

            </figcaption>
        </figure>
    </div>
    <h3 class="a-event-link__title">Delegiertenversammlung mit Stargast mit sehr langem Namen</h3>
    <div class="a-event-link__meta">
        <time class="a-event-link__datetime" datetime="2018-08-25 11:00">25. August 2018 – 11:00</time>
        <div class="a-event-link__place">Säulenhalle Zug</div>
    </div>
</a>
<a class="a-event-link" href="{{link}}">
	<div class="a-event-link__image">
		{{> @a-image image }}
	</div>
	<h3 class="a-event-link__title">{{title}}</h3>
	<div class="a-event-link__meta">
		<time class="a-event-link__datetime" datetime="{{timestamp}}">{{datetime}}</time>
		<div class="a-event-link__place">{{place}}</div>
	</div>
</a>
  • Content:
    .a-event-link {
    	@include clean-link;
    
    	display: grid;
    	grid-template-columns: 1fr;
    	grid-column-gap: 12px;
    	@include fluid-props(padding-top padding-bottom, $fluid-min, $fluid-max, 18px, 22px);
    
    	@include media($size-tiny) {
    		grid-template-columns: 80px 1fr;
    	}
    
    	@include media($_DESKTOP) {
    		grid-template-columns: 148px 1fr;
    		grid-column-gap: 32px;
    	}
    
    	@include only_ie10_above {
    		display: flex;
    		flex-direction: row;
    		flex-wrap: wrap;
    	}
    
    	&__image {
    		width: 100%;
    		height: 80px;
    		background-size: cover;
    		background-position: center center;
    		grid-column: 1 / 2;
    		grid-row: 1 / 3;
    		display: none;
    
    		@include media($size-tiny) {
    			display: block;
    		}
    
    		@include media($_DESKTOP) {
    			height: 94px;
    		}
    
    		@include only_ie10_above {
    			width: 148px;
    			margin-right: 32px;
    		}
    	}
    
    	&__title {
    		margin: 0;
    		align-self: start;
    		color: $color-text;
    		font-size: 1rem;
    		hyphens: auto;
    
    		@include media($_MOBILE) {
    			position: relative;
    			padding-right: 2em;
    
    			&:after {
    				content: "";
    				width: 0.6em;
    				height: 0.6em;
    				border-top: 0.1666666667em solid $color-primary; // 2/12
    				border-right: 0.1666666667em solid $color-primary; // 2/12
    				transform: translateX(-0.2em) translateY(-50%) rotate(45deg);
    				position: absolute;
    				right: 0;
    				top: 50%;
    
    				@include high-contrast {
    					border-color: $color-primary-dark;
    				}
    			}
    		}
    
    		@include only_ie10_above {
    			width: calc(100% - 180px);
    			display: block;
    		}
    	}
    
    	&__meta {
    		font-size: 0.875rem;
    		line-height: 1.4em;
    		align-self: end;
    		margin-top: 0.8571428571em;
    
    		@include only_ie10_above {
    			margin-left: 180px;
    			margin-top: -32px;
    		}
    	}
    
    	&__datetime {
    		display: inline-block;
    		margin-right: 0.75em;
    	}
    
    	&__place {
    		display: inline-block;
    
    		&:before {
    			content: "\25A0";
    			color: $color-secondary;
    			margin-right: 0.85em;
    			display: inline-block;
    			transform: translateY(-0.1em) rotate(-5deg);
    			font-size: 0.9em;
    			-webkit-text-size-adjust: 50%;
    		}
    	}
    }
    
  • URL: /components/raw/a-event-link/_a-event-link.scss
  • Filesystem Path: styleguide/src/components/atoms/a-event-link/_a-event-link.scss
  • Size: 2 KB
{
  "title": "Delegiertenversammlung mit Stargast mit sehr langem Namen",
  "timestamp": "2018-08-25 11:00",
  "datetime": "25. August 2018 – 11:00",
  "place": "Säulenhalle Zug",
  "link-url": "#",
  "image": {
    "image-src": "/img/dv.jpg",
    "alt": "Die Delegierten schreiten zur Abstimmung",
    "title": "This is a linked image"
  }
}

No notes defined.