Browse Source

Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme

dependabot/npm_and_yarn/acorn-5.7.4
Rob Drew 6 years ago
parent
commit
f79dfbc0bc
  1. 40
      css/style.css
  2. 16
      js/js.js
  3. 16
      src/js/js.js
  4. 12
      src/scss/_article-pages.scss
  5. 41
      src/scss/_article_attachment.scss
  6. 1
      src/scss/style.scss

40
css/style.css

File diff suppressed because one or more lines are too long

16
js/js.js

@ -2,26 +2,34 @@
Drupal.behaviors.footnote_popups = {
attach: function attach(context, settings) {
/*
//target he footnotes list
$.each($(".notes ul.footnotes a"), function(index, value) {
$.each($(".footnote-list ul.footnotes a"), function(index, value) {
//find the footnotes at the bottom and extract the text
var _footnoteText_ = $(this).siblings(".endnote-text").text();
//var _bibCiteText_ = $(this).siblings(".endnote-text").text();
console.log(_footnoteText_);
//find the href of the related anchor from the id of this
var _id_ = $(this).attr("id");
console.log(_id_);
//use the id to fing the links href and insert the text from the 1st var
$('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', '');
});
}); */
$.each($(".works_cited ul.footnotes a"), function(index, value) {
$.each($(".footnote-list ul.footnotes a"), function(index, value) {
//find the footnotes at the bottom and extract the text
//var _footnoteText_ = $(this).siblings(".csl-bib-body").text();
var _footnoteText_ = $(this).siblings(".bibcite-citation").text();
console.log(_footnoteText_);
var _footnoteText02_ = $(this).siblings(".endnote-text").text();
//find the href of the related anchor from the id of this
var _id_ = $(this).attr("id");
console.log("start");
console.log(_id_);
console.log(_footnoteText_);
console.log(_footnoteText02_);
console.log("end");
//use the id to fing the links href and insert the text from the 1st var
$('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', '');
});

16
src/js/js.js

@ -2,26 +2,34 @@
Drupal.behaviors.footnote_popups = {
attach: function attach(context, settings) {
/*
//target he footnotes list
$.each($(".notes ul.footnotes a"), function(index, value) {
$.each($(".footnote-list ul.footnotes a"), function(index, value) {
//find the footnotes at the bottom and extract the text
var _footnoteText_ = $(this).siblings(".endnote-text").text();
//var _bibCiteText_ = $(this).siblings(".endnote-text").text();
console.log(_footnoteText_);
//find the href of the related anchor from the id of this
var _id_ = $(this).attr("id");
console.log(_id_);
//use the id to fing the links href and insert the text from the 1st var
$('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', '');
});
}); */
$.each($(".works_cited ul.footnotes a"), function(index, value) {
$.each($(".footnote-list ul.footnotes a"), function(index, value) {
//find the footnotes at the bottom and extract the text
//var _footnoteText_ = $(this).siblings(".csl-bib-body").text();
var _footnoteText_ = $(this).siblings(".bibcite-citation").text();
console.log(_footnoteText_);
var _footnoteText02_ = $(this).siblings(".endnote-text").text();
//find the href of the related anchor from the id of this
var _id_ = $(this).attr("id");
console.log("start");
console.log(_id_);
console.log(_footnoteText_);
console.log(_footnoteText02_);
console.log("end");
//use the id to fing the links href and insert the text from the 1st var
$('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', '');
});

12
src/scss/_article-pages.scss

@ -268,3 +268,15 @@ h3.field-group-format-toggler.accordion-item {
padding: 0;
//margin: 0;
}
.bibcite-reference {
font-size: 18px;
font-style: italic;
font-weight: 400;
padding-left: 5px;
}
.field--name-field-bibcite-fn-works-cited .field__label {
font-size: 30px;
font-weight: normal;
margin-top: 1rem;
}

41
src/scss/_article_attachment.scss

@ -0,0 +1,41 @@
//@format
%fa-icon {
}
.article_attachment {
a {
line-height: calc(155% + 0.2vw);
font-size: calc(0.9em + 0.3vw);
text-decoration: underline;
}
}
.article_attachment {
.file {
background-image: none;
padding-left: 0px;
&:before {
display: inline-block;
font: normal normal normal 18px/1 FontAwesome;
font-size: 1.8em;
margin-right: 5px;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
content: '\f15b';
}
&--video {
&:before {
content: '\f1c8';
}
}
&--audio {
&:before {
content: '\f1c7';
}
}
&--application-pdf {
&:before {
content: '\f1c1';
}
}
}
}

1
src/scss/style.scss

@ -11,6 +11,7 @@
@import 'toc';
@import 'static-pages';
@import 'cite-this';
@import 'article_attachment';
/*on-scroll menu */

Loading…
Cancel
Save