Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions themes/future/css-src/_variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ code-diff-removed = code-keyword
// 一段引いた位置に来る。**つまみは文字ではないので同じ値を共有しない**
// (scrollbar-thumb。#3274)
code-line-number = ink-faint
// 折り返した行の縦線。線なので rule の段から選ぶ。rule-weak では 2px の線が地に溶ける
code-wrap-line = rule-strong
// gist のメタ行のリンク。コードの地の上なのでインラインコードと同じ段を借りる
code-link = link-on-tint
// コードブロックの配色の暗い側。JetBrains Darcula(GoLand などの既定テーマ)に
Expand All @@ -361,6 +363,7 @@ dark-code-tag = #ff6b68
dark-code-diff-added = #89d185
dark-code-diff-removed = #ff6b68
dark-code-line-number = #666
dark-code-wrap-line = dark-rule-strong
// 暗い地の上のリンク色。旧 color-link(#258fb8)は 3.84 で AA 未満だった
// (この地では 7.33)
dark-code-link = #57c8eb
Expand Down
2 changes: 1 addition & 1 deletion themes/future/css-src/highlight.styl
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ $line-numbers
// 引く長さを始点より 2px 多く削るので、折り返していない行では
// 長さが負になり線そのものが出ない
wrap-line-top = ceil(font-size * leading-row)
background-image: linear-gradient(var(--code-comment), var(--code-comment))
background-image: linear-gradient(var(--code-wrap-line), var(--code-wrap-line))
background-repeat: no-repeat
background-size: 2px unquote('calc(100% - ' + (wrap-line-top + 2px) + ')')
background-position: left 2px top wrap-line-top
Expand Down
2 changes: 2 additions & 0 deletions themes/future/css-src/theme-styles.styl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
--code-diff-added: code-diff-added;
--code-diff-removed: code-diff-removed;
--code-line-number: code-line-number;
--code-wrap-line: code-wrap-line;
--code-link: code-link;
// note の中のコードブロックの地 (#3266)。その note の色を白で薄めた面。
// 一段濃い側は中のインラインコードが持っているので、ブロックは反対側へ離す
Expand Down Expand Up @@ -188,6 +189,7 @@ dark-tokens()
--code-diff-added: dark-code-diff-added;
--code-diff-removed: dark-code-diff-removed;
--code-line-number: dark-code-line-number;
--code-wrap-line: dark-code-wrap-line;
--code-link: dark-code-link;
--note-tip-codeblock: dark-code-block-bg;
--note-info-codeblock: dark-code-block-bg;
Expand Down
Loading