[Operator] Kelengkapan Halaman Dosen
This commit is contained in:
@@ -149,7 +149,15 @@
|
||||
box-shadow: inset 0 0 0 1px var(--color-error);
|
||||
}
|
||||
|
||||
/* Ekspor Excel: isian tosca, teks putih; bukan aksi utama halaman, jadi tanpa gradien tombol primer */
|
||||
.btn--teal {
|
||||
background: var(--color-teal);
|
||||
color: var(--color-teal-ink);
|
||||
box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-teal-ink) 24%, transparent), var(--shadow-raised);
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.btn--teal:hover { background: var(--color-teal-hi); }
|
||||
.btn--primary:hover { background: var(--color-accent-hi); }
|
||||
.btn--secondary:hover { background: var(--color-paper-2); }
|
||||
.btn--ghost:hover { background: color-mix(in oklab, var(--color-ink) 7%, transparent); color: var(--color-ink); }
|
||||
@@ -157,6 +165,7 @@
|
||||
}
|
||||
|
||||
.btn--primary:active { background: var(--color-accent-lo); transform: translateY(1px); }
|
||||
.btn--teal:active { background: var(--color-teal-lo); transform: translateY(1px); }
|
||||
.btn--secondary:active { background: var(--color-paper-3); transform: translateY(1px); }
|
||||
.btn--ghost:active { background: color-mix(in oklab, var(--color-ink) 12%, transparent); transform: translateY(1px); }
|
||||
.btn--danger:active { background: color-mix(in oklab, var(--color-error) 14%, var(--color-error-soft)); transform: translateY(1px); }
|
||||
@@ -726,7 +735,7 @@ html.drawer-open { overflow-y: clip; }
|
||||
|
||||
/* Mode warna paksa: peramban menghapus bayangan, jadi penanda yang memakainya diganti garis (harus paling akhir) */
|
||||
@media (forced-colors: active) {
|
||||
.btn--primary, .btn--secondary, .btn--danger { border: 1px solid ButtonText; }
|
||||
.btn--primary, .btn--secondary, .btn--danger, .btn--teal { border: 1px solid ButtonText; }
|
||||
.avatar, .badge { border: 1px solid CanvasText; }
|
||||
.nav-item[aria-current="page"] { border: 2px solid Highlight; }
|
||||
.skip-link { border: 1px solid CanvasText; }
|
||||
|
||||
@@ -1409,6 +1409,7 @@ html:not([data-theme="dark"]) .sky__stars { display: none; }
|
||||
.report-print__table th, .report-print__table td { border: 1px solid var(--color-rule); padding: var(--space-3xs) var(--space-2xs); text-align: start; vertical-align: top; }
|
||||
.report-print__table th { background: var(--color-paper-2); font-weight: 600; }
|
||||
.report-print__table .num { text-align: end; font-variant-numeric: tabular-nums; }
|
||||
.report-print__total td { background: var(--color-gold-soft); font-weight: 700; }
|
||||
.report-print__foot { color: var(--color-muted); font-size: var(--text-xs); }
|
||||
|
||||
@media print {
|
||||
|
||||
@@ -50,6 +50,12 @@
|
||||
--color-violet: oklch(45% 0.15 300);
|
||||
--color-violet-soft: oklch(94.5% 0.04 300);
|
||||
|
||||
/* Tosca: tombol ekspor Excel (ui.button variant="teal"). Sama di tema terang dan gelap; teks putih di atasnya >= 5:1 */
|
||||
--color-teal: oklch(52% 0.1 186);
|
||||
--color-teal-hi: oklch(47% 0.092 186);
|
||||
--color-teal-lo: oklch(42% 0.083 186);
|
||||
--color-teal-ink: oklch(99% 0.004 190);
|
||||
|
||||
/* Warna lambang: hanya untuk tanda dekoratif, tidak pernah untuk teks */
|
||||
--color-brand-red: oklch(59.5% 0.225 27);
|
||||
--color-gold: oklch(82% 0.155 85);
|
||||
|
||||
@@ -179,6 +179,13 @@
|
||||
|
||||
.table tbody tr + tr > * { border-block-start: var(--rule-hair) solid var(--color-rule); }
|
||||
|
||||
/* Baris penjumlahan laporan (mis. "Jumlah" di akhir): arsir emas lembut, huruf tebal, garis atas lebih tegas */
|
||||
.table tbody tr.table__row--total > * {
|
||||
background: var(--color-gold-soft);
|
||||
font-weight: 700;
|
||||
border-block-start: 1px solid var(--color-edge);
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.table tbody tr:hover { background: color-mix(in oklab, var(--color-ink) 4%, transparent); }
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
])
|
||||
|
||||
@php
|
||||
$variant = in_array($variant, ['primary', 'secondary', 'ghost', 'danger'], true) ? $variant : 'primary';
|
||||
$variant = in_array($variant, ['primary', 'secondary', 'ghost', 'danger', 'teal'], true) ? $variant : 'primary';
|
||||
$classes = array_filter([
|
||||
'btn',
|
||||
"btn--{$variant}",
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($result->rows as $n => $row)
|
||||
<tr>
|
||||
<tr @class(['report-print__total' => in_array($n, $result->totals, true)])>
|
||||
<td class="num">{{ $n + 1 }}</td>
|
||||
@foreach ($result->columns as $c)
|
||||
@php $cell = $row[$c['key']] ?? null; @endphp
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
@endforeach
|
||||
|
||||
<div class="satu-form__actions">
|
||||
<x-ui.button variant="secondary" icon="arrow-down-tray" href="#" x-bind:href="downloadHref" x-bind:aria-disabled="! ready" x-on:click="if (! ready) $event.preventDefault()">{{ $downloadLabel }}</x-ui.button>
|
||||
<x-ui.button :variant="$downloadVariant" icon="arrow-down-tray" href="#" x-bind:href="downloadHref" x-bind:aria-disabled="! ready" x-on:click="if (! ready) $event.preventDefault()">{{ $downloadLabel }}</x-ui.button>
|
||||
<x-ui.button variant="secondary" icon="arrow-top-right-on-square" href="#" target="_blank" rel="noopener" x-bind:href="printHref" x-bind:aria-disabled="! ready" x-on:click="if (! ready) $event.preventDefault()">Lihat di Tab Baru</x-ui.button>
|
||||
</div>
|
||||
</form>
|
||||
@@ -69,7 +69,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<template x-for="(row, i) in result.rows" :key="i">
|
||||
<tr>
|
||||
<tr x-bind:class="{ 'table__row--total': row._total }">
|
||||
<td class="num" x-text="(result.from + i).toLocaleString('id-ID')"></td>
|
||||
<template x-for="c in result.columns" :key="c.key">
|
||||
<td x-bind:class="c.num ? 'num' : ''" x-text="cell(row[c.key])"></td>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
$editable ??= true;
|
||||
$ownRowsOnly ??= false;
|
||||
$viewable ??= true;
|
||||
// $barLinks (opsional): tautan tambahan di kanan bilah cari, [['label', 'href', 'icon']].
|
||||
// $barLinks (opsional): tautan tambahan di kanan bilah cari, [['label', 'href', 'icon', 'variant' => 'secondary'|'teal']].
|
||||
$barLinks ??= [];
|
||||
// $detailColumns (opsional): kolom modal Lihat bila berbeda dari kolom tabel; kolom ber-'detail' => 'kunci' menampilkan
|
||||
// row.{kunci} (larik teks) sebagai daftar bernomor selebar modal, mis. anggota grup mata kuliah.
|
||||
@@ -130,9 +130,9 @@
|
||||
@foreach ($barLinks as $link)
|
||||
@if ($link['withFilters'] ?? false)
|
||||
{{-- Tautan yang membawa filter dan kata cari yang sedang dipakai (mis. Unduh CSV) --}}
|
||||
<a class="btn btn--secondary btn--sm" x-bind:href="linkWith(@js($link['href']))"><x-dynamic-component :component="'heroicon-o-'.($link['icon'] ?? 'link')" /><span>{{ $link['label'] }}</span></a>
|
||||
<a class="btn btn--{{ ($link['variant'] ?? null) === 'teal' ? 'teal' : 'secondary' }} btn--sm" x-bind:href="linkWith(@js($link['href']))"><x-dynamic-component :component="'heroicon-o-'.($link['icon'] ?? 'link')" /><span>{{ $link['label'] }}</span></a>
|
||||
@else
|
||||
<x-ui.button variant="secondary" :icon="$link['icon'] ?? null" size="sm" :href="$link['href']">{{ $link['label'] }}</x-ui.button>
|
||||
<x-ui.button :variant="$link['variant'] ?? 'secondary'" :icon="$link['icon'] ?? null" size="sm" :href="$link['href']">{{ $link['label'] }}</x-ui.button>
|
||||
@endif
|
||||
@endforeach
|
||||
@foreach ($active as [$label, $icon, $variant, $click])
|
||||
@@ -163,7 +163,8 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<template x-for="row in view" x-bind:key="row.id">
|
||||
<tr>
|
||||
{{-- row._total: baris penjumlahan laporan (mis. "Jumlah"), diberi arsir --}}
|
||||
<tr x-bind:class="{ 'table__row--total': row._total }">
|
||||
@if ($dynamicColumns)
|
||||
<template x-for="(col, ci) in columns" x-bind:key="col.key">
|
||||
<td x-bind:class="{ num: col.num, table__title: ci === 0 }">
|
||||
|
||||
Reference in New Issue
Block a user