292 lines
7.0 KiB
PHP
292 lines
7.0 KiB
PHP
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
|
|
<style>
|
|
#wrapper {
|
|
width:600px;
|
|
margin:0 auto;
|
|
border-radius:0 0 5px 5px;
|
|
-moz-border-radius:0 0 5px 5px;
|
|
-webkit-border-radius: 0 0 5px 5px;
|
|
background:#fff;
|
|
border:1px solid #ccc;
|
|
padding:25px;
|
|
border-top:none;
|
|
box-shadow:0 0 5px #ccc;
|
|
-moz-box-shadow:0 0 5px #ccc;
|
|
-webkit-box-shadow:0 0 5px #ccc;
|
|
text-align:left;
|
|
}
|
|
#lightbox {
|
|
z-index: 3;
|
|
position:fixed; /* keeps the lightbox window in the current viewport */
|
|
top:0;
|
|
left:0;
|
|
width:100%;
|
|
height:100%;
|
|
background:url(/assets/images/overlay.png) repeat;
|
|
text-align:center;
|
|
}
|
|
#lightbox p {
|
|
text-align:right;
|
|
color:#fff;
|
|
margin-right:20px;
|
|
font-size:12px;
|
|
}
|
|
#lightbox img {
|
|
box-shadow:0 0 25px #111;
|
|
-webkit-box-shadow:0 0 25px #111;
|
|
-moz-box-shadow:0 0 25px #111;
|
|
max-width:940px;
|
|
}
|
|
#lightbox_container {
|
|
/* background:red; */
|
|
position:fixed;
|
|
top:45%;
|
|
left:50%;
|
|
/* bring your own prefixes */
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.card-bg {
|
|
width: 600px;
|
|
height: 600px;
|
|
border-radius: 18px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
.card-bg-gradient-sub {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 18px;
|
|
background: linear-gradient(159.4deg, rgba(0, 0, 0, 0.4) -3.74%, rgba(0, 0, 0, 0) 47.17%);
|
|
}
|
|
|
|
.card-bg-gradient-main {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 40px;
|
|
border-radius: 18px;
|
|
background: linear-gradient(182.6deg, rgba(0, 0, 0, 0) 20.15%, rgba(0, 0, 0, 0.4) 97.96%);
|
|
}
|
|
|
|
.card-header-wrapper {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.card-header-wrapper img {
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.nav-right-icon {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.card-body-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.card-body-wrapper img {
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.card-body-wrapper p {
|
|
text-align: left !important;
|
|
}
|
|
|
|
.card-body-wrapper .slogan {
|
|
margin-bottom: 18px;
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
font-size: 35px !important;
|
|
line-height: 110%;
|
|
letter-spacing: 0.03em;
|
|
color: #FFFFFF !important;
|
|
}
|
|
|
|
.card-body-wrapper .description {
|
|
margin-bottom: 0;
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-size: 25px !important;
|
|
line-height: 34px;
|
|
letter-spacing: 0.03em;
|
|
color: #FFFFFF !important;
|
|
}
|
|
.card-body-wrapper .relative{
|
|
position: relative;
|
|
}
|
|
/* for template: "upper title 600x600 text + image"*/
|
|
.card-template-8 .card-body-wrapper{
|
|
position: unset !important;
|
|
}
|
|
.card-template-8 .slogan{
|
|
position: absolute;
|
|
top: 30px;
|
|
left: 30px;
|
|
font-family: 'Open Sans', sans-serif;
|
|
}
|
|
.nav-right-icon-rocket{
|
|
display: none;
|
|
}
|
|
/* active tip template */
|
|
.card-template-7 .nav-right-icon-rocket{
|
|
display: block;
|
|
position: absolute;
|
|
top: 50%;
|
|
margin-top: -30px;
|
|
right: -30px;
|
|
}
|
|
.card-template-7 .nav-right-icon{
|
|
display: none;
|
|
}
|
|
.card-bg.card-template-7{
|
|
height: auto;
|
|
}
|
|
.card-template-7 .card-header-wrapper{
|
|
display: none;
|
|
}
|
|
/* Tall layout 600 x 750 = 9 */
|
|
.card-template-wrap-9{
|
|
width: 600px;
|
|
height: auto;
|
|
border-radius: 22px;
|
|
background-color: white;
|
|
}
|
|
.card-template-wrap-9 .relative{
|
|
display: none !important;
|
|
}
|
|
.card-template-wrap-9 .relative-bottom{
|
|
position: absolute;
|
|
padding: 10px 14px;
|
|
display: block !important;
|
|
margin-top: -18px;
|
|
background-color: white;
|
|
border-radius: 0 0 18px 18px;
|
|
width: 100%;
|
|
}
|
|
.card-template-wrap-9 .card-body-wrapper .slogan{
|
|
display: none !important;
|
|
}
|
|
.card-template-wrap-9 .relative-bottom .slogan{
|
|
color: #000 !important;
|
|
font-size: 1.8em !important;
|
|
text-align: left !important;
|
|
font-weight: bold !important;
|
|
font-family: 'Open Sans', sans-serif;
|
|
}
|
|
.card-template-wrap-9 .relative-bottom p.description{
|
|
font-size: 1.5em !important;
|
|
color: #000 !important;
|
|
width: 94% !important;
|
|
text-align: justify !important;
|
|
font-family: 'Open Sans', sans-serif;
|
|
}
|
|
.card-template-wrap-9 .relative-bottom .nav-right-icon{
|
|
position: absolute;
|
|
top: 30%;
|
|
right: 14px;
|
|
box-shadow: none !important;
|
|
}
|
|
/* Tall Layout upper title 600x800 text + image = 10 */
|
|
.card-template-wrap-10{
|
|
width: 600px;
|
|
height: auto;
|
|
border-radius: 22px;
|
|
background-color: white;
|
|
}
|
|
.card-template-wrap-10 .relative{
|
|
display: none !important;
|
|
}
|
|
.card-template-wrap-10 .relative-bottom{
|
|
position: absolute;
|
|
padding: 10px 14px;
|
|
display: block !important;
|
|
margin-top: -18px;
|
|
background-color: white;
|
|
border-radius: 0 0 18px 18px;
|
|
width: 100%;
|
|
}
|
|
.card-template-wrap-10 .relative-bottom .slogan{
|
|
display: none;
|
|
}
|
|
.card-template-wrap-10 .relative-bottom p.description{
|
|
font-size: 1.5em !important;
|
|
color: #000 !important;
|
|
width: 94% !important;
|
|
text-align: justify !important;
|
|
font-family: 'Open Sans', sans-serif;
|
|
}
|
|
.card-template-wrap-10 .relative-bottom .nav-right-icon{
|
|
position: absolute;
|
|
top: 30px;
|
|
right: 14px;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
/*1. short layout 600X300 text+image -> title top*/
|
|
.card-template-wrap-1 .card-body-wrapper{
|
|
position: unset !important;
|
|
}
|
|
.card-template-wrap-1 .slogan{
|
|
position: absolute !important;
|
|
top: 20px !important;
|
|
}
|
|
/*2. image only*/
|
|
.card-template-wrap-2 .card-body-wrapper{
|
|
visibility: hidden !important;
|
|
}
|
|
/*3. tall layout image only*/
|
|
.card-template-wrap-3 .card-body-wrapper {
|
|
visibility: hidden !important;
|
|
}
|
|
/*6. default layout image only*/
|
|
.card-template-wrap-6 .card-body-wrapper {
|
|
visibility: hidden !important;
|
|
}
|
|
/* Short Layout 600x300 Solid Color 1 */
|
|
.card-template-wrap-4 .card-bg{
|
|
width: 600px !important;
|
|
height: 300px !important;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
function show_light_box(id) {
|
|
/*
|
|
If the lightbox window HTML already exists in document,
|
|
change the img src to to match the href of whatever link was clicked
|
|
If the lightbox window HTML doesn't exists, create it and insert it.
|
|
(This will only happen the first time around)
|
|
*/
|
|
if ($('#lightbox').length > 0) { // #lightbox exists
|
|
//place href as img src value
|
|
$('#lightbox_container').html($('#'+id).html());
|
|
//show lightbox window - you could use .show('fast') for a transition
|
|
$('#lightbox').show();
|
|
}
|
|
else { //#lightbox does not exist - create and insert (runs 1st time only)
|
|
//create HTML markup for lightbox window
|
|
var lightbox =
|
|
'<div id="lightbox">' +
|
|
'<p>Click to close</p>' +
|
|
'<div id="lightbox_container">' + //insert clicked link's href into img src
|
|
$('#'+id).html()
|
|
'</div>' +
|
|
'</div>';
|
|
//insert lightbox HTML into page
|
|
$('body').append(lightbox);
|
|
//Click anywhere on the page to get rid of lightbox window
|
|
$('#lightbox').on('click', function(){ //must use live, as the lightbox element is inserted into the DOM
|
|
$('#lightbox').hide();
|
|
});
|
|
}
|
|
}
|
|
</script>
|