Max width: reduced, added to nav menu

This commit is contained in:
DarkCat09 2023-06-18 19:11:09 +04:00
parent 70b0893df8
commit 82d3214187
4 changed files with 17 additions and 2 deletions

View file

@ -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 {

View file

@ -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 {

View file

@ -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;

View file

@ -0,0 +1 @@
@max-width: 800px;