Skip to content

Commit

Permalink
address a bunch of HTML violations
Browse files Browse the repository at this point in the history
  • Loading branch information
pichalite committed Apr 3, 2017
1 parent 33181a6 commit 877818b
Show file tree
Hide file tree
Showing 19 changed files with 277 additions and 265 deletions.
6 changes: 5 additions & 1 deletion less/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@
}
}

a.btn-info {
color: #fff;
}

.open>.dropdown-toggle.btn-info:hover, .open>.dropdown-toggle.btn-info:focus, .open>.dropdown-toggle.btn-info.focus {
color: #fff;
background-color: #006f7d;
Expand Down Expand Up @@ -1030,7 +1034,7 @@ tbody.collapse.in {
}
}
}
}
}
}
}
}
Expand Down
58 changes: 29 additions & 29 deletions less/categories.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
color: #fff;
}

small {
font-size: 12px;
.category-description {
font-size: 13px;
}

.category-counts {
Expand Down Expand Up @@ -80,36 +80,36 @@
}

.category {

margin-left: -10px;
margin-right: -10px;

.category-card {
height: 200px;
}

[component="topic/select"] {
&:before {
content: "";
display: none;
}
}

.listview {
.user-avatar {
.user-avatar(40px);
}

.user-icon {
.user-icon(40px, 2rem);
}
}

.category-card {
.user-avatar {
.user-avatar(35px);
}

.user-icon {
.user-icon(35px, 1.9rem);
}
Expand All @@ -121,7 +121,7 @@
.user-avatar {
.user-avatar(40px);
}

.user-icon {
.user-icon(40px, 2rem);
}
Expand All @@ -132,11 +132,11 @@
.topic-title {
color: @topic-title-color;
}

&.unread {
.topic-title {
color: @anchor-color;
}
}
}
}

Expand Down Expand Up @@ -206,28 +206,28 @@
padding: 0;
margin-right: 15px;
}

.lv-body {
.lv-item {
padding: 15px 20px 10px 20px;

@media (max-width: @screen-sm-max) {
padding: 10px 0;
}

&.media {
.stat {
text-align: center;

.human-readable-number {
font-size: 15px;
}

span {
font-size: 12px;
}
}

.icon {
font-size: 16px;
line-height: 17px;
Expand All @@ -237,44 +237,44 @@
min-width: 46px;
min-height: 46px;
}

.category-title {
font-size: 17px;
line-height: 22px;

.lv-small {
font-weight: 300;

p {
margin-bottom: 0;
}
}
}
}

.last-post {
height: 53px;
overflow: hidden;
}

[component="category/posts"] {

.user-avatar {
margin-right: 10px;
margin-top: 5px;
img, .user-icon {
.user-icon(32px, 1.5rem);
}
}

.topic-content {
display: block;
font-size: 12px;
}
}
}
}

.subcategories {
&.lv-item {
&.media {
Expand All @@ -289,13 +289,13 @@
font-size: 12px;
margin-left: 15px;
}

.category-title {
font-size: 13px;

.lv-small {
font-weight: 300;

p {
margin-bottom: 0;
}
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions templates/categories.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div component="categories/category" data-cid="{categories.cid}" class="<!-- IF categories.class -->{categories.class}<!-- ELSE -->col-md-3 col-sm-6 col-xs-12<!-- ENDIF categories.class -->">
<div class="category-card" style="{function.generateCategoryBackground}">
<!-- IF categories.link -->
<a href="{categories.link}" itemprop="url" target="_blank" >
<a href="{categories.link}" itemprop="url" target="_blank">
<!-- ELSE -->
<a href="{config.relative_path}/category/{categories.slug}" itemprop="url" >
<a href="{config.relative_path}/category/{categories.slug}">
<!-- ENDIF categories.link -->
<div class="category-card-body">
<ul class="category-counts pull-right">
Expand All @@ -22,7 +22,7 @@
<i class="fa {categories.icon} fa-fw"></i>
<!-- ENDIF categories.icon -->
</h4>
<small>{categories.descriptionParsed}</small>
<div class="category-description">{categories.descriptionParsed}</div>
</div>
</a>
<div class="category-card-footer">
Expand Down

0 comments on commit 877818b

Please sign in to comment.