Skip to content

Commit 39b0c3e

Browse files
committed
members-explorer and page content styling
1 parent c1534e3 commit 39b0c3e

File tree

18 files changed

+183
-75
lines changed

18 files changed

+183
-75
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 18 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/webdoc-default-template/src/app/components/Explorer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ export default connect(({explorerOpen}) => ({
5656

5757
return (
5858
<div className="explorer" style={{
59-
display: !isOpen ? "none" : undefined,
6059
minWidth: !isOpen ? "0px" : undefined,
6160
width: !isOpen ? "0px" : undefined,
6261
overflowX: !isOpen ? "hidden" : undefined,
62+
transitionDuration: "200ms",
6363
}}>
6464
<ExplorerHeader isOpen={isOpen} toggleOpen={toggleOpen} />
6565
<TreeView
Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,32 @@
1+
@import "themes";
2+
13
.document {
4+
font-size: .875em;
5+
line-height: 1.4em;
26
width: 100%;
37

4-
&__title {
8+
&__breadcrumb {
9+
a {
10+
color: $colorText;
11+
text-decoration: underline;
12+
}
13+
14+
> *:last-child {
15+
color: $colorPrimary;
16+
}
17+
}
18+
19+
> .document__title {
520
font-size: 3em;
21+
line-height: 1.4em;
22+
margin: 18px 0;
23+
}
24+
25+
> .document__brief, > .document__description {
26+
margin-left: 8px;
27+
}
28+
29+
> * {
30+
margin: 10px 0;
631
}
732
}

packages/webdoc-default-template/src/styles/global.scss

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ a {
2323
@include flex($flex-direction: column);
2424

2525
color: $colorPrimaryText;
26-
background-color: $colorPrimary;
2726

2827
font-family: Roboto, Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
2928
font-size: $textSizeMain;
@@ -52,29 +51,43 @@ a {
5251
}
5352

5453
max-width: 400px;
55-
height: 100%;
5654
overflow: auto;
5755
}
5856

5957
&-members-explorer {
6058
min-width: 200px;
6159
}
62-
&-members-explorer > *:first-child, &-content > *:first-child {
60+
&-members-explorer > *:first-child {
61+
margin-top: 68px;
62+
}
63+
&-content > *:first-child {
6364
margin-top: 8px;
6465
}
6566
&-members-explorer > *:last-child, &-content > *:last-child {
6667
margin-bottom: 8px;
6768
}
6869

6970
&-content {
70-
width: 0;
71+
color: $colorText;
72+
font-family: Arial, Roboto, sans-serif;
7173
flex-grow: 2;
7274
flex-shrink: 1;
7375
height: 100%;
7476
overflow-x: hidden;// TODO: Slight horizontal scrolling pops up for some reason
7577
overflow-y: auto;
76-
max-width: 900px;
77-
padding: 0 8px;
78+
max-width: 800px;
79+
padding-left: 67px;
80+
padding-right: 83px;
81+
width: 0;
82+
}
83+
&-content > *:first-child {
84+
margin-top: 24px;
85+
}
86+
&-r-divider {
87+
border: 1px solid $colorPrimaryLight;
88+
margin: 0;
89+
margin-top: 68px;
90+
height: 67vh;
7891
}
7992
}
8093
}

packages/webdoc-default-template/src/styles/members-explorer.scss

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,43 @@
11
@import "./scss-utils/all";
2+
@import "themes";
23

34

45
.page-members-explorer {
6+
font-family: Arial, sans-serif;
7+
font-size: 12px;
8+
line-height: 14px;
9+
510
&-category {
11+
margin-left: 16px;
12+
margin-bottom: 7px;
13+
614
&__title {
7-
color: black;
8-
font-weight: 500;
15+
font-weight: 700;
16+
margin-bottom: 7px;
917
}
1018

1119
&__items {
12-
@include normalize(true);
20+
margin-left: 12px;
21+
margin-top: 0;
22+
margin-bottom: 0;
23+
padding: 0;
24+
list-style: none;
1325
}
14-
1526
}
1627

1728
&__item {
29+
align-items: center;
30+
border-radius: 8px 0 0 8px;
31+
display: flex;
1832
font-weight: 400;
33+
height: 15px;
1934
line-height: 1.5;
35+
padding-left: 2px;
36+
vertical-align: middle;
37+
38+
a {
39+
color: $colorText;
40+
}
2041

2142
&:hover {
2243
background-color: rgba(0, 0, 0, 0.04);

packages/webdoc-default-template/src/styles/members.scss

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,51 @@
1+
@import "themes";
12
@import "vars";
23

34

45
.members {
56
&__category {
6-
font-size: 2em;
7+
font-size: 1.5em;
8+
font-weight: bold;
9+
line-height: 1.4em;
10+
padding: 8px;
11+
}
12+
13+
> hr {
14+
border: 2px solid $colorSheetSecondary
15+
}
16+
17+
> * {
18+
margin-top: 10px;
19+
margin-bottom: 10px;
720
}
821
}
922

1023
.member {
1124
position: relative;
12-
13-
width: 100%;
1425
padding-bottom: 12px;
26+
width: 100%;
27+
28+
&__title {
29+
align-items: center;
30+
display: flex;
31+
margin-left: 12px;
32+
margin-bottom: 10px;
1533

16-
&:not(:last-child) {
17-
&:after {
18-
content: '';
19-
position: absolute;
20-
width: 69%;
21-
height: 1px;
22-
background-color: $colorBorders;
34+
> a {
35+
height: 16px;
36+
}
2337

24-
left: 50%;
25-
transform: translateX(-50%);
38+
> span {
39+
font-size: 1.3em;
40+
margin-left: 8px;
41+
line-height: 1.4em;
2642
}
2743
}
2844

45+
&__brief, &__description, > .table-wrapper {
46+
margin-left: 8px;
47+
}
48+
2949
& > .signature {
3050
margin-bottom: 8px;
3151
}

0 commit comments

Comments
 (0)