1 file changed, +39, -6
b272923Unify the dropdown menus and wrap summary details on narrow screens
author
mogi <git@paramogi.world> on 30-11-2026 01:04 UTC
committer
mogi <git@paramogi.world> on 30-11-2026 01:04 UTC
parentbe36d0c
style.css
+39, -6
+39, -6
        @@ -75,7 +75,7 @@
  75  75   --folder: #b07d12;
  76  76   --stuck-shadow: 0 6px 12px -6px rgb(0 0 0 / 0.22);
  77  77   --menu-shadow: 0 6px 18px rgb(0 0 0 / 0.1);
  78    -  --switch-w: 12rem;
      78+  --switch-w: clamp(9.25rem, 100vw - 14rem, 12rem);
  79  79   --switch-h: 1.5625rem;
  80  80   --bar-h: 2.65rem;
  81  81   --measure: 40rem;
        @@ -603,6 +603,7 @@ main {
 603 603 
 604 604 .view-switch label {
 605 605   width: calc(var(--switch-w) / 2);
     606+  padding-inline: 0.2rem;
 606 607   text-align: center;
 607 608   font-size: var(--text-sm);
 608 609 }
        @@ -749,10 +750,6 @@ main {
 749 750   margin-top: 0.45rem;
 750 751 }
 751 752 
 752    -.ref-menu:not(.ref-more) > .ref-menu-list a {
 753    -  padding-left: calc(0.55rem - 1px);
 754    -}
 755    -
 756 753 .ref-more .ref-menu-list {
 757 754   font-size: var(--text-base);
 758 755   position-area: bottom span-left;
        @@ -789,6 +786,11 @@ main {
 789 786   font-weight: 600;
 790 787 }
 791 788 
     789+#ref-branches:checked ~ .ref-kinds [for="ref-branches"],
     790+#ref-tags:checked ~ .ref-kinds [for="ref-tags"] {
     791+  font-weight: 800;
     792+}
     793+
 792 794 #ref-branches:focus-visible ~ .ref-kinds [for="ref-branches"],
 793 795 #ref-tags:focus-visible ~ .ref-kinds [for="ref-tags"],
 794 796 #view-source:focus-visible ~ .view-switch [for="view-source"],
        @@ -830,8 +832,26 @@ main {
 830 832 .ref-menu-list a {
 831 833   display: block;
 832 834   flex-shrink: 0;
 833    -  padding: 0.35rem 0.75rem;
     835+  padding: 0.55rem 0.75rem;
 834 836   border: 0;
     837+  color: var(--fg);
     838+}
     839+
     840+.ref-menu-list a:hover {
     841+  text-decoration: none;
     842+  background-color: var(--hover);
     843+}
     844+
     845+.ref-menu-list a[aria-current] {
     846+  border-color: var(--line-soft);
     847+  font-weight: 800;
     848+  color: var(--fg);
     849+  background-color: var(--active);
     850+}
     851+
     852+.ref-menu-list a[aria-current]:hover {
     853+  color: var(--fg);
     854+  background-color: var(--active-hover);
 835 855 }
 836 856 
 837 857 .ref-menu-list a svg {
        @@ -1368,6 +1388,11 @@ pre.chroma[style] .cl {
13681388   padding: 0.5rem 0.75rem;
13691389 }
13701390 
    1391+.summary-meta-row:not(:last-child) {
    1392+  flex-wrap: wrap;
    1393+  row-gap: 0.2rem;
    1394+}
    1395+
13711396 .summary-meta-key {
13721397   width: 7rem;
13731398   flex-shrink: 0;
        @@ -1377,6 +1402,14 @@ pre.chroma[style] .cl {
13771402   min-width: 0;
13781403 }
13791404 
    1405+.summary-meta-val.truncate {
    1406+  flex: 1 1 8rem;
    1407+}
    1408+
    1409+.summary-meta-val:has(> .release-id) {
    1410+  flex: 1 1 11rem;
    1411+}
    1412+
13801413 .summary-meta-val:has(> :is(.commit-id, .release-id)) {
13811414   display: flex;
13821415   align-items: center;