/* details.css -- css for details/summary disclosures; July 3, 2020 */
/* see below for styling the triangle */

details {
  background-color: cornsilk;
  border: 1px solid red;
  padding: 1rem;
}
details span {
  font-size: 80%;
  color: blue;
  font-weight: normal;
}
details[open] div {
  padding: 1rem 0.5rem;
  /* border: 2px dotted blue; */
}
details[open] > summary {
  font-weight: bold;
}
details[open] summary .open {
  display: none;
}
details:not([open]) summary .closed {
  display: none;
}
details img {
  display: block;
  width: 90%;
  margin: 1rem auto;
}
details a {
  font-size: 80%;
}
summary {
  cursor: pointer;
  outline: none;
}
/* replaces triangle with + and -
summary::-webkit-details-marker {
  display: none
}
summary:after {
  background: red;
  border-radius: 5px;
  content: "+";
  color: #fff;
  float: left;
  font-size: 1.5em;
  font-weight: bold;
  margin: -5px 10px 0 0;
  padding: 0;
  text-align: center;
  width: 20px;
}
details[open] summary:after {
  content: "-";
}
*/
/* another example
summary {
  font-weight: bold;
  list-style-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/right-arrow.svg);
}
summary::-webkit-details-marker {
  background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/right-arrow.svg);
  color: transparent;
}
*/
/* more comprehensive with svg replacement
    https://codepen.io/koca/pen/RyeLLV
*/
