87 lines
1.6 KiB
CSS
87 lines
1.6 KiB
CSS
.cascade-bar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
width: 100vw;
|
|
max-width: 100vw;
|
|
margin: -1.25rem calc(50% - 50vw) 1rem;
|
|
padding: 0.55rem 0.75rem 0.65rem;
|
|
background: #10141a;
|
|
border-bottom: 1px solid #243040;
|
|
color: #c8d0d8;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
}
|
|
.cascade-tree {
|
|
width: 100%;
|
|
max-width: 45em;
|
|
margin: 0 auto;
|
|
box-sizing: border-box;
|
|
}
|
|
.cascade-tree-lines {
|
|
white-space: pre;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
a.cascade-tree-row {
|
|
display: block;
|
|
color: #7ec8ff;
|
|
text-decoration: none;
|
|
padding: 0.05rem 0.15rem;
|
|
border-radius: 2px;
|
|
}
|
|
a.cascade-tree-row:hover {
|
|
background: #1a2430;
|
|
text-decoration: none;
|
|
}
|
|
a.cascade-tree-row.is-active {
|
|
color: #e8eef4;
|
|
background: #1e2a38;
|
|
box-shadow: inset 3px 0 0 #e8eef4;
|
|
}
|
|
a.cascade-tree-row.is-active:hover {
|
|
text-decoration: none;
|
|
}
|
|
.cascade-bar code {
|
|
color: inherit;
|
|
font-size: inherit;
|
|
}
|
|
.cascade-bar .tip {
|
|
color: #8a96a3;
|
|
white-space: pre-wrap;
|
|
}
|
|
.cascade-bar .cascade-default {
|
|
color: #6a9080;
|
|
}
|
|
.cascade-timing {
|
|
margin-top: 0.35rem;
|
|
color: #6a7888;
|
|
font-size: 11px;
|
|
}
|
|
|
|
@media (max-width: 40em) {
|
|
.cascade-bar {
|
|
margin-top: -1rem;
|
|
padding: 0.45rem 0.5rem 0.55rem;
|
|
font-size: 11px;
|
|
}
|
|
.cascade-tree {
|
|
max-width: 100%;
|
|
}
|
|
.cascade-timing {
|
|
font-size: 10px;
|
|
}
|
|
}
|
|
|
|
.cascade-bar .diff-plus {
|
|
color: #3fb950;
|
|
font-weight: 600;
|
|
}
|
|
.cascade-bar .diff-minus {
|
|
color: #f85149;
|
|
font-weight: 600;
|
|
}
|