/*
 * Resource node
 */

/* Footnote links */
/* Uncomment this to display numerals after footnote links.
a.popup-resource-footnotes span.footnote-marker {
  font-size: smaller;
  vertical-align: super;
  padding-left: 2px;
}
a.popup-resource-footnotes span.footnote-marker span.numeral {
  font-size: smaller;
}
*/
a.popup-resource-footnotes span.footnote-marker { display: none; }

/* Uncomment this to display a FontAwesome icon before footnote links.
a.popup-resource-footnotes { margin-left: 2px; }
a.popup-resource-footnotes:before {
  font-family: FontAwesome;
  -webkit-font-smoothing: antialiased;
  content: "\f02d";
  font-size: 22px;
}
*/

/*
 * Footnote display popups
 */
/* Make the inline links coloured or underlined in the footnote popups */
div.field-collection-view .field-name-field-source-text a { text-decoration: underline !important; }
/* Make headings and whatnot in the popups white so they'll be visible on the black background. */
div.field-collection-view .field-name-field-source-text h3 { color: white; }

/*
 * Resource node form
 */

/* Make the main-body WYSIWYG big, and float it beside the Footnotes fieldset. */
form.node-resource-form div.field-name-body {
  width: 60%;
  float: left;
  clear: none;
  margin-right: 1%;
}
form.node-resource-form div.field-name-body table td.cke_contents { height: 500px; }

/* Make the Footnotes fieldset narrow, and float it beside the Body. */
form.node-resource-form .group-sources {
  position: relative; top: 16px;
  width: 35%;
  float: left;
}
/* Make the Footnote RTEs very small. */
form.node-resource-form .group-sources td.cke_contents {
  height: 120px !important;
}
/* Save room by floating the "Enable/disable rich-text toggle" over to the right */
form.node-resource-form .group-sources div.wysiwyg-toggle-wrapper {
  float: right;
}
/* Save room by compressing the footnote link field UI elements. */
form.node-resource-form .group-sources .form-item.form-type-link-field label,
form.node-resource-form .group-sources .form-item.form-type-link-field input {
  float: left;
  margin-right: 5px;
}
/* Make the link field narrow enough to fit beside the "Enable/disable rich text" toggle. */
form.node-resource-form .group-sources .form-item.form-type-textfield input,
form.node-resource-form .group-sources .form-item.form-type-link-field input {
  width: 160px !important;
}
/* But add some vertical margin between the link field and the "Remove" button. */
form.node-resource-form .group-sources .form-item.form-type-link-field,
form.node-resource-form .group-sources .form-item.form-type-textfield {
  margin: 5px 0 !important;
}
/* Minimize spacing */
form.node-resource-form .group-sources .form-item {
  margin: 0 !important;
  padding: 0 !important;
}
/* Minimize padding below the "Add another item" button */
form.node-resource-form .group-sources input.field-add-more-submit {
  margin-bottom: 0;
} 

/* Just hide every UI element we can possibly spare in the Footnotes area of the form */
form.node-resource-form .group-sources table#field-sources-values tbody { border-top: 1px solid #BEBFB9; }
form.node-resource-form .group-sources span.cke_skin_kama { border: none; padding: 0; }
form.node-resource-form .group-sources .cke_button a,
form.node-resource-form .group-sources .cke_rcombo,
form.node-resource-form .group-sources div.text-format-wrapper label,
form.node-resource-form .group-sources table th.field-label,
form.node-resource-form .group-sources table th.tabledrag-hide,
form.node-resource-form .group-sources table td.field-multiple-drag,
form.node-resource-form .group-sources div.tabledrag-toggle-weight-wrapper,
form.node-resource-form .group-sources td.cke_bottom,
form.node-resource-form fieldset.filter-wrapper { display: none !important; }

/* Bring back a few buttons for the Footnotes WYSIWYGs - I'm not made of stone */
form.node-resource-form .group-sources .cke_button a.cke_button_bold,
form.node-resource-form .group-sources .cke_button a.cke_button_bulletedlist,
form.node-resource-form .group-sources .cke_button a.cke_button_numberedlist,
form.node-resource-form .group-sources .cke_button a.cke_button_link,
form.node-resource-form .group-sources .cke_button a.cke_button_unlink,
form.node-resource-form .group-sources .cke_button a.cke_button_pastefromword,
form.node-resource-form .group-sources .cke_button a.cke_button_removeFormat {
  display: inline-block !important; 
}
form.node-resource-form div.field-type-image { clear: both !important; }


/*
 * WYSIWYG
 * Do not display the "Insert source footnote" button on the WYSIWYGs for the Footnotes field.
 * That would be nonsensical, I'm sure you'd agree.  Don't show on admin WYSIWYGs, either.
 */
.cke_button_footnotes {
  display: none !important;
}
form.node-resource-form div.field-name-body .cke_button_footnotes {
  display: inline-block !important;
}
/* Do not show the teaser break button when editing a taxonomy term. */
form#taxonomy-form-term .cke_button_break { display: none !important; }

/* Node edit links at top of page */
#edit-top-actions {
  float: right;
}
