Skip to content

Commit

Permalink
style(core): tweak navigation icon sizes/placement (#5065)
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed Mar 26, 2018
1 parent 1289e4c commit faebfb2
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 13 deletions.
1 change: 1 addition & 0 deletions app/scripts/modules/core/src/application/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './ApplicationIcon';
export * from './application.model';
export * from './applicationModel.builder';
export * from './nav/defaultCategories';
export * from './modal/validation/applicationName.validator';
export * from './listExtractor/listExtractor.service';
export * from './service/application.read.service';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class CategoryDropdown extends React.Component<ICategoryDropdownProps, IC
return (
<UISrefActive class="active" key={category.key}>
<UISref to={dataSource.sref}>
<a className="nav-item top-level">
<a className="nav-item top-level horizontal middle">
<NavIcon icon={dataSource.icon}/>
{' ' + dataSource.label}
<DataSourceNotifications tags={dataSource.alerts} application={application} tabName={category.label}/>
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/application/nav/NavIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export interface INavIconProps {
}

export const NavIcon = ({ icon }: INavIconProps) => {
return icon ? <i className={`nav-item-icon fa fa-xs fa-fixed fa-${icon}`}/> : null;
return icon ? <i className={`nav-item-icon ${icon}`}/> : null;
};
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}
}
.nav-item-icon {
margin-right: 4px;
margin: 1px 4px 0 0;
}
.notification {
margin: 0 5px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ export const DELIVERY_KEY = 'delivery';
navigationCategoryRegistry.register({
key: DELIVERY_KEY,
label: 'Delivery',
icon: 'fa fa-tasks',
icon: 'fa fa-fw fa-xs fa-tasks',
primary: true,
order: 100,
});

navigationCategoryRegistry.register({
key: INFRASTRUCTURE_KEY,
label: 'Infrastructure',
icon: 'fa fa-cloud',
icon: 'fa fa-fw fa-xs fa-cloud',
primary: true,
order: 200,
});
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module(LOAD_BALANCER_DATA_SOURCE, [
key: 'loadBalancers',
category: INFRASTRUCTURE_KEY,
optional: true,
icon: 'fa fa-xs fa-fixed fa-sitemap',
icon: 'fa fa-xs fa-fw fa-sitemap',
loader: loadLoadBalancers,
onLoad: addLoadBalancers,
afterLoad: addTags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = angular
applicationDataSourceRegistry.registerDataSource({
optional: true,
primary: true,
icon: 'fa fa-xs fa-fixed fa-list',
icon: 'fa fa-xs fa-fw fa-list',
key: 'executions',
label: 'Pipelines',
category: DELIVERY_KEY,
Expand Down
3 changes: 0 additions & 3 deletions app/scripts/modules/core/src/presentation/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -1469,11 +1469,8 @@ div.modal-header.has-sticky-headers {
border-radius: 3px;
background-color: var(--color-accent);
padding: 3px 6px;
margin-bottom: 3px;
@media (max-width: 1400px) {
font-size: 10px;
margin-top: -2px;
margin-bottom: 2px;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module(SECURITY_GROUP_DATA_SOURCE, [
key: 'securityGroups',
category: INFRASTRUCTURE_KEY,
optional: true,
icon: 'fa fa-xs fa-fixed fa-lock',
icon: 'fa fa-xs fa-fw fa-lock',
loader: loadSecurityGroups,
onLoad: addSecurityGroups,
afterLoad: addTags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module(SERVER_GROUP_DATA_SOURCE, [
sref: '.insight.clusters',
optional: true,
primary: true,
icon: 'fas fa-xs fa-fixed fa-th-large',
icon: 'fas fa-xs fa-fw fa-th-large',
loader: loadServerGroups,
onLoad: addServerGroups,
afterLoad: addTags,
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/task/task.dataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = angular
afterLoad: runningTasksLoaded,
lazy: true,
primary: true,
icon: 'fa fa-xs fa-fixed fa-check-square',
icon: 'fa fa-sm fa-fw fa-check-square',
});

applicationDataSourceRegistry.registerDataSource({
Expand Down

0 comments on commit faebfb2

Please sign in to comment.