aboutsummaryrefslogtreecommitdiff
path: root/http/src/css/feed.uppcss
blob: 9010addebd8ba199f08412c482b9c30420cbb2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* Assumes there is at most one level of subheading for sub-dividing entries */
.h-feed > :is(h2, h3, h4, h5, h6) {
  margin-block-start: var(--spacing-block-md);
}

ul:has(> .h-entry) {
  list-style-type: none;
  margin-inline: 0;

  ul {
    list-style-type: disc;
  }
}

.h-entry {
  display: flex;
  flex-direction: column;
}

.h-entry + .h-entry {
  margin-block-start: var(--spacing-block-md);
}

.h-entry > * {
  order: 1;
  margin: 0;
}

.h-entry .dt-published {
  order: 0;
  font-size: var(--font-size-sm);
}

.h-entry .p-name {
  font-size: var(--font-size-md);
  font-weight: 400;
}

.h-feed .full-feed-link {
  text-align: end;
}

.h-feed :is(a.full-feed-link, .full-feed-link a)::after {
  content: ' >';
}

.e-content {
  border-bottom: solid 1px;
  &:not(.e-content--expanded) {
    height: 10rem;
    overflow: clip;
  }
}

.h-entry > button {
  width: max-content;
  align-self: center;
  margin-block-start: var(--spacing-block-xs);
}

.e-content--expanded {
  order: 2;
  & + button {
    order: 1;
  }
}