style(person-funding): switch position filter to dropdown to match patents view #227
@@ -307,37 +307,17 @@
|
||||
<!-- Linke Seite: Tabelle -->
|
||||
<div class="funding-list">
|
||||
<div class="funding-list-toolbar">
|
||||
<div class="filter-bar">
|
||||
<label class="sort-control">
|
||||
<span>Filter nach Position:</span>
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="activeFilter === 'all'"
|
||||
[attr.aria-pressed]="activeFilter === 'all'"
|
||||
(click)="setFilter('all')">
|
||||
Alle
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="activeFilter === 'first'"
|
||||
[attr.aria-pressed]="activeFilter === 'first'"
|
||||
(click)="setFilter('first')">
|
||||
Erstautor
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="activeFilter === 'middle'"
|
||||
[attr.aria-pressed]="activeFilter === 'middle'"
|
||||
(click)="setFilter('middle')">
|
||||
Mitautor
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
[class.active]="activeFilter === 'last'"
|
||||
[attr.aria-pressed]="activeFilter === 'last'"
|
||||
(click)="setFilter('last')">
|
||||
Letztautor
|
||||
</button>
|
||||
</div>
|
||||
<select
|
||||
[value]="activeFilter"
|
||||
(change)="setFilter($any($event.target).value)">
|
||||
<option value="all">Alle</option>
|
||||
<option value="first">Erstautor</option>
|
||||
<option value="middle">Mitautor</option>
|
||||
<option value="last">Letztautor</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="sort-control">
|
||||
<span>Sortieren nach:</span>
|
||||
<select
|
||||
|
||||
@@ -10,74 +10,6 @@
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.filter-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
|
||||
span {
|
||||
font-weight: 500;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 6px 14px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 20px;
|
||||
background: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
|
||||
&.active {
|
||||
font-weight: 600;
|
||||
border-width: 2px;
|
||||
padding: 5px 13px;
|
||||
}
|
||||
}
|
||||
|
||||
button:nth-child(2) {
|
||||
color: #3b82c4;
|
||||
border-color: #c7dcfa;
|
||||
&.active {
|
||||
color: #0b4f9e;
|
||||
background: #e8f2ff;
|
||||
border-color: #3b82c4;
|
||||
}
|
||||
}
|
||||
|
||||
button:nth-child(3) {
|
||||
color: #3d9a66;
|
||||
border-color: #b8e6cb;
|
||||
&.active {
|
||||
color: #1a6b3f;
|
||||
background: #e8f7ee;
|
||||
border-color: #3d9a66;
|
||||
}
|
||||
}
|
||||
|
||||
button:nth-child(4) {
|
||||
color: #7c65d9;
|
||||
border-color: #d5c8f8;
|
||||
&.active {
|
||||
color: #5b3fc9;
|
||||
background: #f0ebff;
|
||||
border-color: #7c65d9;
|
||||
}
|
||||
}
|
||||
|
||||
button:nth-child(5) {
|
||||
color: #d1435f;
|
||||
border-color: #f8c4ce;
|
||||
&.active {
|
||||
color: #a61e3a;
|
||||
background: #ffe8ec;
|
||||
border-color: #d1435f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sort-control {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -121,10 +53,6 @@
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.sort-control {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
|
||||
Reference in New Issue
Block a user