Max width: reduced, added to nav menu
This commit is contained in:
parent
70b0893df8
commit
82d3214187
4 changed files with 17 additions and 2 deletions
|
@ -24,6 +24,14 @@ const { name, link, icon } = Astro.props;
|
||||||
// 0.6rem = horizontal padding
|
// 0.6rem = horizontal padding
|
||||||
padding: 0 0.6rem;
|
padding: 0 0.6rem;
|
||||||
font-size: 1.15rem;
|
font-size: 1.15rem;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -25,6 +25,7 @@ const { title, description } = Astro.props;
|
||||||
|
|
||||||
<style lang="less" is:global>
|
<style lang="less" is:global>
|
||||||
@import "/src/styles/theme.less";
|
@import "/src/styles/theme.less";
|
||||||
|
@import "/src/styles/max_width.less";
|
||||||
|
|
||||||
body {
|
body {
|
||||||
.theme-mixin();
|
.theme-mixin();
|
||||||
|
@ -43,7 +44,7 @@ const { title, description } = Astro.props;
|
||||||
main {
|
main {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 0.25rem;
|
padding: 0.25rem;
|
||||||
max-width: 300rem;
|
max-width: @max-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
article {
|
article {
|
||||||
|
|
|
@ -14,8 +14,13 @@ import ThemeModal from "../components/ThemeModal.astro";
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
@import "/src/styles/max_width.less";
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
margin: 0.4rem;
|
margin: 0.4rem auto;
|
||||||
|
max-width: @max-width;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
1
src/styles/max_width.less
Normal file
1
src/styles/max_width.less
Normal file
|
@ -0,0 +1 @@
|
||||||
|
@max-width: 800px;
|
Loading…
Add table
Reference in a new issue