Skip to content

Commit

Permalink
fix search, like target
Browse files Browse the repository at this point in the history
  • Loading branch information
oulvhai authored and oulvhai committed Mar 20, 2016
1 parent ef3e206 commit 22540be
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 20 deletions.
16 changes: 8 additions & 8 deletions asset/css/docs.css
Expand Up @@ -14,7 +14,7 @@

.top-bar-section ul li{ background: transparent;}
.top-bar-section li:not(.has-form){ display: inline-block;
margin-right: 20px;
margin-right: 20px;
}
.top-bar-section li{ }
#sidebar{ margin-top: 0px;}
Expand All @@ -26,7 +26,7 @@
font-size: 12px;
text-transform: uppercase;

margin:0;
margin:0;
font-family: "jaf-bernino-sans","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;
letter-spacing: .1rem;
padding: 28px 0 0px 0;
Expand All @@ -37,20 +37,20 @@

.top-bar-section li:not(.has-form) a:not(.button):hover {
background: transparent;
color: #333;
color: #333;
font-weight: normal;

}
.top-bar-section li.is_active:not(.has-form) a:not(.button) {
background: transparent;
font-weight: 700;
color: #333;
color: #333;
border-bottom: 2px rgba(0,0,0,0.8) solid;
}
.top-bar-section li.is_active:not(.has-form) a:not(.button):hover {
background: transparent;
font-weight: 700;
color: #333;
color: #333;
border-bottom: 2px rgba(0,0,0,0.8) solid;
}
#main-menu{ padding-left: 0.93rem; padding-right: 0.93rem;}
Expand Down Expand Up @@ -124,7 +124,7 @@ padding: 8px 0px; margin: 0;

#site-categories .posts-list{ list-style: none; padding: 0; margin: 0; }
#site-categories .posts-list li{

margin: 0; padding: 12px 0;
display: block;
border-bottom: 1px solid #eee; font-size: 12px;
Expand All @@ -136,7 +136,7 @@ padding: 8px 0px; margin: 0;
#site-categories .posts-list li:first-child{padding-top: 0px;}
#site-categories .posts-list li:last-child{ border-bottom: none;}
#site-categories .posts-list li a{ color: #666;
text-decoration: none; white-space: nowrap;
text-decoration: none; white-space: nowrap;
cursor: pointer;
}
#site-categories .posts-list li a:hover{text-decoration: underline;}
Expand Down
38 changes: 26 additions & 12 deletions sidebar.html
Expand Up @@ -8,21 +8,35 @@
<h1>{{ siteName }}</h1>
<div class="site-des">{{ siteDes }}</div>
<div class="social">
{% if ext_facebook_url.length %}<a class="facebook" href="{{ ext_facebook_url }}" title="Facebook">Facebook</a>{% /if %}
{% if ext_google_url.length %}<a class="google" href="{{ ext_google_url }}" rel="author" title="Google+">Google+</a>{% /if %}
{% if ext_stackoverflow_url.length %}<a class="stackoverflow" href="{{ ext_stackoverflow_url }}" title="StackOverflow"></a>{% /if %}
{% if ext_linkedin_url.length %}<a class="linkedin" href="{{ ext_linkedin_url }}" title="LinkedIn">LinkedIn</a>{% /if %}
{% if ext_pinterest_url.length %}<a class="pinterest" href="{{ ext_pinterest_url }}" title="Pinterest">Pinterest</a>{% /if %}
{% if ext_quora_url.length %}<a class="quora" href="{{ ext_quora_url }}" title="Quora">Quora</a>{% /if %}
{% if ext_instagram_url.length %}<a class="instagram" href="{{ ext_instagram_url }}" title="Instagram">Instagram</a>{% /if %}
{% if ext_weibo_url.length %}<a class="weibo" target="_blank" href="{{ ext_weibo_url }}" title="weibo">Weibo</a>{% /if %}
{% if ext_twitter_url.length %}<a class="twitter" target="_blank" href="{{ ext_twitter_url }}" title="Twitter">Twitter</a>{% /if %}
{% if ext_github_url.length %}<a class="github" target="_blank" href="{{ ext_github_url }}" title="GitHub">GitHub</a>{% /if %}
{% if ext_email.length %}<a class="email" href="mailto:{{ ext_email }}" title="Email">Email</a>{% /if %}
<a class="rss" href="atom.xml" title="RSS">RSS</a>
{% if ext_facebook_url.length %}<a target="_blank" class="facebook" href="{{ ext_facebook_url }}" title="Facebook">Facebook</a>{% /if %}
{% if ext_google_url.length %}<a target="_blank" class="google" href="{{ ext_google_url }}" rel="author" title="Google+">Google+</a>{% /if %}
{% if ext_stackoverflow_url.length %}<a target="_blank" class="stackoverflow" href="{{ ext_stackoverflow_url }}" title="StackOverflow"></a>{% /if %}
{% if ext_linkedin_url.length %}<a target="_blank" class="linkedin" href="{{ ext_linkedin_url }}" title="LinkedIn">LinkedIn</a>{% /if %}
{% if ext_pinterest_url.length %}<a target="_blank" class="pinterest" href="{{ ext_pinterest_url }}" title="Pinterest">Pinterest</a>{% /if %}
{% if ext_quora_url.length %}<a target="_blank" class="quora" href="{{ ext_quora_url }}" title="Quora">Quora</a>{% /if %}
{% if ext_instagram_url.length %}<a target="_blank" class="instagram" href="{{ ext_instagram_url }}" title="Instagram">Instagram</a>{% /if %}
{% if ext_weibo_url.length %}<a target="_blank" class="weibo" href="{{ ext_weibo_url }}" title="weibo">Weibo</a>{% /if %}
{% if ext_twitter_url.length %}<a target="_blank" class="twitter" target="_blank" href="{{ ext_twitter_url }}" title="Twitter">Twitter</a>{% /if %}
{% if ext_github_url.length %}<a target="_blank" class="github" target="_blank" href="{{ ext_github_url }}" title="GitHub">GitHub</a>{% /if %}
{% if ext_email.length %}<a target="_blank" class="email" href="mailto:{{ ext_email }}" title="Email">Email</a>{% /if %}
<a target="_blank" class="rss" href="atom.xml" title="RSS">RSS</a>

</div>
</div>

{% if ext_global_notice.length %}
<div id="site-categories" class="side-item ">
<div class="side-header">
<h2>Important</h2>
</div>
<div class="side-content">
<div style="color:#ff0000; text-align:center; padding:8px;" class="bg-info site_notice">
{{ ext_global_notice }}
</div>
</div>
</div>
{% /if %}

<div id="site-categories" class="side-item ">
<div class="side-header">
<h2>Categories</h2>
Expand Down

0 comments on commit 22540be

Please sign in to comment.