scratch/content/css/main.css

602 lines
8.7 KiB
CSS
Raw Normal View History

2010-07-31 12:36:46 +00:00
-----
-----
// -- MAIN --
2010-07-31 21:49:11 +00:00
$behindColor: #1a0000
2010-07-31 13:05:09 +00:00
$mainBackgroundColor: #fffae3
2010-07-31 21:49:11 +00:00
$mainColor: #551100
2010-07-31 13:05:09 +00:00
$revealColor: #faeac3
$mainLinkColor: #aa5522
$lighterColor: #eee0c2
2010-07-31 21:49:11 +00:00
$codeBlockColor: $behindColor
2010-07-31 12:36:46 +00:00
table.description tr td
border: none
body
2010-07-31 21:49:11 +00:00
background:
color: $behindColor
color: $mainBackgroundColor
#content
2010-07-31 12:36:46 +00:00
background:
color: $mainBackgroundColor
color: $mainColor
2010-07-31 21:49:11 +00:00
a, a:link, a:visited, a:active, a:hover, #clickcomment
2010-07-31 12:36:46 +00:00
text-decoration: none
outline: none
color: $mainLinkColor
2010-07-31 21:49:11 +00:00
a:hover, #clickcomment:hover
2010-07-31 12:36:46 +00:00
background-color: $revealColor
hr
color: $mainColor
2010-07-31 13:05:09 +00:00
border-bottom: 1px solid $revealColor
2010-07-31 12:36:46 +00:00
ul
list-style: square
h1, h2, h3, h4, h5, h6
font-variant: small-caps
body, h1, h2, h3, h4, #entete
font-family: Optima, "Century Gothic", Helvetica, Arial, sans-serif
line-height: 1.4em
.corps
font-family: Palatino, "Century Schoolbook L", "Times New Roman", Times, serif
line-height: 1.6em
2010-07-31 13:05:09 +00:00
text-align: justify
border-bottom: 1px dotted $lighterColor
2010-07-31 12:36:46 +00:00
pre
background-color: $codeBlockColor
2010-07-31 13:05:09 +00:00
2010-07-31 12:36:46 +00:00
pre, code
font:
family: monaco, monospace
size: 0.7em
2010-07-31 13:05:09 +00:00
2010-07-31 12:36:46 +00:00
p
margin-bottom: 1.2em
blockquote
font:
style: italic
padding: 0.5em 1em
abbr,
acronym
font-variant: small-caps
text:
decoration: none
border:
bottom:
width: 0
2010-07-31 13:05:09 +00:00
// -- STYLE --
2010-07-31 12:36:46 +00:00
2010-07-31 21:49:11 +00:00
#titre
background: $lighterColor
border-top: 1px solid $mainColor
border-bottom: 1px solid $mainColor
2010-07-31 13:05:09 +00:00
#liens .active, #bottom, #sousliens
background-color: $lighterColor
2010-07-31 12:36:46 +00:00
// -- FOOTER --
#lastmod
font-size: 0.8em
// --- DYNAMICS --
.nojsbutton
font-size: 2.5em
#clickcomment
cursor: pointer
font-size: 1.2em
// -- TYPOGRAPHY --
.small
font-size: 0.8em
.strong
font-weight: bold
.sc
font-variant: small-caps
.impact, .darkimpact
font-size: 2em
margin: 0 auto 1em auto
line-height: 1.3em
// -- DATES --
h1 > .date
font-size: 0.6em
2010-07-31 13:05:09 +00:00
color: $mainColor
2010-07-31 12:36:46 +00:00
.date
text-align: center
font-size: 0.7em
2010-07-31 13:05:09 +00:00
color: $mainBackgroundColor
2010-07-31 12:36:46 +00:00
width: 4.1em
2010-07-31 13:05:09 +00:00
border: 1px solid $lighterColor
2010-07-31 12:36:46 +00:00
line-height: 1.5em
display: inline-block
margin-top: 1em
.date .day
2010-07-31 13:05:09 +00:00
color: $mainColor
background-color: $mainBackgroundColor
2010-07-31 12:36:46 +00:00
float: left
width: 1.7em
.date .month
2010-07-31 13:05:09 +00:00
border-left: solid $mainColor 0.1em
background-color: $lighterColor
color: $mainColor
2010-07-31 12:36:46 +00:00
float: right
width: 2.3em
.date .year
2010-07-31 13:05:09 +00:00
border-top: solid $mainColor 1px
border-bottom: solid $mainColor 1px
2010-07-31 12:36:46 +00:00
line-height: 3ex
clear: both
2010-07-31 13:05:09 +00:00
background-color: $mainColor
color: $mainBackgroundColor
2010-07-31 12:36:46 +00:00
.date
border: solid black 1px
position: relative
2010-07-31 21:49:11 +00:00
top: 2em
left: -5em
2010-07-31 12:36:46 +00:00
// --- LAYOUTS --
$VPadCorps: 3em
$HPadCorps: 5em
$VMarginCorps: 3em
// ATTENTION DOIT ETRE 0 pour le bon callage
$HMarginCorps: 0
$content_width: 52em
body
text-align: center
font-size: 1em
body > #entete
position: relative
left: 0
2010-07-31 13:05:09 +00:00
top: 0.5em
2010-07-31 12:36:46 +00:00
width: 100%
min-width: $content_width - 2em
z-index: 1800
padding-bottom: 1em
margin-bottom: $VMarginCorps
#titre h2
width: 80%
margin-left: auto
margin-right: auto
text-align: center
#titre
text-align: center
width: 100%
2010-07-31 21:49:11 +00:00
padding-top: $VMarginCorps
padding-bottom: $VMarginCorps
2010-07-31 12:36:46 +00:00
#titre h1, #titre h2
padding-left: 1em
padding-right: 1em
// le pied de page
#bottom
clear: right
margin-right: 0px
text-align: right
2010-07-31 21:49:11 +00:00
padding: 1.5em
2010-07-31 12:36:46 +00:00
// Les menus
#sousliens
padding: 1em 0
line-height: 2em
2010-07-31 21:58:08 +00:00
#sousliens ul
list-style: none
margin-left: 4em
2010-07-31 12:36:46 +00:00
ul.horizontal li
display: inline
font-size: 0.9em
ul.horizontal
margin-top: 0px
margin-bottom: 0px
#entete
2010-07-31 13:05:09 +00:00
padding-top: 0.1em
2010-07-31 21:49:11 +00:00
border-top: 1px solid $mainColor
border-bottom: 1px solid $mainColor
2010-07-31 12:36:46 +00:00
#liens
width: 100%
padding: 0
clear: both
2010-07-31 13:05:09 +00:00
margin-top: 0.5em
2010-07-31 12:36:46 +00:00
#liens ul
width: 100%
clear: both
padding: 0
margin: 0
$hauteur_menu: 2em
#liens ul li
display: inline-block
height: $hauteur_menu
margin-left: 0.2em
margin-right: 0.2em
width: 23%
#liens ul li a,
#liens ul li span
width: 100%
display: block
line-height: $hauteur_menu
// Un 'helper'
.clear
clear: both
// Le Contenu
#content
margin-left: auto
margin-right: auto
margin-top: 0
position: relative
top: -1em
clear: both
width: $content_width
#content > #choix
margin-top: 1.5em
$contentMargin: 0em
.encadre, .black, .red, .intro, .resume, .shadow
padding:
left: 2em
right: 2em
margin:
top: 2em
bottom: 2em
2010-07-31 21:49:11 +00:00
#afterheader > h1
background-color: $lighterColor
width: 100%
padding-bottom: 1.5em
2010-07-31 12:36:46 +00:00
#afterheader
padding-left: $contentMargin
padding-right: $contentMargin
#sousliens
margin:
top: $VMarginCorps
bottom: $VMarginCorps
font-size: 1.2em
letter-spacing: 1px
text-align: left
clear: both
.corps
text-align: left
padding: $VPadCorps $HPadCorps
2010-07-31 21:49:11 +00:00
margin: 0 $HMarginCorps
2010-07-31 12:36:46 +00:00
clear: both
.twilight
line-height: 1.1em
$fontcorps: 1.25
.corps
font-size: #{$fontcorps}em
$corps_width: ($content_width - 2 * $contentMargin) / $fontcorps
$hpadding: 1
.corps img
max-width: 30em
// les clear
#address
clear: both
.definitionCell
width: 5em
vertical-align: top
font-weight: bold
text-align: center
.valueCell
text-align: right
.smallblock
float: left
width: 50%
font-size: 1em
font-weight: bold
.largeblock
float: right
width: 70%
font-size: 1em
#blackpage, #nojsredirect
top: 0
left: 0
width: 100%
height: 100%
margin-left: 0
margin-right: 0
margin-top: 0
margin-bottom: 0
position: fixed
text-align: center
#blackpage
color: #666666
padding-top: 10em
background-color: #eeeeee
z-index: 9000
cursor: wait
img
background: none
border: none
a
cursor: pointer
#nojsredirect
z-index: 9001
.nojsbutton
width: 50%
padding: 1em
border: solid 3px white
margin-left: auto
margin-right: auto
margin-top: 2em
z-index: 9002
.file
font-size: 0.8em
text-align: right
float: right
width: 80%
margin-right: 0.3em
.flush
clear: both
table.description
border-spacing: 5px
border-collapse: separate
margin-right: auto
margin-left: auto
table.description tr td
padding-left: 0.5em
padding-right: 0.5em
padding-top: 0.5ex
padding-bottom: 0.5ex
vertical-align: middle
margin-right: 5px
ul.long li
margin-bottom: 1em
img
display: block
margin-left: auto
margin-right: auto
img.left
float: left
max-width: 30%
margin:
right: 1em
img.inside
display: inline
vertical-align: middle
pre
overflow: hidden
.withfile pre
overflow: hidden
width: 96.6%
.navigationprev, .navigationnext
padding: 0px
margin-left: 0.2em
margin-right: 0.2em
margin-bottom: 0
margin-top: $VMarginCorps
width: 45%
.navigation .navigationprev,
.navigation .navigationnext
width: 30%
margin-top: 0
.navigation
font-size: 2em
2010-07-31 21:49:11 +00:00
height: 2em
margin-bottom: $VMarginCorps
2010-07-31 12:36:46 +00:00
.presarticleleft,
.presarticleright
font-size: 1em
.navigationprev
float: left
text-align: left
.navigationnext
float: right
text-align: right
.impact, .darkimpact
text-align: left
width: 66%
padding-left: 0.25em
padding-right: 0.25em
table.impact
text-align: left
table.impact tr td
padding-left: 0.25em
padding-right: 0.25em
#liens
font-size: 1.5em
#iemessage
font-size: 1.5em
.tag
display: inline
cursor: pointer
margin-left: 0.5em
margin-right: 0.5em
.list
margin-top: $VPadCorps
#menuMessage
font:
size: 1.2em
line:
height: 1.5em
width: 100%
text-align: center
#choixrss
float: right
width: 25%
2010-07-31 13:05:09 +00:00
#entete
2010-07-31 12:36:46 +00:00
#choixrss,
#choixlang a
2010-07-31 13:05:09 +00:00
margin-top: 0.3em
2010-07-31 12:36:46 +00:00
margin-left: 2em
margin-right: 2em
#choixlang a
display: block
width: 25%
text-align: center
#choix
padding: 0
2010-07-31 13:05:09 +00:00
top: 3em
2010-07-31 12:36:46 +00:00
display: block
text-align: left
font-size: 1em
.date
font-size: 0.8em
.date, .date .year, .date .month, .date .year
display: block
#next_before_articles
clear: both
width: 100%
font-size: 1.2em
padding:
top: 1em
bottom: 1em
#previous_articles
float: left
margin-left: 1em
width: 45%
text-align: left
2010-07-31 21:49:11 +00:00
.previous_article, .next_article
margin-top: 1em
2010-07-31 12:36:46 +00:00
#next_articles
float: right
width: 45%
margin-right: 1em
text-align: right
#choixlang
2010-07-31 13:05:09 +00:00
padding-top: 0.1em
2010-07-31 12:36:46 +00:00
#choixlang a,
#clickcomment
2010-07-31 13:05:09 +00:00
padding: 0.1em 1em
2010-07-31 12:36:46 +00:00
#clickcomment
margin-left: 0
width: 25%
#rss
2010-07-31 21:49:11 +00:00
font-size: 1.2em
2010-07-31 12:36:46 +00:00
text-align: center
display: block
width: 100%
float: right
2010-07-31 13:05:09 +00:00
padding: 0.1em 1em
2010-07-31 12:36:46 +00:00
.return a
text-align: center
float: right
width: 25%
2010-07-31 13:05:09 +00:00
padding: 0.1em 1em
2010-07-31 21:49:11 +00:00
.corps .return a
2010-07-31 13:05:09 +00:00
color: $lighterColor
.return a:hover
color: $mainLinkColor
2010-07-31 12:36:46 +00:00
.corps .return a
2010-07-31 13:05:09 +00:00
padding: 0.1em
2010-07-31 12:36:46 +00:00
line-height: 1.5em
font-size: 1.5em
height: 1.5em
float: left
font-size: 2em
margin-top: -0.5em
margin-left: -2em
width: 1.5em
.footnotes
font-size: 0.8em
.fontnotes ol
margin-left: 0
2010-07-31 21:58:08 +00:00
2010-08-10 13:13:27 +00:00
.typeset img
display: inline
border: none
margin: 0
padding: 0