Browse Source

Adaptation du gabarit responsive html5 http://www.initializr.com/try pour SPIP

master
toutati@free.fr 9 years ago
commit
de26c7f1dd
  1. 11
      .gitattributes
  2. 25
      body.html
  3. 269
      css/theme.css
  4. 7
      head_js/dist.html
  5. 3
      header/dist.html
  6. BIN
      img/initializr.png
  7. 4
      inc-theme-copyleft.html
  8. 8
      inc-theme-head.html
  9. 4
      js/libs/modernizr-2.0.6.min.js
  10. 17
      paquet.xml
  11. BIN
      vignette.jpg

11
.gitattributes

@ -0,0 +1,11 @@
* text=auto !eol
/body.html -text
css/theme.css -text
head_js/dist.html -text
header/dist.html -text
img/initializr.png -text
/inc-theme-copyleft.html -text
/inc-theme-head.html -text
js/libs/modernizr-2.0.6.min.js -text
/paquet.xml -text
/vignette.jpg -text

25
body.html

@ -0,0 +1,25 @@
<body> [(#REM) CF et Merci http://www.initializr.com/try ]
<div id="header-container">
<header class="wrapper clearfix">
<INCLURE{fond=header/#ENV{type-page},env} />
<nav>
<INCLURE{fond=inclure/nav,env} />
</nav>
</header>
</div>
<div id="main-container">
<div id="main" class="wrapper clearfix">
<section class="content" id="content"><INCLURE{fond=content/#ENV{type-page},env} /></section>
<aside>
<div id="extra1"><INCLURE{fond=extra1/#ENV{type-page},env} /></div>
</aside>
</div><!-- #main -->
</div><!-- #main-container -->
<div id="footer-container">
<footer class="wrapper">
<INCLURE{fond=footer/#ENV{type-page},env} />
<INCLURE{fond=inc-theme-copyleft}>
</footer>
</div>
</body>

269
css/theme.css

@ -0,0 +1,269 @@
/* HTML5 Boilerplate
* ==|== normalize ==========================================================
*/
*{margin:0; padding:0; border:none;}
article, aside, details, figcaption, figure, footer, header, hgroup, #header-container nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { margin: 0; font-size: 13px; line-height: 1.231; }
body, button, input, select, textarea { font-family: sans-serif; color: #222; }
::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }
a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }
abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
#header-container nav ul, #header-container nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; border:none;}
img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; *overflow: visible; }
table button, table input { *overflow: auto; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid { }
input:invalid, textarea:invalid { background-color: #f0dddd; }
table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }
/* ===================================================
Initializr styles
http://verekia.com/initializr/responsive-template
Author: Jonathan Verrecchia
=================================================== */
body{ font:16px/24px Helvetica, Helvetica Neue, Arial, sans-serif; }
.wrapper{
width:90%;
margin:0 5%;
}
/* ===================
ALL: Orange Theme
=================== */
/* alm */
#main{text-align: left;}
#nom_site_spip a{ color:white; }
.content{float:none; width:auto;}
#header-container{ border-bottom: 20px solid #e44d26; }
#footer-container{ border-top: 20px solid #e44d26; }
#main aside { border-top: 20px solid #e44d26; }
#header-container,
#footer-container,
#main aside{
background:#f16529; text-align: left;
}
::-moz-selection { background: #f16529; color: #fff; text-shadow: none; }
::selection { background: #f16529; color: #fff; text-shadow: none; }
/* ==============
MOBILE: Menu
============== */
#header-container nav a{
display:block;
margin-bottom:10px;
padding:15px 0;
background:#e44d26;
color:white;
text-align:center;
text-decoration:none;
font-weight:bold;
}
#header-container nav a:hover, #header-container nav a:visited{
color:white;
}
#header-container nav a:hover{
text-decoration:underline;
}
/* ==============
MOBILE: Main
============== */
#main{
padding:30px 0;
}
#main article h1{
font-size:2em;
}
#main aside{
color:white;
padding:0px 5% 10px;
}
#footer-container-container footer{
color:white;
padding:20px 0;
}
/* ===============
ALL: IE Fixes
=============== */
.ie7 #title{ padding-top:20px; }
/* ==|== non-semantic helper classes ======================================== */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }
.hidden { display: none !important; visibility: hidden; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
/* ==|== media queries ====================================================== */
@media only screen and (min-width: 480px) {
/* ====================
INTERMEDIATE: Menu
==================== */
#header-container nav a{
float:left;
width:27%;
margin:0 1.7%;
padding:25px 2%;
margin-bottom:0;
}
#header-container nav li:first-child a{ margin-left:0; }
#header-container nav li:last-child a{ margin-right:0; }
/* ========================
INTERMEDIATE: IE Fixes
======================== */
#header-container nav ul li{
display:inline;
}
.oldie #header-container nav a{
margin:0 0.7%;
}
}
@media only screen and (min-width: 768px) {
/* ====================
WIDE: CSS3 Effects
==================== */
#header-container,
#main aside{
-webkit-box-shadow:0 5px 10px #aaa;
-moz-box-shadow:0 5px 10px #aaa;
box-shadow:0 5px 10px #aaa;
}
/* ============
WIDE: Menu
============ */
#nom_site_spip {
float: left;
}
#header-container nav{
float:right;
width:38%;
}
/* ============
WIDE: Main
============ */
#content{
float:left;
width:57%;
}
#main aside{
float:right;
width:28%;
}
}
@media only screen and (min-width: 1140px) {
/* ===============
Maximal Width
=============== */
.wrapper{
width:1026px; /* 1140px - 10% for margins */
margin:0 auto;
}
}
/* ==|== print styles ======================================================= */
@media print {
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; }
a, a:visited { text-decoration: underline; }
a[href]:after { content: " (" attr(href) ")"; }
abbr[title]:after { content: " (" attr(title) ")"; }
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
thead { display: table-header-group; }
tr, img { page-break-inside: avoid; }
img { max-width: 100% !important; }
@page { margin: 0.5cm; }
p, h2, h3 { orphans: 3; widows: 3; }
h2, h3 { page-break-after: avoid; }
}

7
head_js/dist.html

@ -0,0 +1,7 @@
[(#REM)
Ce bloc permet l'insertion de JS specifiques a une page
]
[(#REM) Supplément voir http://www.initializr.com/try ]
[<script src="(#CHEMIN{js/libs/modernizr-2.0.6.min.js})"></script>]

3
header/dist.html

@ -0,0 +1,3 @@
[<a rel="start home" href="#URL_SITE_SPIP/" title="<:accueil_site:>">(#LOGO_SITE_SPIP|image_reduire{300,100})</a>]
<strong id="nom_site_spip" class="h1"><a rel="start home" href="#URL_SITE_SPIP/" title="<:accueil_site:>">#NOM_SITE_SPIP</a></strong>
[<div id='slogan_site_spip'>(#SLOGAN_SITE_SPIP|PtoBR)</div>]

BIN
img/initializr.png

After

Width: 181  |  Height: 163  |  Size: 11 KiB

4
inc-theme-copyleft.html

@ -0,0 +1,4 @@
<div id="copyleft">
<:zpip:conception_graphique_par:>
<a href='http://www.initializr.com/'>http://www.initializr.com/</a>
</div>

8
inc-theme-head.html

@ -0,0 +1,8 @@
[(#REM) inc-theme-head.html
Supplément voir http://www.initializr.com/try ]
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
[(#REM) Mobile viewport optimized: h5bp.com/viewport ]
[(#REM) modif voir http://www.initializr.com/try ]
<meta name="viewport" content="width=device-width,initial-scale=1">

4
js/libs/modernizr-2.0.6.min.js
File diff suppressed because it is too large
View File

17
paquet.xml

@ -0,0 +1,17 @@
<paquet
prefix='initializr'
categorie='theme'
version='1.0.0'
etat='stable'
logo="img/initializr.png"
compatibilite="[v3;]"
documentation='http://contrib.spip.net/4221'
demonstration='http://initializr.com'
>
<nom>initializr</nom>
<!-- Theme issu de initializr.com pour debuter en html5 responsive -->
<auteur lien="http://www.elastick.net" mail="contact@elastick.net">Anne-lise Martenot</auteur>
<credit lien="http://initializr.com">initializr.com</credit>
<necessite nom="Zcore" compatibilite="[2.0.0-dev;]" />
<necessite nom="Z5" compatibilite="[2.0-dev;]" />
</paquet>

BIN
vignette.jpg

After

Width: 360  |  Height: 232  |  Size: 17 KiB

Loading…
Cancel
Save