From f15be4fed546479bf7a8f82d83f43048bf85146f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C4=9Fan=20=C3=9Cnl=C3=BC?= <36102404+armgnunlu@users.noreply.github.com> Date: Wed, 4 Sep 2019 18:10:51 +0300 Subject: [PATCH] Blog module revision --- .../Pages/Blog/Posts/Detail.cshtml | 511 +++++++++--------- .../Pages/Blog/Posts/Index.cshtml | 317 ++++++----- .../Pages/Blog/Shared/Scripts/blog.js | 18 +- .../Shared/Styles/_bootstrap-overwrite.scss | 6 +- .../Pages/Blog/Shared/Styles/_custom.scss | 21 +- .../Pages/Blog/Shared/Styles/_header.scss | 3 - .../Pages/Blog/Shared/Styles/_home.css | 108 ++-- .../Pages/Blog/Shared/Styles/_home.min.css | 2 +- .../Pages/Blog/Shared/Styles/_home.scss | 142 +++-- .../Pages/Blog/Shared/Styles/_post.scss | 42 +- .../Pages/Blog/Shared/Styles/blog.css | 213 ++++---- .../Pages/Blog/Shared/Styles/blog.min.css | 2 +- .../Pages/Blog/Shared/Styles/blog.scss | 5 +- 13 files changed, 657 insertions(+), 733 deletions(-) diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml index e74ff987ea..4c945e8aac 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Detail.cshtml @@ -23,302 +23,297 @@ } - +
+ +
+
+
+
+
+
+

+ @Model.Post.Title +

-
-
-
-
-
-
-
-
-

- @foreach (var tag in Model.Post.Tags) - { - @tag.Name - } -

-

- @Model.Post.Title -

-
-
- -
-
+
+
+
+ +
+
+
+

+ @Html.Raw(RenderMarkdownToHtml(Model.Post.Content)) +

+
+
-
-
-
-
-

- @Html.Raw(RenderMarkdownToHtml(Model.Post.Content)) +

+
+ @if (Model.Post.Tags.Count > 0) + { +
+
@L["TagsInThisArticle"]
+ @foreach (var tag in Model.Post.Tags) + { + @tag.Name + } +
+ } -

-
-
-
+ @if (Model.CommentsWithReplies.Count > 0) + { + + +

@L["CommentWithCount", @Model.CommentCount]

+ @if (hasCommentingPermission) + { + @L["LeaveComment"] + } + else + { + @L["LeaveComment"] + } +
+
+ } -
-
- @if (Model.Post.Tags.Count > 0) - { -
-
@L["TagsInThisArticle"]
- @foreach (var tag in Model.Post.Tags) +
+ @foreach (var commentWithRepliesDto in Model.CommentsWithReplies) { - @tag.Name - } -
- } +
+ +
+
+ @(commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName) + @ConvertDatetimeToTimeAgo(commentWithRepliesDto.Comment.CreationTime) +
+

+ @commentWithRepliesDto.Comment.Text +

+
+ @if (hasCommentingPermission) + { + + @L["Reply"] + + } - @if (Model.CommentsWithReplies.Count > 0) - { - - -

@L["CommentWithCount", @Model.CommentCount]

- @if (hasCommentingPermission) - { - @L["LeaveComment"] - } - else - { - @L["LeaveComment"] - } -
-
- } + @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Delete)) + { + | + + @L["Delete"] + + } -
- @foreach (var commentWithRepliesDto in Model.CommentsWithReplies) - { -
- -
-
- @(commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName) - @ConvertDatetimeToTimeAgo(commentWithRepliesDto.Comment.CreationTime) -
-

- @commentWithRepliesDto.Comment.Text -

-
+ @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Update) || (CurrentUser.Id == commentWithRepliesDto.Comment.CreatorId)) + { + | + + @L["Edit"] + + } +
@if (hasCommentingPermission) { - - @L["Reply"] - - } +
+
+

+ @L["ReplyTo", commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName] - @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Delete)) - { - | - - @L["Delete"] - - } +

+
+
+ + +
+ +
+ + + +
+
+
+ } @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Update) || (CurrentUser.Id == commentWithRepliesDto.Comment.CreatorId)) { - | - - @L["Edit"] - +
+
+
+
+ +
+ +
+ + + +
+
+
} -
- @if (hasCommentingPermission) - { -
-
-

- @L["ReplyTo", commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName] + @foreach (var reply in commentWithRepliesDto.Replies) + { +
+ +
+
+ @(reply.Writer == null ? "" : reply.Writer.UserName) + @ConvertDatetimeToTimeAgo(reply.CreationTime) +
+

+ @reply.Text +

+
-

-
-
- - + @if (hasCommentingPermission) + { + + @L["Reply"] + + } + @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Delete) || (CurrentUser.Id == commentWithRepliesDto.Comment.CreatorId)) + { + | + + @L["Delete"] + + } -
- -
- - - -
-
-
- } - @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Update) || (CurrentUser.Id == commentWithRepliesDto.Comment.CreatorId)) - { -
-
-
-
- -
- -
- - - -
-
-
- } - - @foreach (var reply in commentWithRepliesDto.Replies) - { -
- -
-
- @(reply.Writer == null ? "" : reply.Writer.UserName) - @ConvertDatetimeToTimeAgo(reply.CreationTime) -
-

- @reply.Text -

-
+ @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Update) || (CurrentUser.Id == commentWithRepliesDto.Comment.CreatorId)) + { + | + + @L["Edit"] + + } +
@if (hasCommentingPermission) { - - @L["Reply"] - - } - @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Delete) || (CurrentUser.Id == commentWithRepliesDto.Comment.CreatorId)) - { - | - - @L["Delete"] - +
+
+

+ @L["ReplyTo", commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName] +

+
+
+ + +
+ +
+ + + +
+
+
} - @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Update) || (CurrentUser.Id == commentWithRepliesDto.Comment.CreatorId)) { - | - - @L["Edit"] - +
+
+
+
+ +
+ +
+ + + +
+
+
}
+
+ } +
+
+ } +
- @if (hasCommentingPermission) - { -
-
-

- @L["ReplyTo", commentWithRepliesDto.Comment.Writer == null ? "" : commentWithRepliesDto.Comment.Writer.UserName] -

-
-
- - -
- -
- - - -
-
-
- } - @if (await Authorization.IsGrantedAsync(BloggingPermissions.Comments.Update) || (CurrentUser.Id == commentWithRepliesDto.Comment.CreatorId)) - { -
-
-
-
- -
- -
- - - -
-
-
- } + @if (hasCommentingPermission) + { +
+
+

@L["LeaveComment"]

+
+
+
+
+ + +
+
-
- } + + +
} + else + { + @L["LeaveComment"] + }
- - @if (hasCommentingPermission) - { -
-
-

@L["LeaveComment"]

-
-
-
-
- - -
- -
- - -
-
-
- } - else - { - @L["LeaveComment"] - }
diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml index 58dbbef447..20ebc1887f 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Posts/Index.cshtml @@ -22,205 +22,192 @@ } -
-
-
-
-
-
- @for (var index = 0; index < Model.Posts.Count && index < 1; index++) - { - var post = Model.Posts[index]; -
-
- - - -
-
-

- @foreach (var tag in post.Tags) - { - @tag.Name - } -

-

- @post.Title -

-

- @Html.Raw(GetShortContent(post.Content)) -

- @L["ContinueReading"] - -
- @if (post.Writer != null) - { -
-
-
+ } + +
-
+
- @if (await Authorization.IsGrantedAsync(BloggingPermissions.Posts.Create)) - { - @L["CreateANewPost"] - } + @if (await Authorization.IsGrantedAsync(BloggingPermissions.Posts.Create)) + { + @L["CreateANewPost"] + } -
- @for (var index = 0; index < Model.Posts.Count && index < 3; index++) - { - var post = Model.Posts[index]; -
-
-
-
-
- - - -
+
+ @for (var index = 0; index < Model.Posts.Count && index < 3; index++) + { + var post = Model.Posts[index]; +
+
+
+
+ -
-

- @post.Title -

-
- +
+

+ @post.Title +

+
+
-
-
- } -
+
+
+
+ }
+
-
-
-
- @if (Model.Posts.Count > 3) - { -
-

@L["LastPosts"]

-
-
- @for (var index = 3; index < Model.Posts.Count; index++) - { - var post = Model.Posts[index]; - var oddPost = index % 2 == 1; +
+
+
+ @if (Model.Posts.Count > 3) + { +
+

@L["LastPosts"]

+
+
+ @for (var index = 3; index < Model.Posts.Count; index++) + { + var post = Model.Posts[index]; + var oddPost = index % 2 == 1; -
-
-
-
- - - -
+
+
+
+ -
-

- @foreach (var tag in post.Tags) - { - @tag.Name - } -

-

- @post.Title -

-

- @Html.Raw(GetShortContent(post.Content)) -

-
- - } -
- } -
+
+ } +
+ } +
- @if (Model.PopularTags.Count > 0) - { -
-
-

@L["PopularTags"]

-
- +
+ }
+
diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Scripts/blog.js b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Scripts/blog.js index 68b758e59a..b78c8132aa 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Scripts/blog.js +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Scripts/blog.js @@ -7,15 +7,15 @@ } function handleImages() { - if ($(window).width() > 767) { - $(".box-articles .img-container").each(function () { - var squareWidth = $(this).width(); - $(this).css("height", squareWidth); - }); - } - else { - $(".box-articles .img-container").css("height", "auto"); - } + //if ($(window).width() > 767) { + // $(".box-articles .img-container").each(function () { + // var squareWidth = $(this).width(); + // $(this).css("height", squareWidth); + // }); + //} + //else { + // $(".box-articles .img-container").css("height", "auto"); + //} } function handleOwlCarousel() { diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_bootstrap-overwrite.scss b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_bootstrap-overwrite.scss index 8e7524ac3a..0460c61469 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_bootstrap-overwrite.scss +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_bootstrap-overwrite.scss @@ -11,13 +11,13 @@ p { h1, h2, h3, h4, h5, h6, .tab-title { font-family: Helvetica, Arial, sans-serif; font-weight: 700; -} +} h1 { font-size: 2.25em; - margin: 1.5rem 0 .75rem; + margin: 1rem 0 1.5rem; } h2, .tab-title { - font-size: 1.75em; + font-size: 1.5em; margin: 1.5rem 0 .75rem; } h3 { diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_custom.scss b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_custom.scss index b33865b906..033fc2059a 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_custom.scss +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_custom.scss @@ -1,23 +1,4 @@ @media (min-width: 767px) { - .box-articles { - .img-container { - position: relative; - overflow: hidden; - } - .img-container img { - position: absolute; - left: 50%; - top: 50%; - height: 100%; - width: auto; - -webkit-transform: translate(-50%,-50%); - -ms-transform: translate(-50%,-50%); - transform: translate(-50%,-50%); - max-width: initial; - } - .img-container img.portrait { - width: 100%; - height: auto; - } + .box-articles { } } \ No newline at end of file diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_header.scss b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_header.scss index d5b34d7de5..c5fadba58b 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_header.scss +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_header.scss @@ -1,7 +1,4 @@ -.vs-blog { - -} .vs-blog-title { padding-bottom: 15px; margin-bottom: 25px; diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.css b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.css index 918d409539..9fc6d4693d 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.css +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.css @@ -3,60 +3,26 @@ .hero-section .hero-articles { position: relative; overflow: hidden; } - .hero-section .hero-articles .hero-content { - position: absolute; - left: 12%; - right: 12%; - bottom: 80px; - z-index: 4; - text-align: center; } - .hero-section .hero-articles .hero-content h2 { - margin-top: 0; - font-size: 2.5em; - font-weight: bold; } - .hero-section .hero-articles .hero-content a { - color: white; - text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); } - .hero-section .hero-articles .hero-content p { - color: white; } + .hero-section .hero-articles .hero-content h2 { + margin-top: .5rem; + font-size: 2em; + font-weight: bold; } .hero-section .hero-articles .tags .tag { background: rgba(208, 208, 208, 0.3); color: #fff !important; } .hero-section .hero-articles .tags .tag:hover { background: white; color: black !important; } - .hero-section .hero-articles .article-owner { - text-align: center; - position: relative; - z-index: 12; } - .hero-section .hero-articles .article-owner .article-infos { - color: black; } - .hero-section .hero-articles .article-owner .article-infos a { - color: black; } - .hero-section .hero-articles .article-owner .article-infos .seperator { - margin: 0 4px; - color: rgba(255, 255, 255, 0.2); } - .hero-section .hero-articles .article-owner .article-infos img.article-avatar { - width: 64px; - margin: -25px 10px 0px 0; - border: 3px solid #fff; - display: inline-block; - border-radius: 50%; } - .hero-section .hero-articles .img-container { - min-height: 320px; } - .hero-section .hero-articles .img-container img { - filter: grayscale(10%); } - .hero-section .hero-articles .img-container::after { - content: ""; - display: block; - position: absolute; - z-index: 1; - bottom: 0px; - width: 100%; - top: 1% !important; - background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.75) 89%, rgba(0, 0, 0, 0.78) 93%) !important; - transition: .2s all ease-in-out; - opacity: .9; } + .hero-section .hero-articles .article-owner .article-infos { + color: black; } + .hero-section .hero-articles .article-owner .article-infos .seperator { + margin: 0 4px; + color: rgba(255, 255, 255, 0.2); } + .hero-section .hero-articles .article-owner .article-infos img.article-avatar { + display: inline-block; + border-radius: 50%; } + .hero-section .hero-articles .img-container img { + width: 100%; } .hero-section .hero-articles:hover .img-container::after { opacity: 1; } @@ -68,11 +34,16 @@ margin: 0 4px; color: rgba(0, 0, 0, 0.2); } .article-owner .article-infos img.article-avatar { - width: 30px; + width: 48px; margin: -1px 4px 0 0; display: inline-block; border-radius: 50%; } +.user-card h5 span { + font-weight: 300; + opacity: .5; + padding: 0 5px; } + .card-articles .card-content { padding: 10px 0px 10px; } .card-articles .card-content h3 { @@ -111,19 +82,32 @@ .user-link-icons a:hover { color: #fff; } -.tags .tag { - display: inline-block; - padding: 2px 8px; - background: rgba(208, 208, 208, 0.3); - border-radius: 30px; - margin: 0 1px 3px 0; - color: #b1b1b1 !important; - font-size: .7em; - line-height: 1.6em; - text-transform: uppercase; } - .tags .tag:hover { - background: black; - color: white !important; } +.tags { + margin: 2rem 0; + padding: 0 0 1.25rem 0; } + .tags .tag { + display: inline-block; + padding: 4px 12px; + background: rgba(208, 208, 208, 0.3); + border-radius: 4px; + margin: 0 2px 3px 0; + color: #b1b1b1 !important; + font-size: .85em; + line-height: 1.6em; + text-transform: uppercase; + transition: .25s; + text-decoration: none; } + .tags .tag:hover { + background: black; + color: white !important; } + +.hero-section .tags { + margin: 1rem 0; + padding: 0 0 .5rem 0; } + +.list-group-item .tags { + margin: 1rem 0 0; + padding: 0 0; } .popular-tags a { display: block; diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.min.css b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.min.css index 8a2ea9b03a..b4d8c94f86 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.min.css +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.min.css @@ -1 +1 @@ -.hero-section{padding:0;}.hero-section .hero-articles{position:relative;overflow:hidden;}.hero-section .hero-articles .hero-content{position:absolute;left:12%;right:12%;bottom:80px;z-index:4;text-align:center;}.hero-section .hero-articles .hero-content h2{margin-top:0;font-size:2.5em;font-weight:bold;}.hero-section .hero-articles .hero-content a{color:#fff;text-shadow:0 0 20px rgba(0,0,0,.5);}.hero-section .hero-articles .hero-content p{color:#fff;}.hero-section .hero-articles .tags .tag{background:rgba(208,208,208,.3);color:#fff !important;}.hero-section .hero-articles .tags .tag:hover{background:#fff;color:#000 !important;}.hero-section .hero-articles .article-owner{text-align:center;position:relative;z-index:12;}.hero-section .hero-articles .article-owner .article-infos{color:#000;}.hero-section .hero-articles .article-owner .article-infos a{color:#000;}.hero-section .hero-articles .article-owner .article-infos .seperator{margin:0 4px;color:rgba(255,255,255,.2);}.hero-section .hero-articles .article-owner .article-infos img.article-avatar{width:64px;margin:-25px 10px 0 0;border:3px solid #fff;display:inline-block;border-radius:50%;}.hero-section .hero-articles .img-container{min-height:320px;}.hero-section .hero-articles .img-container img{filter:grayscale(10%);}.hero-section .hero-articles .img-container::after{content:"";display:block;position:absolute;z-index:1;bottom:0;width:100%;top:1% !important;background:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.75) 89%,rgba(0,0,0,.78) 93%) !important;transition:.2s all ease-in-out;opacity:.9;}.hero-section .hero-articles:hover .img-container::after{opacity:1;}.article-owner .article-infos{color:#000;}.article-owner .article-infos a{color:rgba(0,0,0,.6);}.article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}.article-owner .article-infos img.article-avatar{width:30px;margin:-1px 4px 0 0;display:inline-block;border-radius:50%;}.card-articles .card-content{padding:10px 0 10px;}.card-articles .card-content h3{margin:10px 0;}.card-articles .card-content h3 a{font-weight:700;}.card-articles .article-owner{text-align:left;}.card-articles .article-owner .article-infos{color:#000;}.card-articles .article-owner .article-infos a{color:rgba(0,0,0,.6);}.card-articles .article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}.card-articles .article-owner .article-infos img.article-avatar{width:30px;margin:-1px 4px 0 0;display:inline-block;border-radius:50%;}.article-owner{font-size:.85em;}.user-link-icons{position:absolute;right:18px;top:15px;z-index:3;}.user-link-icons a{display:inline-block;color:#eee;margin-left:12px;font-size:1.25em;}.user-link-icons a:hover{color:#fff;}.tags .tag{display:inline-block;padding:2px 8px;background:rgba(208,208,208,.3);border-radius:30px;margin:0 1px 3px 0;color:#b1b1b1 !important;font-size:.7em;line-height:1.6em;text-transform:uppercase;}.tags .tag:hover{background:#000;color:#fff !important;}.popular-tags a{display:block;font-size:.9em;}.popular-tags a span{float:right;opacity:.3;font-size:.9em;}.img-container{position:relative;overflow:hidden;border-radius:4px;background:#dcdcdc;} \ No newline at end of file +.hero-section{padding:0;}.hero-section .hero-articles{position:relative;overflow:hidden;}.hero-section .hero-articles .hero-content h2{margin-top:.5rem;font-size:2em;font-weight:bold;}.hero-section .hero-articles .tags .tag{background:rgba(208,208,208,.3);color:#fff !important;}.hero-section .hero-articles .tags .tag:hover{background:#fff;color:#000 !important;}.hero-section .hero-articles .article-owner .article-infos{color:#000;}.hero-section .hero-articles .article-owner .article-infos .seperator{margin:0 4px;color:rgba(255,255,255,.2);}.hero-section .hero-articles .article-owner .article-infos img.article-avatar{display:inline-block;border-radius:50%;}.hero-section .hero-articles .img-container img{width:100%;}.hero-section .hero-articles:hover .img-container::after{opacity:1;}.article-owner .article-infos{color:#000;}.article-owner .article-infos a{color:rgba(0,0,0,.6);}.article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}.article-owner .article-infos img.article-avatar{width:48px;margin:-1px 4px 0 0;display:inline-block;border-radius:50%;}.user-card h5 span{font-weight:300;opacity:.5;padding:0 5px;}.card-articles .card-content{padding:10px 0 10px;}.card-articles .card-content h3{margin:10px 0;}.card-articles .card-content h3 a{font-weight:700;}.card-articles .article-owner{text-align:left;}.card-articles .article-owner .article-infos{color:#000;}.card-articles .article-owner .article-infos a{color:rgba(0,0,0,.6);}.card-articles .article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}.card-articles .article-owner .article-infos img.article-avatar{width:30px;margin:-1px 4px 0 0;display:inline-block;border-radius:50%;}.article-owner{font-size:.85em;}.user-link-icons{position:absolute;right:18px;top:15px;z-index:3;}.user-link-icons a{display:inline-block;color:#eee;margin-left:12px;font-size:1.25em;}.user-link-icons a:hover{color:#fff;}.tags{margin:2rem 0;padding:0 0 1.25rem 0;}.tags .tag{display:inline-block;padding:4px 12px;background:rgba(208,208,208,.3);border-radius:4px;margin:0 2px 3px 0;color:#b1b1b1 !important;font-size:.85em;line-height:1.6em;text-transform:uppercase;transition:.25s;text-decoration:none;}.tags .tag:hover{background:#000;color:#fff !important;}.hero-section .tags{margin:1rem 0;padding:0 0 .5rem 0;}.list-group-item .tags{margin:1rem 0 0;padding:0 0;}.popular-tags a{display:block;font-size:.9em;}.popular-tags a span{float:right;opacity:.3;font-size:.9em;}.img-container{position:relative;overflow:hidden;border-radius:4px;background:#dcdcdc;} \ No newline at end of file diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.scss b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.scss index 70c2ee94f6..f447a4b77f 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.scss +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_home.scss @@ -5,28 +5,12 @@ position: relative; overflow: hidden; - .hero-content { - position: absolute; - left: 12%; - right: 12%; - bottom: 80px; - z-index: 4; - text-align: center; - + .hero-content { h2 { - margin-top: 0; - font-size: 2.5em; + margin-top: .5rem; + font-size: 2em; font-weight: bold; } - - a { - color: white; - text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); - } - - p { - color: white; - } } .tags { @@ -41,52 +25,27 @@ } } - .article-owner { - text-align: center; - position: relative; - z-index: 12; - + .article-owner { .article-infos { - color: black; + color: black; - a { - color: black; - } .seperator { margin: 0 4px; color: rgba(255, 255, 255, 0.2); } - img.article-avatar { - width: 64px; - margin: -25px 10px 0px 0; - border: 3px solid #fff; + img.article-avatar { display: inline-block; border-radius: 50%; } } } - .img-container { - min-height: 320px; - + .img-container { img { - filter: grayscale(10%); - } - - &::after { - content: ""; - display: block; - position: absolute; - z-index: 1; - bottom: 0px; width: 100%; - top: 1% !important; - background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.75) 89%, rgba(0, 0, 0, 0.78) 93%) !important; - transition: .2s all ease-in-out; - opacity: .9; - } + } } &:hover { @@ -97,61 +56,78 @@ } } } -} +} -.article-owner { +.article-owner { .article-infos { color: #000; + a { color: rgba(0, 0, 0, 0.6); } + .seperator { margin: 0 4px; color: rgba(0, 0, 0, 0.2); } - img.article-avatar { - width: 30px; + + img.article-avatar { + width: 48px; margin: -1px 4px 0 0; display: inline-block; border-radius: 50%; } } -} - +} -.card-articles { - .card-content - { +.user-card { + h5 { + span { + font-weight: 300; + opacity: .5; + padding: 0 5px; + } + } +} +.card-articles { + .card-content { padding: 10px 0px 10px; + h3 { margin: 10px 0; + a { - font-weight: 700; + font-weight: 700; } } } - .article-owner { - text-align: left; + + .article-owner { + text-align: left; + .article-infos { color: #000; + a { color: rgba(0, 0, 0, 0.6); } + .seperator { margin: 0 4px; color: rgba(0, 0, 0, 0.2); } - img.article-avatar { + + img.article-avatar { width: 30px; margin: -1px 4px 0 0; display: inline-block; border-radius: 50%; } } - } + } } - -.article-owner { + +.article-owner { font-size: .85em; } @@ -160,11 +136,13 @@ right: 18px; top: 15px; z-index: 3; - a { + + a { display: inline-block; color: #eee; margin-left: 12px; font-size: 1.25em; + &:hover { color: #fff; } @@ -172,16 +150,21 @@ } .tags { + margin: 2rem 0; + padding: 0 0 1.25rem 0; + .tag { display: inline-block; - padding: 2px 8px; + padding: 4px 12px; background: rgba(208, 208, 208, 0.3); - border-radius: 30px; - margin: 0 1px 3px 0; + border-radius: 4px; + margin: 0 2px 3px 0; color: #b1b1b1 !important; - font-size: .7em; + font-size: .85em; line-height: 1.6em; text-transform: uppercase; + transition: .25s; + text-decoration: none; &:hover { background: black; @@ -189,6 +172,18 @@ } } } +.hero-section { + .tags { + margin: 1rem 0; + padding: 0 0 .5rem 0; + } +} +.list-group-item { + .tags { + margin: 1rem 0 0; + padding: 0 0; + } +} .popular-tags { a { display: block; @@ -206,7 +201,6 @@ .img-container { position: relative; overflow: hidden; - border-radius: 4px; - background: gainsboro; -} - \ No newline at end of file + border-radius: 4px; + background: gainsboro; +} diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_post.scss b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_post.scss index de45e096e6..7e94b34d11 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_post.scss +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/_post.scss @@ -41,41 +41,48 @@ } } -.comment-avatar { - max-width: 64px; -} -.answer-avatar { - max-width: 48px; -} .media { font-size: .95em; .media { font-size: .95em; } + } .comment-area { + background: #f5f5f5; + margin: 1.5rem 0; + padding: 10px; + .comment-owner { - margin-bottom: 2px; + margin-bottom: 4px; + margin-top: 8px; span { font-weight: 300; - color: #999; - font-size: .8em; + opacity: .5; + padding: 0 5px; } } + .media { + background: #fff; + margin: 1px; + border-radius: 4px; + } + > .media { - padding: 30px 0; + padding: 30px; border-bottom: 1px solid #f1f1f1; .media { - padding: 20px 0; + padding: 20px 0px 0px; } } - .comment-buttons { - padding: 4px 8px; + .comment-buttons { + padding: 4px 0; + font-size: .96em; .seperator { color: #ddd; @@ -94,10 +101,13 @@ background: #999; } } + a { - opacity: .5; + opacity: .65; + margin-right: 10px; + &:hover { - opacity: .75; + opacity: 1; } } } @@ -111,6 +121,6 @@ } .answer-avatar { - width: 48px; + width: 64px; } } \ No newline at end of file diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.css b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.css index 8053928f76..bae873b4bb 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.css +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.css @@ -16,9 +16,9 @@ font-weight: 700; } div.vs-blog h1 { font-size: 2.25em; - margin: 1.5rem 0 .75rem; } + margin: 1rem 0 1.5rem; } div.vs-blog h2, div.vs-blog .tab-title { - font-size: 1.75em; + font-size: 1.5em; margin: 1.5rem 0 .75rem; } div.vs-blog h3 { font-size: 1.5em; @@ -90,60 +90,26 @@ div.vs-blog .hero-section .hero-articles { position: relative; overflow: hidden; } - div.vs-blog .hero-section .hero-articles .hero-content { - position: absolute; - left: 12%; - right: 12%; - bottom: 80px; - z-index: 4; - text-align: center; } - div.vs-blog .hero-section .hero-articles .hero-content h2 { - margin-top: 0; - font-size: 2.5em; - font-weight: bold; } - div.vs-blog .hero-section .hero-articles .hero-content a { - color: white; - text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); } - div.vs-blog .hero-section .hero-articles .hero-content p { - color: white; } + div.vs-blog .hero-section .hero-articles .hero-content h2 { + margin-top: .5rem; + font-size: 2em; + font-weight: bold; } div.vs-blog .hero-section .hero-articles .tags .tag { background: rgba(208, 208, 208, 0.3); color: #fff !important; } div.vs-blog .hero-section .hero-articles .tags .tag:hover { background: white; color: black !important; } - div.vs-blog .hero-section .hero-articles .article-owner { - text-align: center; - position: relative; - z-index: 12; } - div.vs-blog .hero-section .hero-articles .article-owner .article-infos { - color: black; } - div.vs-blog .hero-section .hero-articles .article-owner .article-infos a { - color: black; } - div.vs-blog .hero-section .hero-articles .article-owner .article-infos .seperator { - margin: 0 4px; - color: rgba(255, 255, 255, 0.2); } - div.vs-blog .hero-section .hero-articles .article-owner .article-infos img.article-avatar { - width: 64px; - margin: -25px 10px 0px 0; - border: 3px solid #fff; - display: inline-block; - border-radius: 50%; } - div.vs-blog .hero-section .hero-articles .img-container { - min-height: 320px; } - div.vs-blog .hero-section .hero-articles .img-container img { - filter: grayscale(10%); } - div.vs-blog .hero-section .hero-articles .img-container::after { - content: ""; - display: block; - position: absolute; - z-index: 1; - bottom: 0px; - width: 100%; - top: 1% !important; - background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.75) 89%, rgba(0, 0, 0, 0.78) 93%) !important; - transition: .2s all ease-in-out; - opacity: .9; } + div.vs-blog .hero-section .hero-articles .article-owner .article-infos { + color: black; } + div.vs-blog .hero-section .hero-articles .article-owner .article-infos .seperator { + margin: 0 4px; + color: rgba(255, 255, 255, 0.2); } + div.vs-blog .hero-section .hero-articles .article-owner .article-infos img.article-avatar { + display: inline-block; + border-radius: 50%; } + div.vs-blog .hero-section .hero-articles .img-container img { + width: 100%; } div.vs-blog .hero-section .hero-articles:hover .img-container::after { opacity: 1; } div.vs-blog .article-owner .article-infos { @@ -154,10 +120,14 @@ margin: 0 4px; color: rgba(0, 0, 0, 0.2); } div.vs-blog .article-owner .article-infos img.article-avatar { - width: 30px; + width: 48px; margin: -1px 4px 0 0; display: inline-block; border-radius: 50%; } + div.vs-blog .user-card h5 span { + font-weight: 300; + opacity: .5; + padding: 0 5px; } div.vs-blog .card-articles .card-content { padding: 10px 0px 10px; } div.vs-blog .card-articles .card-content h3 { @@ -192,19 +162,30 @@ font-size: 1.25em; } div.vs-blog .user-link-icons a:hover { color: #fff; } - div.vs-blog .tags .tag { - display: inline-block; - padding: 2px 8px; - background: rgba(208, 208, 208, 0.3); - border-radius: 30px; - margin: 0 1px 3px 0; - color: #b1b1b1 !important; - font-size: .7em; - line-height: 1.6em; - text-transform: uppercase; } - div.vs-blog .tags .tag:hover { - background: black; - color: white !important; } + div.vs-blog .tags { + margin: 2rem 0; + padding: 0 0 1.25rem 0; } + div.vs-blog .tags .tag { + display: inline-block; + padding: 4px 12px; + background: rgba(208, 208, 208, 0.3); + border-radius: 4px; + margin: 0 2px 3px 0; + color: #b1b1b1 !important; + font-size: .85em; + line-height: 1.6em; + text-transform: uppercase; + transition: .25s; + text-decoration: none; } + div.vs-blog .tags .tag:hover { + background: black; + color: white !important; } + div.vs-blog .hero-section .tags { + margin: 1rem 0; + padding: 0 0 .5rem 0; } + div.vs-blog .list-group-item .tags { + margin: 1rem 0 0; + padding: 0 0; } div.vs-blog .popular-tags a { display: block; font-size: .9em; } @@ -248,63 +229,55 @@ div.vs-blog .post-detail .post-content .lead { font-size: 1.125em; color: #111; } - div.vs-blog .comment-avatar { - max-width: 64px; } - div.vs-blog .answer-avatar { - max-width: 48px; } div.vs-blog .media { font-size: .95em; } div.vs-blog .media .media { font-size: .95em; } - div.vs-blog .comment-area .comment-owner { - margin-bottom: 2px; } - div.vs-blog .comment-area .comment-owner span { - font-weight: 300; - color: #999; - font-size: .8em; } - div.vs-blog .comment-area > .media { - padding: 30px 0; - border-bottom: 1px solid #f1f1f1; } - div.vs-blog .comment-area > .media .media { - padding: 20px 0; } - div.vs-blog .comment-area .comment-buttons { - padding: 4px 8px; } - div.vs-blog .comment-area .comment-buttons .seperator { - color: #ddd; - margin: 0 8px; } - div.vs-blog .comment-area .comment-buttons .count { - color: #fff; - background: #ddd; - margin-left: 5px; - padding: 1px 3px; - font-size: 10px; - border-radius: 3px; } - div.vs-blog .comment-area .comment-buttons .count.count-up { - background: #999; } - div.vs-blog .comment-area .comment-buttons a { - opacity: .5; } - div.vs-blog .comment-area .comment-buttons a:hover { - opacity: .75; } - div.vs-blog .comment-area p { - margin-bottom: 6px; } - div.vs-blog .comment-area .comment-avatar { - width: 64px; } - div.vs-blog .comment-area .answer-avatar { - width: 48px; } - @media (min-width: 767px) { - div.vs-blog .box-articles .img-container { - position: relative; - overflow: hidden; } - div.vs-blog .box-articles .img-container img { - position: absolute; - left: 50%; - top: 50%; - height: 100%; - width: auto; - -webkit-transform: translate(-50%, -50%); - -ms-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - max-width: initial; } - div.vs-blog .box-articles .img-container img.portrait { - width: 100%; - height: auto; } } + div.vs-blog .comment-area { + background: #f5f5f5; + margin: 1.5rem 0; + padding: 10px; } + div.vs-blog .comment-area .comment-owner { + margin-bottom: 4px; + margin-top: 8px; } + div.vs-blog .comment-area .comment-owner span { + font-weight: 300; + opacity: .5; + padding: 0 5px; } + div.vs-blog .comment-area .media { + background: #fff; + margin: 1px; + border-radius: 4px; } + div.vs-blog .comment-area > .media { + padding: 30px; + border-bottom: 1px solid #f1f1f1; } + div.vs-blog .comment-area > .media .media { + padding: 20px 0px 0px; } + div.vs-blog .comment-area .comment-buttons { + padding: 4px 0; + font-size: .96em; } + div.vs-blog .comment-area .comment-buttons .seperator { + color: #ddd; + margin: 0 8px; } + div.vs-blog .comment-area .comment-buttons .count { + color: #fff; + background: #ddd; + margin-left: 5px; + padding: 1px 3px; + font-size: 10px; + border-radius: 3px; } + div.vs-blog .comment-area .comment-buttons .count.count-up { + background: #999; } + div.vs-blog .comment-area .comment-buttons a { + opacity: .65; + margin-right: 10px; } + div.vs-blog .comment-area .comment-buttons a:hover { + opacity: 1; } + div.vs-blog .comment-area p { + margin-bottom: 6px; } + div.vs-blog .comment-area .comment-avatar { + width: 64px; } + div.vs-blog .comment-area .answer-avatar { + width: 64px; } + div.vs-blog > .form-group { + margin: 0 !important; } diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.min.css b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.min.css index dfcd02657a..344882996e 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.min.css +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.min.css @@ -1 +1 @@ -div.vs-blog{position:relative;background:#fff;padding:30px;font-family:'Open Sans',Helvetica,Arial,sans-serif;font-size:14px;}div.vs-blog a,div.vs-blog a:hover{text-decoration:none;color:#000;}div.vs-blog p{color:#444;}div.vs-blog p a{text-decoration:underline;}div.vs-blog h1,div.vs-blog h2,div.vs-blog h3,div.vs-blog h4,div.vs-blog h5,div.vs-blog h6,div.vs-blog .tab-title{font-family:Helvetica,Arial,sans-serif;font-weight:700;}div.vs-blog h1{font-size:2.25em;margin:1.5rem 0 .75rem;}div.vs-blog h2,div.vs-blog .tab-title{font-size:1.75em;margin:1.5rem 0 .75rem;}div.vs-blog h3{font-size:1.5em;margin:1.5rem 0 .75rem;}div.vs-blog h4{font-size:1.25em;margin:1.5rem 0 .75rem;}div.vs-blog h5{font-size:1em;}div.vs-blog h6{font-size:1em;}div.vs-blog .lead{font-size:1.1rem;font-weight:300;}div.vs-blog img{max-width:100%;}div.vs-blog input,div.vs-blog select,div.vs-blog textarea,div.vs-blog .form-control,div.vs-blog .btn{border-radius:0;}div.vs-blog .navbar-toggler{background:#0ff;}div.vs-blog .no-border{border:0;}div.vs-blog .btn-rounded{border-radius:30px;}div.vs-blog .list-group .list-group-item{position:relative;display:block;padding:0 0 20px 0;background:none;border-radius:0;border:0;}div.vs-blog .list-group .list-group-item:hover{background:none;}div.vs-blog .list-group .list-group-item+.list-group-item{border-top:1px solid #f5f5f5;padding:20px 0;}div.vs-blog .list-group .list-group-item h3{margin-top:0;}div.vs-blog .list-group.small-list .list-group-item{padding:10px 0;}div.vs-blog .list-group.small-list .list-group-item+.list-group-item{padding:10px 0;}div.vs-blog .font-75{font-size:.75em;}div.vs-blog .font-85{font-size:.85em;}div.vs-blog .font-92{font-size:.92em;}div.vs-blog .font-100{font-size:1em;}div.vs-blog .font-125{font-size:1.25em;}div.vs-blog .vs-blog-title{padding-bottom:15px;margin-bottom:25px;border-bottom:1px solid #ddd;}div.vs-blog .vs-blog-title h1,div.vs-blog .vs-blog-title h2,div.vs-blog .vs-blog-title h3,div.vs-blog .vs-blog-title h4,div.vs-blog .vs-blog-title h5,div.vs-blog .vs-blog-title h6{margin:0;padding:0;}div.vs-blog .vs-footer{padding-top:15px;margin-top:25px;border-top:1px solid #ddd;}div.vs-blog .vs-seperator{padding:0 4px;opacity:.3;}div.vs-blog .hero-section{padding:0;}div.vs-blog .hero-section .hero-articles{position:relative;overflow:hidden;}div.vs-blog .hero-section .hero-articles .hero-content{position:absolute;left:12%;right:12%;bottom:80px;z-index:4;text-align:center;}div.vs-blog .hero-section .hero-articles .hero-content h2{margin-top:0;font-size:2.5em;font-weight:bold;}div.vs-blog .hero-section .hero-articles .hero-content a{color:#fff;text-shadow:0 0 20px rgba(0,0,0,.5);}div.vs-blog .hero-section .hero-articles .hero-content p{color:#fff;}div.vs-blog .hero-section .hero-articles .tags .tag{background:rgba(208,208,208,.3);color:#fff !important;}div.vs-blog .hero-section .hero-articles .tags .tag:hover{background:#fff;color:#000 !important;}div.vs-blog .hero-section .hero-articles .article-owner{text-align:center;position:relative;z-index:12;}div.vs-blog .hero-section .hero-articles .article-owner .article-infos{color:#000;}div.vs-blog .hero-section .hero-articles .article-owner .article-infos a{color:#000;}div.vs-blog .hero-section .hero-articles .article-owner .article-infos .seperator{margin:0 4px;color:rgba(255,255,255,.2);}div.vs-blog .hero-section .hero-articles .article-owner .article-infos img.article-avatar{width:64px;margin:-25px 10px 0 0;border:3px solid #fff;display:inline-block;border-radius:50%;}div.vs-blog .hero-section .hero-articles .img-container{min-height:320px;}div.vs-blog .hero-section .hero-articles .img-container img{filter:grayscale(10%);}div.vs-blog .hero-section .hero-articles .img-container::after{content:"";display:block;position:absolute;z-index:1;bottom:0;width:100%;top:1% !important;background:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.75) 89%,rgba(0,0,0,.78) 93%) !important;transition:.2s all ease-in-out;opacity:.9;}div.vs-blog .hero-section .hero-articles:hover .img-container::after{opacity:1;}div.vs-blog .article-owner .article-infos{color:#000;}div.vs-blog .article-owner .article-infos a{color:rgba(0,0,0,.6);}div.vs-blog .article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}div.vs-blog .article-owner .article-infos img.article-avatar{width:30px;margin:-1px 4px 0 0;display:inline-block;border-radius:50%;}div.vs-blog .card-articles .card-content{padding:10px 0 10px;}div.vs-blog .card-articles .card-content h3{margin:10px 0;}div.vs-blog .card-articles .card-content h3 a{font-weight:700;}div.vs-blog .card-articles .article-owner{text-align:left;}div.vs-blog .card-articles .article-owner .article-infos{color:#000;}div.vs-blog .card-articles .article-owner .article-infos a{color:rgba(0,0,0,.6);}div.vs-blog .card-articles .article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}div.vs-blog .card-articles .article-owner .article-infos img.article-avatar{width:30px;margin:-1px 4px 0 0;display:inline-block;border-radius:50%;}div.vs-blog .article-owner{font-size:.85em;}div.vs-blog .user-link-icons{position:absolute;right:18px;top:15px;z-index:3;}div.vs-blog .user-link-icons a{display:inline-block;color:#eee;margin-left:12px;font-size:1.25em;}div.vs-blog .user-link-icons a:hover{color:#fff;}div.vs-blog .tags .tag{display:inline-block;padding:2px 8px;background:rgba(208,208,208,.3);border-radius:30px;margin:0 1px 3px 0;color:#b1b1b1 !important;font-size:.7em;line-height:1.6em;text-transform:uppercase;}div.vs-blog .tags .tag:hover{background:#000;color:#fff !important;}div.vs-blog .popular-tags a{display:block;font-size:.9em;}div.vs-blog .popular-tags a span{float:right;opacity:.3;font-size:.9em;}div.vs-blog .img-container{position:relative;overflow:hidden;border-radius:4px;background:#dcdcdc;}div.vs-blog .post-detail h1{padding:0 0;line-height:1.25em;font-size:3.5em;}div.vs-blog .post-detail .article-owner{text-align:center;position:relative;z-index:12;}div.vs-blog .post-detail .article-owner .article-infos{color:#000;}div.vs-blog .post-detail .article-owner .article-infos a{color:#000;color:rgba(0,0,0,.8);}div.vs-blog .post-detail .article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}div.vs-blog .post-detail .article-owner .article-infos img.article-avatar{width:64px;margin:-20px 10px 0 0;display:inline-block;border-radius:50%;border:3px solid #fff;}div.vs-blog .post-detail .post-content{font-size:1.125em;}div.vs-blog .post-detail .post-content .post-img-container{margin:50px -80px 20px;overflow:hidden;border-radius:4px;}div.vs-blog .post-detail .post-content .lead{font-size:1.125em;color:#111;}div.vs-blog .comment-avatar{max-width:64px;}div.vs-blog .answer-avatar{max-width:48px;}div.vs-blog .media{font-size:.95em;}div.vs-blog .media .media{font-size:.95em;}div.vs-blog .comment-area .comment-owner{margin-bottom:2px;}div.vs-blog .comment-area .comment-owner span{font-weight:300;color:#999;font-size:.8em;}div.vs-blog .comment-area>.media{padding:30px 0;border-bottom:1px solid #f1f1f1;}div.vs-blog .comment-area>.media .media{padding:20px 0;}div.vs-blog .comment-area .comment-buttons{padding:4px 8px;}div.vs-blog .comment-area .comment-buttons .seperator{color:#ddd;margin:0 8px;}div.vs-blog .comment-area .comment-buttons .count{color:#fff;background:#ddd;margin-left:5px;padding:1px 3px;font-size:10px;border-radius:3px;}div.vs-blog .comment-area .comment-buttons .count.count-up{background:#999;}div.vs-blog .comment-area .comment-buttons a{opacity:.5;}div.vs-blog .comment-area .comment-buttons a:hover{opacity:.75;}div.vs-blog .comment-area p{margin-bottom:6px;}div.vs-blog .comment-area .comment-avatar{width:64px;}div.vs-blog .comment-area .answer-avatar{width:48px;}@media(min-width:767px){div.vs-blog .box-articles .img-container{position:relative;overflow:hidden;}div.vs-blog .box-articles .img-container img{position:absolute;left:50%;top:50%;height:100%;width:auto;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:initial;}div.vs-blog .box-articles .img-container img.portrait{width:100%;height:auto;}} \ No newline at end of file +div.vs-blog{position:relative;background:#fff;padding:30px;font-family:'Open Sans',Helvetica,Arial,sans-serif;font-size:14px;}div.vs-blog a,div.vs-blog a:hover{text-decoration:none;color:#000;}div.vs-blog p{color:#444;}div.vs-blog p a{text-decoration:underline;}div.vs-blog h1,div.vs-blog h2,div.vs-blog h3,div.vs-blog h4,div.vs-blog h5,div.vs-blog h6,div.vs-blog .tab-title{font-family:Helvetica,Arial,sans-serif;font-weight:700;}div.vs-blog h1{font-size:2.25em;margin:1rem 0 1.5rem;}div.vs-blog h2,div.vs-blog .tab-title{font-size:1.5em;margin:1.5rem 0 .75rem;}div.vs-blog h3{font-size:1.5em;margin:1.5rem 0 .75rem;}div.vs-blog h4{font-size:1.25em;margin:1.5rem 0 .75rem;}div.vs-blog h5{font-size:1em;}div.vs-blog h6{font-size:1em;}div.vs-blog .lead{font-size:1.1rem;font-weight:300;}div.vs-blog img{max-width:100%;}div.vs-blog input,div.vs-blog select,div.vs-blog textarea,div.vs-blog .form-control,div.vs-blog .btn{border-radius:0;}div.vs-blog .navbar-toggler{background:#0ff;}div.vs-blog .no-border{border:0;}div.vs-blog .btn-rounded{border-radius:30px;}div.vs-blog .list-group .list-group-item{position:relative;display:block;padding:0 0 20px 0;background:none;border-radius:0;border:0;}div.vs-blog .list-group .list-group-item:hover{background:none;}div.vs-blog .list-group .list-group-item+.list-group-item{border-top:1px solid #f5f5f5;padding:20px 0;}div.vs-blog .list-group .list-group-item h3{margin-top:0;}div.vs-blog .list-group.small-list .list-group-item{padding:10px 0;}div.vs-blog .list-group.small-list .list-group-item+.list-group-item{padding:10px 0;}div.vs-blog .font-75{font-size:.75em;}div.vs-blog .font-85{font-size:.85em;}div.vs-blog .font-92{font-size:.92em;}div.vs-blog .font-100{font-size:1em;}div.vs-blog .font-125{font-size:1.25em;}div.vs-blog .vs-blog-title{padding-bottom:15px;margin-bottom:25px;border-bottom:1px solid #ddd;}div.vs-blog .vs-blog-title h1,div.vs-blog .vs-blog-title h2,div.vs-blog .vs-blog-title h3,div.vs-blog .vs-blog-title h4,div.vs-blog .vs-blog-title h5,div.vs-blog .vs-blog-title h6{margin:0;padding:0;}div.vs-blog .vs-footer{padding-top:15px;margin-top:25px;border-top:1px solid #ddd;}div.vs-blog .vs-seperator{padding:0 4px;opacity:.3;}div.vs-blog .hero-section{padding:0;}div.vs-blog .hero-section .hero-articles{position:relative;overflow:hidden;}div.vs-blog .hero-section .hero-articles .hero-content h2{margin-top:.5rem;font-size:2em;font-weight:bold;}div.vs-blog .hero-section .hero-articles .tags .tag{background:rgba(208,208,208,.3);color:#fff !important;}div.vs-blog .hero-section .hero-articles .tags .tag:hover{background:#fff;color:#000 !important;}div.vs-blog .hero-section .hero-articles .article-owner .article-infos{color:#000;}div.vs-blog .hero-section .hero-articles .article-owner .article-infos .seperator{margin:0 4px;color:rgba(255,255,255,.2);}div.vs-blog .hero-section .hero-articles .article-owner .article-infos img.article-avatar{display:inline-block;border-radius:50%;}div.vs-blog .hero-section .hero-articles .img-container img{width:100%;}div.vs-blog .hero-section .hero-articles:hover .img-container::after{opacity:1;}div.vs-blog .article-owner .article-infos{color:#000;}div.vs-blog .article-owner .article-infos a{color:rgba(0,0,0,.6);}div.vs-blog .article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}div.vs-blog .article-owner .article-infos img.article-avatar{width:48px;margin:-1px 4px 0 0;display:inline-block;border-radius:50%;}div.vs-blog .user-card h5 span{font-weight:300;opacity:.5;padding:0 5px;}div.vs-blog .card-articles .card-content{padding:10px 0 10px;}div.vs-blog .card-articles .card-content h3{margin:10px 0;}div.vs-blog .card-articles .card-content h3 a{font-weight:700;}div.vs-blog .card-articles .article-owner{text-align:left;}div.vs-blog .card-articles .article-owner .article-infos{color:#000;}div.vs-blog .card-articles .article-owner .article-infos a{color:rgba(0,0,0,.6);}div.vs-blog .card-articles .article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}div.vs-blog .card-articles .article-owner .article-infos img.article-avatar{width:30px;margin:-1px 4px 0 0;display:inline-block;border-radius:50%;}div.vs-blog .article-owner{font-size:.85em;}div.vs-blog .user-link-icons{position:absolute;right:18px;top:15px;z-index:3;}div.vs-blog .user-link-icons a{display:inline-block;color:#eee;margin-left:12px;font-size:1.25em;}div.vs-blog .user-link-icons a:hover{color:#fff;}div.vs-blog .tags{margin:2rem 0;padding:0 0 1.25rem 0;}div.vs-blog .tags .tag{display:inline-block;padding:4px 12px;background:rgba(208,208,208,.3);border-radius:4px;margin:0 2px 3px 0;color:#b1b1b1 !important;font-size:.85em;line-height:1.6em;text-transform:uppercase;transition:.25s;text-decoration:none;}div.vs-blog .tags .tag:hover{background:#000;color:#fff !important;}div.vs-blog .hero-section .tags{margin:1rem 0;padding:0 0 .5rem 0;}div.vs-blog .list-group-item .tags{margin:1rem 0 0;padding:0 0;}div.vs-blog .popular-tags a{display:block;font-size:.9em;}div.vs-blog .popular-tags a span{float:right;opacity:.3;font-size:.9em;}div.vs-blog .img-container{position:relative;overflow:hidden;border-radius:4px;background:#dcdcdc;}div.vs-blog .post-detail h1{padding:0 0;line-height:1.25em;font-size:3.5em;}div.vs-blog .post-detail .article-owner{text-align:center;position:relative;z-index:12;}div.vs-blog .post-detail .article-owner .article-infos{color:#000;}div.vs-blog .post-detail .article-owner .article-infos a{color:#000;color:rgba(0,0,0,.8);}div.vs-blog .post-detail .article-owner .article-infos .seperator{margin:0 4px;color:rgba(0,0,0,.2);}div.vs-blog .post-detail .article-owner .article-infos img.article-avatar{width:64px;margin:-20px 10px 0 0;display:inline-block;border-radius:50%;border:3px solid #fff;}div.vs-blog .post-detail .post-content{font-size:1.125em;}div.vs-blog .post-detail .post-content .post-img-container{margin:50px -80px 20px;overflow:hidden;border-radius:4px;}div.vs-blog .post-detail .post-content .lead{font-size:1.125em;color:#111;}div.vs-blog .media{font-size:.95em;}div.vs-blog .media .media{font-size:.95em;}div.vs-blog .comment-area{background:#f5f5f5;margin:1.5rem 0;padding:10px;}div.vs-blog .comment-area .comment-owner{margin-bottom:4px;margin-top:8px;}div.vs-blog .comment-area .comment-owner span{font-weight:300;opacity:.5;padding:0 5px;}div.vs-blog .comment-area .media{background:#fff;margin:1px;border-radius:4px;}div.vs-blog .comment-area>.media{padding:30px;border-bottom:1px solid #f1f1f1;}div.vs-blog .comment-area>.media .media{padding:20px 0 0;}div.vs-blog .comment-area .comment-buttons{padding:4px 0;font-size:.96em;}div.vs-blog .comment-area .comment-buttons .seperator{color:#ddd;margin:0 8px;}div.vs-blog .comment-area .comment-buttons .count{color:#fff;background:#ddd;margin-left:5px;padding:1px 3px;font-size:10px;border-radius:3px;}div.vs-blog .comment-area .comment-buttons .count.count-up{background:#999;}div.vs-blog .comment-area .comment-buttons a{opacity:.65;margin-right:10px;}div.vs-blog .comment-area .comment-buttons a:hover{opacity:1;}div.vs-blog .comment-area p{margin-bottom:6px;}div.vs-blog .comment-area .comment-avatar{width:64px;}div.vs-blog .comment-area .answer-avatar{width:64px;}div.vs-blog>.form-group{margin:0 !important;} \ No newline at end of file diff --git a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.scss b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.scss index b5bd681f53..61f44b9bb3 100644 --- a/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.scss +++ b/modules/blogging/src/Volo.Blogging.Web/Pages/Blog/Shared/Styles/blog.scss @@ -8,6 +8,9 @@ div.vs-blog { @import "header.scss"; @import "home.scss"; @import "post.scss"; - @import "custom.scss"; + @import "custom.scss"; + & >.form-group { + margin: 0 !important; + } }