noscript for home and category view (although it's not quite working for
category view yet)v1.18.x
parent
df5518f218
commit
05b91caf6c
@ -1,15 +1,50 @@
|
||||
@import "mixins";
|
||||
|
||||
noscript {
|
||||
.posts {
|
||||
.default {
|
||||
list-style-type: none;
|
||||
padding: 1em;
|
||||
margin-bottom: 1em;
|
||||
|
||||
&:nth-child(even) {
|
||||
background: rgba(191,191,191,0.2);
|
||||
}
|
||||
|
||||
&:nth-child(odd) {
|
||||
background: rgba(223,223,223,0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.categories {
|
||||
li {
|
||||
list-style-type: none;
|
||||
padding: 1em;
|
||||
margin-bottom: 1em;
|
||||
.default;
|
||||
|
||||
.icon {
|
||||
float: left;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
&:nth-child(even) {
|
||||
background: rgba(192,192,192,0.2);
|
||||
a {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.topics {
|
||||
li {
|
||||
.default;
|
||||
}
|
||||
|
||||
.teaser {
|
||||
img {
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.posts {
|
||||
li {
|
||||
.default;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
<ul class="breadcrumb">
|
||||
<li><a href="/">Home</a><span class="divider">/</span></li>
|
||||
<li class="active">{category_name}</li>
|
||||
<div id="category_active_users"></div>
|
||||
</ul>
|
||||
<ul class="topics">
|
||||
<!-- BEGIN topics -->
|
||||
<li>
|
||||
<a href="topic/{topics.slug}">{topics.title}</a>
|
||||
<div class="teaser">
|
||||
<img class="img-polaroid" src="../../graph/users/{topics.teaser_username}/picture" />
|
||||
<p>
|
||||
{topics.teaser_text} — {topics.teaser_timestamp} ago
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<!-- END topics -->
|
||||
</ul>
|
@ -0,0 +1,8 @@
|
||||
<div class="alert alert-error">
|
||||
<p>
|
||||
Your browser does not seem to support javascript. As a result, your viewing experience will be diminished.
|
||||
</p>
|
||||
<p>
|
||||
Please download a browser that supports javascript, or enable it, if it disabled (i.e. NoScript).
|
||||
</p>
|
||||
</div>
|
@ -0,0 +1,10 @@
|
||||
<ul class="categories">
|
||||
<!-- BEGIN categories -->
|
||||
<li>
|
||||
<div class="icon"><i class="{categories.icon} icon-4x"></i></div>
|
||||
<a href="category/{categories.slug}">{categories.name}</a>
|
||||
<p>{categories.description}</p>
|
||||
<div class="clear"></div>
|
||||
</li>
|
||||
<!-- END categories -->
|
||||
</ul>
|
Loading…
Reference in New Issue