From 9f2739670e55f37518323b818ccb8e14d5e2a02d Mon Sep 17 00:00:00 2001 From: Fabiano Alencar Date: Mon, 21 May 2018 13:42:43 -0300 Subject: [PATCH] Changed the structure to html 5 --- src/assets/scss/_post.scss | 72 +++++++++++++++--------------- src/tainacan/single-items.php | 6 +-- src/template-parts/single-post.php | 4 +- 3 files changed, 39 insertions(+), 43 deletions(-) diff --git a/src/assets/scss/_post.scss b/src/assets/scss/_post.scss index 3c02d01..725279f 100644 --- a/src/assets/scss/_post.scss +++ b/src/assets/scss/_post.scss @@ -18,50 +18,48 @@ height: auto; } } - main{ - &.tainacan-content { + .tainacan-content { + font-size: 1rem; + @media only screen and (min-width: 1200px){ + padding: 0 8.5rem; + } + &h1, &h2{ font-size: 1rem; - @media only screen and (min-width: 1200px){ - padding: 0 8.5rem; + } + img { + max-width: 100%; + } + .wp-block-cover-image{ + width: 100vw; + position: relative; + left: 50%; + right: 50%; + margin-left: -50vw; + margin-right: -50vw; + } + .wp-block-embed{ + iframe{ + width: 100%; } - &h1, &h2{ - font-size: 1rem; - } - img { - max-width: 100%; - } - .wp-block-cover-image{ - width: 100vw; - position: relative; - left: 50%; - right: 50%; - margin-left: -50vw; - margin-right: -50vw; - } - .wp-block-embed{ - iframe{ - width: 100%; - } - } - .wp-block-gallery{ - .blocks-gallery-item{ - figure{ - figcaption{ - padding: 10px 10px 5px; - background: #fff; - color: #000; - } + } + .wp-block-gallery{ + .blocks-gallery-item{ + figure{ + figcaption{ + padding: 10px 10px 5px; + background: #fff; + color: #000; } } - @media (max-width: 768px){ - padding-left: 0; - } } - .wp-block-pullquote{ - border-top: 1px solid #cbcbcb; - border-bottom: 1px solid #cbcbcb; + @media (max-width: 768px){ + padding-left: 0; } } + .wp-block-pullquote{ + border-top: 1px solid #cbcbcb; + border-bottom: 1px solid #cbcbcb; + } } footer{ font-size: 14pt; diff --git a/src/tainacan/single-items.php b/src/tainacan/single-items.php index ca3019a..5390b13 100644 --- a/src/tainacan/single-items.php +++ b/src/tainacan/single-items.php @@ -21,17 +21,15 @@ the_author_posts_link(); echo ' '; _e('on', 'tainacan-theme'); - echo ' '; - tainacan_post_date(); ?> -
+
-
+
diff --git a/src/template-parts/single-post.php b/src/template-parts/single-post.php index 19144d4..31006dc 100644 --- a/src/template-parts/single-post.php +++ b/src/template-parts/single-post.php @@ -13,12 +13,12 @@
-
+
-
+