/*
Do not modify this stlye just for this project, as we use it on all our static docs sites.
Edit assets/custom.css if you want to make modifications just for this site.
*/

/* Colfax Font */
@font-face {
  font-family: 'Colfax';
  src: url('/fonts/colfax/ColfaxWebMedium.eot');
  src: url('/fonts/colfax/ColfaxWebMedium.woff') format("woff");
  font-weight: 700;
  font-style: normal
}

@font-face {
  font-family: 'Colfax';
  src: url('/fonts/colfax/ColfaxWebMediumItalic.eot');
  src: url('/fonts/colfax/ColfaxWebMediumItalic.woff') format("woff");
  font-weight: 700;
  font-style: italic
}

@font-face {
  font-family: 'Colfax';
  src: url('/fonts/colfax/ColfaxWebRegular.eot');
  src: url('/fonts/colfax/ColfaxWebRegular.woff') format("woff");
  font-weight: 400;
  font-style: normal
}

@font-face {
  font-family: 'Colfax';
  src: url('/fonts/colfax/ColfaxWebRegularItalic.eot');
  src: url('/fonts/colfax/ColfaxWebRegularItalic.woff') format("woff");
  font-weight: 400;
  font-style: italic
}

@font-face {
  font-family: 'Colfax';
  src: url('/fonts/colfax/ColfaxWebLight.eot');
  src: url('/fonts/colfax/ColfaxWebLight.woff') format("woff");
  font-weight: 100;
  font-style: normal
}

@font-face {
  font-family: 'Colfax';
  src: url('/fonts/colfax/ColfaxWebLightItalic.eot');
  src: url('/fonts/colfax/ColfaxWebLightItalic.woff') format("woff");
  font-weight: 100;
  font-style: italic
}

/* Base icons for the mkdocs material theme. */
@font-face {
  font-family: 'Icon';
  font-weight: normal;
  font-style: normal;
  src: url('/assets/fonts/icon.eot');
  src: url('/assets/fonts/icon.eot?#iefix') format('embedded-opentype'),
       url('/assets/fonts/icon.woff') format('woff'),
       url('/assets/fonts/icon.ttf') format('truetype'),
       url('/assets/fonts/icon.svg#pagerduty') format('svg');
}

/* The PD icon. */
@font-face {
  font-family: 'pagerduty';
  font-style: normal;
  font-weight: normal;
  src: url('/fonts/icons/pagerduty.eot');
  src: url('/fonts/icons/pagerduty.eot?#iefix') format('embedded-opentype'),
       url('/fonts/icons/pagerduty.woff') format('woff'),
       url('/fonts/icons/pagerduty.ttf') format('truetype'),
       url('/fonts/icons/pagerduty.svg#pagerduty') format('svg');
}

/* Extra icons we've added, Fork, Note, etc. */
@font-face {
  font-family: 'icons';
  font-style: normal;
  font-weight: normal;
  src: url('/fonts/icons/icons.eot');
  src: url('/fonts/icons/icons.eot?#iefix') format('embedded-opentype'),
       url('/fonts/icons/icons.woff') format('woff'),
       url('/fonts/icons/icons.ttf') format('truetype'),
       url('/fonts/icons/icons.svg#pagerduty') format('svg');
}

body, input {
  font-family: 'Colfax', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

pre, code {
  font-family: 'Courier New', 'Courier', monospace;
  -webkit-font-smoothing: antialiased;
}

/* Prevent re-drawing of the backdrop when scrolling with mousewheel. Would cause weird artifacts
in Chrome. */
.backdrop {
  position: fixed;
}

/* Change the colour theme to better match PagerDuty */

@media only screen and (min-width: 960px) {
  .backdrop {
    background:#f6f6f6;
  }
}

/* background: pd-green */
.repo a {
  background: #06ac38;
}

.palette-primary-green .results .meta {
  background: #06ac38;
}

.palette-primary-green .article table th {
  background: #06ac38;
}

@media print {
  .palette-primary-green .article table th {
    background: #000;
    color: #fff;
  }
}

@media only screen and (max-width: 959px) {
  .palette-primary-green .project {
    background: #06ac38;
  }
}

/* background: white */
.palette-primary-green,
.palette-primary-green .footer,
.palette-primary-green .header {
  background: #fff;
  color: #222;
}

/* font: black */
.palette-primary-green .article a,
.palette-primary-green .article code {
  color: #222;
}

/* font: pd-green */
.palette-primary-green .article h1,
.palette-primary-green .article h2,
.palette-primary-green .drawer .toc a.current,
.palette-primary-green .drawer .toc a:focus,
.palette-primary-green .drawer .toc a:hover,
.palette-primary-green .article a:hover {
  color: #06ac38;
}

@media print {
  .palette-primary-green .article h1,
  .palette-primary-green .article h2 {
    color: #000;
  }
}

/* Remove underline on footer links */
.article .footer .pagination a {
  border-bottom: none;
}

/* Increase the weight of heading. */
.palette-primary-green .article h2 {
  font-weight: 600;
}

/* Selected nav section */
.palette-primary-green .drawer .anchor a {
  border-left: 3px solid #06ac38;
}

/* Need some visual break between content and footer. */
.footer {
  box-shadow: 0 -1.5px 3px rgba(0,0,0,.24), 0 -3px 8px rgba(0,0,0,.05);
}

/* Hide the repository info under normal conditions, since we can just link to it in button. */
div.repo_header {
  display: none;
}

/* Adjust repo buttons */
ul.repo {
  margin-top: 0em;
  margin-right: 1em;
}

/* Update icon for fork. */
.icon-code-fork:before {
  font-family: 'icons';
  content: "\e900";
}

/* Correct header navigation. */
.bar .path {
  color: #4b4f4f;
}
.bar .path a {
  display: inline;
  font-size: 1em;
  color: #4b4f4f;
}

/* Fix a small offset on pages with breadcrumbs. */
.title .path .icon {
  vertical-align: -1.5px;
}

/* Fix offsets for mobile layouts. */
@media only screen and (max-width: 1200px) {
  ul.repo {
    margin-top: 0.5em;
  }
}

@media only screen and (max-width: 960px) {
  div.repo_header {
    display: block;
  }

  ul.repo {
    margin-top: 24px;
    margin-right: 0.5em;
  }
}

/* Fix icon padding for GitHub. */
.repo a .icon-github {
  padding-right: 0.3em;
}

/* Hide the page title, already in the navbar */
.article h1 {
  display: none;
}

/* But show it when printing */
@media print {
  .article h1 {
    display: block;
    padding-top: 0em;
    padding-bottom: 0.1em;
    margin-top: 0em;
    margin-bottom: 0em;
    border-bottom: none;
  }

  /* Also add a heading when printing */
  .article h1:before {
    background: url(/assets/img/logo.png) 0em 0em no-repeat;
    background-size: 5.8em;
    display: block;
    height: 1.7em;
    width: 100%;
    padding-left: 6.1em;
    content: 'Documentation';
    color: #000;
    font-size: 1.1em;
    border-bottom: 1px solid #000;
    margin-bottom: 0.8em;
    -webkit-print-color-adjust: exact; /* Force to show when printing. Chrome/Safari only :( */
  }
}

/* Want the font to be bigger for articles, easier reading. */
.article {
	font-size: 1.45em;
}

/* Too much whitespace at the top, not enough at bottom */
.article .wrapper {
  padding: 56px 16px 132px !important;
}

@media only screen and (min-width: 720px) {
  .article .wrapper {
    padding: 70px 24px 126px !important;
  }
}

/* Get rid of the whitespace when printing, let people set own margins. */
@media print {
  .article .wrapper {
    padding: 0em !important;
  }
}

ul, ol {
  padding-left: 1em;
}

/* PagerDuty icon in main header */
.icon-pagerduty:before {
  display: block;
  font-family: 'pagerduty';
  font-style: normal;
  font-weight: normal;
  font-size: 0.8em;
  margin-top: 0.13em;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\0041";
}

/* Expanding border menu */
.drawer .toc li a {
	overflow: hidden;
	position: relative;
}

.drawer .toc li a:before {
  display: block;
  content: '';
  position: absolute;
  height: 2em;
  left: 0px;
  top: 0.5em;
  border-left: 5px solid #06ac38;
  transform: scaleY(0);
  transition: transform 250ms ease-in-out;
}

.drawer .toc li a:hover:before {
	transform: scaleY(1);
}

/* Don't do it on active menu items */
.drawer .toc a.current:hover:before,
.drawer .toc li.anchor a:hover:before {
  transform: scaleY(0);
	display: none;
}

/* Don't overflow horizontally on nav */
.drawer .toc ul li a {
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Change the title bar to include the PD logo */
nav div.mainlogo {
	width: 125px;
	display: table-cell;
}

nav div.mainlogo a {
  min-height: 26px;
  margin-bottom: -.7em;
  width: 120px;

  background: url(/assets/img/logo.svg) 0em 0em no-repeat;
  background-size: contain;
}

nav div.mainlogo img {
  display: none;
}

/* Remove logo in favour of page title for smaller mobile devices. */
@media only screen and (max-width: 480px) {
  nav div.mainlogo {
    width: 0em;
  }

  nav div.mainlogo a {
    width: 4em;
    background: none;
  }
}

/* Admonitions */

/* Defaults */
.admonition {
  background: #06ac38;
}
.admonition .admonition-title {
  font-weight: 600;
}
.admonition .admonition-title:before {
  margin-top: -0.05em;
  font-weight: normal;
}
.palette-primary-green .article .admonition a {
  color: #fff;
}
.palette-primary-green .article .admonition a:hover {
  color: #000;
}
@media print { .admonition { background: #fff !important; padding: 0px !important; } }

/* Warnings */
.admonition.warning {
  background: #da2e3c;
}
@media print { .admonition.warning, .palette-primary-green .article .admonition.warning a { color: #da2e3c; } }

/* Tip */
.admonition.tip {
  background: #06ac38;
}
@media print { .admonition.tip, .palette-primary-green .article .admonition.tip a { color: #06ac38; } }

/* Info */
.admonition.info {
  background: #4b4f4f;
}
.admonition.info .admonition-title:before {
  font-family: 'icons';
  content: "\e903";
}
@media print { .admonition.info, .palette-primary-green .article .admonition.info a { color: #4b4f4f; } }

/* Question */
.admonition.question {
  background: #157ee0;
}
.admonition.question .admonition-title:before {
  font-family: 'icons';
  content: "\e904";
}
@media print { .admonition.question, .palette-primary-green .article .admonition.question a { color: #157ee0; } }

/* Note */
.admonition.note {
  background: #ffe664;
  color: #333;
}
.palette-primary-green .article .admonition.note a {
  color: #333;
}
.palette-primary-green .article .admonition.note a:hover {
  color: #000;
}
.admonition.note .admonition-title {
  text-indent: 0.05em;
}
.admonition.note .admonition-title:before {
  font-family: 'icons';
  content: "\e902";
}
@media print { .admonition.note, .palette-primary-green .article .admonition.note a { color: #000; } }

@media print {
  .admonition {
    padding: 1em 2em !important;
  }
}

/* Typography */
h4 {
  font-weight: bold;
  text-decoration: underline;
}

.project .logo+.name {
	font-size: 13px;
}

mark {
  margin: 0 .25em;
  padding: .0625em 0;
  border-radius: .2rem;
  background-color: rgba(255,235,59,.5);
  -webkit-box-shadow: 0.25em 0 0 rgba(255,235,59,.5), -0.25em 0 0 rgba(255,235,59,.5);
  box-shadow: 0.25em 0 0 rgba(255,235,59,.5), -0.25em 0 0 rgba(255,235,59,.5);
  word-break: break-word;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.article a {
  border-bottom: 1px solid;
}

abbr {
  border-bottom: 1px dotted #aaa;
  text-decoration: none;
  cursor: help;
}

span.bad {
  color: #da2e3c;
}

span.good {
  color: #06ac38;
}

/* Code blocks */
.article pre {
  position: relative;
}
.article pre:before {
  font-family: 'icons';
  content: "\ea80";
  position: absolute;
  top: 1em;
  right: 1em;
  color: #888;
  font-size: 1.2em;
}

.article span.code,
.article code {
  font-family: monospace;
  border-radius: .2rem;
  padding: 0.1em;
  font-size: 1.23em;
  border: 1px solid #f1f1f1;
  background: #f5f5f5;
}

.palette-primary-green .article code {
  color: #00f;
}

.article pre code {
  background: transparent;
  border: none;
}

/* Intent of severity levels. */
p.intent {
  margin-top: 0em;
  color: rgb(51,102,255);
  font-style: italic;
  font-weight: bold;
  margin-bottom: 2em;
}

p.response {
  margin-top: 0em;
  color: rgb(255,102,0);
  font-style: italic;
  font-weight: bold;
  margin-bottom: 2em;
}

/* Icons */
.button .icon:hover {
  transition: color 250ms ease-in-out;
  color: #06ac38;
}

/* Images */
.article .wrapper {
	overflow: hidden;
}

/* Center all images */
.article img {
    display: block;
    margin: 0 auto;
}

/* Header images */
.article h1 + p img {
  max-width: 110%;
  margin-left: -2em;

  /* Crop the images to have smaller height, to take up less content space. */
  /* Want to be sure to crop from center though! */
  margin-top: -4em;
  margin-bottom: -2em;
  clip-path: inset(2em 0px 2em 0px);
  -webkit-clip-path: inset(2em 0px 2em 0px); /* Safari needs the -webkit- prefix on this one. */
}

.article h1 + p + p img {
  max-width: 110%;
  margin-left: -2em;
}

/* Image Captions */
img + em {
  position: relative;
  font-size: 0.8em;
  margin-right: -2.3em;
  padding: 0em 1em;
  float: right;
  margin-top: -2em;
  color: #000;
  border-top-left-radius: 3px;
  background: rgba(255, 255, 255, 0.7);
}

/* Fixes for smaller screen sizes */
@media only screen and (max-width: 720px) {
  .article h1 + p img {
    max-width: 120%;
  }

  .article h1 + p img + em {
    margin-right: -1.4em;
    margin-top: -2em;
  }
}

/* Hack to hide the header images when printing. */
@media print {
  .article h1 + p img,
  .article h1 + p + p img {
    display: none;
  }

  .article h1 + p img + em {
    display: none;
  }
}

/* Quotes */
.article blockquote {
  border-left: 4px solid #06ac38;
  background: #f7f7f7;
  padding: 0.5em;
  padding-left: 1.1em;
  margin-top: 1em;
  color: #222;
  font-style: italic;
  position: relative;
  margin-left: 3em;
  width: 95%;
}

.article blockquote:before {
  font-family: Arial, sans-serif;
  content: "\201C";
  position: absolute;
  top: 0.4em;
  left: -.8em;
  color: #06ac38;
  font-weight: bold;
  font-style: normal;
  font-size: 4em;
}

.article blockquote p {
  margin: 0em;
  padding: 0.5em 0em;
}

/* Details / Aside */
.article details {
  border-left: 4px solid #157ee0;
  background: #f7f7f7;
  padding: 0.9em;
  padding-left: 1.1em;
  margin-top: 1em;
  color: #222;
  font-style: normal;
  position: relative;
  width: 95%;
  margin-left: 3em;
}

.article details:before {
  font-family: 'icons';
  content: "\e903";
  position: absolute;
  top: 0.4em;
  left: -1.5em;
  color: #157ee0;
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
}

.article details summary {
  font-weight: bold;
  color: #157ee0;
  font-style: normal;
  cursor: pointer;
}

.article details p {
  margin: 0em;
  padding: 0.5em 0em;
}

@media only screen and (max-width: 720px) {
  /* Get rid of the icon for blockquotes and asides. */
  .article blockquote,
  .article details {
    width: 100% !important;
    margin-left: 0em !important;
  }

  .article blockquote:before,
  .article details:before {
    display: none;
  }
}

/* Other types of details/aside */

/* Info is the default, but we also want to hide arrows. */
.article details.info summary::-webkit-details-marker {
  display: none;
}

/* Standlone aside, no summary */
.article details.standalone {
  padding: 0.5em;
  padding-left: 1.1em;
}
.article details.standalone summary {
  display:none;
}

/* Warnings */
.article details.warning {
  border-left: 4px solid #ba120a;
}
.article details.warning:before {
  color: #ba120a;
  font-family: 'Icon';
  content: "\e610"; /* Warning triangle */
}
.article details.warning summary {
  color: #ba120a;
}
.article details.warning summary::-webkit-details-marker {
  display:none;
}

/* Questions */
.article details.question:before {
  font-family: 'icons';
  content: "\e904"; /* ? */
}
.article details.question summary::-webkit-details-marker {
  display:none;
}

/* Comments */
.article details.comment {
  border-left: 4px solid #4b4f4f;
}
.article details.comment:before {
  color: #4b4f4f;
  font-family: 'icons';
  content: "\e901"; /* Comment */
}
.article details.comment summary {
  color: #4b4f4f;
}
.article details.comment summary::-webkit-details-marker {
  display:none;
}


@media only screen and (max-width: 720px) {
  /* Get rid of the icon for blockquotes and asides. */
  .article blockquote,
  .article details.aside {
    width: 100% !important;
    margin-left: 0em !important;
  }

  .article blockquote:before,
  .article details.aside:before {
    display: none;
  }
}

.article details.hide-arrow summary::-webkit-details-marker {
  display:none;
}

/* Horizontal Rules */
.article hr {
  margin-top: 2em;
  border-top: 2px solid #f4f4f4;
}

/* Don't care about copyright notice for this project, Apache License. */
aside.copyright {
  display: none;
}

/* Embeds */
iframe {
  display: block;
  margin: 0 auto;
  margin-top: 1em;
}

/* Pagination colors. */
.pagination a,
.pagination a .button,
.pagination a .title {
  color: #000;
}

.pagination .direction {
  color: #4b4f4f;
}

/* Pagination arrow alignment fix. */
.pagination .button {
  vertical-align: 0em;
}

.pagination .button .icon {
  vertical-align: .25em;
}

/* Make sure to show some previous titles even on smaller devices. */
.pagination .previous { width: 40%; }
.pagination .next { width: 60%; }

.pagination .previous .direction,
.pagination .previous .stretch {
    display: table;
}

/* 404 Page */
#error {
  text-align: center;
  padding: 0em 5em;
}

#error h1 {
  display: block;
	font-size: 2.5em;
  padding-bottom: 1em;
  margin-bottom: 1em;
  margin-top: 1em;
  border-bottom: 1px solid #eee;
}

#error p {
  font-style: italic;
  color: #555;
}
