mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Merge branch 'alertclickable'
This commit is contained in:
commit
0216bf3f64
3 changed files with 13 additions and 10 deletions
|
@ -24,7 +24,7 @@
|
||||||
<div id="detectmobile" class="detectmobile"></div>
|
<div id="detectmobile" class="detectmobile"></div>
|
||||||
{% if site.ALERT %}
|
{% if site.ALERT %}
|
||||||
<div class="banner-message alert">
|
<div class="banner-message alert">
|
||||||
<div><div>{{ site.ALERT }}</div></div>
|
<a href="{{ site.ALERTURL }}"><span>{{ site.ALERT }}</span></a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="head"><div>
|
<div class="head"><div>
|
||||||
|
|
|
@ -142,27 +142,29 @@ table td,table th{
|
||||||
font-style:italic;
|
font-style:italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner-message div div{
|
|
||||||
margin:auto;
|
|
||||||
width:850px;
|
|
||||||
padding:10px;
|
|
||||||
}
|
|
||||||
.banner-message,
|
.banner-message,
|
||||||
.banner-message a,
|
.banner-message a,
|
||||||
.banner-message a:link,
|
.banner-message a:link,
|
||||||
.banner-message a:active,
|
.banner-message a:active,
|
||||||
.banner-message a:visited{
|
.banner-message a:visited{
|
||||||
|
display:block;
|
||||||
color:#fff;
|
color:#fff;
|
||||||
}
|
}
|
||||||
.banner-message a:hover{
|
.banner-message a:hover{
|
||||||
text-decoration:underline;
|
text-decoration:underline;
|
||||||
}
|
}
|
||||||
.banner-message.alert div{
|
.banner-message.alert a{
|
||||||
background-color:#c5251f;
|
background-color:#c5251f;
|
||||||
}
|
}
|
||||||
.banner-message.info div{
|
.banner-message.info a{
|
||||||
background-color:#0d579b;
|
background-color:#0d579b;
|
||||||
}
|
}
|
||||||
|
.banner-message a span{
|
||||||
|
display:block;
|
||||||
|
margin:auto;
|
||||||
|
width:850px;
|
||||||
|
padding:10px;
|
||||||
|
}
|
||||||
|
|
||||||
.head{
|
.head{
|
||||||
margin:30px 0 30px 0;
|
margin:30px 0 30px 0;
|
||||||
|
@ -2162,7 +2164,7 @@ h2 .rssicon{
|
||||||
margin:auto;
|
margin:auto;
|
||||||
margin-bottom:5px;
|
margin-bottom:5px;
|
||||||
}
|
}
|
||||||
.banner-message div div{
|
.banner-message a span{
|
||||||
width:auto;
|
width:auto;
|
||||||
}
|
}
|
||||||
.head{
|
.head{
|
||||||
|
|
|
@ -37,7 +37,8 @@ module Jekyll
|
||||||
else
|
else
|
||||||
self.data['category'] = 'alert'
|
self.data['category'] = 'alert'
|
||||||
if self.data.has_key?('banner') and !self.data['banner'].nil? and self.data['banner'].length>0
|
if self.data.has_key?('banner') and !self.data['banner'].nil? and self.data['banner'].length>0
|
||||||
site.config['ALERT']='<a href="/'+dstdir+'/'+dst.gsub('.html','')+'">'+self.data['banner']+'</a>'
|
site.config['ALERT']=self.data['banner']
|
||||||
|
site.config['ALERTURL']='/'+dstdir+'/'+dst.gsub('.html','')
|
||||||
end
|
end
|
||||||
if self.data.has_key?('active') and !self.data['active'].nil? and self.data['active'] == true
|
if self.data.has_key?('active') and !self.data['active'].nil? and self.data['active'] == true
|
||||||
site.config['STATUS']=1
|
site.config['STATUS']=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue