Some L&F amelioration and simplifications
This commit is contained in:
parent
b00188b416
commit
466ed99757
9 changed files with 43 additions and 29 deletions
|
@ -230,7 +230,7 @@ $content_width: 52em
|
||||||
|
|
||||||
body
|
body
|
||||||
text-align: center
|
text-align: center
|
||||||
font-size: 1em
|
font-size: .9em
|
||||||
|
|
||||||
body > #entete
|
body > #entete
|
||||||
position: absolute
|
position: absolute
|
||||||
|
@ -360,7 +360,7 @@ $contentMargin: 0em
|
||||||
|
|
||||||
#afterheader > h1
|
#afterheader > h1
|
||||||
width: 100%
|
width: 100%
|
||||||
padding-bottom: 1.5em
|
padding-top: 1.5em
|
||||||
text-align: left
|
text-align: left
|
||||||
|
|
||||||
#afterheader
|
#afterheader
|
||||||
|
@ -660,6 +660,18 @@ table.impact tr td
|
||||||
margin-left: -2em
|
margin-left: -2em
|
||||||
width: 1.5em
|
width: 1.5em
|
||||||
|
|
||||||
|
a.return
|
||||||
|
color: $lighterColor
|
||||||
|
padding: 0.1em
|
||||||
|
line-height: 1.5em
|
||||||
|
font-size: 1.5em
|
||||||
|
height: 1.5em
|
||||||
|
font-size: 2em
|
||||||
|
width: 1.5em
|
||||||
|
display: block
|
||||||
|
&:hover
|
||||||
|
color: $highlightColor
|
||||||
|
|
||||||
.corps .return a:hover
|
.corps .return a:hover
|
||||||
color: $revealColor
|
color: $revealColor
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ def dArr
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
|
|
||||||
* [Last <%= number_of_articles %> articles <%=dArr%>](#last-<%= number_of_articles %>-articles)
|
* [<%= number_of_articles %> latest articles <%=dArr%>](#last-<%= number_of_articles %>-articles)
|
||||||
* [Tag Cloud <%=dArr%>](#tagcloud)
|
* [Tag Cloud <%=dArr%>](#tagcloud)
|
||||||
* [Archives <%=dArr%>](#archives)
|
* [Archives <%=dArr%>](#archives)
|
||||||
* [Two words about the content <%=dArr%>](#two-words-about-the-content)
|
* [Two words about the content <%=dArr%>](#two-words-about-the-content)
|
||||||
|
|
|
@ -43,4 +43,4 @@ You can subscribe to my RSS feed. You'll never miss a post. <a href="/Scratch/en
|
||||||
|
|
||||||
newcorps
|
newcorps
|
||||||
|
|
||||||
This left bottom button get you on the top of page and open the menu.
|
Feel free to contact me.
|
||||||
|
|
|
@ -44,4 +44,4 @@ Vous pouvez aussi vous abonner au flux RSS pour être certain d'être prévenu q
|
||||||
|
|
||||||
newcorps
|
newcorps
|
||||||
|
|
||||||
Le bouton en bas à gauche sert à revenir en haut de la page et à afficher le menu.
|
N'hésitez pas à me contacter.
|
||||||
|
|
|
@ -24,26 +24,13 @@
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<div id="entete">
|
<div id="entete">
|
||||||
<div id="choix">
|
<div id="choix">
|
||||||
<div id="choixrss">
|
<div id="choixrss"><%= choixrss %> </div>
|
||||||
<a id="rss" href="http://feeds.feedburner.com/yannespositocom<%= language %>">
|
<div id="choixlang"><%= choixlang %> </div>
|
||||||
<%= tradOf(:subscribe) %>
|
<div id="liens">
|
||||||
</a>
|
<%= generateMenu %>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="choixlang">
|
|
||||||
<%= languages.map do |l|
|
|
||||||
dest=@item_rep.path.sub(/^\/Scratch\/..\//, %{/Scratch/#{l}/})
|
|
||||||
if @item_rep.path != dest
|
|
||||||
%{<a href="#{dest}" onclick="setLanguage('#{l}')">#{ tradOfKeywordIn(:switchTo,l)}</a>}
|
|
||||||
else
|
|
||||||
nil
|
|
||||||
end
|
|
||||||
end.join() %>
|
|
||||||
</div>
|
|
||||||
<div id="liens">
|
|
||||||
<%= generateMenu %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<img src="/Scratch/img/presentation.png" alt="Presentation drawing"/>
|
<img src="/Scratch/img/presentation.png" alt="Presentation drawing"/>
|
||||||
<div id="titre">
|
<div id="titre">
|
||||||
|
|
15
lib/html.rb
15
lib/html.rb
|
@ -16,3 +16,18 @@ def meta_alternate
|
||||||
return res.join("\n")
|
return res.join("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def choixrss
|
||||||
|
rssurl=%{http://feeds.feedburner.com/yannespositocom#{ @conf.language }}
|
||||||
|
return %{<a id="rss" href="#{rssurl}">#{ tradOf(:subscribe) }</a>}
|
||||||
|
end
|
||||||
|
|
||||||
|
def choixlang
|
||||||
|
@conf.languages.map do |l|
|
||||||
|
dest=@item_rep.path.sub(/^\/Scratch\/..\//, %{/Scratch/#{l}/})
|
||||||
|
if @item_rep.path != dest
|
||||||
|
%{<a href="#{dest}" onclick="setLanguage('#{l}')">#{ tradOfKeywordIn(:switchTo,l)}</a>}
|
||||||
|
else
|
||||||
|
nil
|
||||||
|
end
|
||||||
|
end.join()
|
||||||
|
end
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
language = $1
|
language = $1
|
||||||
tagLinks.sort{|a,b| a[0].downcase <=> b[0].downcase}.each do |t,l|
|
tagLinks.sort{|a,b| a[0].downcase <=> b[0].downcase}.each do |t,l|
|
||||||
protected=t.gsub(/\W/,'_')
|
protected=t.gsub(/\W/,'_')
|
||||||
tagCloud <<= %{<div id="#{protected}" class="list"><h4>#{t} <a href="#tagcloud">↑</a></h4><ul style="list-style-type: none; margin: 0;">}
|
tagCloud <<= %{<div id="#{protected}" class="list"><h4>#{t}</h4><ul style="list-style-type: none; margin: 0;">}
|
||||||
l.sort{|x,y| y[:created_at] <=> x[:created_at]}.each do |p|
|
l.sort{|x,y| y[:created_at] <=> x[:created_at]}.each do |p|
|
||||||
tagCloud <<= %{
|
tagCloud <<= %{
|
||||||
<li style="line-height: 3em; margin: 0;">
|
<li style="line-height: 3em; margin: 0;">
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
<a href="#{p.path}">#{p[:title]} <span class="nicer">»</span></a>
|
<a href="#{p.path}">#{p[:title]} <span class="nicer">»</span></a>
|
||||||
</li>\n}
|
</li>\n}
|
||||||
end
|
end
|
||||||
tagCloud <<= %{</ul></div>}
|
tagCloud <<= %{</ul><a class="return" href="#tagcloud">↑</a></div>}
|
||||||
end
|
end
|
||||||
tagCloud <<= %{</div>}
|
tagCloud <<= %{</div>}
|
||||||
return tagCloud
|
return tagCloud
|
||||||
|
|
|
@ -18,7 +18,7 @@ def dArr
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
|
|
||||||
en: * [Last <%= number_of_articles %> articles <%=dArr%>](#last-<%= number_of_articles %>-articles)
|
en: * [<%= number_of_articles %> latest articles <%=dArr%>](#last-<%= number_of_articles %>-articles)
|
||||||
fr: * [Les <%= number_of_articles %> derniers articles <%=dArr%>](#les-<%= number_of_articles %>-derniers-articles)
|
fr: * [Les <%= number_of_articles %> derniers articles <%=dArr%>](#les-<%= number_of_articles %>-derniers-articles)
|
||||||
en: * [Tag Cloud <%=dArr%>](#tagcloud)
|
en: * [Tag Cloud <%=dArr%>](#tagcloud)
|
||||||
fr: * [Nuage de mots clés <%=dArr%>](#tagcloud)
|
fr: * [Nuage de mots clés <%=dArr%>](#tagcloud)
|
||||||
|
|
|
@ -53,5 +53,5 @@ en: <h2>tag cloud (shorter than <%= nbtags %> words))</h2>
|
||||||
|
|
||||||
newcorps
|
newcorps
|
||||||
|
|
||||||
fr: Le bouton en bas à gauche sert à revenir en haut de la page et à afficher le menu.
|
fr: N'hésitez pas à me contacter.
|
||||||
en: This left bottom button get you on the top of page and open the menu.
|
en: Feel free to contact me.
|
||||||
|
|
Loading…
Reference in a new issue