diff --git a/styles/extensions/firefox-fix/manifest.json b/styles/extensions/firefox-fix/manifest.json new file mode 100644 index 0000000..04ceae3 --- /dev/null +++ b/styles/extensions/firefox-fix/manifest.json @@ -0,0 +1,8 @@ +{ + "name": "Temporary fix for issues caused by css in Firefox.", + "i18n": { + "zh_CN": "临时修复Firefox中css导致的问题" + }, + "author": "PTCMode", + "type": "enhance" +} \ No newline at end of file diff --git a/styles/extensions/firefox-fix/style.less b/styles/extensions/firefox-fix/style.less new file mode 100644 index 0000000..7e2935c --- /dev/null +++ b/styles/extensions/firefox-fix/style.less @@ -0,0 +1,26 @@ +.physton-prompt { + .prompt-tags { + .prompt-tags-list { + .prompt-tag { + .prompt-tag-main { + --pp-pt-dsb-ptl-pt-promptTagMain-width: calc(100% + 4px); + .prompt-tag-edit { + --pp-pt-dsb-ptl-pt-ptm-promptTagEdit-width: calc(100% + 8px); + .prompt-tag-value { + --pp-pt-dsb-ptl-pt-ptm-pte-promptTagValue-width: calc(100% - 8px); + .character { + --pp-pt-dsb-ptl-pt-ptm-pte-ptv-character-white-space: nowrap; + } + } + .input-tag-edit { + --pp-pt-dsb-ptl-pt-ptm-pte-inputTagEdit-max-width: calc(100% - 8px); + } + .btn-tag-delete { + --pp-pt-dsb-ptl-pt-ptm-pte-btnTagDelete-width: 100%; + } + } + } + } + } + } +} diff --git a/styles/extensions/firefox-fix/style.min.css b/styles/extensions/firefox-fix/style.min.css new file mode 100644 index 0000000..1bdf10c --- /dev/null +++ b/styles/extensions/firefox-fix/style.min.css @@ -0,0 +1 @@ +.physton-prompt{.prompt-tags{.prompt-tags-list{.prompt-tag{.prompt-tag-main{--pp-pt-dsb-ptl-pt-promptTagMain-width:calc(100%+4px);.prompt-tag-edit{--pp-pt-dsb-ptl-pt-ptm-promptTagEdit-width:calc(100%+8px);.prompt-tag-value{--pp-pt-dsb-ptl-pt-ptm-pte-promptTagValue-width:calc(100%-8px);.character{--pp-pt-dsb-ptl-pt-ptm-pte-ptv-character-white-space:nowrap;}}.input-tag-edit{--pp-pt-dsb-ptl-pt-ptm-pte-inputTagEdit-max-width:calc(100%-8px);}.btn-tag-delete{--pp-pt-dsb-ptl-pt-ptm-pte-btnTagDelete-width:100%;}}}}}}} \ No newline at end of file