/*
style.css for ds4psy book
hn | uni.kn | 2024 10 17
*/

p.caption {
  color: #777;
  margin-top: 10px;
}
p code {
  white-space: inherit;
}
pre {
  word-break: normal;
  word-wrap: normal;
}
pre code {
  white-space: inherit;
}
p.flushright {
  text-align: right;
}
blockquote > p:last-child {
  text-align: right;
}
blockquote > p:first-child {
  text-align: inherit;
}
.header-section-number {
  padding-right: .2em;
  font-weight: 500;
}
.level1 .header-section-number {
  display: inline-block;
  border-bottom: 3px solid;
}
.level1 h1 {
  border-bottom: 1px solid;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}
h1.title {
  font-weight: 700;
}
.smallcaps {
  font-variant: small-caps;
}
.book .book-body .page-wrapper .page-inner section.normal strong {
  font-weight: 600;
}

/*
Custom block defined in style.css according to -->
https://dr-harper.github.io/rmarkdown-cookbook/using-custom-blocks.html and
https://www.w3schools.com/cssref/default.asp (CSS reference)
*/

.blueBlock {
  min-width: 50%;
  max-width: 80%;
  padding: 1em 1em 1em 1em;
  margin-bottom: 10px;
  background: #e6e6e6;
  border-color: #00A9E0;
  border-style: solid;
  border-radius: 8px;
  border-width: 2px;
}

/* More custom blocks:
https://bookdown.org/yihui/bookdown/custom-blocks.html
https://bookdown.org/yihui/rmarkdown-cookbook/custom-blocks.html
*/

.rmdcaution, .rmdimportant, .rmdnote, .rmdtip, .rmdwarning {
  padding: 1em 1em 1em 4em;
  margin-bottom: 10px;
  background: #f5f5f5 5px center/3em no-repeat;
}

.rmdcaution {
  background-image: url("../images/caution.png");
}

.rmdimportant {
  background-image: url("../images/important.png");
}

.rmdnote {
  background-image: url("../images/note.png");
}

.rmdtip {
  background-image: url("../images/tip.png");
}

.rmdwarning {
  background-image: url("../images/warning.png");
}

/* eof. */
