diff --git a/src/assets/js/js.js b/src/assets/js/js.js index 93ab846..278cc3e 100644 --- a/src/assets/js/js.js +++ b/src/assets/js/js.js @@ -25,6 +25,9 @@ jQuery(document).ready(function( $ ) { */ $('#comments ul.children').addClass('align-children'); + + $('.tainacan-single-post .tainacan-content table').addClass('table table-borderless'); + /** * Add the icon on previous and next pagination in comment list */ @@ -80,21 +83,12 @@ jQuery(document).ready(function( $ ) { // instead of a settings object ] }); - //$('.t-collection--info-description-text').attr('style', 'display: block; max-height: 4.5em;'); - /* var t = $(".elimore"); - t.dotdotdot({ - keep: ".toggle" - }); - - var n = t.data("dotdotdot"); - t.on("click", ".toggle", function(e) { - t.preventDefault(), t.hasClass("ddd-truncated") ? (n.restore(), t.addClass("full-story")) : (t.removeClass("full-story"), n.truncate(), n.watch()) - }); */ }); jQuery(document).ready(function(e) { var t = e(".dotmore"); t.dotdotdot({ - keep: ".toggle" + keep: ".toggle", + height: "watch" }); var n = t.data("dotdotdot"); t.on("click", ".toggle", function(e) { diff --git a/src/assets/scss/_home-collection.scss b/src/assets/scss/_home-collection.scss index 63cd378..68f7dde 100644 --- a/src/assets/scss/_home-collection.scss +++ b/src/assets/scss/_home-collection.scss @@ -96,13 +96,20 @@ } &.dotmore { height: 65px; + margin-bottom: 2rem; .toggle { color: #9d9fa0; + white-space: nowrap; } &.full-story { height: auto; margin-bottom: 1rem; } + &:not(.ddd-truncated):not(.full-story) { + .toggle { + display: none; + } + } } } } diff --git a/src/assets/scss/_post.scss b/src/assets/scss/_post.scss index e52c404..9bfee4b 100644 --- a/src/assets/scss/_post.scss +++ b/src/assets/scss/_post.scss @@ -44,6 +44,23 @@ &h1, &h2{ font-size: 1rem; } + blockquote:not(.wp-block-pullquote), .wp-block-quote { + color: #898d8f; + font-weight: 400; + padding: 1rem; + border-left:2px solid #298596; + margin-left: 4.16666666667%; + margin-right: 4.16666666667%; + cite { + float: right; + color: #298596; + } + } + .table { + thead { + border-bottom: 1px solid #cbcbcb; + } + } img[class*="align"], img[class*="wp-image-"], .gallery { @@ -118,26 +135,6 @@ margin-right: auto; } } - /* .wp-caption { - background: #cbcbcb; - margin-bottom: 1.625em; - max-width: 96%; - max-width: calc( 100% - 18px ); - padding: 9px; - .wp-caption-text { - margin-bottom: 0.6em; - padding: 10px 0 5px 40px; - position: relative; - } - .wp-caption-text, .gallery-caption { - color: #666; - font-size: 12px; - } - } */ - table, tr, td { - border: 1px solid black; - padding: 5px; - } figure { margin: 16px 40px; } @@ -185,6 +182,17 @@ .wp-block-pullquote{ border-top: 1px solid #cbcbcb; border-bottom: 1px solid #cbcbcb; + p { + color: #298596; + font: { + size: 22px; + weight: 500; + } + } + cite { + font-size: 16px; + color: #898d8f; + } } .wp-caption, .gallery-caption { font-size: 13px; diff --git a/src/assets/scss/style.scss b/src/assets/scss/style.scss index 2f91a46..b868ffb 100644 --- a/src/assets/scss/style.scss +++ b/src/assets/scss/style.scss @@ -315,9 +315,10 @@ nav{ } } &.page-collection{ - height: 400px !important; + height: auto; + padding-top: 250px; @media only screen and (max-width: 576px){ - height: 200px !important; + padding-top: 89.62px; } } &.page-height{ diff --git a/src/comments.php b/src/comments.php index ce84eda..da26463 100644 --- a/src/comments.php +++ b/src/comments.php @@ -20,7 +20,7 @@ if (post_password_required()) {
- ", "" ); ?> + ", "" ); ?>