Skip to content

Commit

Permalink
chore: bump packages versions
Browse files Browse the repository at this point in the history
  • Loading branch information
PositiveJS committed Aug 19, 2021
1 parent d4c5c02 commit 93e2928
Show file tree
Hide file tree
Showing 47 changed files with 8,437 additions and 4,506 deletions.
2 changes: 1 addition & 1 deletion apps/mc-web/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const routes: Routes = [

@NgModule({
imports: [
RouterModule.forRoot(routes, { initialNavigation: true })
RouterModule.forRoot(routes)
],
exports: [
RouterModule
Expand Down
2 changes: 1 addition & 1 deletion apps/mc-web/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { StateLayoutModule } from '@libs/store/layout';
import { StoreRootModule } from '@libs/store/root';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { McNavbarModule } from '@ptsecurity/mosaic';
import { McNavbarModule } from '@ptsecurity/mosaic/navbar';

import { environment } from '../environments/environment';

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed apps/mc-web/src/assets/fonts/roboto/Roboto-Bold.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified apps/mc-web/src/assets/fonts/roboto/Roboto-Medium.woff
Binary file not shown.
Binary file modified apps/mc-web/src/assets/fonts/roboto/Roboto-MediumItalic.woff
Binary file not shown.
Binary file modified apps/mc-web/src/assets/fonts/roboto/Roboto-Regular.woff
Binary file not shown.
Binary file not shown.
Binary file removed apps/mc-web/src/assets/fonts/roboto/Roboto-Thin.woff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions apps/mc-web/src/assets/images/pt-logo-32.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions apps/mc-web/src/assets/images/pt-logo-64.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/mc-web/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<body class="theme-default active-blue">
<app-root></app-root>
</body>
</html>
37 changes: 27 additions & 10 deletions apps/mc-web/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
@import '~@ptsecurity/mosaic/visual';
@import './styles/variables';
@import './styles/fonts';

@import '~@ptsecurity/mosaic/visual.scss';
@import '~@ptsecurity/mosaic-icons/dist/styles/mc-icons.css';

@import 'styles/font';
@include mosaic-visual();

@import './styles/common';
@import './styles/default-theme/theme';

$typography: mc-typography-config();

// Include all typography for the components.
@include mc-core($typography);

@import 'app/app.theme';
@mixin app-theme($theme) {

body,
.theme-wrapper {
margin: 0;
padding: 0;
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);

background: mc-color($background, background);
color: mc-color($foreground, text);

@include mosaic-theme($theme);
}

.theme-wrapper {
width: 100%;
height: 100vh;
.theme-default {
&.active-blue {

// Include all theme styles for the mosaic components.
@include app-theme($default-light-theme);
}
}
11 changes: 11 additions & 0 deletions apps/mc-web/src/styles/_common.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.pt-icon {
width: 32px;
height: 32px;
background: url('/assets/images/pt-logo-32.svg') no-repeat 100%;
}

.pt-icon_big {
width: 64px;
height: 64px;
background: url('/assets/images/pt-logo-64.svg') no-repeat 100%;
}
46 changes: 0 additions & 46 deletions apps/mc-web/src/styles/_font.scss

This file was deleted.

36 changes: 36 additions & 0 deletions apps/mc-web/src/styles/_fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
$roboto-font-path: '/assets/fonts/roboto';
$montserrat-font-path: '/assets/fonts/montserrat';

@mixin font($font-path, $variant, $type, $weight, $style) {
$font-full-path: '#{$font-path}/#{$variant}';

@font-face {
font-family: '#{$variant}';
src: local('#{$variant} #{$type}'),
local('#{$variant}-#{$type}'),
url('#{$font-full-path}-#{$type}.woff') format('woff');
font-weight: $weight;
font-style: $style;
}

@font-face {
font-family: '#{$variant}-#{$type}';
src: local('#{$variant} #{$type}'),
local('#{$variant}-#{$type}'),
url('#{$font-full-path}-#{$type}.woff') format('woff');
}
}

@include font($roboto-font-path, 'Roboto', 'Italic', 400, italic);
@include font($roboto-font-path, 'Roboto', 'Medium', 500, normal);
@include font($roboto-font-path, 'Roboto', 'MediumItalic', 500, italic);
@include font($roboto-font-path, 'Roboto', 'Regular', 400, normal);

@include font($roboto-font-path, 'RobotoMono', 'Italic', 400, italic);
@include font($roboto-font-path, 'RobotoMono', 'Medium', 500, normal);
@include font($roboto-font-path, 'RobotoMono', 'MediumItalic', 500, italic);
@include font($roboto-font-path, 'RobotoMono', 'Regular', 400, normal);

@include font($montserrat-font-path, 'Montserrat', '500', 500, normal);
@include font($montserrat-font-path, 'Montserrat', '600', 600, normal);
@include font($montserrat-font-path, 'Montserrat', 'Regular', 400, normal);
12 changes: 0 additions & 12 deletions apps/mc-web/src/styles/_theme-dark.scss

This file was deleted.

12 changes: 0 additions & 12 deletions apps/mc-web/src/styles/_theme-default.scss

This file was deleted.

45 changes: 0 additions & 45 deletions apps/mc-web/src/styles/_theme-green.scss

This file was deleted.

7 changes: 7 additions & 0 deletions apps/mc-web/src/styles/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$images-path: '/assets/images';
$pt-icons-font-path: '~pt-product-icons/dist/fonts';
$mc-icons-font-path: '~@ptsecurity/mosaic-icons/dist/fonts/';

:root {
--main-content-padding: 48px;
}
Loading

0 comments on commit 93e2928

Please sign in to comment.