From e643d6b5883a16cf6eda80ceb8a0214e802777d2 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 3 Jun 2015 15:21:10 -0400 Subject: [PATCH] :)-x Recipe plugin making me use jquery to change INLINE IMPORTANT css, pffffft. x-:( --- js/app.js | 4 +++- js/custom/pageSetup.js | 4 +++- scss/_plugins.scss | 3 ++- scss/plugins/_recipe.scss | 49 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 scss/plugins/_recipe.scss diff --git a/js/app.js b/js/app.js index 501680c..c371494 100644 --- a/js/app.js +++ b/js/app.js @@ -17,4 +17,6 @@ $(document).ready(function () { $(this).toggleClass('open'); $(this).siblings('ul').toggleClass('open'); }); -}); + $('.wpurp-recipe-ingredient-name a:hover').attr('pointer-events','none'); + $('.wpurp-recipe-ingredient').attr('list-style','none !important'); +}); \ No newline at end of file diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 741d565..d5692bd 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -8,4 +8,6 @@ $(document).ready(function () { $(this).toggleClass('open'); $(this).siblings('ul').toggleClass('open'); }); -}); + $('.wpurp-recipe-ingredient-name a:hover').attr('pointer-events','none'); + $('.wpurp-recipe-ingredient').attr('list-style','none !important'); +}); \ No newline at end of file diff --git a/scss/_plugins.scss b/scss/_plugins.scss index 3b99231..9a28983 100644 --- a/scss/_plugins.scss +++ b/scss/_plugins.scss @@ -1 +1,2 @@ - @import "plugins/nextgen"; \ No newline at end of file + @import "plugins/nextgen"; + @import "plugins/recipe"; \ No newline at end of file diff --git a/scss/plugins/_recipe.scss b/scss/plugins/_recipe.scss new file mode 100644 index 0000000..5e3ba02 --- /dev/null +++ b/scss/plugins/_recipe.scss @@ -0,0 +1,49 @@ +/* NextGen Gallery */ +.ngg-gallery-thumbnail, +.ngg-gallery-thumbnail-box { + float: none !important; +} +.gallery li a img { // without this images will overlap each other at certain widths + display: block; + width: 100%; +} +.ngg-gallery-thumbnail, .ngg-gallery-thumbnail-box { + float: none !important; +} +.ngg-album-compact h4 .ngg-album-desc { + height: auto !important; + font-family: $font-family-serif; + font-weight: 400; +} +.ngg-album-compact .album-meta-wrapper h4 a { + font-style: normal; +} +.album-meta-wrapper { + display: block; + height: 54px; + margin-bottom: 20px; +} +.ngg-glmalbums { + margin: 10px 0; +} +/* End NextGen Gallery */ + +/* Ninja Forms */ +.ninja-forms-form-wrap { + max-width: 600px; + margin: 0 auto; + input[type=submit] { + @include button(); + display: block; + margin: 0 auto; + } +} +/* End Ninja Forms */ + + +.wpurp-recipe-ingredient-name a:hover { + pointer-events: none; +} +.wpurp-recipe-ingredient { + list-style: outside none none !important +} -- 2.17.1