Datasets:
File size: 2,343 Bytes
32dba06 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | .command-container {
display: grid;
gap: 0.375em;
}
.command-container h4 {
font-size: var(--font-size-xxx-small);
font-weight: 600;
letter-spacing: var(--letter-spacing);
margin-top: -0.375em;
}
.command {
background: var(--color-grey-light);
box-shadow: var(--box-shadow);
border-radius: 0.3em;
display: block;
font-family: var(--font-family-monaspace-neon);
font-feature-settings: normal;
font-size: var(--font-size-xxx-small);
font-style: normal;
font-weight: 400;
letter-spacing: normal;
line-height: 1.4em;
max-width: 100%;
overflow: hidden;
position: relative;
width: min(100%, 43em);
}
.command pre {
display: block;
-ms-overflow-style: none;
overflow-x: auto;
padding: 0.7em 1.2em;
scrollbar-width: none;
white-space: pre;
}
.command pre code {
background: none;
box-shadow: none;
border-radius: initial;
display: initial;
font-size: inherit;
padding: 0;
}
.command pre::-webkit-scrollbar {
display: none;
}
.command button {
background: url('../images/general/icon-copy.svg') center center / 1em auto no-repeat;
cursor: pointer;
display: none;
height: 2.8em;
opacity: 0.3;
position: absolute;
right: 0;
top: 0;
width: 2.8em;
z-index: 1;
}
.command:before,
.command:after {
content: '';
height: 100%;
pointer-events: none;
position: absolute;
top: 0;
width: 1.2em;
}
.command:before {
background: linear-gradient(
90deg,
transparent,
var(--color-grey-light)
);
right: 0;
}
.command:after {
background: linear-gradient(
-90deg,
transparent,
var(--color-grey-light)
);
left: 0;
}
@media(hover: hover) {
.command.command--copy {
transition: transform var(--transition);
will-change: transform;
}
.command.command--copy button {
transition: opacity var(--transition);
}
.command.command--copy button:focus,
.command.command--copy button:hover {
opacity: 1;
}
.command.command--copy:has(button:active) {
transform: scale(1.01);
}
}
@media(min-width: 64em) {
.command.command--copy pre {
padding-right: 2.8em;
}
.command.command--copy button {
display: block;
}
.command.command--copy:before {
background: linear-gradient(
90deg,
transparent,
var(--color-grey-light) 30%
);
width: 4em;
}
}
|