/*
Theme Name: New Document Base
Description: New Document Base Theme
Author: Kristoffer Klintberg
Author URI: http://www.newdocument.io
Version: 1.0.0
*/

.nd-component {
  position: relative;
  overflow: hidden;
}

.nd-component:hover .nd-component__template-name {
  display: block !important;
}

.nd-component .nd-component .nd-component__template-name {
  transform: translateY(150%);
}

.nd-component .nd-component .nd-component__template-name {
  transform: translateY(300%);
}
.nd-component-story {
  position: relative;
}
.nd-output-data-checkbox__wrapper {
  float: right;
}
.nd-output-data-checkbox__label {
  cursor: pointer;
}
.nd-output-data-checkbox {
  display: none;
}
.nd-output-data-checkbox + span + span {
  display: none;
}
.nd-output-data-checkbox:checked + span {
  display: none;
}
.nd-output-data-checkbox:checked + span + span + .nd-component-story__data,
.nd-output-data-checkbox:checked + span + span {
  display: inline-block;
}
.nd-component-story__name {
  font-family: sans-serif;
  border-top: 2px dashed #ddd;
  text-align: left;
  padding: 20px;
  line-height: 1;
  font-size: 12px;
  margin: 2.5em 0 0;
}
.nd-component-story__name a {
  color: inherit;
}
.nd-component-story__data {
  display: none;
  padding: 15px;
  background: #f5f5f5;
  position: absolute;
  max-width: 350px;
  width: 100%;
  top: 3.5em;
  right: 20px;
  opacity: 0.85;
  border: 2px solid #333;
  z-index: 1;
}
.nd-component-story__clear-filter {
  color: inherit;
  background: #eee;
  border-radius: 4px;
  padding: 10px 15px;
  margin: 0 15px;
  display: inline-block;
}
.nd-component-story__clear-filter-wrapper {
  margin: 10px 20px 0;
  font-size: 12px;
}
.nd-component-story__clear-filter-wrapper strong {
  font-weight: bold;
}
