/*
Plugin Name: Piwi Warehouse
Author: Marisa Monaco
Author URI: http: //www.piwi.graphics
Description: Custom style for common code
*/

/**
 * Table of Contents
 *
 * 1.0 - General
 * 2.0 - Errors
 */

/**
 * 1.0 - General
 */
#pwwh-notes li.depth-1 textarea {
  width: 100%;
  padding: 9px;
  font-size: 16px;
  border-radius: 0;
  overflow: hidden;
  resize: none;
}

#pwwh-notes li.depth-2 textarea {
  width: calc(100% - 70px);
  margin-left: 70px;
  padding: 9px;
  font-size: 16px;
  border-radius: 0;
  overflow: hidden;
  resize: none;
}

#pwwh-notes li.depth-2 textarea.edit {
  margin-left: 0;
}

#pwwh-notes .button-container {
 display: flex;
 flex-direction: row;
}

#pwwh-notes .button-container.align-left {
 justify-content: flex-start;
}

#pwwh-notes .button-container.align-right {
 justify-content: flex-end;
}

#pwwh-notes #pwwh-notes-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  margin: 12px 0 0;
}

#pwwh-notes #pwwh-notes-list ul {
  margin-top: 10px;
}

#pwwh-notes #pwwh-notes-list li {
  padding: 10px 0;
  margin: 0;
  width: 100%;
}

#pwwh-notes #pwwh-notes-list li .trash-notice {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  padding: 20px;
  margin-bottom: 20px;
  width: initial;
}

#pwwh-notes #pwwh-notes-list li .trash-notice:last-child {
  margin-bottom: 0;
}

#pwwh-notes #pwwh-notes-list li .trash-notice .countdown {
  display: inline-block;
  margin: 0 3px 0 10px;
  min-width: 30px;
}

#pwwh-notes #pwwh-notes-list li:not(.depth-1) {
  margin-bottom: 0;
  margin-left: 50px;
  width: calc(100% - 50px);
}

#pwwh-notes #pwwh-notes-list .note header {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#pwwh-notes #pwwh-notes-list .note header .note-avatar img {
  border-radius: 50px;
  border: 2px #82878c solid;
}

#pwwh-notes #pwwh-notes-list .note header .note-info {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-left: 20px;
  width: 100%;
}

#pwwh-notes #pwwh-notes-list .note header .note-author {
  font-size: 18px;
  font-weight: normal;
  line-height: 1.1;
  color: #007cba;
}

#pwwh-notes #pwwh-notes-list .note header .note-date {
  font-size: 13px;
  font-weight: normal;
  font-style: italic;
}

#pwwh-notes #pwwh-notes-list .note main {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-left: 70px;
  font-size: 16px;
  background: #f1f1f1;
}

#pwwh-notes #pwwh-notes-list .note main .content {
  display: block;
  padding: 10px;
  width: calc(100% - 20px);
  transition: all .5s;
}

#pwwh-notes #pwwh-notes-list .note main textarea {
  width: 100%;
  padding: 9px;
  font-size: 16px;
  border-radius: 0;
  overflow: hidden;
  resize: none;
}

#pwwh-notes #pwwh-notes-list .note footer {
  margin-top: 5px;
  margin-left: 70px;
  min-height: 28px;
  color: #ddd;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#pwwh-notes #pwwh-notes-list .note .notes-row-actions {
  visibility: hidden;
}

#pwwh-notes #pwwh-notes-list .note:hover .notes-row-actions {
  visibility: visible;
}

#pwwh-notes #pwwh-notes-list .note .notes-row-actions .pwwh-lib-button {
  margin: 2px;
  padding: 0;
  border: none;
  background-color: transparent;
  line-height: inherit;
  height: initial;
  min-width: inherit;
  color:#0073aa;
}

#pwwh-notes #pwwh-notes-list .note .notes-row-actions .pwwh-lib-button:hover {
  opacity: 0.8;
}

.pwwh-notes-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/**
 * 1.0 - Errors
 */
#pwwh-notes textarea.pwwh-note-error,
#pwwh-notes textarea.pwwh-note-error:focus,
#pwwh-notes input.pwwh-note-error,
#pwwh-notes input.pwwh-note-error:focus {
  border-color: #ff9595;
  -webkit-box-shadow: 0px 0px 2px rgba(255,105,105,1);
  -moz-box-shadow: 0px 0px 2px rgba(255,105,105,1);
  box-shadow: 0px 0px 2px rgba(255,105,105,0.3);
}

#pwwh-notes label.pwwh-note-error {
  color: #ff9595;
  font-size: 15px;
  margin: 0;
  display: block;
  background-color: white;
}

#pwwh-notes label.pwwh-note-error:before {
  content: "\f534";
  font: 400 20px/1 dashicons;
  vertical-align: middle;
  margin-right: 5px;
}

#pwwh-notes #pwwh_note_add {
  width: 100px;
  margin-left: calc(100% - 100px);
  margin-top: 12px;
} 