Skip to content
Permalink
Browse files

Improve section view

- Add section.tpl
- Clean code,
- and more
  • Loading branch information...
youhosi committed Mar 11, 2019
1 parent 1f8f66e commit 153ac87273c18fd030f19de37b55e94276fc3ea5
@@ -2,10 +2,9 @@
.categories > p {
text-transform: uppercase;
color: @gray-light;
margin: 0 0 10px;
margin: 15px 0;
font-weight: normal;
.inline-block;
width: 100%;
display: block;
}

.categories,
@@ -79,7 +78,7 @@
font-size: @font-size-large;
line-height: @font-size-large;
text-align: center;

small {
text-transform: uppercase;
color: @gray-light;
@@ -119,7 +118,7 @@
display: table;
table-layout: fixed;
width: 100%;

.avatar,
.info {
display: table-cell;
@@ -181,6 +180,18 @@
}

.categories {
.section {

> li {
margin: 0 !important;
padding-bottom: 10px;

&:last-child {
padding-bottom: 0 !important;
}
}
}

li {
.category-details {
.category-color {
@@ -199,7 +210,7 @@
margin-bottom: 10px;

&:last-child {
padding-right: 10px;
padding-right: 10px;
}

.icon {
@@ -6,10 +6,13 @@
</div>
<div class="row">
<div class="<!-- IF widgets.sidebar.length -->col-lg-9 col-sm-12<!-- ELSE -->col-lg-12<!-- ENDIF widgets.sidebar.length -->">
<h6 class="categories-title">[[pages:categories]]</h6>
<ul class="categories" itemscope itemtype="http://www.schema.org/ItemList">
<!-- BEGIN categories -->
<!-- IMPORT partials/categories/item.tpl -->
<!-- IF ../isSection -->
<!-- IMPORT partials/categories/section.tpl -->
<!-- ELSE -->
<!-- IMPORT partials/categories/item.tpl -->
<!-- ENDIF ../isSection -->
<!-- END categories -->
</ul>
</div>
@@ -1,11 +1,7 @@
<!-- IF ../isSection -->
{../name}
<!-- ELSE -->
<!-- IF ../link -->
<a href="{../link}" itemprop="url">
<!-- ELSE -->
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
<!-- ENDIF ../link -->
{../name}
</a>
<!-- ENDIF ../isSection -->
</a>
@@ -0,0 +1,12 @@
<div data-cid="{../cid}" class="section row clearfix">
<h6 class="categories-title">
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
<i class="fa fa-fw fa-chevron-right pull-right"></i>
{../name}
</a>
</h6>

<!-- BEGIN ../children -->
<!-- IMPORT partials/categories/item.tpl -->
<!-- END ../children -->
</div>

0 comments on commit 153ac87

Please sign in to comment.
You can’t perform that action at this time.