-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructure.gss
59 lines (48 loc) · 1.16 KB
/
structure.gss
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
/* vars */
[gap] == 20 !require;
[flex-gap] >= [gap] * 2 !require;
[radius] == [outer-radius] / 2 !require;
[outer-radius] == 20;
#profile-card {
&[width] == ::window[width] - 480;
&[height] == ::window[height] - 480;
center-x: == ::window[center-x];
center-y: == ::window[center-y];
border-radius: == [outer-radius];
}
#cover {
border-radius: == [outer-radius] / 2;
}
#avatar {
height: == 160 !require;
width: == &[height];
border-radius: == &[height] / 2;
center-x: == #cover[center-x];
}
#name {
height: == &[intrinsic-height] !require;
width: == &[intrinsic-width] !require;
center-x: == #cover[center-x];
}
button {
width: == &[intrinsic-width] !require;
height: == &[intrinsic-height] !require;
padding: == [gap];
padding-top: == [gap] / 2;
padding-bottom: == [gap] / 2;
border-radius: == [radius];
}
#follow[center-x] == #profile-card[center-x];
@h |-(#message)~-~(#follow)~-~(#following)-(#followers)-|
in(#profile-card)
chain-top
gap([gap])
!strong;
@v |-(#avatar)-(#name)-| in(#cover)
gap([gap])
outer-gap([felx-gap])
!strong;
@v |-(#cover)-(#follow)-|
in(#profile-card)
gap([gap]);
@h |-(#cover)-| in(#profile-card) gap([gap]);