scratch/content/css/main.css

798 lines
12 KiB
CSS
Raw Normal View History

2010-10-05 15:18:17 +00:00
-----
-----
2011-07-05 12:39:59 +00:00
$behindColor: #333
2010-10-05 15:18:17 +00:00
$mainTextColor: $behindColor
2011-07-05 15:20:11 +00:00
$mainBackgroundColor: #FAFAFA
$revealColor: #A53
$secondRevealColor: #AA5533
$lighterRevealColor: $revealColor + #666
2010-10-05 15:18:17 +00:00
$imageBackgroundColor: $mainBackgroundColor
$imageBorderColor: #cccccc
$borderColor: #cccccc
2010-10-05 15:18:17 +00:00
$mainLinkColor: $mainTextColor
$textLinkColor: #555555
$highlightColor: #888888
$highlightBlockColor: #555555
$highlightRevealColor: #e25f2f
$lighterText: #cccccc
$lighterColor: #eeeeee
$lighterColorBorderTop: $lighterText
$lighterColorBorderBottom: $lighterText
$secondTextColor: #666666
$codeBlockColor: $mainBackgroundColor
$codeBlockBackgroundColor: $behindColor
2011-07-05 15:20:11 +00:00
*
transition-property: all
transition-duration: 0.5s
-moz-transition-property: all
-moz-transition-duration: 0.5s
-webkit-transition-property: all
-webkit-transition-duration: 0.5s
-o-transition-property: all
-o-transition-duration: 0.5s
2010-10-05 15:18:17 +00:00
=mainColor
color: $behindColor
background:
color: $mainBackgroundColor
=lightColor
color: $lighterText
a
color: $lighterText
a:hover
color: $lighterRevealColor
=highlight
font:
style: italic
padding: 0.5em 1em
color: $highlightBlockColor
a:hover
color: $revealColor
strong, b, i, em
font:
weight: normal
style: normal
color: $behindColor
=secondColor
color: $behindColor
border: $borderColor solid 1px
border-radius: 5px
box-shadow: 0 0 2px $borderColor inset
2010-10-05 15:18:17 +00:00
background:
color: $lighterColor
a
color: $secondTextColor
a:hover
color: $secondRevealColor
strong, b, i, em, .nicer
color: $lighterRevealColor
hr
color: $secondTextColor
border:
top: 1px solid $secondTextColor
strong, b, i, em
color: $behindColor
=revealColor
color: $revealColor
=codeColor
background:
color: $codeBlockBackgroundColor
color: $codeBlockColor
table.description tr td
border: 1px solid $lighterColor
.assombris20
background-color: $lighterColor
body
+mainColor
2010-11-29 15:06:45 +00:00
a:hover
text-shadow: 0 0 2px #FAA
2011-09-28 13:15:27 +00:00
a, a:link, a:visited, a:active, a:hover
2010-10-05 15:18:17 +00:00
text-decoration: none
outline: none
2011-09-28 13:15:27 +00:00
a, a:link, a:visited, a:active
2010-10-05 15:18:17 +00:00
color: $mainLinkColor
2011-09-28 13:15:27 +00:00
a:hover
2010-10-05 15:18:17 +00:00
+revealColor
hr
color: $lighterColor
border:
top: 1px solid $lighterColor
bottom: none
left: none
right: none
ul
list-style: square
2011-01-03 15:46:13 +00:00
2010-12-14 09:52:46 +00:00
ol,ul
padding-left: 0
ol li, ul li
2011-01-03 15:46:13 +00:00
margin: .5em 0
2010-12-14 09:52:46 +00:00
ol li ul, ol li ol, ul li ol, ul li ul
2011-01-03 15:46:13 +00:00
margin: .5em 1.5em
list-style: circle
2010-10-05 15:18:17 +00:00
body, h1, h2, h3, h4, #entete, .tag
font-family: Georgia, Palatino, "Century Schoolbook L", "Times New Roman", Times, serif
line-height: 1.4em
pre
+codeColor
2011-07-05 12:39:59 +00:00
box-shadow: 0 0 1em #000 inset
2011-07-05 15:20:11 +00:00
border-radius: 3px
2010-10-05 15:18:17 +00:00
padding: 1em
line-height: 1.2em
2011-10-18 22:30:00 +00:00
font-size: .9em
2010-10-05 15:18:17 +00:00
p
margin-bottom: 1.2em
blockquote
+highlight
2011-06-10 07:45:07 +00:00
background-color: #F2F2F2
border: 1px solid #CCC
2010-10-05 15:18:17 +00:00
abbr,
acronym
font-variant: small-caps
text:
decoration: none
border:
bottom:
width: 0
// -- STYLE --
#titre
letter-spacing: -0.06em
border:
bottom: 4px double $lighterText
top: 4px double $lighterText
#liens .active, #sousliens
+secondColor
2011-07-05 15:20:11 +00:00
2011-07-06 21:17:54 +00:00
=insetbox
2011-07-05 15:20:11 +00:00
background: rgba(#000,.05)
box-shadow: 0 0 2px #FFF, 0 0 3px #CCC inset
2011-07-06 21:17:54 +00:00
border: 1px solid rgba(#000,.1)
2011-07-05 15:20:11 +00:00
border-radius: 3px
&:hover
background: rgba(#000,.1)
box-shadow: 0 0 6px #555 inset
2011-07-06 21:17:54 +00:00
2011-09-28 13:15:27 +00:00
=clearbutton
display: block
width: 25%
cursor: pointer
margin: 1em 0
padding: 1em
font-size: 16px
line-height: 1.4em
border-radius: 1.5em
2011-09-28 15:57:32 +00:00
border: 2px solid $mainBackgroundColor
2011-10-03 13:48:57 +00:00
color: $lighterText
2011-09-28 13:15:27 +00:00
&:hover
2011-10-03 13:48:57 +00:00
color: $highlightRevealColor
text-shadow: 0 0 2px #FAA
background: #ECECEC
box-shadow: 0 -1px 8px #CCC inset
2011-09-28 15:45:28 +00:00
&:active
2011-10-03 13:48:57 +00:00
color: $highlightRevealColor
text-shadow: 0 0 2px #FAA
background: #EEE
box-shadow: 0 -1px 8px #AAA inset
2011-09-28 13:15:27 +00:00
2011-07-06 21:17:54 +00:00
#liens a
border: 1px solid #EEE
+insetbox
2011-07-05 15:20:11 +00:00
#liens .active
text-shadow: 0 0 2px rgba(#000,.5)
background-color: $mainBackgroundColor - #030303
border: 1px solid $mainBackgroundColor - #111111
box-shadow: 0 0 3px ($mainBackgroundColor - #333333) inset
border-radius: 3px
2010-10-05 15:18:17 +00:00
border-top: none
// -- FOOTER --
#lastmod
font-size: 0.8em
// --- DYNAMICS --
.nojsbutton
font-size: 2.5em
2011-09-28 13:15:27 +00:00
#clickcomment, #choixlang > a, #choixrss > a, .return > a
+clearbutton
.return > a, #choixrss > a
float: right
#choix
.return > a, #choixrss > a
margin-top: 0
2010-10-05 15:18:17 +00:00
// -- TYPOGRAPHY --
.small
font-size: 0.8em
.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
color: $behindColor
.date
2010-11-02 14:41:26 +00:00
font-size: 0.8em
2010-10-05 15:18:17 +00:00
color: $mainBackgroundColor
border: 1px solid $mainTextColor
text-align: center
width: 4.1em
line-height: 1.5em
display: inline-block
2010-11-02 14:41:26 +00:00
vertical-align: middle
margin-right: 1em
.date .day,
.date .month,
.date .year
display: block
2010-10-05 15:18:17 +00:00
.date .day
color: $behindColor
background-color: $mainBackgroundColor
float: left
width: 1.7em
.date .month
float: right
width: 2.3em
background-color: $behindColor
color: $mainBackgroundColor
.date .year
line-height: 3ex
clear: both
+secondColor
// --- LAYOUTS --
$VPadCorps: 3em
$VMarginCorps: 3em
// ATTENTION DOIT ETRE 0 pour le bon callage
$HMarginCorps: 0
$content_width: 52em
body
text-align: center
2011-04-20 14:31:11 +00:00
font-size: 1em
2010-10-05 15:18:17 +00:00
body > #entete
position: absolute
left: 0
top: 0.5em
width: 100%
min-width: $content_width - 2em
z-index: 8000
padding-bottom: 1em
margin-bottom: $VMarginCorps
#titre h2
width: 80%
margin-left: auto
margin-right: auto
text-align: center
color: $lighterText
#titre
text-align: center
width: 100%
#titre h1, #titre h2
padding-left: 1em
padding-right: 1em
// le pied de page
#bottom
clear: right
margin-right: 0px
padding: 1.5em
line-height: 1.5em
color: $lighterText
margin-top: 2em
text-align: center
a
color: $lighterText
a:hover
+revealColor
// Les menus
#sousliens
padding: 1em 0
line-height: 2em
#sousliens ul
list-style: none
margin-left: 4em
ul.horizontal li
display: inline
font-size: 0.9em
ul.horizontal
margin-top: 0px
margin-bottom: 0px
#entete
padding-top: 0.1em
border-top: 1px solid $lighterColorBorderTop
border-bottom: 1px solid $lighterColorBorderTop
#liens
width: 100%
padding: 0
clear: both
margin-top: 0.5em
#liens ul
width: 100%
clear: both
padding: 0
margin: 0
$hauteur_menu: 4em
#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
line-height: 4em
margin-left: auto
margin-right: auto
margin-top: 0
position: relative
clear: both
width: $content_width
$contentMargin: 0em
.encadre, .black, .red, .intro, .resume, .shadow
padding: 2em
2010-10-05 15:18:17 +00:00
margin:
top: 2em
bottom: 2em
.encadre, .black, .red, .shadow
+secondColor
.intro, .resume
font-size: 0.9em
+highlight
#afterheader > h1
width: 100%
padding-top: 1.5em
2010-11-02 14:41:26 +00:00
text-align: left
2010-10-05 15:18:17 +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
.twilight
line-height: 1.1em
$fontcorps: 1.25
.corps
font-family: Georgia, Palatino, "Century Schoolbook L", "Times New Roman", Times, serif
font-size: #{$fontcorps}em
line-height: 1.6em
text-align: justify
text-align: left
padding: $VPadCorps 3em
margin: 0 $HMarginCorps
border-bottom: 1px $lighterColorBorderBottom solid
clear: both
$corps_width: ($content_width - 2 * $contentMargin) / $fontcorps
$hpadding: 1
.corps img
max-width: 30em
border: 1px solid $imageBorderColor
background-color: $imageBackgroundColor
padding: 0.5em
box-shadow: 0 10px 15px #CCC
2011-07-05 15:20:11 +00:00
border-radius: 3px
2010-10-05 15:18:17 +00:00
2010-10-10 19:17:53 +00:00
img.clean
border: none
2010-10-05 15:18:17 +00:00
// 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
padding-right: 1em
margin-right: 0.1
margin-bottom: 0
.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
background: none
border: none
img.left
float: left
max-width: 30%
margin:
right: 1em
img.inside
display: inline
vertical-align: middle
pre
overflow
y: hidden
x: auto
2010-10-05 15:18:17 +00:00
.withfile pre
margin-top: 0
overflow: hidden
.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
2010-10-06 22:36:18 +00:00
height: 4em
border-bottom: $lighterColorBorderBottom solid 1px
2010-10-05 15:18:17 +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.2em
#iemessage
font-size: 1.2em
.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
#next_before_articles
clear: both
width: 100%
font-size: 1.2em
padding:
top: 1em
bottom: 1em
#previous_articles, #next_articles
color: $highlightColor
font-style: italic
font-size: .8em
#previous_articles
float: left
margin-left: 1em
width: 45%
text-align: left
.previous_article, .next_article
margin-top: 1em
#next_articles
float: right
width: 45%
margin-right: 1em
text-align: right
#rss
font-size: 1.2em
text-align: center
display: block
width: 100%
float: right
2010-10-06 09:01:31 +00:00
padding: 1em 0.1em
2010-10-05 15:18:17 +00:00
.corps .return a
color: $lighterColor
padding: 0.1em
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
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
2010-10-05 15:18:17 +00:00
.corps .return a:hover
color: $revealColor
.footnotes
font-size: 0.8em
.fontnotes ol
margin-left: 0
.typeset img
display: inline
border: none
margin: 0
padding: 0
strong, b, i, em
font-weight: normal
color: $highlightColor
2010-10-10 19:17:53 +00:00
a
color: $mainTextColor
a:hover
color: $revealColor
2010-10-05 15:18:17 +00:00
.corps p
strong, b, i, em
color: $highlightBlockColor
a:hover
strong, b, i, em
color: $highlightRevealColor
a:hover .nicer
color: $lighterRevealColor
.nicer
color: $lighterText
font-family: "Lucida Grande", Tahoma
.block
width: 31%
text-align: left
line-height: 1em
margin-left: 1%
margin-right: 1%
font-size: 0.8em
a
color: $mainTextColor
a:hover
color: $revealColor
.block h3
margin: 0
font-size: 1.3em
.block p
line-height: 1.2em
.left
float: left
.right
float: right
2010-10-06 14:22:17 +00:00
.corps
p a, ul a
color: $textLinkColor
p a:hover, ul a:hover
color: $revealColor
2010-11-02 14:41:26 +00:00
ul.bloglist, .archive ul
list-style-type: none
margin: 0
li
margin-bottom: 1em
.button
cursor: pointer
text-align: center
2011-04-20 14:26:21 +00:00
#tagcloud
font-size: .8em
2011-07-05 15:20:11 +00:00
background: #EEE
box-shadow: 0 0 6px #CCC
border-radius: 3px
line-height: 2.5em
padding: 2em
2011-10-18 13:36:25 +00:00
.pala
font-family: Palatino
2011-10-18 22:30:00 +00:00
.article .corps a:after
content: "†"
vertical-align: super
font-size: .66em
color: $highlightColor