diff --git a/_data/ui-text.yml b/_data/ui-text.yml index 619b9f90..9097938b 100644 --- a/_data/ui-text.yml +++ b/_data/ui-text.yml @@ -36,11 +36,8 @@ en: &DEFAULT_EN comment_form_website_label : "Website (optional)" comment_btn_submit : "Submit Comment" comment_btn_submitted : "Submitted" - comment_success_title : "Comment submitted" comment_success_msg : "Thanks for your comment! It will show on the site once it has been approved." - comment_error_title : "Error" comment_error_msg : "Sorry, there was an error with your submission. Please make sure all required fields have been completed and try again." - close_btn_label : "close" loading_label : "Loading..." en-US: <<: *DEFAULT_EN @@ -87,11 +84,8 @@ es: &DEFAULT_ES comment_form_website_label : comment_btn_submit : comment_btn_submitted : - comment_success_title : comment_success_msg : - comment_error_title : comment_error_msg : - close_btn_label : loading_label : es-ES: <<: *DEFAULT_ES @@ -134,11 +128,8 @@ fr: &DEFAULT_FR comment_form_website_label : comment_btn_submit : comment_btn_submitted : - comment_success_title : comment_success_msg : - comment_error_title : comment_error_msg : - close_btn_label : loading_label : fr-FR: <<: *DEFAULT_FR @@ -183,11 +174,8 @@ tr: &DEFAULT_TR comment_form_website_label : comment_btn_submit : comment_btn_submitted : - comment_success_title : comment_success_msg : - comment_error_title : comment_error_msg : - close_btn_label : loading_label : tr-TR: <<: *DEFAULT_TR @@ -228,11 +216,8 @@ pt: &DEFAULT_PT comment_form_website_label : comment_btn_submit : comment_btn_submitted : - comment_success_title : comment_success_msg : - comment_error_title : comment_error_msg : - close_btn_label : loading_label : pt-BR: <<: *DEFAULT_PT @@ -275,11 +260,8 @@ it: &DEFAULT_IT comment_form_website_label : comment_btn_submit : comment_btn_submitted : - comment_success_title : comment_success_msg : - comment_error_title : comment_error_msg : - close_btn_label : loading_label : it-IT: <<: *DEFAULT_IT diff --git a/_includes/comments-providers/staticman.html b/_includes/comments-providers/staticman.html index 30a65ec8..471fa867 100644 --- a/_includes/comments-providers/staticman.html +++ b/_includes/comments-providers/staticman.html @@ -1,22 +1,13 @@ {% if site.repository and site.staticman.branch %} - - - - diff --git a/_includes/comments.html b/_includes/comments.html index 84355901..53bc5398 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -35,7 +35,7 @@

{{ site.data.ui-text[site.locale].comments_label | default: "Leave a Comment" }}

-

{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *

+

{{ site.data.ui-text[site.locale].comment_form_info | default: "Your email address will not be published. Required fields are marked" }} *

@@ -63,6 +63,11 @@ + + +
diff --git a/_sass/_page.scss b/_sass/_page.scss index 5692cc64..1c822397 100644 --- a/_sass/_page.scss +++ b/_sass/_page.scss @@ -8,10 +8,8 @@ margin-top: 2em; padding-left: 1em; padding-right: 1em; - -webkit-animation: intro 0.3s both; - animation: intro 0.3s both; - -webkit-animation-delay: 0.35s; - animation-delay: 0.35s; + animation: intro 0.3s both; + animation-delay: 0.35s; @include breakpoint($x-large) { max-width: $x-large; @@ -113,10 +111,8 @@ position: relative; margin-bottom: 2em; @include clearfix; - -webkit-animation: intro 0.3s both; - animation: intro 0.3s both; - -webkit-animation-delay: 0.25s; - animation-delay: 0.25s; + animation: intro 0.3s both; + animation-delay: 0.25s; &--overlay { position: relative; @@ -126,10 +122,8 @@ background-size: cover; background-repeat: no-repeat; background-position: center; - -webkit-animation: intro 0.3s both; - animation: intro 0.3s both; - -webkit-animation-delay: 0.25s; - animation-delay: 0.25s; + animation: intro 0.3s both; + animation-delay: 0.25s; a { color: #fff; @@ -303,10 +297,25 @@ .page__comments-form { padding: 1em; background: $lighter-gray; + transition: $global-transition; + + &.disabled { + input, + button, + textarea, + label { + pointer-events: none; + cursor: not-allowed; + filter: alpha(opacity=65); + box-shadow: none; + opacity: 0.65; + } + } } .comment { - margin: 2em 0; + @include clearfix(); + margin: 1em 0; &:not(:last-child) { border-bottom: 1px solid $border-color; @@ -314,8 +323,7 @@ } .comment__avatar-wrapper { - display: table-cell; - vertical-align: top; + float: left; width: 60px; height: 60px; @@ -339,8 +347,12 @@ } .comment__content-wrapper { - display: table-cell; - vertical-align: top; + float: right; + width: calc(100% - 60px); + + @include breakpoint($large) { + width: calc(100% - 100px); + } } .comment__author {