Skip to content

Commit a8b516d

Browse files
authored
feat: adjust styling to match stackable website (#42)
1 parent 7786037 commit a8b516d

File tree

11 files changed

+94
-308
lines changed

11 files changed

+94
-308
lines changed

js/nav.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"build:doc": "esbuild js/doc.js --bundle --minify --sourcemap --format=esm --outfile=static/js/doc.js",
44
"build:home": "esbuild js/home.js --bundle --minify --sourcemap --outfile=static/js/home.js",
55
"build:org": "esbuild js/org.js --bundle --minify --sourcemap --outfile=static/js/org.js",
6-
"build:nav": "esbuild js/nav.js --bundle --minify --sourcemap --outfile=static/js/nav.js",
7-
"build": "pnpm build:nav && pnpm build:home && pnpm build:org && pnpm build:doc"
6+
"build": "pnpm build:home && pnpm build:org && pnpm build:doc"
87
},
98
"devDependencies": {
109
"esbuild": "^0.23.1",

static/css/root.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ code {
4545
}
4646

4747
.nav-link:hover {
48-
color: var(--navbar-font-color);
49-
text-decoration: underline;
48+
color: var(--navbar-font-color-hover);
49+
text-decoration: none;
5050
}
5151

5252
.nav-item.active>.nav-link,
@@ -86,14 +86,26 @@ code {
8686
visibility: hidden;
8787
}
8888

89-
#operator-menu.active {
89+
#operator-menu-button:hover + #operator-menu,
90+
#operator-menu:hover {
9091
visibility: visible;
9192
}
9293

9394
.dropdown-menu {
94-
top: 60px;
95+
top: var(--navbar-height);
9596
border-radius: 0;
9697
border: none;
98+
padding: 0px;
99+
}
100+
101+
.dropdown-item {
102+
color: var(--navbar-font-color);
103+
background-color: var(--navbar-background);
104+
}
105+
.dropdown-item:hover {
106+
text-decoration: none;
107+
color: var(--navbar-font-color-hover);
108+
background-color: var(--navbar-background-hover);
97109
}
98110

99111
/* copy tooltip */

static/css/vars.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
--header-font-family-weight: 600; /* semi-bold */
2424
/* navbar */
2525
--navbar-background: var(--color-white);
26+
--navbar-background-hover: var(--color-background2);
2627
--navbar-font-color: var(--color-text);
28+
--navbar-font-color-hover: var(--color-brand-primary);
2729
/* footer */
2830
--footer-background: var(--color-white);
2931
--footer-font-color: var(--color-text);

static/js/doc.js

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

static/js/doc.js.map

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

static/js/home.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/nav.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

static/js/nav.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

static/js/org.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

template/_navbar.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
<a href="/" class="nav-link">CRD Documentation</a>
99
</li>
1010
<li class="nav-item">
11-
<a class="nav-link" id="operator-menu-button" onclick="toggleMenu()">
12-
Operators
13-
<i class="fa fa-angle-down ml-5" aria-hidden="true"></i> <!-- ml-5= margin-left: 0.5rem (5px) -->
14-
</a>
11+
<a class="nav-link" id="operator-menu-button">Operators</a>
1512
<div class="dropdown-menu dropdown-menu-right" id="operator-menu" aria-labelledby="operator-menu-button">
1613
<a class="dropdown-item" href="/airflow-operator">Airflow Operator</a>
1714
<a class="dropdown-item" href="/druid-operator">Druid Operator</a>
@@ -32,5 +29,4 @@
3229
</li>
3330
</ul>
3431
</div>
35-
</nav>
36-
<script src="/static/js/nav.js"></script>
32+
</nav>

0 commit comments

Comments
 (0)