improve layout
This commit is contained in:
@@ -1,14 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app">
|
<div class="app">
|
||||||
<header class="app__header">
|
<header class="app__header">
|
||||||
<g-link class="app__logo" to="/">
|
<div class="app__header-inner">
|
||||||
{{ $static.metadata.siteName }}
|
<g-link class="app__logo" to="/">
|
||||||
</g-link>
|
{{ $static.metadata.siteName }}
|
||||||
<github-button
|
</g-link>
|
||||||
href="https://github.com/scrumpy/tiptap"
|
<github-button
|
||||||
data-show-count="true"
|
href="https://github.com/scrumpy/tiptap"
|
||||||
aria-label="Star scrumpy/tiptap on GitHub"
|
data-show-count="true"
|
||||||
/>
|
aria-label="Star scrumpy/tiptap on GitHub"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="app__content">
|
<div class="app__content">
|
||||||
<div class="app__sidebar-wrapper">
|
<div class="app__sidebar-wrapper">
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
$navHeight: 4.5rem;
|
||||||
|
|
||||||
.app {
|
.app {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -40,33 +42,49 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__header,
|
|
||||||
&__content {
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
|
||||||
max-width: 62rem;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding-left: 2rem;
|
|
||||||
padding-right: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__header {
|
&__header {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 2;
|
|
||||||
width: 100%;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
|
z-index: 2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
|
height: $navHeight;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
background-color: rgba($colorBackground, 0.8);
|
||||||
|
border-bottom: 1px solid rgba($colorBlack, 0.05);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__header-inner {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding-top: 2rem;
|
max-width: 62rem;
|
||||||
padding-bottom: 2rem;
|
margin: 0 auto;
|
||||||
background-color: rgba($colorBackground, 0.8);
|
padding: 0 1rem;
|
||||||
backdrop-filter: blur(10px);
|
|
||||||
|
@media (min-width: 750px) {
|
||||||
|
padding: 0 2rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 62rem;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding-left: 1rem;
|
||||||
|
padding-right: 1rem;
|
||||||
|
|
||||||
|
@media (min-width: 750px) {
|
||||||
|
padding-left: 2rem;
|
||||||
|
padding-right: 2rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__sidebar-wrapper {
|
&__sidebar-wrapper {
|
||||||
@@ -77,7 +95,7 @@
|
|||||||
width: 18rem;
|
width: 18rem;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
padding-right: 3rem;
|
padding-right: 3rem;
|
||||||
padding-top: 100px;
|
padding-top: $navHeight;
|
||||||
|
|
||||||
@media (max-width: 750px) {
|
@media (max-width: 750px) {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -87,17 +105,14 @@
|
|||||||
&__sidebar {
|
&__sidebar {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
padding-top: 2rem;
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
margin-left: -0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__main {
|
&__main {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
padding-top: 100px;
|
padding-top: $navHeight + 2rem;
|
||||||
}
|
|
||||||
|
|
||||||
&__inner {
|
|
||||||
max-width: 62rem;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 0 2rem;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user