repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
chrome.cssCSS418 lines15.7 KiBraw download
/* ============================================================================
   Chrome — the site's form language, ported from the main DÆMON build.

   This file replaces the old glass.css. Where that file made a container
   out of translucency (blur, tint, inner highlight, 14px radius), this one
   makes one out of a hairline and a value change. The objects below are
   the whole vocabulary; every page is assembled from them.

     .slab      flat panel — 1px rule, square, no shadow
     .plate     inverse (night) panel, defined in tokens.css
     .grain     the film over everything
     .contour-field the contour lines under the home hero, each banner and
                    each document header
     .micro     10px mono label — the site's furniture type
     .eyebrow   `03 ^: LABEL` lockup with a keyed rule
     .btn       flat control
     .wipe      ink wipe for index rows
     .clip / .stretch  the lockup's scale rig
     .corners   cyberpunk corner brackets
     .segbar / .seg / .seg--accent   tmux-style segmented status bar
     .glitch    RGB-split wordmark glitch, keyed off `data-text`
     .scanlines CRT scanline overlay for dark plates
   ========================================================================== */

/* ---- The film ------------------------------------------------------------ */
/* Fractal noise laid over the page so a flat colour reads as stock rather
   than as a swatch. It is the one thing standing in for the texture the
   glass build got from blur, and it is why removing the blur does not
   leave the page feeling like unpainted CSS.

   Multiply on paper, screen on ink (tokens.css) — noise has to be laid
   *into* a light ground and *added* to a dark one; the same blend on both
   is invisible on one of them. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
}

/* A plate carries its own grain, because it pins the night palette for its
   subtree and therefore needs the dark blend while the page around it is
   still on the light one. */
.grain--local {
  position: absolute;
  z-index: 2;
}

/* ---- The field ----------------------------------------------------------- */
/* Each hero contains and clips its own field. Negative stacking keeps the
   canvas behind text while isolation keeps it above the hero's ground. */
.signal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.contour-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ---- Panels -------------------------------------------------------------- */
.slab {
  border: 1px solid var(--rule);
  background: var(--surface);
}
/* The heavier variant, for the one panel on a screen that is the point of
   it — the site draws these at full ink rather than at rule weight. */
.slab--ink {
  border-color: var(--fg);
  background: var(--base);
}

/* ---- Type furniture ------------------------------------------------------ */
/* 10px mono, uppercase, widely tracked. Every eyebrow, kind mark, stat
   label, tab and caption on the site is this object. */
.micro {
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  line-height: 1.6;
}
.micro--wide { letter-spacing: var(--track-wide); }

/* The section lockup: an index, the site's self-naming `^:` mark, a label,
   then a rule that runs out to the end of the line in the section's own
   hue. It is what tells you which of the twelve domains you are in
   without a heading having to say it twice. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--fg-faint);
}
.eyebrow__n { color: var(--acc, var(--accent)); }
.eyebrow__mark { color: var(--fg-faint); opacity: 0.7; }
.eyebrow__rule {
  flex: 1;
  height: 1px;
  background: var(--acc, var(--accent));
  opacity: 0.5;
}

/* Section heading — Archivo at its heaviest, condensed, tracked in tight.
   Uppercase is load-bearing: at this weight and width the lowercase
   letterforms lose their counters and the word turns into a block. */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: -0.03em;
  line-height: 0.94;
  text-transform: uppercase;
}

/* ---- Controls ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  /* The label is a single tracked line. Without this it wraps at the
     button's intrinsic width and the control turns into a three-line
     block, which at this letter-spacing is unreadable. */
  white-space: nowrap;
  border: 1px solid transparent;
  background: var(--fg);
  color: var(--base);
  transition: background-color 240ms ease, color 200ms ease, border-color 220ms ease;
}
/* An inline SVG with no intrinsic size resolves to 300×150 and detonates
   the control. Every icon in a button is a 14px mark beside the label. */
.btn svg { width: 14px; height: 14px; flex: none; }
.btn:hover { background: var(--accent-2); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--rule-hi);
}
.btn--ghost:hover { background: var(--fg); color: var(--base); border-color: var(--fg); }

/* A chip is a bordered label, never a filled pill. Square, hairline, hue
   from whatever it qualifies. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  border: 1px solid color-mix(in oklab, var(--acc, var(--accent)) 55%, transparent);
  color: var(--acc, var(--accent));
  transition: background-color 240ms ease, color 200ms ease;
}
a.chip:hover { background: var(--acc, var(--accent)); color: var(--base); }

/* The live dot — a filled core with a ring expanding off it. Used for
   anything the page wants to claim is current rather than static. */
.dot {
  position: relative;
  display: block;
  width: 6px;
  height: 6px;
  flex: none;
}
.dot i,
.dot u {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: block;
}
.dot i { background: currentColor; }
.dot u { border: 1px solid currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .dot i { animation: dmn-pulse 2.4s ease-in-out infinite; }
  .dot u { animation: dmn-ring 4.2s ease-out infinite; }
}

/* ---- The index row's ink wipe -------------------------------------------- */
/* Hovering a row fills it with ink from the left. Driven by
   `background-position` over a hard-stop gradient rather than by
   `background-color`, and the transition list deliberately has no `color`
   in it — dragging a pointer down a fifty-row index is the one interaction
   here that can drop frames, and a colour transition on every row it
   crosses is what does it. The text colour flips instantly instead. */
.wipe {
  background-image: linear-gradient(90deg, var(--fg) 0 50%, transparent 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  transition: background-position 380ms var(--ease-in), color 1ms;
}
.wipe:hover { background-position: 0 0; }

/* ---- Corner brackets ----------------------------------------------------- */
/* The cyberdeck frame: four ~10px L-ticks sitting just outside the element's
   hairline, drawn by the two pseudo-elements — ::before carries the left
   pair, ::after the right, each tick a 10px hard-stop gradient tile. The
   colour is `--bracket` when set, else the theme's love; on a `.plate` the
   pinned night palette resolves both to their night values, so the brackets
   stay visible on dark grounds without a special case.

   One caveat: both pseudos are spent on the brackets, so an element that
   already needs ::before/::after for something else cannot also be
   .corners. */
.corners { position: relative; }
.corners::before,
.corners::after {
  content: "";
  position: absolute;
  /* -3px: the tick straddles the corner — 3px out past the hairline,
     7px back in over it. */
  inset-block: -3px;
  width: 10px;
  z-index: 2;
  pointer-events: none;
}
.corners::before {
  inset-inline-start: -3px;
  background:
    linear-gradient(var(--bracket, var(--love)) 0 0) left top / 10px 1px no-repeat,
    linear-gradient(var(--bracket, var(--love)) 0 0) left top / 1px 10px no-repeat,
    linear-gradient(var(--bracket, var(--love)) 0 0) left bottom / 10px 1px no-repeat,
    linear-gradient(var(--bracket, var(--love)) 0 0) left bottom / 1px 10px no-repeat;
}
.corners::after {
  inset-inline-end: -3px;
  background:
    linear-gradient(var(--bracket, var(--love)) 0 0) right top / 10px 1px no-repeat,
    linear-gradient(var(--bracket, var(--love)) 0 0) right top / 1px 10px no-repeat,
    linear-gradient(var(--bracket, var(--love)) 0 0) right bottom / 10px 1px no-repeat,
    linear-gradient(var(--bracket, var(--love)) 0 0) right bottom / 1px 10px no-repeat;
}
/* The accent variant re-keys the ticks to iris — the site's signature hue —
   without touching the geometry. `--bracket` inherits into the pseudos. */
.corners--accent { --bracket: var(--iris); }

/* ---- Segmented status bar ------------------------------------------------ */
/* tmux chrome: a ruled strip of square segments divided by hairlines. The
   bar is a flex row; segments are DM Mono at furniture size; and the
   dividers are each segment's own inline-start border rather than a
   separate element, so an empty bar draws nothing. `--font-term` comes from
   tokens.css — the fallback keeps this intact if that token lands later in
   the cascade. */
.segbar {
  display: flex;
  align-items: stretch;
  border-block: 1px solid var(--rule);
}
.seg {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.9rem;
  font-family: var(--font-term);
  font-size: 10.5px;
  letter-spacing: var(--track-micro);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-dim);
}
.seg + .seg { border-inline-start: 1px solid var(--rule); }
/* The filled segment — the wordmark block, the active window. Accent ground,
   base ink; the divider hairline after it still belongs to the next seg. */
.seg--accent {
  background: var(--accent);
  color: var(--base);
}

/* ---- The wordmark glitch ------------------------------------------------- */
/* An RGB split keyed off `data-text`: the element carries its own string in
   the attribute, and the pseudos replay it as love/foam copies stacked on
   the real text, each clipped to a thin horizontal slice and nudged a pixel
   or two sideways. `glitch-shift` is a 5s loop that spends ~92% of itself
   idle — the tear is the first 0.4s — so the mark reads clean and only
   occasionally breaks. Under reduced motion the animation is never applied
   and the copies sit fully clipped: the mark is completely static. */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  /* Idle = invisible; the burst keyframes open and reclose the slice. */
  clip-path: inset(50% 0 50% 0);
}
.glitch::before { color: var(--love); }
.glitch::after { color: var(--foam); }
@media (prefers-reduced-motion: no-preference) {
  .glitch::before { animation: glitch-shift 5s linear infinite; }
  /* Reversed and offset, so the two copies never tear on the same line. */
  .glitch::after { animation: glitch-shift 5s linear 0.2s infinite reverse; }
}

/* ---- Scanlines ----------------------------------------------------------- */
/* The CRT film for dark plates: a 3px-period repeating gradient at very low
   alpha, laid over the plate as an absolutely positioned sheet. It is its
   own element rather than a pseudo because the plates that want it — code
   panes, the footer, banners — already spend their pseudos on .corners. The
   host plate supplies the positioning context; events pass straight
   through. */
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.09) 0 1px, transparent 1px 3px);
}
/* The rolling variant drifts the film slowly downward. 120px is a whole
   number of 3px periods, so the loop is seamless; under reduced motion the
   animation is never applied and the film lies still. */
@media (prefers-reduced-motion: no-preference) {
  .scanlines--roll { animation: scanlines-roll 14s linear infinite; }
}

/* ---- Shared timing ------------------------------------------------------- */
.dmn-t {
  transition:
    background-color 240ms ease,
    color 200ms ease,
    border-color 220ms ease,
    transform 220ms var(--ease-in),
    opacity 200ms ease;
}

/* ---- The lockup's scale rig ---------------------------------------------- */
/* `scaleY` overflows its own line box, so a stretched display line has to
   sit in a fixed-height wrapper that clips it — otherwise it collides with
   whatever is under it and no amount of margin fixes it, because the
   overflow is not in the layout. */
.clip { overflow: hidden; }
.stretch {
  transform-origin: 0 0;
  white-space: nowrap;
  user-select: none;
}

/* ---- Keyframes ----------------------------------------------------------- */
@keyframes dmn-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dmn-track-in {
  from { letter-spacing: 0.075em; transform: scaleX(0.93); }
  to { letter-spacing: 0.012em; transform: scaleX(1); }
}
@keyframes dmn-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes dmn-wipe-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes dmn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes dmn-ring {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
@keyframes dmn-blink {
  50% { opacity: 0; }
}
/* The glitch burst. Mostly idle by construction: every tear lives in the
   first 8% of the 5s loop (~0.4s), then the slice closes back to the
   invisible mid-line for the rest of the cycle. */
@keyframes glitch-shift {
  0%    { clip-path: inset(8% 0 76% 0);  transform: translate(-2px, -1px); }
  1.5%  { clip-path: inset(52% 0 30% 0); transform: translate(2px, 1px); }
  3%    { clip-path: inset(24% 0 58% 0); transform: translate(-2px, 0); }
  4.5%  { clip-path: inset(70% 0 12% 0); transform: translate(1px, -1px); }
  6%    { clip-path: inset(40% 0 44% 0); transform: translate(-1px, 1px); }
  8%, 100% { clip-path: inset(50% 0 50% 0); transform: none; }
}
/* A whole number of scanline periods, so the drift loops seamlessly. */
@keyframes scanlines-roll {
  from { background-position-y: 0; }
  to { background-position-y: 120px; }
}

/* Under reduced motion every entrance collapses to a single 0.01ms pass,
   which lands on the same rest state the animation would have reached —
   so the markup needs no second code path. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}