Skip to content
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
28 changes: 28 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,34 @@ html {
scroll-padding-top: 70px;
}

body {
font-family: 'Open Sans', sans-serif;

}

.v-row {
h1,
h2,
h5 {
font-family: 'Encode Sans Expanded', sans-serif !important;
}

h1 {
font-size: 3rem;
font-weight: 700;
}

h2 {
font-size: 2rem;
font-weight: 400;
padding-bottom: 0.5rem;
}

h5 {
font-weight: 600;
}
}

.top-app-bar {
z-index: 99 !important;

Expand Down
26 changes: 0 additions & 26 deletions src/documentation/DocsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,32 +153,6 @@ provide('classes', classes);
</script>

<style lang="scss" scoped>
body {
font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h5 {
font-family: 'Encode Sans Expanded', sans-serif !important;
}

h1 {
font-size: 3rem;
font-weight: 700;
}

h2 {
border-bottom: 1px solid #ccc;
font-size: 2rem;
font-weight: 400;
padding-bottom: 0.5rem;
}

h5 {
font-weight: 600;
}

:deep(pre),
:deep(code) {
&.ic {
Expand Down
24 changes: 6 additions & 18 deletions src/documentation/components/examples/AdditionalLangExamples.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
:label="`Example of using ${selectedLibrary.title} to highlight TypeScript`"
lang="html"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -51,7 +50,6 @@
label="TypeScript"
lang="typescript"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -69,7 +67,6 @@
:label="`Example of using ${selectedLibrary.label} to highlight JSON`"
lang="html"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -84,7 +81,6 @@
label="JSON"
lang="json"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -102,7 +98,6 @@
:label="`Example of using ${selectedLibrary.label} to highlight PHP`"
lang="html"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -119,7 +114,6 @@
label="PHP"
lang="php"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -144,12 +138,11 @@ const selectedTheme = inject('selectedTheme');
const usageExamples = {
prismjs: {
json: `<template>
<CodeBlock
<VCodeBlock
:code="myCode"
:indent="2"
lang="json"
prismjs
:tabs="false"
/\>
<\/template>

Expand All @@ -158,11 +151,10 @@ const usageExamples = {
import 'prismjs/components/prism-json';
<\/script>`,
typescript: `<template>
<CodeBlock
<VCodeBlock
:code="myCode"
lang="typescript"
prismjs
:tabs="false"
/\>
<\/template>

Expand All @@ -171,11 +163,10 @@ const usageExamples = {
import 'prismjs/components/prism-typescript';
<\/script>`,
php: `<template>
<CodeBlock
<VCodeBlock
:code="myCode"
lang="php"
prismjs
:tabs="false"
/\>
<\/template>

Expand All @@ -187,12 +178,11 @@ const usageExamples = {
},
highlightjs: {
json: `<template>
<CodeBlock
<VCodeBlock
:code="myCode"
highlightjs
:indent="2"
lang="json"
:tabs="false"
/\>
<\/template>

Expand All @@ -203,11 +193,10 @@ const usageExamples = {
hljs.registerLanguage('json', langJson);
<\/script>`,
typescript: `<template>
<CodeBlock
<VCodeBlock
:code="myCode"
highlightjs
lang="typescript"
:tabs="false"
/\>
<\/template>

Expand All @@ -218,11 +207,10 @@ const usageExamples = {
hljs.registerLanguage('typescript', langTypescript);
<\/script>`,
php: `<template>
<CodeBlock
<VCodeBlock
:code="myCode"
highlightjs
lang="php"
:tabs="false"
/\>
<\/template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
:highlightjs="selectedLibrary.id === 'highlightjs'"
lang="html"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -28,19 +27,17 @@ const selectedLibrary = inject('selectedLibrary');
const selectedTheme = inject('selectedTheme');

const examples = {
prismjs: `<CodeBlock
prismjs: `<VCodeBlock
:browser-window="true"
:code="myCode"
lang="javascript"
prismjs
:tabs="false"
/>`,
highlightjs: `<CodeBlock
highlightjs: `<VCodeBlock
:browser-window="true"
:code="myCode"
highlightjs
lang="javascript"
:tabs="false"
/>`
};
</script>
14 changes: 4 additions & 10 deletions src/documentation/components/examples/ButtonExamples.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
label="Visible on hover"
lang="html"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -30,7 +29,6 @@
lang="html"
persistent-copy-button
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -45,37 +43,33 @@ const selectedTheme = inject('selectedTheme');

const examples = {
prismjs: {
btn: `<CodeBlock
btn: `<VCodeBlock
:code="myCode"
label="Visible on hover"
lang="html"
prismjs
:tabs="false"
/>`,
btnPersist: `<CodeBlock
btnPersist: `<VCodeBlock
:code="myCode"
label="Persistent Copy Button"
lang="html"
persistent-copy-button
prismjs
:tabs="false"
/>`,
},
highlightjs: {
btn: `<CodeBlock
btn: `<VCodeBlock
:code="myCode"
highlightjs
label="Visible on hover"
lang="html"
:tabs="false"
/>`,
btnPersist: `<CodeBlock
btnPersist: `<VCodeBlock
:code="myCode"
highlightjs
label="Persistent Copy Button"
lang="html"
persistent-copy-button
:tabs="false"
/>`,
}
};
Expand Down
5 changes: 0 additions & 5 deletions src/documentation/components/examples/LangExamples.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
lang="javascript"
:max-height="codeBlockOptions.preHeight"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -31,7 +30,6 @@
lang="html"
:max-height="codeBlockOptions.preHeight"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -47,7 +45,6 @@
lang="css"
:max-height="codeBlockOptions.preHeight"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -63,7 +60,6 @@
lang="html"
:max-height="codeBlockOptions.preHeight"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand All @@ -78,7 +74,6 @@
label="SVG"
lang="svg"
:prismjs="selectedLibrary.id === 'prismjs'"
:tabs="false"
:theme="selectedTheme"
/>
</v-col>
Expand Down
Loading