Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

mainroot / apps / web / app / products / catalog.css

5.4 KiB · Raw · Log

/*
 * SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

/* The catalog of product.progmasoft.com: views, numbers, search, tables */

.pm-views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 28px;
}

.pm-views a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--surface);
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pm-views a:hover {
  border-color: var(--line-strong);
}

.pm-views [aria-current="page"] {
  border-color: var(--blue-600);
  background: var(--blue-100);
  color: var(--blue-700);
}

.pm-index {
  display: grid;
  gap: 32px;
}

/* The hero already sets the page apart; the index starts close below it. */
.pm-section:has(> .pm-index) {
  padding-block-start: 48px;
}

.pm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 0;
}

.pm-stats div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--surface);
}

.pm-stats dt {
  color: var(--ink-650);
  font-size: 14px;
  font-weight: 600;
}

.pm-stats dd {
  margin: 4px 0 0;
  color: var(--ink-950);
  font-size: 32px;
  font-weight: 750;
}

.pm-filter {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--surface-muted);
}

.pm-filter label {
  display: grid;
  gap: 6px;
  color: var(--ink-650);
  font-size: 13px;
  font-weight: 650;
}

.pm-filter input,
.pm-filter select {
  inline-size: 100%;
  min-block-size: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink-950);
  font: inherit;
  font-size: 15px;
}

.pm-filter-actions {
  display: flex;
  gap: 8px;
}

.pm-results {
  margin: 0;
  color: var(--ink-650);
  font-weight: 600;
}

.pm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.pm-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.pm-table th,
.pm-table td {
  border-block-end: 1px solid var(--line);
  padding: 14px 16px;
  text-align: start;
  vertical-align: top;
}

.pm-table tbody tr:last-child > * {
  border-block-end: 0;
}

.pm-table thead th {
  background: var(--surface-muted);
  color: var(--ink-650);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pm-table tbody th {
  min-inline-size: 200px;
}

.pm-table tbody th a {
  display: block;
  font-weight: 700;
}

.pm-table tbody th span {
  display: block;
  margin-block-start: 2px;
  color: var(--ink-650);
  font-weight: 400;
}

.pm-status {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.pm-status-released {
  background: color-mix(in srgb, var(--green-600) 14%, transparent);
  color: var(--green-600);
}

.pm-status-development {
  background: var(--blue-100);
  color: var(--blue-700);
}

.pm-group {
  display: grid;
  gap: 16px;
}

.pm-group h2 {
  margin: 0;
  font-size: 22px;
}

.pm-count {
  color: var(--ink-500);
  font-size: 16px;
  font-weight: 600;
}

.pm-product-card .pm-status {
  justify-self: start;
}

.pm-releases {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-releases li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--surface);
}

.pm-releases time {
  color: var(--ink-650);
}

.pm-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.pm-facts div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: baseline;
}

.pm-facts dt {
  color: var(--ink-650);
  font-size: 14px;
  font-weight: 600;
}

.pm-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (width <= 960px) {
  .pm-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pm-filter-query,
  .pm-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (width <= 560px) {
  .pm-filter {
    grid-template-columns: 1fr;
  }

  /* On a phone each project is a card: its name and tagline, then one line
     per fact, labelled from the column it came from. */
  .pm-table,
  .pm-table tbody,
  .pm-table tr,
  .pm-table th,
  .pm-table td {
    display: block;
  }

  .pm-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .pm-table tr {
    border-block-end: 1px solid var(--line);
    padding-block: 14px;
  }

  .pm-table tbody tr:last-child {
    border-block-end: 0;
  }

  .pm-table tbody th {
    min-inline-size: 0;
    padding-block: 0 8px;
  }

  .pm-table th,
  .pm-table td {
    border-block-end: 0;
  }

  .pm-table td {
    display: grid;
    grid-template-columns: minmax(96px, 35%) minmax(0, 1fr);
    justify-items: start;
    gap: 12px;
    padding-block: 4px;
  }

  .pm-table td::before {
    color: var(--ink-650);
    content: attr(data-label);
    font-size: 13px;
    font-weight: 700;
  }

  .pm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-stats dd {
    font-size: 26px;
  }
}