diff --git a/src/components/CodeBlock.vue b/src/components/CodeBlock.vue index 2e908992..e8197450 100644 --- a/src/components/CodeBlock.vue +++ b/src/components/CodeBlock.vue @@ -140,4 +140,10 @@ div[class~='language-bash']::before { div[class~='language-yaml']::before { content: 'yaml'; } +/* media queries */ +@media (max-width: 768px) { + .code-block-wrapper { + height: 100%; + } +} diff --git a/src/components/IconDiscord.vue b/src/components/IconDiscord.vue new file mode 100644 index 00000000..2f5ddab3 --- /dev/null +++ b/src/components/IconDiscord.vue @@ -0,0 +1,8 @@ + diff --git a/src/components/IconDownload.vue b/src/components/IconDownload.vue new file mode 100644 index 00000000..a2fb2a29 --- /dev/null +++ b/src/components/IconDownload.vue @@ -0,0 +1,26 @@ + diff --git a/src/components/IconGitHub.vue b/src/components/IconGitHub.vue new file mode 100644 index 00000000..b5d66494 --- /dev/null +++ b/src/components/IconGitHub.vue @@ -0,0 +1,8 @@ + diff --git a/src/components/IconTwitter.vue b/src/components/IconTwitter.vue new file mode 100644 index 00000000..11ec9613 --- /dev/null +++ b/src/components/IconTwitter.vue @@ -0,0 +1,8 @@ + diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index e70dd8ba..0d5ef31c 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -8,7 +8,7 @@ width="50" height="50" /> - Code Generator + Code Generator v{{ version }} @@ -19,30 +19,7 @@ title="Download the generated code as a zip file" > Download - + - GitHub - + - Twitter - + - Discord - + @@ -155,8 +54,13 @@ import { version } from '../../package.json' import { store } from '../store' import { saveAs } from 'file-saver' import JSZip from 'jszip' +import IconDiscord from './IconDiscord.vue' +import IconDownload from './IconDownload.vue' +import IconGitHub from './IconGitHub.vue' +import IconTwitter from './IconTwitter.vue' export default { + components: { IconDiscord, IconDownload, IconGitHub, IconTwitter }, setup() { let zip = new JSZip() @@ -189,12 +93,8 @@ h1 img { top: -5px; } .external-links { - margin: 0.25rem; + margin: 0 0.5rem; font-size: var(--font-size); - border-bottom: 2px solid transparent; -} -.external-links:hover { - border-bottom: 2px solid var(--c-brand-red); } .nav-bar { display: flex; @@ -227,9 +127,13 @@ h1 img { .iconify { vertical-align: middle; position: relative; - top: -2px; -} -.iconify.download { top: -3px; } +/* media queries */ +@media (max-width: 768px) { + .pname, + .version { + display: none; + } +} diff --git a/src/components/PaneLeft.vue b/src/components/PaneLeft.vue index 8e2899b9..68991478 100644 --- a/src/components/PaneLeft.vue +++ b/src/components/PaneLeft.vue @@ -42,6 +42,11 @@ export default { diff --git a/src/components/PaneRight.vue b/src/components/PaneRight.vue index a3bf3e69..19cbff6f 100644 --- a/src/components/PaneRight.vue +++ b/src/components/PaneRight.vue @@ -41,6 +41,11 @@ export default { diff --git a/src/components/PaneSplit.vue b/src/components/PaneSplit.vue index 3a4d327a..291be83b 100644 --- a/src/components/PaneSplit.vue +++ b/src/components/PaneSplit.vue @@ -84,4 +84,17 @@ export default { width: 10px; cursor: ew-resize; } +/* media queries */ +@media (max-width: 768px) { + .split-pane { + flex-wrap: wrap; + } + .left, + .right { + width: 100% !important; + } + .split-line { + display: none; + } +}