Commit 6b6ec4fe authored by Chi Bui's avatar Chi Bui 👀

edit themes

parent 10023cb0
.se-block {
margin-bottom: 35px;
}
.user-logged {
margin: 10px;
}
.user-logged a {
color: white;
}
.user-logged a:hover {
color: white;
text-decoration: underline;
}
.login-form__submit {
padding-top: 10px;
}
.form-submit {
padding: 8px 16px;
background: #008c3e;
color: white;
border-radius: 0;
line-height: 1;
}
.user-register-form .form-actions .form-submit {
width: 100%;
}
.login-form__submit .form-submit {
width: 100%;
}
.be-comment-block {
margin-bottom: 50px !important;
border: 1px solid #edeff2;
border-radius: 2px;
/* padding: 50px 70px; */
border: 1px solid #ffffff;
}
.comments-title {
font-size: 18px;
color: #212529;
margin-bottom: 15px;
}
.be-img-comment {
width: 60px;
height: 60px;
float: left;
margin-bottom: 15px;
}
.be-ava-comment {
width: 60px;
height: 60px;
border-radius: 50%;
}
.be-comment-content {
margin-left: 80px;
}
.be-comment-content span {
display: inline-block;
width: 49%;
margin-bottom: 15px;
}
.be-comment-name {
font-size: 13px;
}
.be-comment-content a {
color: #383b43;
}
.be-comment-content span {
display: inline-block;
width: 49%;
margin-bottom: 15px;
}
.be-comment-time {
text-align: right;
}
.be-comment-time {
font-size: 13px;
color: #b4b7c1;
}
.field--name-comment-body p {
font-size: 16px;
line-height: 18px;
color: #212529;
display: block;
background: #f6f6f7;
border: 1px solid #edeff2;
padding: 15px 20px 20px 20px;
}
.text-formatted .d-flex {
margin-bottom: -26px;
}
.social-center {
margin: auto;
width: 50%;
padding: 0px 10px;
}
.block-socialauthlogin-2 {
padding-top: 15px;
}
.footer__brand .text-uppercase a {
font-size: 24px;
color: white;
font-weight: 600;
}
.footer__location,
.footer__license {
margin-top: 20px;
}
@media (max-width: 991px) {
.footer__license {
padding-top: 40px;
}
}
.text-white a {
color: #fff;
}
\ No newline at end of file
/* Custom style for drupal */ /* custom CSS */
.form-item{ .form-item{
margin-top: 0; margin-top: 0;
...@@ -6,3 +6,7 @@ ...@@ -6,3 +6,7 @@
.new-detail__comment #edit-actions{ .new-detail__comment #edit-actions{
text-align: right; text-align: right;
} }
ul.inline li{
padding: 0 10px 0 0 !important;
}
.a0{display: inline-block;margin: 12px 28px;}
.a1{color: #008c3e; font-style:italic; margin-top: 30px }
.a1a{color: white; font-style:italic;font-weight: bold; padding-top: 10px; }
.a2{color: #8dc63f; font-size: 12px; font-style:italic}
body{
font-family: Roboto !important
}
.heada{display: flex;}
.navbar{
width: 100%;
background:#008c3e;
padding: 0;
height: 45px;
}
.nav-item{
padding-top: 3px;
padding-bottom:4px;
padding-right:3px
}
.nav-item:hover{
background: #8dc63f;
}
.nav-item a{
color: white !important;
font-size:14px
}
.navbar-brand{
color: white;
}
.a12{
color: white;
margin-top:9px;
}
.a13{
padding-left:172px
}
.a123{
color: white;
font-size: 15px;
margin-top:9px;
}
.b1{ margin-top: 12px; margin-right: 8px; margin-left: 207px}
.b2{ margin: 12px; text-align: center; }
.headline{ display: flex;font-size: 12px;
padding-top: 15px;
padding-bottom: 13px;}
.headline div{
color: red;
padding-right: 15px;
letter-spacing: 3px
}
.c1{margin-top: 3px; margin-right:2px; color:#8dc63f}
.c2{
padding-right: 23px;
}
.d{
display: flex
}
.d1{
height: 35px;
width: 32px;
background: #8dc63f;
color: white;
}
.d2{
height: 35px;
width: 186px;
background: #008c3e;
color: white;
font-size: 14px;
padding-top:7px
}
.ke{
width: 100%;
border-bottom: 3px #008c3e solid;
}
.e0{font-size: 20px;letter-spacing: 0px;font-weight: bold;margin-top: 7px;}
.e2{font-size: 16px;}
.e1{color: gray;font-size: 13px;}
.e4{display: flex;padding-bottom: 20px;}
.trai{
width: 130px;
}
.phai{
width: 360px;
margin-left: 21px;
}
.phai1{
color: gray;
font-size: 13px
}
.phai2{
font-size:14px;
margin-bottom: 9px;
font-weight: bold;
}
p {
margin-top: 0;
margin-bottom: 3px;
}
.e5{padding-bottom: 35px}
.e{ border-bottom: 1px rgb(206, 199, 199) dashed;}
.g1{
color: #8dc63f;
font-size: 18px;
font-weight: bold
}
.g2{
font-size: 14px
}
.ee{
padding-top: 15px; padding-bottom: 15px;
border-bottom: 1px rgb(206, 199, 199) dashed;
}
.g4{
display: flex;
padding-top:60px
}
.g4a{
height: 35px;
width: 35px;
background: #bbbbbb;
color: white;
}
.g4b{
height: 35px;
width: 236px;
background: #909090;
color: white;
font-size: 14px;
padding-top:7px;
margin-bottom: 12px;
}
.g5{display: flex}
.g5a{
margin-top: 20px;
padding: 3px 12px;
margin-bottom:30px;
background-color: #909090;
color: white;
padding-top: 3px;
font-size:20px;
font-weight:bold;
}
.g5b{
margin-top: 20px;
margin-bottom:10px;
margin-left: 10px;
font-size:13px;
font-weight:bold;
}
.g6{
padding-top: 10px;
}
.g6a{
padding-bottom: 22px;
}
.footer{
left: 0;
bottom: 0;
width: 100%;
background-color: #008c3e;
color: white;
text-align: center;
border-bottom: 5px #8dc63f solid;
height: 75px;
}
.footer .container .row .col-xl-4,.col-xl-5{ font-size: 12px; padding-top: 15px}
.footer .container .row .col-xl-4 p{
color: #8dc63f
}
\ No newline at end of file
This diff is collapsed.
...@@ -409,8 +409,10 @@ img { ...@@ -409,8 +409,10 @@ img {
margin: 15px 0; margin: 15px 0;
h4 { h4 {
font-size: 24px; font-size: 24px;
color: white;
font-weight: 600; font-weight: 600;
a {
color: white;
}
} }
p { p {
font-size: 12px; font-size: 12px;
...@@ -419,6 +421,7 @@ img { ...@@ -419,6 +421,7 @@ img {
} }
& &__license { & &__license {
margin-top: 20px;
font-size: 12px; font-size: 12px;
div { div {
color: white; color: white;
...@@ -429,6 +432,8 @@ img { ...@@ -429,6 +432,8 @@ img {
} }
& &__location { & &__location {
margin-top: 20px;
font-size: 12px; font-size: 12px;
color: white; color: white;
i { i {
...@@ -458,6 +463,10 @@ img { ...@@ -458,6 +463,10 @@ img {
.sliders-news { .sliders-news {
& &-item { & &-item {
margin-bottom: 20px; margin-bottom: 20px;
a {
width: 100%;
display: block;
}
img { img {
width: 100%; width: 100%;
height: 150px; height: 150px;
...@@ -566,6 +575,7 @@ img { ...@@ -566,6 +575,7 @@ img {
// Common class // Common class
.custom-slick { .custom-slick {
.btn-control { .btn-control {
z-index: 50;
color: #e5e5e5; color: #e5e5e5;
font-size: 30px; font-size: 30px;
font-weight: bold; font-weight: bold;
...@@ -613,6 +623,7 @@ img { ...@@ -613,6 +623,7 @@ img {
} }
.line { .line {
height: 0;
width: 100%; width: 100%;
border-bottom: 2px #008c3e solid; border-bottom: 2px #008c3e solid;
margin-top: -2px; margin-top: -2px;
...@@ -639,6 +650,10 @@ a { ...@@ -639,6 +650,10 @@ a {
} }
} }
.slider-container {
max-width: 100%;
width: 100%;
}
.header-nav { .header-nav {
margin-top: 10px; margin-top: 10px;
} }
...@@ -655,7 +670,7 @@ a { ...@@ -655,7 +670,7 @@ a {
line-height: 1; line-height: 1;
} }
} }
.highlight{ .highlight {
color: #008c3e; color: #008c3e;
cursor: pointer; cursor: pointer;
} }
...@@ -684,7 +699,7 @@ a { ...@@ -684,7 +699,7 @@ a {
box-shadow: none !important; box-shadow: none !important;
line-height: 1; line-height: 1;
} }
.form-group{ .form-group {
margin-bottom: 20px; margin-bottom: 20px;
} }
.btn-close { .btn-close {
...@@ -709,37 +724,76 @@ a { ...@@ -709,37 +724,76 @@ a {
} }
} }
.header-account__social { .header-account__social {
margin-top: 25px ; margin-top: 25px;
margin-bottom: 35px; margin-bottom: 35px;
&-item{ &-item {
cursor: pointer; cursor: pointer;
padding: 6px 15px; padding: 6px 15px;
color: white; color: white;
i{ i {
font-size: 13px; font-size: 13px;
margin-right: 8px; margin-right: 8px;
} }
&.fb{ &.fb {
background: #4267b2; background: #4267b2;
} }
&.gg{ &.gg {
background: #db4437; background: #db4437;
} }
} }
} }
.notification{ .notification {
font-size: 13px; font-size: 13px;
} }
.btn-submit{ .btn-submit {
padding: 8px 16px; padding: 8px 16px;
background: #008c3e; background: #008c3e;
color: white; color: white;
width: 100%; width: 100%;
} }
.btn{ .btn {
border-radius: 0; border-radius: 0;
line-height: 1; line-height: 1;
} }
}
}
.media-comment {
display: flex;
align-items: flex-start;
margin-bottom: 30px;
img {
border-radius: 50%;
height: 60px;
width: 60px;
flex: 0 0 60px;
object-fit: cover;
margin-right: 15px;
}
& &-body {
position: relative;
display: inline-block;
padding: 16px;
background-color: #f9fafb;
border-radius: 10px;
padding-right: 30px;
font-size: 14px;
}
& &-name{
font-size: 16px;
a{
color: #008c3e;
}
}
& &-data-person {
margin-bottom: 6px;
display: flex;
align-items: center;
}
.media-content{
flex: 1;
.media-comment-body{
width: 100%;
}
} }
} }
...@@ -8,7 +8,6 @@ global-styling: ...@@ -8,7 +8,6 @@ global-styling:
assets/css/font/fontawesome/css/all.css: {} assets/css/font/fontawesome/css/all.css: {}
assets/css/index.css: {} assets/css/index.css: {}
assets/css/style.css: {} assets/css/style.css: {}
assets/css/custom.css: {}
//fonts.googleapis.com/css?family=Roboto: {} //fonts.googleapis.com/css?family=Roboto: {}
js: js:
assets/js/lib/bootstrap.js: {} assets/js/lib/bootstrap.js: {}
......
{#
/**
* @file
* Theme override for comments.
*
* Available variables:
* - author: Comment author. Can be a link or plain text.
* - content: The content-related items for the comment display. Use
* {{ content }} to print them all, or print a subset such as
* {{ content.field_example }}. Use the following code to temporarily suppress
* the printing of a given child element:
* @code
* {{ content|without('field_example') }}
* @endcode
* - created: Formatted date and time for when the comment was created.
* Preprocess functions can reformat it by calling DateFormatter::format()
* with the desired parameters on the 'comment.created' variable.
* - changed: Formatted date and time for when the comment was last changed.
* Preprocess functions can reformat it by calling DateFormatter::format()
* with the desired parameters on the 'comment.changed' variable.
* - permalink: Comment permalink.
* - submitted: Submission information created from author and created
* during template_preprocess_comment().
* - user_picture: The comment author's profile picture.
* - status: Comment status. Possible values are:
* unpublished, published, or preview.
* - title: Comment title, linked to the comment.
* - attributes: HTML attributes for the containing element.
* The attributes.class may contain one or more of the following classes:
* - comment: The current template type; e.g., 'theming hook'.
* - by-anonymous: Comment by an unregistered user.
* - by-{entity-type}-author: Comment by the author of the parent entity,
* eg. by-node-author.
* - preview: When previewing a new or edited comment.
* The following applies only to viewers who are registered users:
* - unpublished: An unpublished comment visible only to administrators.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional output populated by modules, intended to be
* displayed after the main title tag that appears in the template.
* - content_attributes: List of classes for the styling of the comment content.
* - title_attributes: Same as attributes, except applied to the main title
* tag that appears in the template.
* - threaded: A flag indicating whether the comments are threaded or not.
*
* These variables are provided to give context about the parent comment (if
* any):
* - parent_comment: Full parent comment entity (if any).
* - parent_author: Equivalent to author for the parent comment.
* - parent_created: Equivalent to created for the parent comment.
* - parent_changed: Equivalent to changed for the parent comment.
* - parent_title: Equivalent to title for the parent comment.
* - parent_permalink: Equivalent to permalink for the parent comment.
* - parent: A text string of parent comment submission information created from
* 'parent_author' and 'parent_created' during template_preprocess_comment().
* This information is presented to help screen readers follow lengthy
* discussion threads. You can hide this from sighted users using the class
* visually-hidden.
*
* These two variables are provided for context:
* - comment: Full comment object.
* - entity: Entity the comments are attached to.
*
* @see template_preprocess_comment()
*/
#}
<!-- /review-box -->
<div class="media-comment">
<!-- user_picture -->
<img src="{{ file_url(comment.getOwner.user_picture.entity.fileuri) }}" alt="sgmt" class="avatar-content">
<div class="media-content">
<div class="media-comment-body">
<div class="media-comment-data-person justify-content-between">
<div class="media-comment-name mr-2">
{{ author }}
</div>
<span class="text-muted"> {{comment.created.value|date('d/m/Y')}}</span></div>
<div class="media-comment-text">{{content}}</div>
</div>
</div>
</div>
{{ comments }}
{% if comment_form %}
<div class="comments-post">
<div class="container">
<div class="post-comment">
<h4{{ content_attributes }}>{{ 'Post Comment'|t }}</h4>
{{ comment_form }}
</div>
</div>
</div>
{% endif %}
{#
/**
* @file
* Default theme override for comment fields.
*
* Available variables:
* - attributes: HTML attributes for the containing element.
* - label_hidden: Whether to show the field label or not.
* - title_attributes: HTML attributes for the title.
* - label: The label for the field.
* - title_prefix: Additional output populated by modules, intended to be
* displayed in front of the main title tag that appears in the template.
* - title_suffix: Additional title output populated by modules, intended to
* be displayed after the main title tag that appears in the template.
* - comments: List of comments rendered through comment.html.twig.
* - content_attributes: HTML attributes for the form title.
* - comment_form: The 'Add new comment' form.
* - comment_display_mode: Is the comments are threaded.
* - comment_type: The comment type bundle ID for the comment field.
* - entity_type: The entity type to which the field belongs.
* - field_name: The name of the field.
* - field_type: The type of the field.
* - label_display: The display settings for the label.
*
* @see template_preprocess_field()
* @see comment_preprocess_field()
*/
#}
{{ comments }}
{% if comment_form %}
<div class="comments-post">
{{ comment_form }}
</div>
{% endif %}
<div class="new-detail__comment">
<form{{ attributes.addClass('form-group mb-0') }}>
{{ children }}
</form>
</div>
<div class="container"> <div class="row">
<h2 class="mt-5 mb-3">Bài viết liên quan</h2> <div class="col-lg-9 col-12">
<section class="sliders-news type-3 custom-slick"> <div class="container">
{% for row in rows %} <h2 class=" mb-3">Bài viết liên quan</h2>
<div class="sliders-news-item"> <section class="sliders-news type-3 custom-slick mb-5">
{% set photo = file_url(row['content']['#row']._entity.field_image.entity.fileuri) %} {% for row in rows %}
<a href="/node/{{row.content['#row']._entity.nid[0].value}}"> <div class="sliders-news-item">
<img src="{{photo}}" alt="{{ row['content']['#row']._entity.field_image.alt}}"></a> {% set photo = file_url(row['content']['#row']._entity.field_image.entity.fileuri) %}
<div class="sliders-news-item__title"> <a href="/node/{{row.content['#row']._entity.nid[0].value}}">
<a href="/node/{{row.content['#row']._entity.nid[0].value}}">{{row.content['#row']._entity.title[0].value}} <img src="{{photo}}" alt="{{ row['content']['#row']._entity.field_image.alt}}"></a>
</a> <div class="sliders-news-item__title">
<a href="/node/{{row.content['#row']._entity.nid[0].value}}">{{row.content['#row']._entity.title[0].value}}
</a>
</div>
<div class="d-flex icon align-items-center">
<i class="fas fa-clock"></i>
<span class="mr-3">&ensp;{{ row['content']['#row']._entity.created[0].value|date('d/m/Y') }}</span>
<i class="fas fa-comments"></i>
<span>&ensp;{{row.content['#row']._entity.comment.comment_count}}</span>
</div>
</div> </div>
<div class="d-flex icon align-items-center"> {% endfor %}
<i class="fas fa-clock"></i> </section>
<span class="mr-3">&ensp;{{ row['content']['#row']._entity.created[0].value|date('d/m/Y') }}</span> </div>
<i class="fas fa-comments"></i>
<span>&ensp;{{row.content['#row']._entity.comment.comment_count}}</span> </div>
</div> </div>
</div>
{% endfor %}
</section>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment