|
| 1 | +.blog-admin { |
| 2 | + .field { margin-bottom: 0 !important;} |
| 3 | + .admin-actions{ |
| 4 | + display: grid; |
| 5 | + grid-template-columns: minmax(260px, 34vw) auto; |
| 6 | + align-items: center; |
| 7 | + gap: .75rem; |
| 8 | + } |
| 9 | + .search-input :deep(input){ height: 40px; line-height: 40px; } |
| 10 | + .controls{ |
| 11 | + display: flex; align-items: center; gap: .75rem; margin-top: 1rem; |
| 12 | + } |
| 13 | + .cards-grid{ |
| 14 | + display: grid; gap: 1rem; margin-top: 1rem; |
| 15 | + grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); |
| 16 | + } |
| 17 | + .card{ |
| 18 | + border-radius: 16px; |
| 19 | + border: 1px solid var(--surface-border,#e5e7eb); |
| 20 | + background: var(--surface-card,#fff); |
| 21 | + box-shadow: 0 6px 22px rgba(2,6,23,.05); |
| 22 | + padding: 1rem; |
| 23 | + display: flex; flex-direction: column; gap: .6rem; |
| 24 | + } |
| 25 | + .card-head{ display:flex; justify-content:space-between; gap:.75rem; } |
| 26 | + .meta{ font-size:.8rem; color:#6b7280; } |
| 27 | + .title{ margin:0; font-size:1rem; font-weight:600; line-height:1.25; } |
| 28 | + .subtitle{ font-size:.82rem; color:#6b7280; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } |
| 29 | + .badge{ |
| 30 | + display:inline-flex; align-items:center; gap:.35rem; |
| 31 | + padding:.35rem .65rem; border-radius:999px; font-size:.75rem; |
| 32 | + border:1px solid transparent; |
| 33 | + } |
| 34 | + .badge--ok{ background:#ecfdf5; color:#065f46; border-color:#a7f3d0; } |
| 35 | + .badge--muted{ background:#eef2f7; color:#334155; border-color:#d9e1ea; } |
| 36 | + .owner{ display:flex; align-items:center; gap:.4rem; color:#4b5563; font-size:.85rem; } |
| 37 | + .actions.icons{ |
| 38 | + display:flex; justify-content:flex-end; gap:.45rem; margin-top:.35rem; |
| 39 | + } |
| 40 | + .footer{ display:flex; justify-content:flex-end; align-items:center; gap:.5rem; margin-top:1.5rem; padding:1rem;} |
| 41 | + .admin-actions { display:flex; gap:.5rem; align-items:center; } |
| 42 | + .search-input { width:16rem; } |
| 43 | + .controls { display:flex; gap:1rem; align-items:center; padding:1rem; } |
| 44 | + |
| 45 | + .cards-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:1rem; padding:1rem; } |
| 46 | + .card { border:1px solid #e5e7eb; border-radius:.75rem; background:#fff; padding:1rem; |
| 47 | + display:flex; flex-direction:column; gap:.5rem; transition: opacity .2s ease, filter .2s ease; } |
| 48 | + /* visually mute hidden projects */ |
| 49 | + .card--hidden { opacity:.6; filter:grayscale(1); } |
| 50 | + |
| 51 | + .card-head { display:flex; justify-content:space-between; gap:1rem; } |
| 52 | + .meta { font-size:.75rem; color:#6b7280; } |
| 53 | + |
| 54 | + /* clickable title */ |
| 55 | + .title { margin:.25rem 0; font-weight:600; } |
| 56 | + .title-link { color:inherit; text-decoration:none; } |
| 57 | + .title-link:hover .title { text-decoration:underline; } |
| 58 | + |
| 59 | + .subtitle { color:#6b7280; font-size:.9rem; } |
| 60 | + .owner { display:flex; align-items:center; gap:.5rem; color:#374151; font-size:.9rem; } |
| 61 | + |
| 62 | + .actions.icons { display:flex; gap:.25rem; justify-content:flex-end; } |
| 63 | + .icon-btn { --tw-ring-color: transparent; } |
| 64 | + @media (max-width: 720px){ |
| 65 | + .admin-actions{ grid-template-columns: 1fr; } |
| 66 | + } |
| 67 | +} |
| 68 | + |
| 69 | +.blog-posts { |
| 70 | + .field { margin-bottom: 0 !important; } |
| 71 | + .segmented{ |
| 72 | + display:inline-flex; background:#f3f4f6; border-radius:999px; padding:.125rem; border:1px solid #e5e7eb; |
| 73 | + } |
| 74 | + .seg-btn{ |
| 75 | + appearance:none; border:0; background:transparent; padding:.25rem .75rem; |
| 76 | + border-radius:999px; font-size:.875rem; color:#374151; cursor:pointer; |
| 77 | + } |
| 78 | + .seg-btn.active{ background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.06); color:#111827; } |
| 79 | + .segmented { |
| 80 | + display: inline-flex; |
| 81 | + border: 1px solid #e5e7eb; |
| 82 | + border-radius: .5rem; |
| 83 | + overflow: hidden; |
| 84 | + } |
| 85 | + .seg-btn { |
| 86 | + padding: .35rem .6rem; |
| 87 | + font-size: .875rem; |
| 88 | + background: #fff; |
| 89 | + } |
| 90 | + .seg-btn + .seg-btn { border-left: 1px solid #e5e7eb; } |
| 91 | + .seg-btn.active { |
| 92 | + background: #eef2ff; |
| 93 | + color: #4338ca; |
| 94 | + font-weight: 600; |
| 95 | + } |
| 96 | + .bg-gray-10 { background: #f4f5f7; } |
| 97 | + .bg-gray-20 { background: #f9fafb; } |
| 98 | + .blog-posts :is(h2, h3) { line-height: 1.2; } |
| 99 | +} |
| 100 | + |
| 101 | +.blog-layout { |
| 102 | + .nav-link { |
| 103 | + padding: 0.25rem 0.75rem; |
| 104 | + border-radius: 0.5rem; |
| 105 | + color: var(--text-color, #334155); |
| 106 | + text-decoration: none; |
| 107 | + font-weight: 500; |
| 108 | + } |
| 109 | + .nav-link:hover { |
| 110 | + background: color-mix(in srgb, var(--primary-color, #2563eb) 10%, transparent); |
| 111 | + color: var(--primary-color, #2563eb); |
| 112 | + } |
| 113 | + a.router-link-active.nav-link { |
| 114 | + background: color-mix(in srgb, var(--primary-color, #2563eb) 15%, transparent); |
| 115 | + color: var(--primary-color, #2563eb); |
| 116 | + } |
| 117 | + .nav-link { |
| 118 | + @apply px-3 py-1 rounded text-sm text-gray-90 hover:bg-gray-20 no-underline; |
| 119 | + } |
| 120 | + .nav-link.active { |
| 121 | + @apply font-medium; |
| 122 | + } |
| 123 | + .calendar{ user-select:none } |
| 124 | + .cal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.25rem } |
| 125 | + .month{ font-weight:600; font-size:.85rem } |
| 126 | + .nav{ background:#f3f4f6; border:1px solid #e5e7eb; border-radius:8px; width:28px; height:28px; display:grid; place-items:center } |
| 127 | + .nav:hover{ background:#e5e7eb } |
| 128 | + .day{ |
| 129 | + background:#fff; border:1px solid #e5e7eb; border-radius:8px; height:32px; |
| 130 | + font-size:.85rem; display:grid; place-items:center; cursor:pointer; |
| 131 | + } |
| 132 | + .day:hover{ background:#f9fafb } |
| 133 | + .day.selected{ background:#2563eb; color:#fff; border-color:#2563eb } |
| 134 | +} |
0 commit comments