mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-787 JBHtmlPane: add support for rendering <hr> - fix styling
GitOrigin-RevId: 3fc052b6718d1e36601fb54196e28538c72c47aa
This commit is contained in:
committed by
intellij-monorepo-bot
parent
05c38fd0ad
commit
b4d65fb1fb
@@ -11,10 +11,7 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
public interface DocumentationMarkup {
|
||||
|
||||
@ApiStatus.Internal String CLASS_DEFINITION = "definition";
|
||||
@ApiStatus.Internal String CLASS_DEFINITION_SEPARATED = "definition-separated";
|
||||
@ApiStatus.Internal String CLASS_CONTENT = "content";
|
||||
@ApiStatus.Internal String CLASS_CONTENT_SEPARATED = "content-separated";
|
||||
@ApiStatus.Internal String CLASS_SEPARATED = "separated";
|
||||
@ApiStatus.Internal String CLASS_SECTIONS = "sections";
|
||||
@ApiStatus.Internal String CLASS_SECTION = "section";
|
||||
@ApiStatus.Internal String CLASS_GRAYED = "grayed";
|
||||
|
||||
+5
-2
@@ -110,11 +110,14 @@ internal object JBHtmlPaneStyleSheetRulesProvider {
|
||||
.$CLASS_CENTERED { text-align: center }
|
||||
.$CLASS_GRAYED { color: #909090 }
|
||||
hr {
|
||||
padding: ${spacingAfter + spacingBefore + scale(1)}px 0 0 0;
|
||||
margin: 0 0 ${spacingAfter + spacingBefore + scale(1)}px 0;
|
||||
padding: ${scale(1)}px 0 0 0;
|
||||
margin: ${spacingBefore} 0 ${spacingAfter}px 0;
|
||||
border-bottom: ${scale(1)}px solid $hrColor;
|
||||
width: 100%;
|
||||
}
|
||||
p hr {
|
||||
margin: ${spacingAfter + spacingBefore} 0 ${spacingAfter + spacingBefore}px 0;
|
||||
}
|
||||
""".trimIndent()
|
||||
return styles
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user