aboutsummaryrefslogtreecommitdiffhomepage
path: root/static/profile.css
blob: 3634b234d37ece573b7bca4326613d390e0cc2ed (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.fullProfile {
  border-radius: var(--border-radius);
  margin: var(--spacing-double);
  padding: var(--spacing-double);
  border: var(--border);
  background: var(--clr-profile-background);

  .basicInfo {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    gap: var(--spacing-double);
    line-height: 1.5;

    > * {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    img.avatar {
      width: var(--avatar-big-size);
      aspect-ratio: 1;
      border-radius: var(--border-radius);
    }
    .displayName {
      font-size: var(--font-big-size);
      font-weight: bold;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    .handle,
    .joinedDate {
      font-size: var(--font-small-size);
      text-overflow: ellipsis;
      overflow: hidden;
    }
  }

  .profileMiniActions {
    display: grid;
    grid-auto-flow: column;
    gap: var(--spacing-double);
  }

  .profileActions {
    display: grid;
    justify-content: end;
    align-items: baseline;
    grid-auto-flow: column;
    gap: var(--spacing-double);

    .pendingInfo {
      display: grid;
      align-items: baseline;
      grid-auto-flow: column;
      gap: var(--spacing-double);
    }
  }

  details > summary {
    background: var(--clr-secondary);
    color: var(--clr-foreground-on-secondary);
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--border-radius);
    padding: var(--spacing-single) var(--spacing-double);
    width: max-content;
  }
  details[open]:has(.pokeForm) > summary {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }
}

form.fullProfile {
  max-width: unset;
  input[type="text"],
  textarea {
    max-width: unset;
    width: 100%;
  }
  textarea {
    height: 16lh;
  }
}