Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove site-switcher #433

Merged
merged 1 commit into from
Jan 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion application-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {
common: '/common',
dialogEditor: '/dialog-editor',
gtl: '/gtl',
siteSwitcher: '/site-switcher',
fonticonPicker: '/fonticon-picker',
dialogs: '/dialog-user',
quadicon: '/quadicon',
Expand Down
2 changes: 0 additions & 2 deletions demo/controllers/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import AvailableComponentsController from './availableComponentsController';
import ToolbarMenuController from './toolbarMenuController';
import DataTableController from './dataTableController';
import SiteSwitcherController from './siteSwitcherController';
import FonticonPickerController from './fonticonPickerController';
import DialogUserController from './dialogUserController';
import DialogEditorController from './dialogEditorController';
Expand All @@ -14,7 +13,6 @@ export default (module: ng.IModule) => {
module.controller('demoAvailableComponents', AvailableComponentsController);
module.controller('demoToolbarMenu', ToolbarMenuController);
module.controller('demoDataTable', DataTableController);
module.controller('demoSiteSwitcher', SiteSwitcherController);
module.controller('demoFonticonPicker', FonticonPickerController);
module.controller('demoDialogUser', DialogUserController);
module.controller('demoDialogEditor', DialogEditorController);
Expand Down
29 changes: 0 additions & 29 deletions demo/controllers/siteSwitcherController.ts

This file was deleted.

1 change: 0 additions & 1 deletion demo/services/availableComponentsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export default class AvailableComponentsService {
new AvailableGroup('toolbar-menu', 'Toolbar Menu Components', '/toolbar-menu', []),
new AvailableGroup('tile-menu', 'Tile Components', '/tile-view', []),
new AvailableGroup('data-table', 'Data table Components', '/data-table', []),
new AvailableGroup('site-switcher', 'Site Switcher Components', '/site-switcher', []),
new AvailableGroup('fonticon-picker', 'Fonticon Picker Components', '/fonticon-picker', []),
new AvailableGroup('dialog', 'Dialog Components', '/dialog', []),
new AvailableGroup('tree-view', 'Tree Components', '/tree', []),
Expand Down
8 changes: 0 additions & 8 deletions demo/styles/demo-app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ table .narrow {
white-space: nowrap;
}

.switcher-banner {
color: white;
background-color: #2b2b2b;
width: 100%;
height: 30px;
padding-left: 15px;
padding-right: 15px;
}
.demo-dialog-container {
height: 550px;
}
Expand Down
6 changes: 0 additions & 6 deletions demo/views/site-switcher/basic.html

This file was deleted.

1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module miqStaticAssets {
'miqStaticAssets.dialogEditor',
'miqStaticAssets.dialogUser',
'miqStaticAssets.gtl',
'miqStaticAssets.siteSwitcher',
'miqStaticAssets.fonticonPicker',
'miqStaticAssets.quadicon',
'miqStaticAssets.treeView',
Expand Down
6 changes: 0 additions & 6 deletions src/site-switcher/index.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/site-switcher/site-switcher.html

This file was deleted.

48 changes: 0 additions & 48 deletions src/site-switcher/siteSwitcherComponent.spec.ts

This file was deleted.

62 changes: 0 additions & 62 deletions src/site-switcher/siteSwitcherComponent.ts

This file was deleted.

86 changes: 0 additions & 86 deletions src/styles/ui-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,92 +147,6 @@ table.miq-table-with-footer {
/* End Grid View (Quad Icon) & Tile View Styling */


/* Site switcher styling */

.miq-siteswitcher-icon {
color: white;
}

.miq-siteswitcher-link {
color: black;
}

.miq-siteswitcher-entry {
display: inline-block;
padding: 10px;
text-align: center;
min-width: 90px;
}

.miq-siteswitcher-entry {
border-color: #fff;
border-style: solid;
border-width: 1px;
}

.miq-siteswitcher-entry:hover {
border-color: #bbb;
border-style: solid;
border-width: 1px;
a {
color: #0088CE;
}
}

.miq-siteswitcher {
.uib-dropdown-menu {
padding: 9px;
left: 8px;
margin-top: 11px;
min-width: 220px;
&.uib-dropdown-menu-right {
left: auto;
right: -2px;
&:after,
&:before {
left: auto;
right: 6px;
}
}
&:after,
&:before {
border-bottom-color: #bbb;
border-bottom-style: solid;
border-bottom-width: 10px;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
content: "";
display: inline-block;
left: 6px;
position: absolute;
top: -11px;
}
&:after {
border-bottom-color: #fff;
top: -10px;
}
}
&.dropup .uib-dropdown-menu {
margin-bottom: 11px;
margin-top: 0;
&:after,
&:before {
border-bottom: none;
border-top-color: #bbb;
border-top-style: solid;
border-top-width: 10px;
bottom: -11px;
top: auto;
}
&:after {
border-top-color: #fff;
bottom: -10px;
}
}
}

/* end switcher styling */

/* begin fonticon picker styling */

miq-fonticon-picker {
Expand Down