113 lines
2.7 KiB
CSS
113 lines
2.7 KiB
CSS
|
.ascii-chars {
|
||
|
display: grid;
|
||
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||
|
gap: var(--global-spacing);
|
||
|
}
|
||
|
|
||
|
.ascii-char-control {
|
||
|
--ascii-accent: var(--accent-colour2);
|
||
|
--ascii-accent-dark: var(--accent-colour2-dark);
|
||
|
--ascii-accent-darker: var(--accent-colour2-darker);
|
||
|
}
|
||
|
.ascii-char-printable {
|
||
|
--ascii-accent: var(--accent-colour3);
|
||
|
--ascii-accent-dark: var(--accent-colour3-dark);
|
||
|
--ascii-accent-darker: var(--accent-colour3-darker);
|
||
|
}
|
||
|
.ascii-char {
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
border: 1px solid var(--container-border);
|
||
|
overflow: hidden;
|
||
|
background-color: var(--container-colour);
|
||
|
cursor: pointer !important;
|
||
|
transition: background-color .1s;
|
||
|
}
|
||
|
.ascii-char-main {
|
||
|
flex-grow: 1;
|
||
|
flex-shrink: 0;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.ascii-char-print {
|
||
|
white-space: pre;
|
||
|
font-family: var(--font-cursive);
|
||
|
font-size: 2.5em;
|
||
|
line-height: 1.5em;
|
||
|
text-align: center;
|
||
|
padding: var(--global-spacing-2x);
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
.ascii-char-desc {
|
||
|
text-align: center;
|
||
|
font-size: 1.2em;
|
||
|
line-height: 1.5em;
|
||
|
padding: 0 var(--global-spacing) var(--global-spacing);
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
.ascii-char-misc {
|
||
|
display: flex;
|
||
|
justify-content: space-evenly;
|
||
|
border-top: 1px solid var(--ascii-accent);
|
||
|
}
|
||
|
.ascii-char-misc-item {
|
||
|
flex-grow: 1;
|
||
|
flex-shrink: 1;
|
||
|
padding: var(--global-spacing) var(--global-spacing-2x);
|
||
|
background-color: var(--ascii-accent);
|
||
|
transition: background-color .1s;
|
||
|
}
|
||
|
.ascii-char-misc-item:hover,
|
||
|
.ascii-char-misc-item:focus {
|
||
|
background-color: var(--ascii-accent-dark);
|
||
|
}
|
||
|
.ascii-char-misc-item:active {
|
||
|
background-color: var(--ascii-accent-darker);
|
||
|
}
|
||
|
.ascii-char-misc-item-head {
|
||
|
font-size: .9em;
|
||
|
line-height: 1.5em;
|
||
|
}
|
||
|
.ascii-char-misc-item-value {
|
||
|
font-family: var(--font-monospace);
|
||
|
text-align: right;
|
||
|
}
|
||
|
|
||
|
.ascii-search {
|
||
|
background-color: var(--background-colour);
|
||
|
padding: var(--global-spacing) 0;
|
||
|
position: sticky;
|
||
|
top: 0;
|
||
|
z-index: 1000;
|
||
|
}
|
||
|
.ascii-search-box {
|
||
|
display: flex;
|
||
|
border: 1px solid var(--container-border);
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
.ascii-search-box input {
|
||
|
display: block;
|
||
|
flex-grow: 1;
|
||
|
flex-shrink: 1;
|
||
|
padding: var(--global-spacing-2x);
|
||
|
border: 0;
|
||
|
border-radius: 0;
|
||
|
background-color: var(--container-colour);
|
||
|
color: var(--text-colour);
|
||
|
font-size: var(--font-size);
|
||
|
line-height: var(--line-height);
|
||
|
font-family: var(--font-regular);
|
||
|
}
|
||
|
|
||
|
.ascii-hint {
|
||
|
font-size: .9em;
|
||
|
margin-top: calc(var(--global-spacing) * -1);
|
||
|
transition: opacity .2s;
|
||
|
}
|
||
|
.ascii-hint code {
|
||
|
font-size: .8em;
|
||
|
font-family: var(--font-monospace);
|
||
|
}
|