Skip to content

Commit

Permalink
Merge pull request #136 from Laravel-Lang/5.x
Browse files Browse the repository at this point in the history
[docs]: Improved styles
  • Loading branch information
andrey-helldar authored Nov 14, 2023
2 parents affba1e + 81888a7 commit 83e13d3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
7 changes: 7 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {defaultTheme, viteBundler} from 'vuepress'
import {docsearchPlugin} from '@vuepress/plugin-docsearch'
import {containerPlugin} from '@vuepress/plugin-container'
import {githubLinkifyPlugin} from 'vuepress-plugin-github-linkify'
import {copyCodePlugin} from "vuepress-plugin-copy-code2";
import {prismjsPlugin} from '@vuepress/plugin-prismjs'

dotenv.config()

Expand Down Expand Up @@ -179,6 +181,11 @@ module.exports = {

githubLinkifyPlugin({
repo: 'Laravel-Lang/common'
}),

copyCodePlugin(),
prismjsPlugin({
preloadLanguages: ['markdown', 'yaml', 'php', 'shell', 'bash']
})
]
}
10 changes: 10 additions & 0 deletions docs/.vuepress/styles/_tables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@charset "UTF-8";

table {
display: table;
width: 100%;

thead {
background: var(--c-bg-light);
}
}
8 changes: 8 additions & 0 deletions docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@charset "UTF-8";

@import "fonts";
@import "tables";

:root {
--content-width: 75%;
Expand All @@ -23,6 +24,13 @@
}
}

html.dark {
--c-brand: #0e98d7;
--c-brand-light: #0e98d7;

--c-tip: var(--c-brand);
}

.code-group {
&__nav-tab {
font-family: Nunito, system-ui, sans-serif;
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
"docs"
],
"devDependencies": {
"@vuepress/plugin-container": "2.0.0-beta.67",
"@vuepress/plugin-docsearch": "2.0.0-beta.67",
"@vuepress/plugin-container": "2.0.0-beta.68",
"@vuepress/plugin-docsearch": "2.0.0-beta.68",
"@vuepress/plugin-prismjs": "^2.0.0-beta.68",
"dotenv": "^16.3.1",
"vuepress": "2.0.0-beta.67",
"vuepress": "2.0.0-beta.68",
"vuepress-plugin-copy-code2": "^2.0.0-beta.250",
"vuepress-plugin-github-linkify": "^1.2.3"
},
"engines": {
Expand Down

0 comments on commit 83e13d3

Please sign in to comment.