Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
vbox#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
position: relative !important;
clip-path: inset(0) !important;
z-index: 1 !important;
z-index: 1000 !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

z-indexにマジックナンバー1000が直接使用されています。このファイルでは他の値がCSSカスタムプロパティとして:rootで定義されているため、一貫性のためにz-indexも同様に変数として定義することを検討してください。

例えば、:root--treestyletab-z-index: 1000;を追加し、ここではz-index: var(--treestyletab-z-index) !important;のように参照します。これにより、値の意図が明確になり、将来のメンテナンスが容易になります。

}

/*close*/
Expand Down Expand Up @@ -55,7 +55,3 @@ vbox#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]
(var(--max-treestyletab-size) - var(--min-treestyletab-size)) * -1
) !important;
}

#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
z-index: 1000 !important;
}