From d52de7172642127a9330bb8bce438d23275f84f6 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 15 Apr 2021 03:12:37 +0100 Subject: [PATCH] chore: lint CSS files The linter throws loads of errors - this commit only makes those fixes that Stylelint can make automatically. --- css/dev-amp-tooltips.css | 9 ++++++--- css/dev-common.css | 13 +++++++------ css/dev-tooltips-alternative.css | 19 +++++++++++-------- css/dev-tooltips.css | 14 +++++++------- css/settings.css | 26 ++++++++++++++++++++------ 5 files changed, 51 insertions(+), 30 deletions(-) diff --git a/css/dev-amp-tooltips.css b/css/dev-amp-tooltips.css index b04413c..baaabd4 100644 --- a/css/dev-amp-tooltips.css +++ b/css/dev-amp-tooltips.css @@ -26,7 +26,8 @@ span.footnote_referrer > span.footnote_tooltip { visibility: hidden; opacity: 0; transition-property: visibility, opacity; -/* + + /* transition-delay: 500ms; transition-duration: 1s; */ @@ -37,7 +38,8 @@ span.footnote_referrer:hover > span.footnote_tooltip { visibility: visible; opacity: 1; transition-property: visibility, opacity; -/* + + /* transition-delay: 0; transition-duration: 200ms; */ @@ -57,7 +59,8 @@ span.footnote_referrer:hover > span.footnote_tooltip { .footnote_tooltip.position { display: unset; position: absolute; -/* + + /* bottom: 24px; left: -50px; width: 400px; diff --git a/css/dev-common.css b/css/dev-common.css index 332d90c..877f30c 100644 --- a/css/dev-common.css +++ b/css/dev-common.css @@ -81,7 +81,7 @@ border: 4px solid red; padding: 20px 40px; margin: 20px 0; - background: #ff000055; + background: #f005; text-align: start; } @@ -307,18 +307,19 @@ Classes: margin-bottom: 0.25em !important; padding: 0 !important; font-weight: normal !important; + /* bottom border optional since 2.2.5 */ display: block !important; -webkit-margin-before: 0.83em !important; -webkit-margin-after: 0.83em !important; - -webkit-margin-start: 0px !important; - -webkit-margin-end: 0px !important; + -webkit-margin-start: 0 !important; + -webkit-margin-end: 0 !important; text-align: start !important; vertical-align: middle; } .footnote_container_prepare > p > span:first-child, - .footnote_container_prepare > p > span:nth-child(3) { +.footnote_container_prepare > p > span:nth-child(3) { text-align: start !important; font-size: 1.5em !important; } @@ -380,8 +381,8 @@ table width: 1px !important; white-space: nowrap !important; overflow: hidden !important; - color: #ffffff00 !important; - background-color: #ffffff00 !important; + color: #fff0 !important; + background-color: #fff0 !important; } /** diff --git a/css/dev-tooltips-alternative.css b/css/dev-tooltips-alternative.css index 483168c..0e906c0 100644 --- a/css/dev-tooltips-alternative.css +++ b/css/dev-tooltips-alternative.css @@ -1,18 +1,18 @@ /* */ + /*input[type=text], input[type=password], textarea, select*/ #footnote_inputfield_readon_label, #footnote_inputfield_references_label, @@ -82,6 +86,7 @@ Limited to a number of IDs to not affect all dashboards #footnote_inputfield_custom_mouse_over_box_excerpt_length { width: 180px; } + #footnote_inputfield_placeholder_start_user_defined, #footnote_inputfield_placeholder_end_user_defined { width: 320px; @@ -147,7 +152,7 @@ label { border: none !important; } -.postbox > .inside >table > tbody > tr > td:first-child { +.postbox > .inside > table > tbody > tr > td:first-child { width: 15% !important; font-weight: bold !important; } @@ -182,17 +187,21 @@ IE doesn’t support nth child, but these are not critical .expert_lookup tr td:first-child { width: 170px !important; } + .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) { width: 200px !important; } + .expert_lookup tr td:nth-child(3) input { width: 190px; } + .expert_lookup tr th:last-child, .expert_lookup tr td:last-child { white-space: nowrap; @@ -212,29 +221,33 @@ For better maintainability and readability of the source list, the

end tags are omitted per HTML5 standard: -The textarea has monospace font, but no other features +The textarea has monospace font, but no other features helping edit CSS, like tab support and syntactic colors. */ #customize_css_new tr td:first-child { width: 38% !important; font-weight: normal !important; } + .customize_css_new tr td:first-child span:first-child { font-weight: bold !important; } + .customize_css_new .list { padding-top: 10px; } + .customize_css_new .list p { font-family: monospace; padding: 0 10px; text-indent: -10px; - margin: .5em 0; + margin: 0.5em 0; } #footnote_inputfield_custom_css_new { height: 500px; } + #footnote_inputfield_custom_css, #footnote_inputfield_custom_css_new { width: 96%; @@ -276,6 +289,7 @@ notice after the end of the settings box. .footnotes_description { padding: 0 4%; } + .footnotes_description p { font-size: 1.06em; font-style: italic;