Skip to content

Commit 2eab5e2

Browse files
committed
commiting css and js changes fo esmf website landing page
1 parent 5f1cff7 commit 2eab5e2

File tree

12 files changed

+102
-9
lines changed

12 files changed

+102
-9
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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ 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+
width: 66.66667rem;
15+
margin: 0 auto;
16+
}
17+
1218
.footer p {
1319
margin: 0.5rem 0;
1420
}

src/css/header.css

Lines changed: 3 additions & 2 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;
@@ -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: 9 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 {

src/css/search.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
.navbar-menu {
1212
flex-grow: 0;
1313
}
14+
15+
.search-input-landing {
16+
width: 800px;
17+
padding: 2 2.25em;
18+
padding-right: 30rem;
19+
}
20+
}
21+
22+
.search-input-landing {
23+
padding-right: 6rem !important;
24+
background-color: var(--color-smoke-70);
25+
box-shadow: rgba(0, 0, 0, 0.24) 1px 3px 8px;
1426
}
1527

1628
#search-input {
@@ -25,6 +37,16 @@
2537
}
2638

2739
@media screen and (min-width: 769px) {
40+
.sections-page #search-input {
41+
width: 380px;
42+
/* padding: 0.25rem 2rem; */
43+
color: #496583;
44+
font-family: inherit;
45+
font-size: 1.25rem;
46+
border: 10px solid var(--color-smoke-70);
47+
line-height: 1.5;
48+
}
49+
2850
#search-input {
2951
width: 200px;
3052
}
@@ -36,6 +58,7 @@
3658
display: block;
3759
right: 0;
3860
left: inherit;
61+
/* left: 0; */
3962
top: 100%;
4063
border-radius: 4px;
4164
margin: 6px 0 0;
@@ -49,6 +72,26 @@
4972
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
5073
}
5174

75+
.sections-page .search-result-dropdown-menu {
76+
position: absolute;
77+
z-index: 100;
78+
display: block;
79+
left: 0;
80+
top: 100%;
81+
border-radius: 4px;
82+
/* margin: 6px 0 0; */
83+
margin-left: 0.75rem !important;
84+
margin-top: -3rem !important;
85+
padding: 0;
86+
text-align: left;
87+
height: auto;
88+
background: transparent;
89+
border: none;
90+
max-width: 600px;
91+
min-width: 500px;
92+
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1);
93+
}
94+
5295
@media screen and (max-width: 768px) {
5396
.navbar-brand .navbar-item + .navbar-item {
5497
padding-left: 0;
@@ -58,6 +101,12 @@
58101
.search-result-dropdown-menu {
59102
min-width: calc(100vw - 3.75rem);
60103
}
104+
105+
.search-input-landing {
106+
width: 800px;
107+
padding: 2 2.25em;
108+
padding-right: 30rem;
109+
}
61110
}
62111

63112
.search-result-dataset {

src/css/site.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
@import "doc.css";
1414
@import "pagination.css";
1515
@import "header.css";
16+
@import "sections-header.css";
1617
@import "footer.css";
18+
@import "sections-footer.css";
1719
@import "highlight.css";
1820
@import "print.css";
1921
@import "search.css";
2022
@import "esmf-variables.css";
2123
@import "typeface-cairo.css";
2224
@import "tiles.css";
25+
@import "sections.css";

src/css/toolbar.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
z-index: var(--z-index-toolbar);
1313
}
1414

15+
.sections-body .toolbar {
16+
background-color: unset;
17+
}
18+
1519
.toolbar a {
1620
color: inherit;
1721
}
@@ -32,6 +36,10 @@
3236
.nav-toggle {
3337
display: none;
3438
}
39+
40+
.toolbar {
41+
display: none;
42+
}
3543
}
3644

3745
.nav-toggle.is-active {

src/css/vars.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
--panel-border-color: var(--color-smoke-90);
3838
--scrollbar-thumb-color: var(--color-gray-10);
3939
/* navbar */
40-
--navbar-background: var(--esmf-tertiary);
41-
--navbar-font-color: var(--color-white);
40+
--navbar-background: var(--color-white);
41+
--navbar-font-color: var(--esmf-tertiary);
4242
--navbar_hover-background: var(--color-black);
4343
--navbar-button-background: var(--color-white);
4444
--navbar-button-border-color: var(--panel-border-color);

src/js/01-nav.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
;(function () {
22
'use strict'
33

4+
// if (document.querySelector('.sectionPurple')) {
5+
// console.log('sectionPurple exists')
6+
// document.querySelector('.nav-container').style.backgroundColor = 'white'
7+
// }
8+
49
var SECT_CLASS_RX = /^sect(\d)$/
510

611
var navContainer = document.querySelector('.nav-container')

0 commit comments

Comments
 (0)