From 7b00e9f5b5946b819aaefdabc5ef1a5ea650e45d Mon Sep 17 00:00:00 2001 From: Tessa Conway Date: Fri, 8 Jul 2016 16:27:16 +0100 Subject: [PATCH] Updates to make compatible with wordpress theme --- src/swiper.js | 4 ++-- src/templates/cards.tag | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/swiper.js b/src/swiper.js index 6f80ebe..918f45a 100644 --- a/src/swiper.js +++ b/src/swiper.js @@ -10,9 +10,9 @@ module.exports = { } } - var container = document.getElementById('container'); + var container = document.getElementById('opp_container'); var slides = document.getElementsByClassName('swiper-slide'); - var usages = document.getElementsByClassName('usage'); + var usages = document.getElementsByClassName('opp_usage'); var height = window.innerHeight; diff --git a/src/templates/cards.tag b/src/templates/cards.tag index 0763f6f..3c26676 100644 --- a/src/templates/cards.tag +++ b/src/templates/cards.tag @@ -84,17 +84,20 @@ .swiper-slide h1 { margin: 0; - padding:0 0 10px 0; + padding:10px 10px 0; height: 10%; text-align:center; - font-family: 'Lato', sans-serif; font-weight: 400; line-height: 58px; + font-family: 'Lato', sans-serif; + font-weight: 400; + line-height: 1em; } .opp_name{ font-size:20px; position: relative; margin-left: 10px; margin-top:15px; - font-family: 'Signika', sans-serif; line-height: 35px; + font-family: 'Signika', sans-serif; + line-height: 1em; } .opp_usage{ @@ -103,6 +106,7 @@ font-size: 14px; padding:0 20px; height:48%; + line-height:normal; } .opp_details {