From 00e719dfe5e08209c038b2fcf4ba799a24626e8f Mon Sep 17 00:00:00 2001 From: Fabiano Alencar Date: Thu, 1 Mar 2018 14:34:22 -0300 Subject: [PATCH] Comments template (Tainacan) --- src/assets/scss/_comments.scss | 28 +++++++++++++++ src/assets/scss/style.scss | 11 ++++++ src/comments.php | 65 ++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 src/assets/scss/_comments.scss create mode 100644 src/comments.php diff --git a/src/assets/scss/_comments.scss b/src/assets/scss/_comments.scss new file mode 100644 index 0000000..c0c9685 --- /dev/null +++ b/src/assets/scss/_comments.scss @@ -0,0 +1,28 @@ +#comments{ + label[for=comment]{ + margin-left: 11.3rem; + } + form{ + &#form-comment{ + textarea{ + @media only screen { + @media (min-width: 768px){ + width: 45vw; + } + @media (max-width: 576px){ + width: 100vw; + } + } + } + button{ + &#submit{ + @media screen { + @media (min-width: 768px){ + height: 5vh; + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/assets/scss/style.scss b/src/assets/scss/style.scss index ae792dd..0374ba1 100644 --- a/src/assets/scss/style.scss +++ b/src/assets/scss/style.scss @@ -12,6 +12,15 @@ Text Domain: tainacans */ @import url('https://fonts.googleapis.com/css?family=Roboto'); +body{ + a{ + color: #298596; + &:hover{ + color: #298596; + } + } +} + @import "_media_query"; nav{ @@ -42,6 +51,8 @@ form{ } } +@import "_comments"; + @import "_single-colecoes"; @import "_footer"; \ No newline at end of file diff --git a/src/comments.php b/src/comments.php new file mode 100644 index 0000000..bd1f4cb --- /dev/null +++ b/src/comments.php @@ -0,0 +1,65 @@ + +
+ +
+ +

+ comment_status) : ?> +
+ +

+ ", "" ); ?> +

+ + +
+
+
+ + +
+ +
+ + + ID); ?> +
+ +
+ + + + + 'tainacan_Comments_Callback')); ?> + + 1 && get_option('page_comments')) : ?> + + + + +

+ +
+
\ No newline at end of file