Skip to content

Commit 6c05f55

Browse files
authored
Merge pull request #10 from bci-oss/esmf-layout-landing-page
CSS and HBS for ESMF website in regards to landing page redesign
2 parents 88ee307 + 04d6c32 commit 6c05f55

26 files changed

+1223
-10
lines changed

src/css/body.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
.body {
33
display: flex;
44
}
5+
6+
.sections-body {
7+
display: flex;
8+
}
59
}

src/css/doc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
.doc {
1313
flex: auto;
1414
font-size: var(--doc-font-size--desktop);
15-
margin: var(--doc-margin--desktop);
15+
/* margin: var(--doc-margin--desktop); */
1616
max-width: var(--doc-max-width--desktop);
1717
min-width: 0;
1818
}

src/css/footer.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@ footer.footer {
55
line-height: var(--footer-line-height);
66
padding: 1.5rem;
77
position: relative;
8-
float: left;
8+
/* float: left; */
99
width: 100%;
1010
}
1111

12+
.footer-container {
13+
display: block;
14+
margin: 0 auto;
15+
}
16+
1217
.footer p {
1318
margin: 0.5rem 0;
1419
}

src/css/header.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ body {
77
}
88

99
.navbar {
10-
background: var(--navbar-background);
11-
color: var(--navbar-font-color);
10+
background: #8da5bf;
11+
color: white;
1212
font-size: calc(16 / var(--rem-base) * 1rem);
1313
height: var(--navbar-height);
1414
position: fixed;
@@ -55,7 +55,7 @@ body {
5555
}
5656

5757
.navbar-burger span {
58-
background-color: var(--navbar-font-color);
58+
background-color: white;
5959
height: 1.5px;
6060
width: 1rem;
6161
}
@@ -111,6 +111,7 @@ body {
111111
.docu-title {
112112
margin-left: 15px;
113113
white-space: nowrap;
114+
color: white;
114115
}
115116

116117
.navbar-item.has-dropdown {

src/css/nav.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.nav-container {
22
position: fixed;
3-
top: var(--navbar-height);
3+
/* top: var(--navbar-height); */
44
left: 0;
55
width: 100%;
66
font-size: calc(17 / var(--rem-base) * 1rem);
@@ -12,6 +12,10 @@
1212
.nav-container {
1313
width: var(--nav-width);
1414
}
15+
16+
.sections-body .nav {
17+
background-color: white;
18+
}
1519
}
1620

1721
@media screen and (min-width: 1024px) {
@@ -22,6 +26,10 @@
2226
top: 0;
2327
visibility: visible;
2428
}
29+
30+
.sections-body .nav-container {
31+
display: none;
32+
}
2533
}
2634

2735
.nav-container.is-active {
@@ -35,6 +43,10 @@
3543
height: var(--nav-height);
3644
}
3745

46+
.sections-body .nav {
47+
background-color: white;
48+
}
49+
3850
@media screen and (min-width: 769px) {
3951
.nav {
4052
box-shadow: 0.5px 0 3px var(--nav-border-color);

src/css/search.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,38 @@
1111
.navbar-menu {
1212
flex-grow: 0;
1313
}
14+
15+
.search-input-landing {
16+
width: 1200px;
17+
padding: 2 2.25em;
18+
padding-right: 2rem;
19+
}
20+
21+
.sections-page .search-result-dropdown-menu {
22+
position: absolute;
23+
z-index: 100;
24+
display: block;
25+
left: 0;
26+
top: 100%;
27+
border-radius: 4px;
28+
/* margin: 6px 0 0; */
29+
margin-left: 0.75rem !important;
30+
margin-top: -6rem !important;
31+
padding: 0;
32+
text-align: left;
33+
height: auto;
34+
background: transparent;
35+
border: none;
36+
max-width: 600px;
37+
min-width: 500px;
38+
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
39+
}
40+
}
41+
42+
.search-input-landing {
43+
padding-right: 4rem;
44+
background-color: var(--color-smoke-70);
45+
box-shadow: rgba(0, 0, 0, 0.24) 1px 3px 8px;
1446
}
1547

1648
#search-input {
@@ -25,9 +57,23 @@
2557
}
2658

2759
@media screen and (min-width: 769px) {
60+
.sections-page #search-input {
61+
width: 380px;
62+
/* padding: 0.25rem 2rem; */
63+
color: #496583;
64+
font-family: inherit;
65+
font-size: 1.25rem;
66+
border: 10px solid var(--color-smoke-70);
67+
line-height: 1.5;
68+
}
69+
2870
#search-input {
2971
width: 200px;
3072
}
73+
74+
/* .sections-page .search-result-dropdown-menu {
75+
margin-top: -1rem !important;
76+
} */
3177
}
3278

3379
.search-result-dropdown-menu {
@@ -36,6 +82,7 @@
3682
display: block;
3783
right: 0;
3884
left: inherit;
85+
/* left: 0; */
3986
top: 100%;
4087
border-radius: 4px;
4188
margin: 6px 0 0;
@@ -58,6 +105,15 @@
58105
.search-result-dropdown-menu {
59106
min-width: calc(100vw - 3.75rem);
60107
}
108+
109+
.search-input-landing {
110+
width: 800px;
111+
padding: 2 1.25em;
112+
}
113+
114+
.sections-page .search-result-dropdown-menu {
115+
margin-top: -6rem !important;
116+
}
61117
}
62118

63119
.search-result-dataset {

src/css/sections-footer.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
.sections-footer {
2+
background-color: #2945a3;
3+
color: white;
4+
font-size: calc(15 / var(--rem-base) * 1rem);
5+
line-height: var(--footer-line-height);
6+
padding: 1.5rem;
7+
position: relative;
8+
width: 100%;
9+
}
10+
11+
.sections-footer-container {
12+
/* display: block; */
13+
max-width: 66.66667rem;
14+
margin: 0 auto;
15+
display: flex;
16+
justify-content: space-between;
17+
}
18+
19+
.sections-footer p {
20+
margin: 0.5rem 0;
21+
}
22+
23+
.sections-footer a {
24+
color: var(--footer-link-font-color);
25+
}
26+
27+
.sections-footer-container-left {
28+
margin-left: 1rem;
29+
}
30+
31+
.sections-footer-container-right {
32+
margin: 0.25rem 1.25rem;
33+
}
34+
35+
.sections-footer-container-right > a {
36+
color: white;
37+
margin: 0.5rem 0;
38+
font-size: 1rem;
39+
}
40+
41+
@media screen and (max-width: 800px) {
42+
.sections-footer {
43+
font-size: 0.5rem;
44+
line-height: unset;
45+
padding: 1rem;
46+
}
47+
}

0 commit comments

Comments
 (0)