bugfix release 2.1.4 (added features fix issues and are not localized yet)
git-svn-id: https://plugins.svn.wordpress.org/footnotes/tags/2.1.4@2432656 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
2eaf22a30b
commit
665ddda49b
32 changed files with 1511 additions and 602 deletions
75
css/layout-main-content.css
Normal file
75
css/layout-main-content.css
Normal file
|
@ -0,0 +1,75 @@
|
|||
/**
|
||||
* Basic responsive layout for the main element
|
||||
*
|
||||
* Based on Hello Elementor v2.3.0 Basic responsive layout
|
||||
* themes/hello-elementor/theme.css:8..31
|
||||
* licensed under GNU General Public License v3 or later
|
||||
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
*
|
||||
* Since v2.1.4 of Footnotes
|
||||
*
|
||||
* Last modified: 2020-12-06T1722+0100
|
||||
*
|
||||
* The enqueuing of this style sheet is optional and can be
|
||||
* enabled in the Reference container settings.
|
||||
**/
|
||||
|
||||
/***********************************************************
|
||||
Rationale
|
||||
|
||||
In Hello Elementor Theme, this applies to .site-header, and
|
||||
also to .site-main, which is a class of the <main> element,
|
||||
at the condition that the page is not built with Elementor:
|
||||
body:not([class*="elementor-page-"])
|
||||
Therefore, in pages built with Elementor, proper layout is
|
||||
applied only to features managed by Elementor, not others.
|
||||
|
||||
The Footnotes references container is near the end of main.
|
||||
This style sheet lets Footnotes’ reference container come
|
||||
into the benefit of the basic responsive layout style rules
|
||||
that would apply if the page were not built with Elementor.
|
||||
|
||||
This is mainly useful with Hello Elementor, but it might be
|
||||
used also with another theme.
|
||||
*/
|
||||
|
||||
main, .main-content, .site-main {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 575px) {
|
||||
|
||||
main, .main-content, .site-main {
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
|
||||
main, .main-content, .site-main {
|
||||
max-width: 500px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
||||
main, .main-content, .site-main {
|
||||
max-width: 600px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
|
||||
main, .main-content, .site-main {
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
|
||||
main, .main-content, .site-main {
|
||||
max-width: 960px;
|
||||
}
|
||||
}
|
75
css/layout-page-content.css
Normal file
75
css/layout-page-content.css
Normal file
|
@ -0,0 +1,75 @@
|
|||
/**
|
||||
* Basic responsive layout for the page content div
|
||||
*
|
||||
* Based on Hello Elementor v2.3.0 Basic responsive layout
|
||||
* themes/hello-elementor/theme.css:8..31
|
||||
* licensed under GNU General Public License v3 or later
|
||||
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
*
|
||||
* Since v2.1.4 of Footnotes
|
||||
*
|
||||
* Last modified: 2020-12-06T1722+0100
|
||||
*
|
||||
* The enqueuing of this style sheet is optional and can be
|
||||
* enabled in the Reference container settings.
|
||||
**/
|
||||
|
||||
/***********************************************************
|
||||
Rationale
|
||||
|
||||
In Hello Elementor Theme, this applies to .site-header, and
|
||||
also to .site-main, which is a class of the <main> element,
|
||||
at the condition that the page is not built with Elementor:
|
||||
body:not([class*="elementor-page-"])
|
||||
Therefore, in pages built with Elementor, proper layout is
|
||||
applied only to features managed by Elementor, not others.
|
||||
|
||||
The Footnotes references container is near the end of main.
|
||||
This style sheet lets Footnotes’ reference container come
|
||||
into the benefit of the basic responsive layout style rules
|
||||
that would apply if the page were not built with Elementor.
|
||||
|
||||
This is mainly useful with Hello Elementor, but it might be
|
||||
used also with another theme.
|
||||
*/
|
||||
|
||||
div.page-content {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 575px) {
|
||||
|
||||
div.page-content {
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
|
||||
div.page-content {
|
||||
max-width: 500px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
||||
div.page-content {
|
||||
max-width: 600px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
|
||||
div.page-content {
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
|
||||
div.page-content {
|
||||
max-width: 960px;
|
||||
}
|
||||
}
|
75
css/layout-reference-container.css
Normal file
75
css/layout-reference-container.css
Normal file
|
@ -0,0 +1,75 @@
|
|||
/**
|
||||
* Basic responsive layout for the reference container
|
||||
*
|
||||
* Based on Hello Elementor v2.3.0 Basic responsive layout
|
||||
* themes/hello-elementor/theme.css:8..31
|
||||
* licensed under GNU General Public License v3 or later
|
||||
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||
*
|
||||
* Since v2.1.4 of Footnotes
|
||||
*
|
||||
* Last modified: 2020-12-06T1722+0100
|
||||
*
|
||||
* The enqueuing of this style sheet is optional and can be
|
||||
* enabled in the Reference container settings.
|
||||
**/
|
||||
|
||||
/***********************************************************
|
||||
Rationale
|
||||
|
||||
In Hello Elementor Theme, this applies to .site-header, and
|
||||
also to .site-main, which is a class of the <main> element,
|
||||
at the condition that the page is not built with Elementor:
|
||||
body:not([class*="elementor-page-"])
|
||||
Therefore, in pages built with Elementor, proper layout is
|
||||
applied only to features managed by Elementor, not others.
|
||||
|
||||
The Footnotes references container is near the end of main.
|
||||
This style sheet lets Footnotes’ reference container come
|
||||
into the benefit of the basic responsive layout style rules
|
||||
that would apply if the page were not built with Elementor.
|
||||
|
||||
This is mainly useful with Hello Elementor, but it might be
|
||||
used also with another theme.
|
||||
*/
|
||||
|
||||
.footnotes_reference_container {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 575px) {
|
||||
|
||||
.footnotes_reference_container {
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
|
||||
.footnotes_reference_container {
|
||||
max-width: 500px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
||||
.footnotes_reference_container {
|
||||
max-width: 600px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
|
||||
.footnotes_reference_container {
|
||||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
|
||||
.footnotes_reference_container {
|
||||
max-width: 960px;
|
||||
}
|
||||
}
|
107
css/public.css
107
css/public.css
|
@ -4,9 +4,10 @@
|
|||
* Created-Date: 15.05.14
|
||||
* Created-Time: 16:21
|
||||
* Since: 1.0
|
||||
* Version: 2.1.3
|
||||
*
|
||||
* Last modified: 2020-11-24T0958+0100
|
||||
* Version: 2.1.4
|
||||
*
|
||||
* Last modified: 2020-12-06T1649+0100
|
||||
*/
|
||||
|
||||
|
||||
|
@ -33,6 +34,27 @@ css/settings.css
|
|||
color: #545f5a;
|
||||
}
|
||||
|
||||
/*****************************************************
|
||||
Long URLs in Unicode-non-compliant user agents
|
||||
|
||||
prevent URLs from expanding the reference container
|
||||
in mobile view, or from hanging out of the tooltip
|
||||
|
||||
based on pattern, not link element
|
||||
class/task.php
|
||||
|
||||
not cross-browser compatible:
|
||||
word-break: break-word;
|
||||
overflow-wrap: anywhere;
|
||||
word-wrap: anywhere;
|
||||
word-break: break-all;
|
||||
*/
|
||||
|
||||
.footnote_url_wrap {
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
/*****************************************************
|
||||
Footnote referrers and tooltips
|
||||
|
||||
|
@ -61,7 +83,7 @@ templates/public/footnote-alternative.html
|
|||
.footnote_referrer:hover,
|
||||
.footnote_referrer a:hover,
|
||||
.footnote_plugin_tooltip_text:hover {
|
||||
text-decoration: underline;
|
||||
text-decoration: none;
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
|
@ -71,14 +93,11 @@ templates/public/footnote-alternative.html
|
|||
cursor: auto;
|
||||
text-align: left;
|
||||
padding: 12px;
|
||||
line-height: 1.2em;
|
||||
font-size: inherit;
|
||||
line-height: 1.2;
|
||||
/*font-size: inherit; moved to settings since 2.1.4 */
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
.footnote_tooltip a {
|
||||
word-wrap: anywhere;
|
||||
}
|
||||
|
||||
/*
|
||||
alternative tooltip implementation
|
||||
|
@ -124,6 +143,7 @@ Read-on button
|
|||
color: green;
|
||||
text-decoration: none !important;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.footnote_tooltip_continue:hover {
|
||||
color: blue;
|
||||
|
@ -135,6 +155,10 @@ Read-on button
|
|||
Footnote references container
|
||||
|
||||
templates/public/reference-container.html
|
||||
|
||||
Also optional responsive basic page layout support:
|
||||
public-container.css
|
||||
public-main.css
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -150,7 +174,6 @@ label
|
|||
margin-bottom: 0.25em !important;
|
||||
padding: 0 !important;
|
||||
font-weight: normal !important;
|
||||
overflow: hidden !important;
|
||||
border-bottom: 1px solid #aaaaaa !important;
|
||||
display: block !important;
|
||||
-webkit-margin-before: 0.83em !important;
|
||||
|
@ -171,7 +194,7 @@ fully clickable, not sign only
|
|||
*/
|
||||
.footnote_reference_container_collapse_button {
|
||||
cursor: pointer;
|
||||
padding-left: .5em;
|
||||
padding: 0 0.5em;
|
||||
font-size: 1.3em !important;
|
||||
vertical-align: 2px;
|
||||
}
|
||||
|
@ -192,6 +215,7 @@ footnotes
|
|||
reference-container-body.html
|
||||
*/
|
||||
.footnote_plugin_index,
|
||||
.footnote_plugin_index_combi,
|
||||
.footnote_plugin_link,
|
||||
.footnote_plugin_text {
|
||||
border:none !important;
|
||||
|
@ -210,22 +234,6 @@ reference-container-body.html
|
|||
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_link:hover,
|
||||
.footnote_plugin_text a:hover {
|
||||
text-decoration: unset;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
.footnote_plugin_index {
|
||||
max-width: 140px;
|
||||
width: 2em; /*auto-expanding column to fit widest*/
|
||||
}
|
||||
.footnote_backlink,
|
||||
.footnote_plugin_link {
|
||||
white-space: nowrap;
|
||||
|
@ -233,29 +241,55 @@ when hovered in some themes, not in others:
|
|||
|
||||
.footnote_index,
|
||||
.footnote_backlink,
|
||||
.footnote_plugin_index.pointer {
|
||||
.footnote_plugin_index.pointer,
|
||||
.footnote_plugin_index_combi.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*
|
||||
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_combi:hover,
|
||||
.footnote_plugin_index.pointer:hover,
|
||||
.footnote_plugin_index_combi.pointer:hover,
|
||||
*/
|
||||
.footnote_backlink:hover,
|
||||
.footnote_plugin_link:hover,
|
||||
.footnote_plugin_text a:hover {
|
||||
text-decoration: unset;
|
||||
text-decoration: underline; /*deprioritized to ease customization*/
|
||||
}
|
||||
|
||||
.footnote_plugin_text {
|
||||
width: unset; /*unset width of text column to fix site issues*/
|
||||
}
|
||||
/*
|
||||
prevent long URLs from expanding the reference container in mobile view:
|
||||
*/
|
||||
.footnote_plugin_text a {
|
||||
word-wrap: anywhere;
|
||||
}
|
||||
|
||||
/*
|
||||
These rules are just defauls preventing the table from filling the width.
|
||||
They are not very effective by lack of table-layout: fixed;
|
||||
since 2.1.4 settings are optionally available, with table-layout: fixed;
|
||||
|
||||
By default, the backlink column is auto-expanding to fit widest.
|
||||
Not using 'max-content' as that causes no-wrap and overflows.
|
||||
These are overridden if settings are enabled.
|
||||
*/
|
||||
.footnote_plugin_index,
|
||||
.footnote_plugin_index_combi {
|
||||
max-width: 100px;
|
||||
width: 2.5em;
|
||||
}
|
||||
/*
|
||||
Responsive
|
||||
*/
|
||||
@media only screen and (max-width: 768px) {
|
||||
.footnote_plugin_index {
|
||||
max-width: 100px;
|
||||
.footnote_plugin_index,
|
||||
.footnote_plugin_index_combi {
|
||||
max-width: 80px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************
|
||||
Footnotes printing style rules
|
||||
|
||||
|
@ -279,7 +313,8 @@ link styling is reverted so as to not gray out referrers/numbers.
|
|||
.footnote_plugin_tooltip_text {
|
||||
color: inherit;
|
||||
}
|
||||
.footnote_plugin_index a {
|
||||
.footnote_plugin_index a,
|
||||
.footnote_plugin_index_combi a {
|
||||
color: inherit;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
|
119
css/settings.css
119
css/settings.css
|
@ -4,17 +4,19 @@
|
|||
* Created-Date: 15.05.14
|
||||
* Created-Time: 16:21
|
||||
* Since: 1.0
|
||||
* Version: 2.1.3
|
||||
*
|
||||
* Last modified: 2020-11-24T0957+0100
|
||||
* Version: 2.1.4
|
||||
*
|
||||
* Last modified: 2020-12-06T1649+0100
|
||||
*/
|
||||
|
||||
|
||||
/* MCI Footnotes logo
|
||||
*
|
||||
* The classes with 'heading' fix display in dashboard
|
||||
* See class/config.php and css/public.css
|
||||
*/
|
||||
/*****************************************************
|
||||
MCI Footnotes logo
|
||||
|
||||
The classes with 'heading' fix display in dashboard
|
||||
See class/config.php and css/public.css
|
||||
*/
|
||||
|
||||
.postbox-header {
|
||||
position: relative;
|
||||
|
@ -38,22 +40,74 @@
|
|||
left: 96px;
|
||||
}
|
||||
|
||||
/*
|
||||
/*************************************************************************
|
||||
On User Request: limited to a number of IDs to not affect all dashboards
|
||||
<https://wordpress.org/support/topic/all-input-have-width-80/>
|
||||
*/
|
||||
#footnote_inputfield_placeholder_start_user_defined,
|
||||
#footnote_inputfield_placeholder_end_user_defined,
|
||||
/*input[type=text], input[type=password], textarea, select*/
|
||||
#footnote_inputfield_readon_label,
|
||||
#footnote_inputfield_references_label,
|
||||
#footnote_inputfield_custom_css
|
||||
/*input[type=text], input[type=password], textarea, select*/ {
|
||||
#footnote_inputfield_custom_css,
|
||||
#footnote_inputfield_love {
|
||||
padding-left: 8px !important;
|
||||
padding-right: 8px !important;
|
||||
width: 80% !important;
|
||||
}
|
||||
|
||||
textarea {
|
||||
#footnote_inputfield_reference_container_place {
|
||||
width: 310px;
|
||||
}
|
||||
|
||||
#footnote_inputfield_counter_style,
|
||||
#footnotes_inputfield_page_layout_support {
|
||||
width: 505px;
|
||||
}
|
||||
|
||||
#footnote_inputfield_placeholder_start,
|
||||
#footnote_inputfield_placeholder_end,
|
||||
#footnote_inputfield_custom_mouse_over_box_excerpt_length,
|
||||
#footnote_inputfield_custom_mouse_over_box_position {
|
||||
width: 180px;
|
||||
}
|
||||
#footnote_inputfield_placeholder_start_user_defined,
|
||||
#footnote_inputfield_placeholder_end_user_defined {
|
||||
width: 320px;
|
||||
}
|
||||
|
||||
#footnote_inputfield_combine_identical,
|
||||
#footnotes_inputfield_scroll_offset,
|
||||
#footnotes_inputfield_scroll_duration,
|
||||
#footnote_inputfield_custom_mouse_over_box_offset_x,
|
||||
#footnote_inputfield_custom_mouse_over_box_offset_y,
|
||||
#footnote_inputfield_custom_mouse_over_box_max_width,
|
||||
#footnotes_inputfield_mouse_over_box_fade_in_delay,
|
||||
#footnotes_inputfield_mouse_over_box_fade_in_duration,
|
||||
#footnotes_inputfield_mouse_over_box_fade_out_delay,
|
||||
#footnotes_inputfield_mouse_over_box_fade_out_duration,
|
||||
#footnote_inputfield_custom_mouse_over_box_border_width,
|
||||
#footnote_inputfield_custom_mouse_over_box_border_radius {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
#footnote_inputfield_custom_hyperlink_symbol,
|
||||
#footnotes_inputfield_backlinks_terminator_option,
|
||||
#footnotes_inputfield_backlinks_separator_option {
|
||||
width: 230px;
|
||||
}
|
||||
|
||||
#footnotes_inputfield_backlinks_column_width_scalar,
|
||||
#footnotes_inputfield_backlinks_column_max_width_scalar,
|
||||
#footnotes_inputfield_mouse_over_box_font_size_scalar {
|
||||
width: 85px;
|
||||
}
|
||||
#footnotes_inputfield_backlinks_column_width_unit,
|
||||
#footnotes_inputfield_backlinks_column_max_width_unit,
|
||||
#footnotes_inputfield_mouse_over_box_font_size_unit {
|
||||
width: 140px;
|
||||
}
|
||||
|
||||
/*textarea*/
|
||||
#footnote_inputfield_custom_css {
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
|
@ -100,34 +154,49 @@ span.footnote_highlight_placeholder {
|
|||
text-align: center !important;
|
||||
}
|
||||
|
||||
/*
|
||||
/*********************************************************
|
||||
initialized from style attributes in templates
|
||||
IE doesn’t support nth child, but these are not critical
|
||||
*/
|
||||
.expert-lookup tr th:first-child,
|
||||
.expert-lookup tr td:first-child {
|
||||
#expert-lookup tr th:first-child,
|
||||
#expert-lookup tr td:first-child {
|
||||
width: 170px !important;
|
||||
}
|
||||
.expert-lookup tr th:nth-child(2),
|
||||
.expert-lookup tr td:nth-child(2) {
|
||||
#expert-lookup tr th:nth-child(2),
|
||||
#expert-lookup tr td:nth-child(2) {
|
||||
width: 65px !important;
|
||||
}
|
||||
.expert-lookup tr th:nth-child(3),
|
||||
.expert-lookup tr td:nth-child(3) {
|
||||
#expert-lookup tr th:nth-child(3),
|
||||
#expert-lookup tr td:nth-child(3) {
|
||||
width: 200px !important;
|
||||
}
|
||||
.expert-lookup tr td:nth-child(3) input {
|
||||
#expert-lookup tr td:nth-child(3) input {
|
||||
width: 190px;
|
||||
}
|
||||
.expert-lookup tr th:last-child,
|
||||
.expert-lookup tr td:last-child {
|
||||
#expert-lookup tr th:last-child,
|
||||
#expert-lookup tr td:last-child {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.footnotes-description {
|
||||
#settings-other tr td:nth-child(2) {
|
||||
width: 30%;
|
||||
}
|
||||
/*
|
||||
fullwidth div above or below settings tables:
|
||||
*/
|
||||
.footnotes_description {
|
||||
padding: 0 10%;
|
||||
}
|
||||
.footnotes-description p {
|
||||
.footnotes_description p {
|
||||
font-size: 1.4em;
|
||||
font-style: italic;
|
||||
}
|
||||
/*
|
||||
span previously formatted as em element
|
||||
but emphasis is not the correct semantics,
|
||||
as it is rendered as bold in other scripts
|
||||
so we need an explicit italic style:
|
||||
*/
|
||||
.footnotes_notice {
|
||||
font-style: italic;
|
||||
}
|
||||
|
|
Reference in a new issue