stable bugfix release 2.1.1
git-svn-id: https://plugins.svn.wordpress.org/footnotes/tags/2.1.1@2420456 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
362d9e60c6
commit
e1f16f3e52
27 changed files with 1388 additions and 697 deletions
218
css/public.css
218
css/public.css
|
@ -4,17 +4,19 @@
|
|||
* Created-Date: 15.05.14
|
||||
* Created-Time: 16:21
|
||||
* Since: 1.0
|
||||
* Version: 2.0.6
|
||||
* Version: 2.1.1
|
||||
*
|
||||
* Last modified: 2020-11-04T2131+0100
|
||||
* Last modified: 2020-11-18T0137+0100
|
||||
*/
|
||||
|
||||
|
||||
/* MCI Footnotes logo
|
||||
*
|
||||
* The classes with 'heading' fix display in dashboard
|
||||
* See class/config.php and css/settings.css
|
||||
*/
|
||||
/*‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
||||
MCI Footnotes logo
|
||||
The classes with 'heading' fix display in dashboard
|
||||
|
||||
class/config.php
|
||||
css/settings.css
|
||||
*/
|
||||
|
||||
.footnotes_logo,
|
||||
.footnotes_logo:hover,
|
||||
|
@ -31,51 +33,116 @@
|
|||
color: #545f5a;
|
||||
}
|
||||
|
||||
/* Inline footnote referrers
|
||||
* aka superscript footnote anchors
|
||||
*
|
||||
* Class footnote_plugin_tooltip_text is the referrer and surroundings
|
||||
*/
|
||||
/*‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
||||
Footnote referrers and tooltips
|
||||
|
||||
templates/public/footnote.html
|
||||
templates/public/footnote-alternative.html
|
||||
|
||||
.footnote_referrer = enclosing <span>
|
||||
.footnote_plugin_tooltip_text = inner <sup>
|
||||
.footnote_tooltip = inner <span>
|
||||
*/
|
||||
|
||||
.footnote_referrer,
|
||||
.footnote_referrer a,
|
||||
.footnote_referrer:link,
|
||||
.footnote_referrer a:link,
|
||||
.main-content .footnote_referrer,
|
||||
.main-content .footnote_referrer a,
|
||||
.main-content .footnote_referrer:link,
|
||||
.main-content .footnote_referrer a:link,
|
||||
.footnote_plugin_tooltip_text {
|
||||
text-decoration: none !important;
|
||||
border-bottom: none !important;
|
||||
line-height: 0;
|
||||
cursor: pointer;
|
||||
z-index: 1;
|
||||
}
|
||||
.footnote_plugin_tooltip_text {
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
}
|
||||
.footnote_referrer:hover,
|
||||
.footnote_referrer a:hover,
|
||||
.footnote_plugin_tooltip_text:hover {
|
||||
text-decoration: underline;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
/* tooltip infobox */
|
||||
|
||||
span.footnote_tooltip {
|
||||
font-size: inherit;
|
||||
.footnote_tooltip {
|
||||
display: none;
|
||||
z-index: 999;
|
||||
cursor: auto;
|
||||
text-align: left;
|
||||
padding: 12px;
|
||||
line-height: 1.2em;
|
||||
z-index: 99;
|
||||
font-size: inherit;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
.continue {
|
||||
.footnote_tooltip a {
|
||||
word-wrap: anywhere;
|
||||
}
|
||||
|
||||
/*
|
||||
alternative tooltip implementation
|
||||
*/
|
||||
.footnote_referrer.relative {
|
||||
position: relative;
|
||||
}
|
||||
.footnote_tooltip.position {
|
||||
display: unset;
|
||||
position: absolute;
|
||||
bottom: 24px;
|
||||
left: -50px;
|
||||
width: 400px;
|
||||
}
|
||||
/*
|
||||
fade-in parameters
|
||||
*/
|
||||
.footnote_tooltip.shown {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transition-property: visibility opacity;
|
||||
transition-duration: 200ms;
|
||||
transition-timing-function: linear;
|
||||
transition-delay: 0ms;
|
||||
}
|
||||
/*
|
||||
fade-out parameters
|
||||
*/
|
||||
.footnote_tooltip.hidden {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
transition-property: visibility opacity;
|
||||
transition-duration: 200ms;
|
||||
transition-timing-function: linear;
|
||||
transition-delay: 400ms;
|
||||
}
|
||||
|
||||
/*
|
||||
Read-on button
|
||||
*/
|
||||
.footnote_tooltip_continue {
|
||||
font-style: italic;
|
||||
color: green;
|
||||
text-decoration: none !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
.continue:hover {
|
||||
.footnote_tooltip_continue:hover {
|
||||
color: blue;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
/* Footnotes reference container
|
||||
*/
|
||||
|
||||
/* label */
|
||||
/*‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
||||
Footnote references container
|
||||
|
||||
templates/public/reference-container.html
|
||||
*/
|
||||
|
||||
/*
|
||||
label
|
||||
*/
|
||||
.footnote_container_prepare {
|
||||
display: block !important;
|
||||
padding-top: 24px !important;
|
||||
margin-bottom: -5px;
|
||||
}
|
||||
.footnote_container_prepare > p {
|
||||
line-height: 1.3 !important;
|
||||
|
@ -98,84 +165,111 @@ span.footnote_tooltip {
|
|||
font-size: 1.5em !important;
|
||||
}
|
||||
|
||||
/* collapse button */
|
||||
/* fully clickable, not sign only */
|
||||
/*
|
||||
collapse button
|
||||
fully clickable, not sign only
|
||||
*/
|
||||
.footnote_reference_container_collapse_button {
|
||||
cursor: pointer;
|
||||
padding-left: .5em;
|
||||
font-size: 1.3em !important;
|
||||
vertical-align: 2px;
|
||||
}
|
||||
.footnote_container_prepare > p > span:last-child a {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.footnote_container_prepare > p > span:last-child a:hover {
|
||||
text-decoration: underline;
|
||||
color: #008800;
|
||||
}
|
||||
|
||||
/* Table starts here */
|
||||
/*
|
||||
table
|
||||
*/
|
||||
.footnote-reference-container {
|
||||
width: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* footnotes
|
||||
* class footnote_plugin_link is for backcompat.
|
||||
* Used in reference-container-body.html
|
||||
* See <https://wordpress.org/support/topic/change-the-position-5/#post-13617988>
|
||||
.footnote_plugin_link, */
|
||||
/*
|
||||
footnotes
|
||||
reference-container-body.html
|
||||
*/
|
||||
.footnote_plugin_index,
|
||||
.footnote_plugin_index_combi,
|
||||
.footnote_plugin_link,
|
||||
.footnote_plugin_text {
|
||||
border:none !important;
|
||||
text-align: left !important;
|
||||
vertical-align: top !important;
|
||||
padding: 10px 5px 5px 0 !important;
|
||||
padding: 5px 6px 10px 0 !important;
|
||||
}
|
||||
.footnote_plugin_index a,
|
||||
.footnote_plugin_text a {
|
||||
.footnote_backlink,
|
||||
.footnote_backlink:link,
|
||||
.footnote_plugin_link,
|
||||
.footnote_plugin_link:link,
|
||||
.main-content .footnote_backlink,
|
||||
.main-content .footnote_backlink:link,
|
||||
.main-content .footnote_plugin_link,
|
||||
.main-content .footnote_plugin_link:link {
|
||||
text-decoration: none !important;
|
||||
border-bottom: none !important;
|
||||
}
|
||||
/*
|
||||
These rules when enabled cause the backlink to take an overline
|
||||
when hovered in some themes, not in others:
|
||||
.footnote_plugin_index:hover,
|
||||
.footnote_plugin_index.pointer:hover,
|
||||
*/
|
||||
.footnote_backlink:hover,
|
||||
.footnote_plugin_index_combi:hover,
|
||||
.footnote_plugin_link:hover,
|
||||
.footnote_plugin_text a:hover {
|
||||
text-decoration: unset;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
.footnote_plugin_index {
|
||||
cursor: pointer;
|
||||
overflow-wrap: unset;
|
||||
word-wrap: unset;
|
||||
word-wrap: normal !important;
|
||||
word-break: unset;
|
||||
word-break: keep-all !important;
|
||||
max-width: 140px;
|
||||
width: 1px; /*auto-extending column to fit widest*/
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
width: 2em; /*auto-extending column to fit widest*/
|
||||
}
|
||||
.footnote_backlink,
|
||||
.footnote_plugin_link {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.footnote_index,
|
||||
.footnote_backlink,
|
||||
.footnote_plugin_index.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.footnote_plugin_text {
|
||||
width: unset; /*unset width of text column to fix site issues*/
|
||||
}
|
||||
|
||||
/* Responsive*/
|
||||
/*
|
||||
Responsive
|
||||
*/
|
||||
@media only screen and (max-width: 768px) {
|
||||
.footnote_plugin_index {
|
||||
max-width: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Footnotes printing style rules
|
||||
*
|
||||
* Printing a table, browsers tend to avoid page breaks,
|
||||
* but it takes a wrapper to avoid a page break before the table.
|
||||
*
|
||||
* UI elements (button, arrows) and link styling are removed.
|
||||
/*‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
||||
Footnotes printing style rules
|
||||
|
||||
Printing a table, browsers tend to avoid page breaks,
|
||||
but it takes a wrapper to avoid a page break before the table.
|
||||
|
||||
UI elements - expand button, arrows - are hidden in print;
|
||||
link styling is reverted so as to not gray out referrers/numbers.
|
||||
*/
|
||||
|
||||
.footnote_container_overall_wrapper {
|
||||
.footnotes_reference_container {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.footnote_tooltip,
|
||||
.footnote_reference_container_collapse_button,
|
||||
.footnote_plugin_index_arrow {
|
||||
.footnote_index_arrow {
|
||||
display: none;
|
||||
}
|
||||
.footnote_plugin_tooltip_text {
|
||||
|
@ -185,7 +279,7 @@ span.footnote_tooltip {
|
|||
color: inherit;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
div.post-meta-edit-link-wrapper { /* Edit button in WP2020*/
|
||||
div.post-meta-edit-link-wrapper { /*Edit button in WP2020*/
|
||||
display: none; /*(added as a service)*/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,8 +4,9 @@
|
|||
* Created-Date: 15.05.14
|
||||
* Created-Time: 16:21
|
||||
* Since: 1.0
|
||||
* Version: 2.0.4
|
||||
* Last modified: 2020-11-01T0415+0100
|
||||
* Version: 2.1.1
|
||||
*
|
||||
* Last modified: 2020-11-18T0136+0100
|
||||
*/
|
||||
|
||||
|
||||
|
@ -38,7 +39,12 @@
|
|||
}
|
||||
|
||||
|
||||
input[type=text], input[type=password], textarea, select {
|
||||
#footnote_inputfield_placeholder_start_user_defined,
|
||||
#footnote_inputfield_placeholder_end_user_defined,
|
||||
#footnote_inputfield_readon_label,
|
||||
#footnote_inputfield_references_label,
|
||||
#footnote_inputfield_custom_css
|
||||
/*input[type=text], input[type=password], textarea, select*/ {
|
||||
padding-left: 8px !important;
|
||||
padding-right: 8px !important;
|
||||
width: 80% !important;
|
||||
|
|
Reference in a new issue