mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[IJPL-93391][Markdown] Add custom styling for checkboxes in Markdown preview
(cherry picked from commit 69edb34033ce2cce1fade12af6505648c9ea09c0) IJ-CR-216049 GitOrigin-RevId: 4804f72c238c34d8e6cb15734bd14553c9a8371a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
11138871b5
commit
e283dad25d
+21
@@ -65,8 +65,29 @@ html input[disabled] {
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
box-sizing: border-box;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 1px solid currentColor;
|
||||
border-radius: 3px;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 3px;
|
||||
top: 0;
|
||||
width: 4px;
|
||||
height: 8px;
|
||||
border-style: solid;
|
||||
border-width: 0 2px 2px 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
body * {
|
||||
|
||||
+10
-1
@@ -71,7 +71,16 @@ object PreviewLAFThemeStyles {
|
||||
.footnotes {
|
||||
border-top-color: $separatorColor;
|
||||
}
|
||||
|
||||
|
||||
input[type="checkbox"]:checked {
|
||||
border-color: ${scheme.linkActiveForegroundColor.webRgba()};
|
||||
background-color: ${scheme.linkActiveForegroundColor.webRgba()};
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked::after {
|
||||
border-color: $backgroundColor;
|
||||
}
|
||||
|
||||
blockquote, code, pre {
|
||||
background-color: ${scheme.fenceBackgroundColor.webRgba(scheme.fenceBackgroundColor.alpha / 255.0)};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user