Skip to content

Commit cd18fe0

Browse files
authored
Merge pull request #23 from unity-sds/features/update-navbar-styling
Features/update navbar styling
2 parents efd043d + f21e0d2 commit cd18fe0

File tree

4 files changed

+85
-4
lines changed

4 files changed

+85
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.5.0] (unreleased)
9+
- Updated Navbar CSS styling to match Figma designs [#5](https://github.com/unity-sds/unity-ui/issues/5)
10+
811
## [0.4.0] - 2023-12-13
912
- Updated /job/new endpoint so it lists the applications for which jobs may be executed.
1013
- Moved chirp rebinning job form to /jobs/new/chirp

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "unity-ui",
33
"private": true,
4-
"version": "0.4.0",
4+
"version": "0.5.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/css/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* @import './stellar.css'; */
22
@import "@nasa-jpl/react-stellar/dist/esm/stellar.css";
3-
@import "unity-stellar.css";
43
@import 'ag-grid-community/styles/ag-grid.min.css'; /* Core grid CSS, always needed */
54
@import 'ag-grid-community/styles/ag-theme-alpine.min.css'; /* Optional grid theme CSS */
65
@import 'ag-grid-stellar.css';
6+
@import "unity-stellar.css";
77

88
#root {
99
display: flex;

src/css/unity-stellar.css

Lines changed: 80 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,52 @@
88

99
/* Menu */
1010

11-
.st-react-menu-label {
12-
text-transform: uppercase;
11+
.st-react-menu-content {
12+
background: var(--st-gray-80);
13+
border: 1px solid var(--st-white);
14+
border-radius: 0;
15+
padding: 0;
16+
}
17+
18+
.st-react-menu-content .st-react-menu-arrow {
19+
fill: var(--st-white);
20+
filter: none;
21+
stroke: var(--st-white);
22+
}
23+
24+
.st-react-menu-content .st-react-menu-label {
25+
color: var(--st-gray-10);
26+
font-size: 1em;
27+
font-weight: 700;
28+
letter-spacing: 0.48;
29+
padding: 10px 16px;
30+
text-transform: uppercase;
31+
word-wrap: break-word;
32+
}
33+
34+
.st-react-menu-content .st-react-menu-item {
35+
background-color: var(--st-gray-70);
36+
border-radius: 0;
37+
color: var(--st-gray-10);
38+
font-weight: 400;
39+
letter-spacing: 0.60px;
40+
line-height: 1em;
41+
margin-bottom: 1px;
42+
padding: 16px 16px;
43+
word-wrap: break-word;
44+
}
45+
46+
.st-react-menu-content .st-react-menu-item:hover, .st-react-menu-content .st-react-menu-item:hover a {
47+
background: var(--st-primary-20);
48+
font-weight: 700;
49+
color: var(--st-black);
50+
cursor: pointer;
51+
}
52+
53+
.st-react-menu-content .st-react-menu-item > a {
54+
color: var(--st-gray-10);
55+
text-decoration: none;
56+
word-wrap: break-word;
1357
}
1458

1559
/* Navbar */
@@ -40,4 +84,38 @@
4084

4185
.st-react-navbar.st-react-navbar--mobile .st-button:hover.icon {
4286
color: var(--st-button-tertiary-color);
87+
}
88+
89+
.st-react-navbar-mobile-menu {
90+
background: var(--st-gray-80);
91+
border: 0;
92+
padding: 0;
93+
}
94+
95+
.st-react-navbar-mobile-menu .st-react-menu-label {
96+
font-size: 1em;
97+
font-weight: 700;
98+
color: var(--st-gray-10);
99+
text-transform: uppercase;
100+
padding: 10px 16px;
101+
word-wrap: break-word;
102+
}
103+
104+
.st-react-navbar-mobile-menu .st-react-navbar-link {
105+
background-color: var(--st-gray-70);
106+
border-radius: 0;
107+
color: var(--st-gray-10);
108+
font-weight: 400;
109+
letter-spacing: 0.48px;
110+
line-height: 1em;
111+
padding: 10px 16px;
112+
text-decoration: none;
113+
word-wrap: break-word;
114+
}
115+
116+
.st-react-navbar-mobile-menu .st-react-navbar-link:hover {
117+
background: var(--st-primary-20);
118+
font-weight: 700;
119+
color: var(--st-black);
120+
cursor: pointer;
43121
}

0 commit comments

Comments
 (0)