Created
December 19, 2018 16:36
-
-
Save iamandrewpeters/c7c43bb1dcd87371f3b5e7ceea6a113b to your computer and use it in GitHub Desktop.
Beaver Builder and Events Cal Layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="[wpbb post:url]"> | |
<div class="home-event-outer date-layout"> | |
<div class="event-left-item"> | |
<div class="event-item-date"> | |
<span>[wpbb post:the_events_calendar_start_date format="j"]</span> | |
</div> | |
<div class="event-item-month"> | |
<span>[wpbb post:the_events_calendar_start_date format="M"]</span> | |
</div> | |
</div> | |
<div class="event-right-item"> | |
<h2 class="event-right-heading">[wpbb post:title]</h2> | |
<p>[wpbb post:excerpt length="15" more="..."]</p> | |
</div> | |
</div> | |
</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.home-event-outer { | |
margin-bottom: 1px; | |
padding-bottom: 0px; | |
height: auto; | |
overflow: hidden; | |
position: relative; | |
border-radius: 5px; | |
} | |
.home-event-left { | |
padding-top: 22px | |
} | |
.event-left-item { | |
position: absolute; | |
top: 0; | |
left: 0; | |
height: 100%; | |
} | |
.event-left-item, .event-right-item { | |
float: left | |
} | |
.event-right-item { | |
height: auto; | |
min-height: 100px; | |
background: #fcfcfc; | |
width: 100%; | |
padding: 1px 15px 15px 115px | |
} | |
.event-item-date, .event-item-month { | |
width: 100px; | |
height: 50%; | |
color: #7f8959; | |
text-align: center; | |
display: table; | |
} | |
.event-right-heading { | |
font-size: 24px; | |
text-transform: uppercase; | |
margin-bottom: 0 | |
} | |
.event-right-item p { | |
font-size: 16px; | |
line-height: 1.2em; | |
color: #333333; | |
} | |
.date-layout .event-item-date { | |
background: #ffffff; | |
} | |
.date-layout .event-item-month { | |
background: #ffffff; | |
} | |
.event-item-date span { | |
font-size: 32px; | |
font-weight: 200; | |
font-style: italic; | |
line-height: 1; | |
height: 100%; | |
display: table-cell; | |
vertical-align: bottom; | |
padding-bottom: 5px | |
} | |
.event-item-month span { | |
font-size: 24px; | |
line-height: 1; | |
font-weight: 400; | |
letter-spacing: 2px; | |
text-transform: uppercase; | |
display: table-cell; | |
vertical-align: top | |
} | |
.home-events-heading span { | |
text-transform: uppercase | |
} | |
.learn-more-link { | |
display: block; | |
color: #117ec2; | |
font-size: 14px; | |
letter-spacing: 1px; | |
background: #f4f4f4; | |
width: 160px; | |
padding: 10px 15px 10px 15px; | |
border-radius: 3px; | |
text-align: center; | |
} | |
.learn-more-link a { | |
display: block; | |
color: #117ec2; | |
text-decoration: none; | |
} | |
.learn-more-link a:hover { | |
display: block; | |
color: #fff; | |
text-decoration: none; | |
} | |
.fa-long-arrow-alt-right { | |
padding-right: 10px; | |
} | |
.learn-more-link:hover { | |
background-color: #117ec2; | |
color: #fff; | |
} | |
/*add hover shadow */ | |
.home-event-outer { | |
transition: box-shadow .7s; | |
} | |
.home-event-outer { | |
box-shadow: 10px 10px 10px 0px rgba(65,65,66,0.3); | |
} | |
.home-event-outer:hover { | |
box-shadow: 8px 8px 20px 0px rgba(65,65,66,0.3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment