site/model-registry/model-registry.css (196 lines of code) (raw):
.model-table {
margin: 0px auto 5rem;
& tr {
border-bottom: 1px solid #ddd;
}
& thead {
position: sticky;
top: 0;
}
& th {
white-space: nowrap;
& button {
background: inherit;
border: inherit;
font: inherit;
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
}
}
.overlay-show {
overflow: hidden;
}
.scroll-container {
max-width: 100vw;
overflow: scroll;
max-height: calc(100vh - 55px);
.overlay-show & {
filter: blur(3px);
pointer-events: none;
}
}
.table-container {
margin-top: 100px;
}
.corpus-td,
.models-td {
display: none;
font-family: monospace;
background: rgba(0, 0, 0, 0.08);
tr:nth-child(2n) {
& {
background: rgba(0, 0, 0, 0.16);
}
}
& > div {
display: flex;
gap: 4px;
}
}
.corpus-th,
.models-th {
display: none;
font-size: 0.9rem;
padding-inline: 0.45rem;
border-left: 1px solid #bbb;
& span {
font-size: 0.8rem;
text-transform: lowercase;
background-color: #bbb;
padding: 0.1rem 0.15rem;
border-radius: 6px;
border: none;
}
}
.toggle-corpora-hide,
.toggle-models-hide {
display: none;
}
.show-corpora {
.toggle-corpora-hide {
display: inline-block;
}
.toggle-corpora-show {
display: none;
}
.corpus-td,
.corpus-th {
display: table-cell;
}
}
.show-models {
.toggle-models-hide {
display: inline-block;
}
.toggle-models-show {
display: none;
}
.models-td,
.models-th {
display: table-cell;
}
}
.overlay {
display: none;
position: fixed;
inset: 55px 0 0 0;
background-color: rgba(0,0,0,0.2);
z-index: 2;
.overlay-show & {
display: block;
}
.overlay-close {
font-size: 1rem;
padding: 0.4rem;
position: absolute;
top: 1rem;
right: 1rem;
background-color: #fff;
border: 1px solid #aaa;
border-radius: 8px;
box-shadow: 0 0 10px #0000004d;
}
.overlay-close:hover {
border: 1px solid #000;
}
.overlay-close:active {
outline: 3px solid rgb(23, 139, 255);
}
.overlay-text {
position: relative;
margin: 2rem auto;
width: 100%;
max-width: 62rem;
background-color: #fff;
padding: 3rem;
overflow: scroll;
max-height: calc(100vh - 55px - 4rem);
box-sizing: border-box;
border-radius: 0.4rem;
box-shadow: 0 0 20px #00000057;
border: 2px solid #8b8b8b;
& li {
margin: 0.6rem 0;
}
& ul ul li {
margin: 0;
}
}
pre {
background-color: #eee;
border-radius: 4px;
padding: 1rem;
border: 2px solid #ddd;
overflow: scroll;
}
}
.details-table {
font-family: monospace;
margin: 1rem 0;
td {
vertical-align: top;
}
ul {
padding-left: 1rem;
}
li:not(:first-child) {
padding-top: 0.4rem;
}
}
.wandb-filter {
font-family: var(--sans-serif);
border: 1px solid #000;
padding: 0.5rem;
margin-top: 0.7rem;
border-radius: 0.3rem;
background: #fff;
span {
font-family: monospace;
background-color: #e0e0e0;
}
}
.filter-bar,
.score-bar {
margin: 20px auto;
max-width: 600px;
background: #fff;
border: 1px solid #ccc;
padding: 14px;
font-size: 1.2rem;
display: flex;
gap: 3px;
border-radius: 6px;
align-items: center;
box-shadow: -1px 5px 10px #0001;
& input {
flex: 1;
font-size: 1rem;
padding: 0.3rem;
}
}
.score-labels {
margin: 0 auto;
}