347 lines
4.7 KiB
CSS
347 lines
4.7 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
color: var(--foreground);
|
|
background: var(--background) url('bg.jpeg');
|
|
background-size: cover;
|
|
font-family: sans-serif;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#wrapper {
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: var(--color1);
|
|
margin-top: 10px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
h1 {
|
|
margin-top: 0;
|
|
font-size: 24px;
|
|
}
|
|
|
|
h2 {
|
|
color: var(--color2);
|
|
}
|
|
|
|
p {
|
|
margin-top: 2px;
|
|
}
|
|
|
|
a {
|
|
color: var(--color2);
|
|
}
|
|
|
|
strong {
|
|
color: var(--color4);
|
|
}
|
|
|
|
em {
|
|
color: var(--color3);
|
|
}
|
|
|
|
pre {
|
|
margin: 0;
|
|
}
|
|
|
|
pre > code {
|
|
border: 1px solid;
|
|
}
|
|
|
|
article {
|
|
max-width: 1024px;
|
|
min-height: 128px;
|
|
margin: 25px auto;
|
|
padding: 20px;
|
|
background: color-mix(in srgb, var(--background) 90%, transparent);
|
|
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.9);
|
|
}
|
|
|
|
code.block {
|
|
display: block;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Demo */
|
|
|
|
.needs-image {
|
|
display: none;
|
|
}
|
|
|
|
.needs-image.visible {
|
|
display: block;
|
|
}
|
|
|
|
#base .image-original img {
|
|
max-width: 256px;
|
|
min-width: 256px;
|
|
}
|
|
|
|
/* Resize demo */
|
|
|
|
#resize {
|
|
position: relative;
|
|
height: 512px;
|
|
width: 100%;
|
|
transition: height 2s linear;
|
|
}
|
|
|
|
#resize.resize {
|
|
height: 256px;
|
|
}
|
|
|
|
#resize .image-original {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 512px;
|
|
}
|
|
|
|
#resize .image-original img {
|
|
max-height: 50vh;
|
|
min-height: 257px;
|
|
max-width: 100%;
|
|
min-width: 257px;
|
|
/* height: 512px; */
|
|
}
|
|
|
|
#resize-original {
|
|
position: relative;
|
|
height: 512px;
|
|
}
|
|
|
|
#resize-original img {
|
|
position: absolute;
|
|
max-width: 90vw;
|
|
max-height: 512px;
|
|
min-width: 257px;
|
|
min-height: 257px;
|
|
opacity: 1;
|
|
transition:
|
|
width 2s linear,
|
|
height 2s linear,
|
|
filter 3s linear 2s,
|
|
opacity 3s ease-in 5s;
|
|
}
|
|
|
|
#resize.resize #resize-original img {
|
|
width: 256px !important;
|
|
height: 256px !important;
|
|
filter: grayscale(1) blur(10px);
|
|
opacity: 0;
|
|
}
|
|
|
|
#resize-original img.grayscale {
|
|
filter: grayscale(1) blur(10px);
|
|
}
|
|
|
|
#resize-original img.fade {
|
|
opacity: 0;
|
|
}
|
|
|
|
#image-resize img {
|
|
width: 256px;
|
|
height: 256px;
|
|
image-rendering: pixelated;
|
|
image-rendering: -moz-crisp-edges;
|
|
}
|
|
|
|
#image-dct {
|
|
margin-left: 32px;
|
|
display:grid;
|
|
grid-template-columns: repeat(8, 32px);
|
|
}
|
|
|
|
#image-dct > div {
|
|
height: 32px;
|
|
line-height:32px;
|
|
font-size: 11px;
|
|
text-align: center;
|
|
border: 1px solid var(--color1);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.similarity-example {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
figure {
|
|
margin: 10px;
|
|
width: 50%;
|
|
}
|
|
|
|
/* Loader */
|
|
|
|
#loader.show {
|
|
border-radius: 50%;
|
|
width: 256px;
|
|
height: 256px;
|
|
font-size: 10px;
|
|
position: fixed;
|
|
z-index: 99;
|
|
top: calc(50vh - 128px);
|
|
left: calc(50vw - 128px);
|
|
border: 16px solid transparent;
|
|
border-top: 16px solid darkred;
|
|
transform: translateZ(0);
|
|
animation: loader 2s infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes loader {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
50% {
|
|
transform: rotate(360deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
/* Skeleton */
|
|
|
|
.todo {
|
|
opacity: 0.55;
|
|
font-style: italic;
|
|
border-left: 3px solid var(--color3);
|
|
padding-left: 8px;
|
|
}
|
|
|
|
/* Hash visualisation */
|
|
|
|
.hash-panel {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
gap: 24px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.hash-value {
|
|
font-size: 18px;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.bit-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(8, 20px);
|
|
}
|
|
|
|
.bit-grid.wide {
|
|
grid-template-columns: repeat(12, 20px);
|
|
}
|
|
|
|
.bit-grid .bit {
|
|
height: 20px;
|
|
box-sizing: border-box;
|
|
border: 1px solid var(--background);
|
|
}
|
|
|
|
.bit-grid .bit.on {
|
|
background: var(--foreground);
|
|
}
|
|
|
|
.bit-grid .bit.off {
|
|
background: color-mix(in srgb, var(--foreground) 12%, transparent);
|
|
}
|
|
|
|
.heat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(8, 32px);
|
|
}
|
|
|
|
.heat-grid > div {
|
|
height: 32px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.pixelated, #image-resize img, #phash-resize img {
|
|
image-rendering: pixelated;
|
|
image-rendering: -moz-crisp-edges;
|
|
}
|
|
|
|
#phash-resize img {
|
|
width: 128px;
|
|
height: 128px;
|
|
}
|
|
|
|
.sample {
|
|
height: 48px;
|
|
margin: 0 4px;
|
|
cursor: pointer;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Mutation compare */
|
|
|
|
.compare {
|
|
position: relative;
|
|
max-width: 640px;
|
|
}
|
|
|
|
.compare img {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.compare #compare-b {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
clip-path: inset(0 0 0 50%);
|
|
}
|
|
|
|
#compare-slider, #mutator-amount {
|
|
width: 320px;
|
|
}
|
|
|
|
.distances td {
|
|
text-align: center;
|
|
font-size: 18px;
|
|
min-width: 64px;
|
|
color: var(--color1);
|
|
}
|
|
|
|
/* Ranking */
|
|
|
|
.thumb-grid {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.thumb-grid figure {
|
|
width: 96px;
|
|
margin: 0;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
}
|
|
|
|
.thumb-grid figure.query {
|
|
outline: 2px solid var(--color1);
|
|
}
|
|
|
|
.thumb-grid img {
|
|
width: 96px;
|
|
height: 96px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.thumb-grid figcaption {
|
|
font-size: 11px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|