|
@@ -120,41 +120,43 @@ STYLE_RULES: List[StyleRule] = [
|
|
|
# description="复杂句底部加淡橙色阴影,以提示结构较复杂。",
|
|
# description="复杂句底部加淡橙色阴影,以提示结构较复杂。",
|
|
|
# css="box-shadow:inset 0 -0.2rem 0 rgba(250,209,155,.6)",
|
|
# css="box-shadow:inset 0 -0.2rem 0 rgba(250,209,155,.6)",
|
|
|
# ),
|
|
# ),
|
|
|
- StyleRule(
|
|
|
|
|
- selector=".analysis[data-helper='on'] .sentence-scope::after",
|
|
|
|
|
- target="句子辅助说明",
|
|
|
|
|
- description="在句后输出中文提示,解释成分与从句情况。",
|
|
|
|
|
- css="content:attr(data-note);display:block;font-size:.85rem;color:#64748b;margin:.2rem 0 .45rem 1.5rem;line-height:1.4",
|
|
|
|
|
- ),
|
|
|
|
|
- StyleRule(
|
|
|
|
|
- selector=".analysis[data-helper='off'] .sentence-scope::after",
|
|
|
|
|
- target="关闭辅助说明",
|
|
|
|
|
- description="当 helper 关闭时隐藏说明,避免额外占位。",
|
|
|
|
|
- css="content:'';display:none",
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ # StyleRule(
|
|
|
|
|
+ # selector=".analysis[data-helper='on'] .sentence-scope::after",
|
|
|
|
|
+ # target="句子辅助说明",
|
|
|
|
|
+ # description="在句后输出中文提示,解释成分与从句情况。",
|
|
|
|
|
+ # css="content:attr(data-note);display:block;font-size:.85rem;color:#64748b;margin:.2rem 0 .45rem 1.5rem;line-height:1.4",
|
|
|
|
|
+ # ),
|
|
|
|
|
+ # StyleRule(
|
|
|
|
|
+ # selector=".analysis[data-helper='off'] .sentence-scope::after",
|
|
|
|
|
+ # target="关闭辅助说明",
|
|
|
|
|
+ # description="当 helper 关闭时隐藏说明,避免额外占位。",
|
|
|
|
|
+ # css="content:'';display:none",
|
|
|
|
|
+ # ),
|
|
|
StyleRule(
|
|
StyleRule(
|
|
|
selector=".role-subject",
|
|
selector=".role-subject",
|
|
|
target="主语",
|
|
target="主语",
|
|
|
description="淡黄色底纹突出主语位置。",
|
|
description="淡黄色底纹突出主语位置。",
|
|
|
- css="background-color:#fff3bf",
|
|
|
|
|
|
|
+ css="background-color:#fcfee1",
|
|
|
),
|
|
),
|
|
|
StyleRule(
|
|
StyleRule(
|
|
|
selector=".role-predicate",
|
|
selector=".role-predicate",
|
|
|
target="谓语动词",
|
|
target="谓语动词",
|
|
|
- description="深玫红字体并加粗,强调谓语中心。",
|
|
|
|
|
- css="color:#000000!important;font-weight:700;background-color:rgba(255,235,239,.8)",
|
|
|
|
|
|
|
+ description="字体加粗,强调谓语中心。",
|
|
|
|
|
+ css="color:#000000!important;font-weight:700;",
|
|
|
),
|
|
),
|
|
|
StyleRule(
|
|
StyleRule(
|
|
|
selector=".role-object-do",
|
|
selector=".role-object-do",
|
|
|
target="直接宾语",
|
|
target="直接宾语",
|
|
|
description="浅绿底色显示直接宾语。",
|
|
description="浅绿底色显示直接宾语。",
|
|
|
- css="background-color:#e5ffcc",
|
|
|
|
|
|
|
+ # css="background-color:#e5ffcc",
|
|
|
|
|
+ css ="border-bottom:2px solid #e5ffcc; color:#2a5700"
|
|
|
),
|
|
),
|
|
|
StyleRule(
|
|
StyleRule(
|
|
|
selector=".role-object-io",
|
|
selector=".role-object-io",
|
|
|
target="间接宾语",
|
|
target="间接宾语",
|
|
|
description="黄绿底色区分间接宾语。",
|
|
description="黄绿底色区分间接宾语。",
|
|
|
- css="background-color:#cef0a3",
|
|
|
|
|
|
|
+ # css="background-color:#cef0a3",
|
|
|
|
|
+ css ="border-bottom:2px solid #120d4a; color:#120d4a"
|
|
|
),
|
|
),
|
|
|
StyleRule(
|
|
StyleRule(
|
|
|
selector=".role-complement",
|
|
selector=".role-complement",
|
|
@@ -178,7 +180,20 @@ STYLE_RULES: List[StyleRule] = [
|
|
|
selector=".role-adverbial",
|
|
selector=".role-adverbial",
|
|
|
target="状语短语",
|
|
target="状语短语",
|
|
|
description="黄绿底色突出状语信息。",
|
|
description="黄绿底色突出状语信息。",
|
|
|
- css="background-color:#e7fded",
|
|
|
|
|
|
|
+ # css="background-color:#f6fef8",
|
|
|
|
|
+ css="border-bottom:2px solid #f6fef8",
|
|
|
|
|
+ ),
|
|
|
|
|
+ StyleRule(
|
|
|
|
|
+ selector=".verbal-infinitive",
|
|
|
|
|
+ target="不定式结构",
|
|
|
|
|
+ description="虚线下划线提示 to+动词的不定式短语。",
|
|
|
|
|
+ css="border-bottom:2px dashed #c084fc;color:#581c87",
|
|
|
|
|
+ ),
|
|
|
|
|
+ StyleRule(
|
|
|
|
|
+ selector=".verbal-gerund",
|
|
|
|
|
+ target="动名词结构",
|
|
|
|
|
+ description="淡紫底纹提示 V-ing 充当名词的结构。",
|
|
|
|
|
+ css="border-bottom:2px dashed #c084fc;color:#581c87",
|
|
|
),
|
|
),
|
|
|
StyleRule(
|
|
StyleRule(
|
|
|
selector=".role-connector",
|
|
selector=".role-connector",
|
|
@@ -216,12 +231,12 @@ STYLE_RULES: List[StyleRule] = [
|
|
|
# description="统一使用彩色立线和左内边距包裹从句内容。",
|
|
# description="统一使用彩色立线和左内边距包裹从句内容。",
|
|
|
# css="border-left:2px solid currentColor;padding-left:.25rem;margin-left:.1rem",
|
|
# css="border-left:2px solid currentColor;padding-left:.25rem;margin-left:.1rem",
|
|
|
# ),
|
|
# ),
|
|
|
- # StyleRule(
|
|
|
|
|
- # selector=".clause-noun",
|
|
|
|
|
- # target="名词从句",
|
|
|
|
|
- # description="绿色配色突出名词性从句。",
|
|
|
|
|
- # css="color:#5c8f1d;background-color:rgba(158,201,134,.18)",
|
|
|
|
|
- # ),
|
|
|
|
|
|
|
+ StyleRule(
|
|
|
|
|
+ selector=".clause-noun",
|
|
|
|
|
+ target="名词从句",
|
|
|
|
|
+ description="绿色配色突出名词性从句。",
|
|
|
|
|
+ css="color:#5c8f1d;background-color:rgba(158,201,134,.18)",
|
|
|
|
|
+ ),
|
|
|
StyleRule(
|
|
StyleRule(
|
|
|
selector=".clause-relative",
|
|
selector=".clause-relative",
|
|
|
target="定语从句",
|
|
target="定语从句",
|
|
@@ -272,12 +287,12 @@ STYLE_RULES: List[StyleRule] = [
|
|
|
# description="浅灰背景提示未归类成分,并通过 data-role 提供中文标签。",
|
|
# description="浅灰背景提示未归类成分,并通过 data-role 提供中文标签。",
|
|
|
# css="background-color:#f6f8fa;color:#475569;border-bottom:1px dotted #cbd5e1",
|
|
# css="background-color:#f6f8fa;color:#475569;border-bottom:1px dotted #cbd5e1",
|
|
|
# ),
|
|
# ),
|
|
|
- StyleRule(
|
|
|
|
|
- selector=".lex-rare",
|
|
|
|
|
- target="低频词",
|
|
|
|
|
- description="深蓝色字体提示低频或重点词汇。",
|
|
|
|
|
- css="color:#000080",
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ # StyleRule(
|
|
|
|
|
+ # selector=".lex-rare",
|
|
|
|
|
+ # target="低频词",
|
|
|
|
|
+ # description="深蓝色字体提示低频或重点词汇。",
|
|
|
|
|
+ # css="color:#000080",
|
|
|
|
|
+ # ),
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
STYLE_BLOCK = build_style_block(STYLE_RULES)
|
|
STYLE_BLOCK = build_style_block(STYLE_RULES)
|