development 2.2.0d0 for Forum
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2435618 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
4b27b10295
commit
8e02b48df3
20 changed files with 373 additions and 216 deletions
|
@ -5,15 +5,18 @@
|
|||
* Created-Time: 16:21
|
||||
* Since: 1.0
|
||||
*
|
||||
* Version: 2.1.5
|
||||
* Version: 2.2.0d0
|
||||
*
|
||||
* Last modified: 2020-12-06T2259+0100
|
||||
* Last modified: 2020-12-09T1608+0100
|
||||
*/
|
||||
|
||||
|
||||
/*****************************************************
|
||||
MCI Footnotes logo
|
||||
The classes with 'heading' fix display in dashboard
|
||||
|
||||
The classes with 'heading' fix display in dashboard,
|
||||
where since WordPress 5.5 settings box labels with
|
||||
spans are displayed as justified and not last line.
|
||||
|
||||
class/config.php
|
||||
css/settings.css
|
||||
|
@ -37,13 +40,18 @@ css/settings.css
|
|||
/*****************************************************
|
||||
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
|
||||
Unicode recommends to break URLs at slashes, but
|
||||
some browsers don’t, so we need to prevent URLs
|
||||
from expanding the reference container in mobile view,
|
||||
or from hanging out of the tooltip even on desktop.
|
||||
|
||||
Based on pattern, not link element, since some URLs
|
||||
are not hyperlinked, while often the hyperlink text
|
||||
is common language, that mustn’t be broken anywhere.
|
||||
|
||||
based on pattern, not link element
|
||||
class/task.php
|
||||
|
||||
not cross-browser compatible:
|
||||
These rules aren’t cross-browser compatible:
|
||||
word-break: break-word;
|
||||
overflow-wrap: anywhere;
|
||||
word-wrap: anywhere;
|
||||
|
@ -58,9 +66,11 @@ word-break: break-all;
|
|||
/*****************************************************
|
||||
Footnote referrers and tooltips
|
||||
|
||||
Templates:
|
||||
templates/public/footnote.html
|
||||
templates/public/footnote-alternative.html
|
||||
|
||||
Classes:
|
||||
.footnote_referrer = enclosing <span>
|
||||
.footnote_plugin_tooltip_text = inner <sup>
|
||||
.footnote_tooltip = inner <span>
|
||||
|
@ -89,7 +99,7 @@ templates/public/footnote-alternative.html
|
|||
|
||||
.footnote_tooltip {
|
||||
display: none;
|
||||
z-index: 999;
|
||||
z-index: 99999;
|
||||
cursor: auto;
|
||||
text-align: left;
|
||||
padding: 12px;
|
||||
|
@ -152,13 +162,37 @@ Read-on button
|
|||
|
||||
|
||||
/*****************************************************
|
||||
Footnote references container
|
||||
Footnote reference container
|
||||
|
||||
Templates:
|
||||
templates/public/reference-container.html
|
||||
templates/public/reference-container-body.html
|
||||
templates/public/reference-container-combi.html
|
||||
templates/public/reference-container-switch.html
|
||||
templates/public/reference-container-3column.html
|
||||
|
||||
Optional responsive basic page layout support
|
||||
style sheets:
|
||||
css/layout-reference-container.css
|
||||
css/layout-main-content.css
|
||||
css/layout-page-content.css
|
||||
|
||||
Classes:
|
||||
.footnotes_reference_container = enclosing <div>
|
||||
.footnote_container_prepare = label <div>
|
||||
.footnote_reference_container_label = <span>
|
||||
.footnote_reference_container_collapse_button = sibling <span>
|
||||
.footnote-reference-container = misleading and inconsistent; alias:
|
||||
.footnotes_table = <table>
|
||||
.footnote_plugin_index_combi = first <td> if identical footnotes are combined
|
||||
.footnote_plugin_index = first <td> if not
|
||||
.footnote_index = <a> or <span> in first <td> in 3-column table
|
||||
.footnote_plugin_link = <a> or <span> if identical footnotes are not combined, or second <td> in 3-column table
|
||||
.footnote_backlink = <a> or <span> if identical footnotes are combined, or in second <td> in 3-column table
|
||||
.footnote_index_arrow = nested <span>, symbol only
|
||||
.footnote_plugin_text = second <td>, or third <td> in 3-column table
|
||||
|
||||
|
||||
Also optional responsive basic page layout support:
|
||||
public-container.css
|
||||
public-main.css
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -205,14 +239,14 @@ fully clickable, not sign only
|
|||
/*
|
||||
table
|
||||
*/
|
||||
.footnote-reference-container {
|
||||
.footnote-reference-container,
|
||||
.footnotes_table {
|
||||
width: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/*
|
||||
footnotes
|
||||
reference-container-body.html
|
||||
*/
|
||||
.footnote_plugin_index,
|
||||
.footnote_plugin_index_combi,
|
||||
|
|
108
css/settings.css
108
css/settings.css
|
@ -5,13 +5,13 @@
|
|||
* Created-Time: 16:21
|
||||
* Since: 1.0
|
||||
*
|
||||
* Version: 2.1.5
|
||||
* Version: 2.2.0d0
|
||||
*
|
||||
* Last modified: 2020-12-06T2258+0100
|
||||
* Last modified: 2020-12-09T1607+0100
|
||||
*/
|
||||
|
||||
|
||||
/*****************************************************
|
||||
/************************************************************
|
||||
MCI Footnotes logo
|
||||
|
||||
The classes with 'heading' fix display in dashboard
|
||||
|
@ -40,14 +40,16 @@ See class/config.php and css/public.css
|
|||
left: 96px;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
On User Request: limited to a number of IDs to not affect all dashboards
|
||||
/************************************************************
|
||||
Input fields
|
||||
|
||||
On User Request:
|
||||
Limited to a number of IDs to not affect all dashboards
|
||||
<https://wordpress.org/support/topic/all-input-have-width-80/>
|
||||
*/
|
||||
/*input[type=text], input[type=password], textarea, select*/
|
||||
#footnote_inputfield_readon_label,
|
||||
#footnote_inputfield_references_label,
|
||||
#footnote_inputfield_custom_css,
|
||||
#footnote_inputfield_love {
|
||||
padding-left: 8px !important;
|
||||
padding-right: 8px !important;
|
||||
|
@ -106,10 +108,9 @@ On User Request: limited to a number of IDs to not affect all dashboards
|
|||
width: 140px;
|
||||
}
|
||||
|
||||
/*textarea*/
|
||||
#footnote_inputfield_custom_css {
|
||||
height: 250px;
|
||||
}
|
||||
/************************************************************
|
||||
Headings and labels
|
||||
*/
|
||||
|
||||
label {
|
||||
display: inline-block;
|
||||
|
@ -154,34 +155,90 @@ span.footnote_highlight_placeholder {
|
|||
text-align: center !important;
|
||||
}
|
||||
|
||||
/*********************************************************
|
||||
/************************************************************
|
||||
Special table layout
|
||||
|
||||
Hooks and priority levels:
|
||||
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;
|
||||
}
|
||||
|
||||
#settings-other tr td:nth-child(2) {
|
||||
/*
|
||||
Other settings
|
||||
*/
|
||||
#settings_other tr td:nth-child(2) {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
/*
|
||||
Custom CSS
|
||||
|
||||
16 CSS classes are listed directly in the template
|
||||
templates/dashboard/customize-css.html
|
||||
|
||||
Localized notices are dropped to ease translators’ task.
|
||||
|
||||
The textarea has monospace font but no tab support.
|
||||
*/
|
||||
#customize_css tr td:first-child {
|
||||
width: 44% !important;
|
||||
font-weight: normal !important;
|
||||
}
|
||||
#customize_css tr td:first-child span:first-child {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
#customize_css .list {
|
||||
padding-top: 10px;
|
||||
}
|
||||
#customize_css .list p {
|
||||
font-family: monospace;
|
||||
padding-left: 10px;
|
||||
text-indent: -10px;
|
||||
margin: .5em 0;
|
||||
}
|
||||
|
||||
#footnote_inputfield_custom_css {
|
||||
height: 500px;
|
||||
width: 90%;
|
||||
resize: both;
|
||||
overflow: scroll;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
/************************************************************
|
||||
Notices
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/************************************************************
|
||||
Descriptions
|
||||
|
||||
fullwidth div above or below settings tables:
|
||||
*/
|
||||
.footnotes_description {
|
||||
|
@ -191,12 +248,3 @@ fullwidth div above or below settings tables:
|
|||
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