Some L&F amelioration and simplifications

This commit is contained in:
Yann Esposito (Yogsototh) 2010-11-02 16:28:35 +01:00
parent b00188b416
commit 466ed99757
9 changed files with 43 additions and 29 deletions

View file

@ -230,7 +230,7 @@ $content_width: 52em
body
text-align: center
font-size: 1em
font-size: .9em
body > #entete
position: absolute
@ -360,7 +360,7 @@ $contentMargin: 0em
#afterheader > h1
width: 100%
padding-bottom: 1.5em
padding-top: 1.5em
text-align: left
#afterheader
@ -660,6 +660,18 @@ table.impact tr td
margin-left: -2em
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
color: $revealColor

View file

@ -18,7 +18,7 @@ def dArr
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)
* [Archives <%=dArr%>](#archives)
* [Two words about the content <%=dArr%>](#two-words-about-the-content)

View file

@ -43,4 +43,4 @@ You can subscribe to my RSS feed. You'll never miss a post. <a href="/Scratch/en
newcorps
This left bottom button get you on the top of page and open the menu.
Feel free to contact me.

View file

@ -44,4 +44,4 @@ Vous pouvez aussi vous abonner au flux RSS pour être certain d'être prévenu q
newcorps
Le bouton en bas à gauche sert à revenir en haut de la page et à afficher le menu.
N'hésitez pas à me contacter.

View file

@ -24,26 +24,13 @@
<div id="content">
<div id="entete">
<div id="choix">
<div id="choixrss">
<a id="rss" href="http://feeds.feedburner.com/yannespositocom<%= language %>">
<%= tradOf(:subscribe) %>
</a>
<div id="choix">
<div id="choixrss"><%= choixrss %> </div>
<div id="choixlang"><%= choixlang %> </div>
<div id="liens">
<%= generateMenu %>
</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>
<img src="/Scratch/img/presentation.png" alt="Presentation drawing"/>
<div id="titre">

View file

@ -16,3 +16,18 @@ def meta_alternate
return res.join("\n")
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

View file

@ -96,7 +96,7 @@
language = $1
tagLinks.sort{|a,b| a[0].downcase <=> b[0].downcase}.each do |t,l|
protected=t.gsub(/\W/,'_')
tagCloud <<= %{<div id="#{protected}" class="list"><h4>#{t} <a href="#tagcloud">&uarr;</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|
tagCloud <<= %{
<li style="line-height: 3em; margin: 0;">
@ -104,7 +104,7 @@
<a href="#{p.path}">#{p[:title]} <span class="nicer">»</span></a>
</li>\n}
end
tagCloud <<= %{</ul></div>}
tagCloud <<= %{</ul><a class="return" href="#tagcloud">&uarr;</a></div>}
end
tagCloud <<= %{</div>}
return tagCloud

View file

@ -18,7 +18,7 @@ def dArr
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)
en: * [Tag Cloud <%=dArr%>](#tagcloud)
fr: * [Nuage de mots clés <%=dArr%>](#tagcloud)

View file

@ -53,5 +53,5 @@ en: <h2>tag cloud (shorter than <%= nbtags %> words))</h2>
newcorps
fr: Le bouton en bas à gauche sert à revenir en haut de la page et à afficher le menu.
en: This left bottom button get you on the top of page and open the menu.
fr: N'hésitez pas à me contacter.
en: Feel free to contact me.