decor-6-site/assets/css/main.css

158 lines
2.3 KiB
CSS
Raw Normal View History

2026-01-05 19:33:15 +01:00
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-sizing: border-box;
}
body{
font-family: var(--fontFamily);
font-size: var(--textSize);
line-height: 1.3;
}
a{
text-decoration: none;
color: #000;
}
a:hover{text-decoration: underline;}
p{ margin-bottom: 1rem;}
img{ width: 100%;}
main{ margin-bottom: 150px; }
h1{
font-weight: normal;
font-size: 3em;
margin-top: 0;
text-transform: uppercase;
margin-bottom: 0;
string-set: title content(text);
}
h2{
string-set: chapter content(text);
text-align: center;
}
h2, h3{
font-size: 3em;
font-weight: normal;
text-transform: uppercase;
}
h3{
font-size: 1em;
}
h5, h6{
font-size: var(--textSize);
margin-top: 1mm;
margin-bottom: 0;
font-weight: normal;
}
p, li{
text-align: justify;
hyphens: auto;
line-height: 1.45;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
-webkit-hyphenate-limit-before: 3;
-webkit-hyphenate-limit-after: 4;
-ms-hyphenate-limit-chars: 7 3 4;
hyphenate-limit-chars: 7 3 4;
word-wrap: break-word;
overflow-wrap: break-word;
/* veuves et orphelines (bancal) */
widows: 3;
orphans: 3;
}
li p{
margin: 0;
text-align: left;
}
p a {
white-space: pre-wrap; /* CSS3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
word-break: break-all;
}
ul, figure, ol{
margin: 0;
padding: 0
}
figure{
margin-bottom: 1em;
}
figcaption{
font-size: 0.8em;
margin-top: 0.5em;
}
figcaption p{
margin: 0;
}
figure[data-ratio] {
position: relative;
width: 100%;
aspect-ratio: var(--ratio);
}
figure[data-crop="true"] img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
figure[data-crop="false"] img {
width: 100%;
height: auto;
object-fit: contain;
}
2026-03-18 08:44:44 +01:00
blockquote{
/*background: red;*/
margin-left: 2cm;
margin-top: 0;
position: relative;
}
blockquote:before{
content: ":::::::::";
display: block;
position: absolute;
left: -2cm;
/*border-top: 1px solid #000;*/
width: 2cm;
height: 100%;
}
2026-03-10 16:24:39 +01:00
/* Classes pour le responsive */
.show-for-small-only{ display: block;}
.hide-for-small-only{ display: none;}
2026-01-05 19:33:15 +01:00
2026-03-08 11:09:35 +01:00