Skip to content

Commit 357fc7e

Browse files
Fixed Noodl styling after merging in 3.2.1
1 parent b1ca7d5 commit 357fc7e

File tree

4 files changed

+41
-31
lines changed

4 files changed

+41
-31
lines changed

src/components/Sidebar/AppName.react.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import styles from 'components/Sidebar/Sidebar.scss';
55
const AppName = ({ name, onClick, onPinClick }) => (
66
<div>
77
<div className={styles.currentApp}>
8-
<div className={styles.appNameContainer} onClick={onClick}>
8+
<div className={styles.appNameContainer}>
99
<div className={styles.currentAppName}>
1010
{name}
1111
</div>
1212
</div>
13-
<Pin onClick={onPinClick} />
1413
</div>
1514
</div>
1615
);

src/components/Sidebar/Sidebar.react.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const Sidebar = ({
121121
? <Pin onClick={onPinClick} />
122122
: appSelector && (
123123
<div className={styles.apps}>
124-
<AppName name={currentApp.name} onClick={() => setAppsMenuOpen(true)} onPinClick={onPinClick} />
124+
<AppName name={currentApp.name} />
125125
</div>
126126
) || undefined;
127127

@@ -160,6 +160,7 @@ const Sidebar = ({
160160
return (
161161
<div
162162
className={sidebarClasses.join(' ')}
163+
style={{overflow: 'hidden'}}
163164
onMouseEnter={
164165
!fixed && collapsed
165166
? () => setCollapsed(false)
@@ -176,9 +177,12 @@ const Sidebar = ({
176177
: undefined
177178
}
178179
>
179-
<SidebarHeader isCollapsed={!appsMenuOpen && collapsed} />
180+
{/* <SidebarHeader isCollapsed={!appsMenuOpen && collapsed} /> */}
180181
{sidebarContent}
181-
<div className={styles.footer}>
182+
<div style={{position: 'absolute', bottom: 0, left: 0, right: 0}}>
183+
<SidebarHeader />
184+
</div>
185+
{/* <div className={styles.footer}>
182186
{!collapsed && (
183187
<>
184188
<a target='_blank' href='http://parseplatform.org/'>Open Source Hub</a>
@@ -187,7 +191,7 @@ const Sidebar = ({
187191
</>
188192
)}
189193
<FooterMenu isCollapsed={!appsMenuOpen && collapsed} />
190-
</div>
194+
</div> */}
191195
</div>
192196
);
193197
}

src/components/Sidebar/Sidebar.scss

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
@import 'stylesheets/globals.scss';
99

10-
$headerHeight: 48px;
10+
$headerHeight: 0px;
1111
$menuSectionHeight: 24px;
1212
$sidebarMenuItemHeight: 48px;
1313
$footerHeight: 36px;
@@ -18,7 +18,7 @@ $footerHeight: 36px;
1818
top: 0;
1919
left: 0;
2020
bottom: 0;
21-
background: #0c5582;
21+
background: $noodlGrey1;
2222
color: #fff;
2323
z-index: 100;
2424

@@ -86,7 +86,6 @@ $footerHeight: 36px;
8686
}
8787

8888
.header {
89-
background: #05283c;
9089
height: $headerHeight;
9190
padding: 10px 14px;
9291

@@ -97,10 +96,16 @@ $footerHeight: 36px;
9796
}
9897
}
9998

99+
.noodlheader {
100+
background: #05283c;
101+
height: $headerHeight;
102+
padding: 10px 14px;
103+
}
104+
100105
.currentApp, .menuRow {
101106
@include ellipsis();
102107
display: block;
103-
background: #094162;
108+
background: $noodlGrey0;
104109
height: $sidebarMenuItemHeight;
105110
padding: 10px 14px;
106111

@@ -144,17 +149,17 @@ $footerHeight: 36px;
144149
max-width: 215px;
145150
}
146151

147-
&:after {
148-
@include arrow('down', 10px, 7px, #132B39);
149-
content: '';
150-
margin-left: 10px;
151-
}
152-
153-
&:hover {
154-
&:after {
155-
border-top-color: white;
156-
}
157-
}
152+
// &:after {
153+
// @include arrow('down', 10px, 7px, #132B39);
154+
// content: '';
155+
// margin-left: 10px;
156+
// }
157+
158+
// &:hover {
159+
// &:after {
160+
// border-top-color: white;
161+
// }
162+
// }
158163
}
159164
}
160165

@@ -199,7 +204,7 @@ $footerHeight: 36px;
199204
height: $menuSectionHeight;
200205
line-height: 24px;
201206
background: #0c5582;
202-
color: #84A5BC;
207+
color: #14606E;
203208
text-transform: uppercase;
204209
letter-spacing: 2px;
205210
font-size: 8px;
@@ -234,12 +239,12 @@ $footerHeight: 36px;
234239
}
235240

236241
.active {
237-
background: #159cee;
242+
background: #171717;
238243

239244
.section_header{
240245
font-weight: 700;
241246
&:hover{
242-
background: #159cee;
247+
background: #14606E;
243248
}
244249
}
245250
}
@@ -267,7 +272,7 @@ $footerHeight: 36px;
267272
}
268273

269274
.section_contents {
270-
background: #0e69a0;
275+
background: #222222;
271276
padding: 16px 14px 16px 50px;
272277
}
273278

@@ -281,7 +286,7 @@ $footerHeight: 36px;
281286
}
282287

283288
a.subitem {
284-
color: #8fb9cf;
289+
color: #14606E;
285290
font-weight: 400;
286291
display: inline-block;
287292
width: 100%;
@@ -300,17 +305,19 @@ a.subitem {
300305
line-height: 20px;
301306
top: 4px;
302307
right: 0px;
303-
background: #0c5987;
304-
color: white;
308+
background: #DDA302;
309+
color: black;
305310
border-radius: 3px;
306311

307312
&:hover {
308-
background: #094162;
313+
background: #D49517;
309314
}
310315
}
311316

312317
.logo {
313318
float: left;
319+
height: 20px;
320+
margin-top: 4px;
314321
}
315322

316323
.version {

src/components/Sidebar/SidebarHeader.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export default class SidebarHeader extends React.Component {
3434
: (
3535
<>
3636
<Link className={styles.logo} to={{ pathname: '/apps' }}>
37-
<Icon width={28} height={28} name='infinity' fill={'#ffffff'} />
37+
<Icon width={20} height={20} name='infinity' fill={'#ffffff'} />
3838
</Link>
3939
<Link to='/apps'>
4040
<div className={styles.version}>
4141
<div>
42-
Parse Dashboard {version}
42+
Parse Platform
4343
<div>
4444
{this.state.dashboardUser}
4545
</div>

0 commit comments

Comments
 (0)