JSFiddle - React, Tailwind, and code Playground
by jojaba
HTML
<body>
<header>
<h1>JoJaBaPro</h1>
<nav id="nav">
<ul>
<li><a href="#" class="active">Accueil</a></li>
<li><a href="#">Conseils</a></li>
<li><a href="#">Codage</a></li>
<li><a href="#">Traductions</a></li>
<li><a href="#">Galerie</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<section id="main">
<article>
<h2>Pourquoi l'étiquette active reste-t-elle blanche (sans texte) ?</h2>
<p>Une idée ? Lien vers le sujet sur le forum alsacreations : <a href="http://forum.alsacreations.com/topic-1-75520-1-CouleurlienavectransformFirefox.html">Couleur lien avec transform Firefox</a></p>
</article>
</section>
<footer>
<p>Merci !</p>
</footer>
</body>
CSS
html,
body,
header,
footer {
margin: 0;
padding: 0;
font-family: Helvetica, Arial, sans-serif;
line-height: 1.3;
font-size: 100%;
}
body {
background: #f0f0f0;
}
/* Header style */
/* ************ */
header {
margin: 0;
padding: 0;
background: #000;
background: rgba(0, 0, 0, .8);
color: #FFF;
z-index: 20;
}
header h1 {
margin: 0;
padding: 0 5px 0 5px;
font-size: 4em;
}
nav ul {
margin: -15px 0 auto;
padding: 10px;
text-align: right;
}
nav ul li {
margin: 0;
padding: 0;
display: inline;
font-size: 1em;
}
nav a:link,
nav a:visited {
display: inline-block;
margin: 0 0 0 2px;
padding: 5px 8px;
text-decoration: none;
background: #990000;
color: #FFF;
z-index: 30;
}
nav a:hover,
nav a:active,
nav a:focus,
nav a.active {
background: #FFF;
color: #990000;
z-index: 40;
}
/* Footer */
/* ****** */
footer {
width: 100%;
margin: 0;
padding: 20px 0;
background: #000;
background: rgba(0, 0, 0, .8);
font-size: 0.9em;
line-height: 1.4;
color: #FFF;
}
footer p {
margin: 5px;
padding: 0;
font-size: 0.9em;
text-align: center;
}
footer a {
color: #FFF;
text-decoration: none;
border-bottom: #FFF 2px solid;
}
/* All css3 styles */
/* *************** */
/* Shadows */
nav li a {
box-shadow: 0 1px 5px #000;
-moz-box-shadow: 0 1px 5px #000;
-webkit-box-shadow: 0 1px 5px #000;
-o-box-shadow: 0 1px 5px #000;
}
header h1,
article h2 {
text-shadow: -1px 1px 1px #000;
}
/* Border-radius */
nav li a,
article a,
footer a {
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-o-border-radius: 4px;
}
/* Transform and transition */
nav a {
-webkit-transform: rotate(-60deg);
-moz-transform: rotate(-60deg);
transform: rotate(-60deg);
}
nav a:hover,
nav a.active {
-webkit-transform: rotate(-60deg) scale(1.2);
...