From 2288905cbdbb4e06fc345bd4bd1263e4845ce5fe Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Mon, 8 Jan 2018 15:29:04 +0300 Subject: [PATCH] Merge branch 'master' of https://github.com/withinpixels/fuse2 + fuse-hljs replaced with fuse-highlight --- package-lock.json | 5 + package.json | 2 + .../highlight/highlight.component.scss | 5 +- .../highlight/highlight.component.ts | 40 +- .../components/highlight/prism-languages.ts | 16 + src/app/core/modules/shared.module.ts | 6 +- .../core/scss/partials/plugins/_plugins.scss | 1 - .../core/scss/partials/plugins/_prism.scss | 2 +- .../google-maps/google-maps.component.html | 6 +- .../components/cards/cards.component.html | 347 +++++++++++------- .../components/cards/cards.component.scss | 1 + .../content/components/components.module.ts | 10 +- .../countdown/countdown.component.html | 8 +- .../highlight/highlight.component.html | 30 +- .../highlight/highlight.component.ts | 8 +- .../material-color-picker.component.html | 8 +- .../multi-language.component.html | 24 +- .../navigation/navigation.component.html | 56 +-- .../search-bar/search-bar.component.html | 8 +- .../shortcuts/shortcuts.component.html | 8 +- .../components/widget/widget.component.html | 12 +- .../services/config/config.component.html | 10 +- .../main/content/services/services.module.ts | 1 + .../splash-screen.component.html | 10 +- .../padding-margin.component.html | 40 +- .../padding-margin.component.scss | 1 - .../width-height/width-height.component.html | 32 +- .../width-height/width-height.component.scss | 1 - .../blockquotes-lists.component.html | 24 +- .../blockquotes-lists.component.scss | 1 - .../tabs/headings/headings.component.html | 68 ++-- .../tabs/headings/headings.component.scss | 1 - .../tabs/helpers/helpers.component.html | 52 +-- .../tabs/helpers/helpers.component.scss | 1 - .../inline-text-elements.component.html | 52 +-- .../inline-text-elements.component.scss | 1 - src/app/navigation/navigation.model.ts | 6 +- 37 files changed, 529 insertions(+), 375 deletions(-) diff --git a/package-lock.json b/package-lock.json index de35b092..485922f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -358,6 +358,11 @@ "integrity": "sha512-d1Twx1NM49dQ7jbNZfaHTQWuYL9cFVrGxYpbc3BvMf4626lOJOZnp2aJQNB9vP/WX3UOe1TrTUMABrGRu6FZhg==", "dev": true }, + "@types/prismjs": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.9.0.tgz", + "integrity": "sha512-zeh+xd2pcCvWm1XtWLR4v5pzZMybKeq6X8Q4cIZMMx8GmyKDUfJaOtw+JaONHUQt5ncKFXezl8QGIDQsSF5YfA==" + }, "@types/q": { "version": "0.0.32", "resolved": "https://registry.npmjs.org/@types/q/-/q-0.0.32.tgz", diff --git a/package.json b/package.json index 926f200c..a747c17f 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "@swimlane/ngx-charts": "7.0.1", "@swimlane/ngx-datatable": "11.1.7", "@swimlane/ngx-dnd": "3.1.0", + "@types/prismjs": "1.9.0", "angular-calendar": "0.23.0", "angular-in-memory-web-api": "0.5.2", "angular2-markdown": "1.6.0", @@ -54,6 +55,7 @@ "ngx-color-picker": "5.3.0", "ngx-cookie-service": "1.0.9", "perfect-scrollbar": "1.3.0", + "prismjs": "1.9.0", "rxjs": "5.5.6", "web-animations-js": "2.3.1", "zone.js": "0.8.18" diff --git a/src/app/core/components/highlight/highlight.component.scss b/src/app/core/components/highlight/highlight.component.scss index 8fdbe2d4..1844f192 100644 --- a/src/app/core/components/highlight/highlight.component.scss +++ b/src/app/core/components/highlight/highlight.component.scss @@ -1,3 +1,6 @@ :host { - + display: block; + padding: 8px; + background: #263238; + cursor: text; } \ No newline at end of file diff --git a/src/app/core/components/highlight/highlight.component.ts b/src/app/core/components/highlight/highlight.component.ts index 3bf9c1fc..1066b449 100644 --- a/src/app/core/components/highlight/highlight.component.ts +++ b/src/app/core/components/highlight/highlight.component.ts @@ -1,15 +1,14 @@ import { Component, ContentChild, ElementRef, Input, OnInit } from '@angular/core'; -import * as hljs from 'highlight.js'; +import * as Prism from 'prismjs/prism'; +import './prism-languages'; @Component({ - selector : 'fuse-hljs', + selector : 'fuse-highlight', template : ' ', - styleUrls: ['./hljs.component.scss'] + styleUrls: ['./highlight.component.scss'] }) -export class FuseHljsComponent implements OnInit +export class FuseHighlightComponent implements OnInit { - hljs: any; - @ContentChild('source') source: ElementRef; @Input('lang') lang: string; @@ -17,7 +16,7 @@ export class FuseHljsComponent implements OnInit private elementRef: ElementRef ) { - this.hljs = hljs; + } ngOnInit() @@ -32,6 +31,20 @@ export class FuseHljsComponent implements OnInit // Split the source into lines const sourceLines = originalSource.split('\n'); + // Remove the first and the last line of the source + // code if they are blank lines. This way, the html + // can be formatted properly while using fuse-highlight + // component + if ( !sourceLines[0].trim() ) + { + sourceLines.shift(); + } + + if ( !sourceLines[sourceLines.length - 1].trim() ) + { + sourceLines.pop(); + } + // Find the first non-whitespace char index in // the first line of the source code const indexOfFirstChar = sourceLines[0].search(/\S|$/); @@ -39,20 +52,27 @@ export class FuseHljsComponent implements OnInit // Generate the trimmed source let source = ''; - // Iterate through all the lines and trim the - // beginning white space depending on the index + // Iterate through all the lines sourceLines.forEach((line, index) => { + // Trim the beginning white space depending on the index + // and concat the source code source = source + line.substr(indexOfFirstChar, line.length); + // If it's not the last line... if ( index !== sourceLines.length - 1 ) { + // Add a line break at the end source = source + '\n'; } }); + // Generate the highlighted code + const highlightedCode = Prism.highlight(source, Prism.languages[this.lang]); + + // Replace the innerHTML of the component with the highlighted code this.elementRef.nativeElement.innerHTML = - `
` + this.hljs.highlight(this.lang, source).value + `
`; + '
' + highlightedCode + '
'; } } diff --git a/src/app/core/components/highlight/prism-languages.ts b/src/app/core/components/highlight/prism-languages.ts index e69de29b..14842a35 100644 --- a/src/app/core/components/highlight/prism-languages.ts +++ b/src/app/core/components/highlight/prism-languages.ts @@ -0,0 +1,16 @@ +import 'prismjs/prism'; +import 'prismjs/components/prism-c'; +import 'prismjs/components/prism-cpp'; +import 'prismjs/components/prism-csharp'; +import 'prismjs/components/prism-css'; +import 'prismjs/components/prism-diff'; +import 'prismjs/components/prism-markup'; +import 'prismjs/components/prism-java'; +import 'prismjs/components/prism-javascript'; +import 'prismjs/components/prism-json'; +import 'prismjs/components/prism-perl'; +import 'prismjs/components/prism-php'; +import 'prismjs/components/prism-python'; +import 'prismjs/components/prism-sass'; +import 'prismjs/components/prism-scss'; +import 'prismjs/components/prism-typescript'; diff --git a/src/app/core/modules/shared.module.ts b/src/app/core/modules/shared.module.ts index 9cd8dc98..168a0c4b 100644 --- a/src/app/core/modules/shared.module.ts +++ b/src/app/core/modules/shared.module.ts @@ -15,7 +15,7 @@ import { FuseConfirmDialogComponent } from '../components/confirm-dialog/confirm import { FuseCountdownComponent } from '../components/countdown/countdown.component'; import { FuseMatchMedia } from '../services/match-media.service'; import { FuseNavbarVerticalService } from '../../main/navbar/vertical/navbar-vertical.service'; -import { FuseHljsComponent } from '../components/hljs/hljs.component'; +import { FuseHighlightComponent } from '../components/highlight/highlight.component'; import { FusePerfectScrollbarDirective } from '../directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive'; import { FuseIfOnDomDirective } from '../directives/fuse-if-on-dom/fuse-if-on-dom.directive'; import { FuseMaterialColorPickerComponent } from '../components/material-color-picker/material-color-picker.component'; @@ -30,7 +30,7 @@ import { TranslateModule } from '@ngx-translate/core'; FuseMatSidenavTogglerDirective, FuseConfirmDialogComponent, FuseCountdownComponent, - FuseHljsComponent, + FuseHighlightComponent, FuseIfOnDomDirective, FusePerfectScrollbarDirective, FuseMaterialColorPickerComponent @@ -56,7 +56,7 @@ import { TranslateModule } from '@ngx-translate/core'; FuseMatSidenavTogglerDirective, FusePipesModule, FuseCountdownComponent, - FuseHljsComponent, + FuseHighlightComponent, FusePerfectScrollbarDirective, ReactiveFormsModule, ColorPickerModule, diff --git a/src/app/core/scss/partials/plugins/_plugins.scss b/src/app/core/scss/partials/plugins/_plugins.scss index f9d4c979..3ca67732 100644 --- a/src/app/core/scss/partials/plugins/_plugins.scss +++ b/src/app/core/scss/partials/plugins/_plugins.scss @@ -1,4 +1,3 @@ -@import "highlight"; @import "prism"; @import "perfect-scrollbar"; @import "ngx-datatable"; diff --git a/src/app/core/scss/partials/plugins/_prism.scss b/src/app/core/scss/partials/plugins/_prism.scss index 40eb6fec..276ee250 100644 --- a/src/app/core/scss/partials/plugins/_prism.scss +++ b/src/app/core/scss/partials/plugins/_prism.scss @@ -2,7 +2,7 @@ $base00: #263238; $base01: #2C393F; -$base02: #37474F; +$base02: #4A5A62; $base03: #707880; $base04: #C9CCD3; $base05: #CDD3DE; diff --git a/src/app/main/content/components-third-party/google-maps/google-maps.component.html b/src/app/main/content/components-third-party/google-maps/google-maps.component.html index 04f955ed..a85e5cc0 100644 --- a/src/app/main/content/components-third-party/google-maps/google-maps.component.html +++ b/src/app/main/content/components-third-party/google-maps/google-maps.component.html @@ -38,13 +38,13 @@

Usage

- - - +

diff --git a/src/app/main/content/components/cards/cards.component.html b/src/app/main/content/components/cards/cards.component.html index 0d62a6e0..8b50a74e 100644 --- a/src/app/main/content/components/cards/cards.component.html +++ b/src/app/main/content/components/cards/cards.component.html @@ -52,9 +52,11 @@ -
- - - + +
@@ -110,9 +113,11 @@ -
- - - + +
@@ -166,9 +172,11 @@ -
- - - + +
@@ -221,9 +230,11 @@ -
- - - + +
@@ -274,9 +286,11 @@ -
- - - + +
@@ -316,9 +332,11 @@ -
- - - + +
@@ -371,9 +391,11 @@ -
- - - + +
@@ -442,9 +466,11 @@ -
- - - + +
@@ -527,9 +554,11 @@ -
- - - + +
@@ -619,9 +649,11 @@ -
- - - + +
@@ -698,9 +731,11 @@ -
- - - + +
@@ -764,9 +800,11 @@ -
- - - + +
@@ -829,9 +869,11 @@ -
- - - + +
@@ -896,9 +940,11 @@ -
- - - + +
@@ -960,9 +1008,11 @@ -
- - - + +
@@ -1024,9 +1076,11 @@ -
- - - + +
@@ -1116,9 +1172,11 @@ -
- - - + +
@@ -1282,9 +1342,11 @@ -
- - - + +
@@ -1485,9 +1549,11 @@ -
- - - + +
@@ -1665,9 +1733,11 @@ -
- - - + +
@@ -1814,9 +1886,11 @@ -
- - - + +
@@ -1993,9 +2069,11 @@ -
- - - +
@@ -2123,9 +2202,11 @@ -
- - - + +
@@ -2240,9 +2323,11 @@ -
- - - + +
@@ -2357,9 +2444,11 @@ -
- - - + +
@@ -2420,9 +2511,11 @@ -
- - - + +
diff --git a/src/app/main/content/components/cards/cards.component.scss b/src/app/main/content/components/cards/cards.component.scss index 36075af0..37f9b98b 100644 --- a/src/app/main/content/components/cards/cards.component.scss +++ b/src/app/main/content/components/cards/cards.component.scss @@ -38,6 +38,7 @@ border-bottom: 1px solid rgba(0, 0, 0, 0.12); .card-source { + background: #263238; display: flex !important; flex: 1; max-height: 400px; diff --git a/src/app/main/content/components/components.module.ts b/src/app/main/content/components/components.module.ts index eea3144a..754b2631 100644 --- a/src/app/main/content/components/components.module.ts +++ b/src/app/main/content/components/components.module.ts @@ -3,7 +3,7 @@ import { SharedModule } from '../../../core/modules/shared.module'; import { RouterModule } from '@angular/router'; import { FuseCardsDocsComponent } from './cards/cards.component'; import { FuseCountdownDocsComponent } from './countdown/countdown.component'; -import { FuseHljsDocsComponent } from './hljs/hljs.component'; +import { FuseHighlightDocsComponent } from './highlight/highlight.component'; import { FuseMaterialColorPickerDocsComponent } from './material-color-picker/material-color-picker.component'; import { FuseMultiLanguageDocsComponent } from './multi-language/multi-language.component'; import { FuseNavigationDocsComponent } from './navigation/navigation.component'; @@ -24,8 +24,8 @@ const routes = [ component: FuseCountdownDocsComponent }, { - path : 'highlightjs', - component: FuseHljsDocsComponent + path : 'highlight', + component: FuseHighlightDocsComponent }, { path : 'material-color-picker', @@ -64,7 +64,7 @@ const routes = [ declarations: [ FuseCardsDocsComponent, FuseCountdownDocsComponent, - FuseHljsDocsComponent, + FuseHighlightDocsComponent, FuseMaterialColorPickerDocsComponent, FuseMultiLanguageDocsComponent, FuseNavigationDocsComponent, @@ -73,6 +73,6 @@ const routes = [ FuseWidgetDocsComponent ] }) -export class ComponentsModule +export class FuseComponentsModule { } diff --git a/src/app/main/content/components/countdown/countdown.component.html b/src/app/main/content/components/countdown/countdown.component.html index 982ac683..bffd539c 100644 --- a/src/app/main/content/components/countdown/countdown.component.html +++ b/src/app/main/content/components/countdown/countdown.component.html @@ -29,12 +29,12 @@

Usage

-

- - - +

diff --git a/src/app/main/content/components/highlight/highlight.component.html b/src/app/main/content/components/highlight/highlight.component.html index c110a5a8..1b6c8315 100644 --- a/src/app/main/content/components/highlight/highlight.component.html +++ b/src/app/main/content/components/highlight/highlight.component.html @@ -1,4 +1,4 @@ -
+
@@ -8,7 +8,7 @@ chevron_right Components
-
highlight.js
+
Highlight
@@ -17,36 +17,42 @@

- fuse-hljs is a custom built Fuse component allows to show syntax highlighted codes. + fuse-highlight is a custom built Fuse component allows to show syntax highlighted codes.

Sample

- - - + +

Usage

- - - +

diff --git a/src/app/main/content/components/highlight/highlight.component.ts b/src/app/main/content/components/highlight/highlight.component.ts index 142ab034..46b3f84e 100644 --- a/src/app/main/content/components/highlight/highlight.component.ts +++ b/src/app/main/content/components/highlight/highlight.component.ts @@ -1,11 +1,11 @@ import { Component } from '@angular/core'; @Component({ - selector : 'fuse-hljs-docs', - templateUrl: './hljs.component.html', - styleUrls : ['./hljs.component.scss'] + selector : 'fuse-highlight-docs', + templateUrl: './highlight.component.html', + styleUrls : ['./highlight.component.scss'] }) -export class FuseHljsDocsComponent +export class FuseHighlightDocsComponent { constructor() { diff --git a/src/app/main/content/components/material-color-picker/material-color-picker.component.html b/src/app/main/content/components/material-color-picker/material-color-picker.component.html index b338d722..d27ee235 100644 --- a/src/app/main/content/components/material-color-picker/material-color-picker.component.html +++ b/src/app/main/content/components/material-color-picker/material-color-picker.component.html @@ -30,14 +30,14 @@

Usage

-

- - - +

diff --git a/src/app/main/content/components/multi-language/multi-language.component.html b/src/app/main/content/components/multi-language/multi-language.component.html index 76abc8f6..9a29d1ee 100644 --- a/src/app/main/content/components/multi-language/multi-language.component.html +++ b/src/app/main/content/components/multi-language/multi-language.component.html @@ -41,9 +41,9 @@ translation data:

-

- - - +

@@ -75,9 +75,9 @@ mail.component.ts file:

-

- - - +

@@ -110,9 +110,9 @@ Changing the current language can happen instantly. Simply call the use method from the translate service:

-

- - - +

More detailed usage of the translation service can be found in the toolbar.component.ts diff --git a/src/app/main/content/components/navigation/navigation.component.html b/src/app/main/content/components/navigation/navigation.component.html index 6625f89a..9238d01d 100644 --- a/src/app/main/content/components/navigation/navigation.component.html +++ b/src/app/main/content/components/navigation/navigation.component.html @@ -23,12 +23,12 @@

Usage

-

- - - +

@@ -49,9 +49,9 @@

Grouping

-

- - - +

Collapsable

-

- - - +

Item

-

- - - +

@@ -132,9 +132,9 @@

Update navigation item on-the-fly

-

- - - +

@@ -157,9 +157,9 @@

Add a subitem to the Calendar nav item

-

- - - +

@@ -187,9 +187,9 @@

Add a nav item with custom function

-

- - - +

diff --git a/src/app/main/content/components/search-bar/search-bar.component.html b/src/app/main/content/components/search-bar/search-bar.component.html index c1c643a7..069f9eab 100644 --- a/src/app/main/content/components/search-bar/search-bar.component.html +++ b/src/app/main/content/components/search-bar/search-bar.component.html @@ -23,12 +23,12 @@

Usage

-

- - - +

diff --git a/src/app/main/content/components/shortcuts/shortcuts.component.html b/src/app/main/content/components/shortcuts/shortcuts.component.html index bdcdd4cc..2e8c87eb 100644 --- a/src/app/main/content/components/shortcuts/shortcuts.component.html +++ b/src/app/main/content/components/shortcuts/shortcuts.component.html @@ -23,12 +23,12 @@

Usage

-

- - - +

diff --git a/src/app/main/content/components/widget/widget.component.html b/src/app/main/content/components/widget/widget.component.html index 58315761..a8b2f951 100644 --- a/src/app/main/content/components/widget/widget.component.html +++ b/src/app/main/content/components/widget/widget.component.html @@ -62,9 +62,11 @@

Usage

-

- - - + +

diff --git a/src/app/main/content/services/config/config.component.html b/src/app/main/content/services/config/config.component.html index 3506a56a..604eea39 100644 --- a/src/app/main/content/services/config/config.component.html +++ b/src/app/main/content/services/config/config.component.html @@ -24,8 +24,10 @@

Usage

- - - + +

diff --git a/src/app/main/content/services/services.module.ts b/src/app/main/content/services/services.module.ts index 2b55e89b..75be1738 100644 --- a/src/app/main/content/services/services.module.ts +++ b/src/app/main/content/services/services.module.ts @@ -25,6 +25,7 @@ const routes = [ FuseSplashScreenServiceDocsComponent ] }) + export class FuseServicesModule { } diff --git a/src/app/main/content/services/splash-screen/splash-screen.component.html b/src/app/main/content/services/splash-screen/splash-screen.component.html index bb0519c9..8b72d5ef 100644 --- a/src/app/main/content/services/splash-screen/splash-screen.component.html +++ b/src/app/main/content/services/splash-screen/splash-screen.component.html @@ -25,8 +25,10 @@

Usage

- - - + +

diff --git a/src/app/main/content/ui/helper-classes/tabs/padding-margin/padding-margin.component.html b/src/app/main/content/ui/helper-classes/tabs/padding-margin/padding-margin.component.html index ff07fd51..52fa03ed 100644 --- a/src/app/main/content/ui/helper-classes/tabs/padding-margin/padding-margin.component.html +++ b/src/app/main/content/ui/helper-classes/tabs/padding-margin/padding-margin.component.html @@ -10,12 +10,12 @@ p-0
- - +
@@ -26,12 +26,12 @@ p-4
- - + @@ -42,12 +42,12 @@ p-12 - - + @@ -69,7 +69,7 @@ py-0 - - + @@ -95,7 +95,7 @@ py-4 - - + @@ -121,12 +121,12 @@ m-0 - - + @@ -137,12 +137,12 @@ m-4 - - + @@ -153,12 +153,12 @@ m-12 - - + @@ -180,7 +180,7 @@ my-0 - - + @@ -206,7 +206,7 @@ my-4 - - + diff --git a/src/app/main/content/ui/helper-classes/tabs/padding-margin/padding-margin.component.scss b/src/app/main/content/ui/helper-classes/tabs/padding-margin/padding-margin.component.scss index 17201e2f..a54cf7ba 100644 --- a/src/app/main/content/ui/helper-classes/tabs/padding-margin/padding-margin.component.scss +++ b/src/app/main/content/ui/helper-classes/tabs/padding-margin/padding-margin.component.scss @@ -4,7 +4,6 @@ .source-code { position: relative; - background: #F3F4F6; margin-bottom: 24px; min-height: 180px; diff --git a/src/app/main/content/ui/helper-classes/tabs/width-height/width-height.component.html b/src/app/main/content/ui/helper-classes/tabs/width-height/width-height.component.html index 199c935b..93003f6f 100644 --- a/src/app/main/content/ui/helper-classes/tabs/width-height/width-height.component.html +++ b/src/app/main/content/ui/helper-classes/tabs/width-height/width-height.component.html @@ -10,12 +10,12 @@ w-0 - - + @@ -26,12 +26,12 @@ w-100 - - + @@ -42,12 +42,12 @@ w-25-p - - + @@ -58,12 +58,12 @@ w-100-p - - + @@ -79,12 +79,12 @@ h-0 - - + @@ -95,12 +95,12 @@ h-100 - - + @@ -111,12 +111,12 @@ h-25-p - - + @@ -127,12 +127,12 @@ h-100-p - - + diff --git a/src/app/main/content/ui/helper-classes/tabs/width-height/width-height.component.scss b/src/app/main/content/ui/helper-classes/tabs/width-height/width-height.component.scss index d1ed4228..073878fb 100644 --- a/src/app/main/content/ui/helper-classes/tabs/width-height/width-height.component.scss +++ b/src/app/main/content/ui/helper-classes/tabs/width-height/width-height.component.scss @@ -4,7 +4,6 @@ .source-code { position: relative; - background: #F3F4F6; margin-bottom: 24px; min-height: 180px; diff --git a/src/app/main/content/ui/typography/tabs/blockquotes-lists/blockquotes-lists.component.html b/src/app/main/content/ui/typography/tabs/blockquotes-lists/blockquotes-lists.component.html index fc28433b..97e71b48 100644 --- a/src/app/main/content/ui/typography/tabs/blockquotes-lists/blockquotes-lists.component.html +++ b/src/app/main/content/ui/typography/tabs/blockquotes-lists/blockquotes-lists.component.html @@ -14,7 +14,7 @@ - - + @@ -40,7 +40,7 @@ - - + @@ -69,7 +69,7 @@ - - + @@ -108,7 +108,7 @@ - - + @@ -145,7 +145,7 @@ - - + @@ -183,7 +183,7 @@ - - + diff --git a/src/app/main/content/ui/typography/tabs/blockquotes-lists/blockquotes-lists.component.scss b/src/app/main/content/ui/typography/tabs/blockquotes-lists/blockquotes-lists.component.scss index a4340ab6..91755f27 100644 --- a/src/app/main/content/ui/typography/tabs/blockquotes-lists/blockquotes-lists.component.scss +++ b/src/app/main/content/ui/typography/tabs/blockquotes-lists/blockquotes-lists.component.scss @@ -4,7 +4,6 @@ .source-code { position: relative; - background: #F3F4F6; margin-bottom: 24px; min-height: 180px; diff --git a/src/app/main/content/ui/typography/tabs/headings/headings.component.html b/src/app/main/content/ui/typography/tabs/headings/headings.component.html index 1d320c6c..389e725e 100644 --- a/src/app/main/content/ui/typography/tabs/headings/headings.component.html +++ b/src/app/main/content/ui/typography/tabs/headings/headings.component.html @@ -11,12 +11,12 @@ Display 4 - - + @@ -27,12 +27,12 @@ Display 3 - - + @@ -43,12 +43,12 @@ Display 2 - - +
@@ -58,12 +58,12 @@ Display 1
- - + @@ -74,12 +74,12 @@ Headline - - + @@ -90,12 +90,12 @@ Title - - + @@ -106,12 +106,12 @@ Subheading 2 - - + @@ -122,12 +122,12 @@ Subheading 1 - - + @@ -138,12 +138,12 @@ Body 1 - - + @@ -154,12 +154,12 @@ Body 2 - - + @@ -170,12 +170,12 @@ Caption - - + @@ -192,13 +192,13 @@ Heading 1 - - + @@ -209,13 +209,13 @@ Heading 2 - - + @@ -226,13 +226,13 @@ Heading 3 - - + @@ -243,13 +243,13 @@ Heading 4 - - + @@ -260,13 +260,13 @@ Heading 5 - - + @@ -277,13 +277,13 @@ Heading 6 - - + diff --git a/src/app/main/content/ui/typography/tabs/headings/headings.component.scss b/src/app/main/content/ui/typography/tabs/headings/headings.component.scss index 94d9b834..66ca047d 100644 --- a/src/app/main/content/ui/typography/tabs/headings/headings.component.scss +++ b/src/app/main/content/ui/typography/tabs/headings/headings.component.scss @@ -4,7 +4,6 @@ .source-code { position: relative; - background: #F3F4F6; margin-bottom: 24px; min-height: 180px; diff --git a/src/app/main/content/ui/typography/tabs/helpers/helpers.component.html b/src/app/main/content/ui/typography/tabs/helpers/helpers.component.html index 56cf09ac..9f7f7252 100644 --- a/src/app/main/content/ui/typography/tabs/helpers/helpers.component.html +++ b/src/app/main/content/ui/typography/tabs/helpers/helpers.component.html @@ -13,14 +13,14 @@ font-weight: 900 - - + @@ -37,12 +37,12 @@ font-size: 20 - - + @@ -61,14 +61,14 @@ line-height: 120 - - + @@ -84,12 +84,12 @@
Left aligned text
- - + @@ -99,12 +99,12 @@
Center aligned text
- - + @@ -114,12 +114,12 @@
Right aligned text
- - + @@ -131,14 +131,14 @@

- - + @@ -150,14 +150,14 @@

- - + @@ -169,14 +169,14 @@

- - + @@ -186,12 +186,12 @@
Italic text
- - + @@ -201,12 +201,12 @@
Semi-bold text
- - + @@ -216,12 +216,12 @@
Bold text
- - + @@ -233,14 +233,14 @@ - - + diff --git a/src/app/main/content/ui/typography/tabs/helpers/helpers.component.scss b/src/app/main/content/ui/typography/tabs/helpers/helpers.component.scss index 48dd1da4..faa39dc7 100644 --- a/src/app/main/content/ui/typography/tabs/helpers/helpers.component.scss +++ b/src/app/main/content/ui/typography/tabs/helpers/helpers.component.scss @@ -4,7 +4,6 @@ .source-code { position: relative; - background: #F3F4F6; margin-bottom: 24px; min-height: 180px; diff --git a/src/app/main/content/ui/typography/tabs/inline-text-elements/inline-text-elements.component.html b/src/app/main/content/ui/typography/tabs/inline-text-elements/inline-text-elements.component.html index 454d9343..067d9f0f 100644 --- a/src/app/main/content/ui/typography/tabs/inline-text-elements/inline-text-elements.component.html +++ b/src/app/main/content/ui/typography/tabs/inline-text-elements/inline-text-elements.component.html @@ -8,12 +8,12 @@ CSS - - + @@ -23,12 +23,12 @@ This is a marked text. - - + @@ -40,12 +40,12 @@ - - + @@ -55,12 +55,12 @@ This is a strike-through text. - - + @@ -70,12 +70,12 @@ This is an underlined text. - - + @@ -87,12 +87,12 @@ - - + @@ -102,12 +102,12 @@ This is a strong text. - - + @@ -117,12 +117,12 @@ This is an italic text. - - + @@ -135,14 +135,14 @@ - - + @@ -156,14 +156,14 @@ - - + @@ -176,14 +176,14 @@ - - + @@ -196,14 +196,14 @@ - - + @@ -216,14 +216,14 @@ - - + diff --git a/src/app/main/content/ui/typography/tabs/inline-text-elements/inline-text-elements.component.scss b/src/app/main/content/ui/typography/tabs/inline-text-elements/inline-text-elements.component.scss index 0445f273..81248227 100644 --- a/src/app/main/content/ui/typography/tabs/inline-text-elements/inline-text-elements.component.scss +++ b/src/app/main/content/ui/typography/tabs/inline-text-elements/inline-text-elements.component.scss @@ -4,7 +4,6 @@ .source-code { position: relative; - background: #F3F4F6; margin-bottom: 24px; min-height: 180px; diff --git a/src/app/navigation/navigation.model.ts b/src/app/navigation/navigation.model.ts index a0029669..da8e126d 100644 --- a/src/app/navigation/navigation.model.ts +++ b/src/app/navigation/navigation.model.ts @@ -823,11 +823,11 @@ export class FuseNavigationModel implements FuseNavigationModelInterface 'url' : '/components/countdown' }, { - 'id' : 'highlightjs', - 'title': 'Highlight.js', + 'id' : 'highlight', + 'title': 'Highlight', 'type' : 'item', 'icon' : 'settings_input_component', - 'url' : '/components/highlightjs' + 'url' : '/components/highlight' }, { 'id' : 'material-color-picker',