tiptap/docs/src/layouts/App/style.scss

164 lines
2.9 KiB
SCSS
Raw Normal View History

2020-04-23 03:57:26 +08:00
$navHeight: 4.5rem;
2020-04-23 18:22:59 +08:00
$menuBreakPoint: 750px;
2020-04-23 03:57:26 +08:00
2020-04-17 23:06:55 +08:00
.app {
display: flex;
flex-direction: column;
min-height: 100%;
2020-04-18 05:18:18 +08:00
&__logo {
font-weight: 700;
font-size: 1.4rem;
}
2020-04-18 18:48:20 +08:00
&__link-group {
margin-bottom: 2rem;
}
2020-08-13 16:26:11 +08:00
2020-04-18 18:48:20 +08:00
&__link-group-title {
font-weight: 700;
2020-04-18 23:05:29 +08:00
letter-spacing: 0.025rem;
2020-04-18 18:48:20 +08:00
font-size: 0.75rem;
text-transform: uppercase;
2020-04-19 05:53:05 +08:00
color: rgba($colorBlack, 0.3);
2020-04-18 18:48:20 +08:00
margin-bottom: 0.5rem;
}
2020-08-21 03:30:05 +08:00
&__link-list &__link-list {
display: none;
2020-08-21 03:30:05 +08:00
padding-left: 1rem;
margin-top: 0.5rem;
margin-bottom: 1.5rem;
border-left: 2px solid rgba($colorBlack, 0.1);
}
.active + &__link-list {
display: block;
}
2020-04-18 05:18:18 +08:00
&__link {
display: block;
padding: 0.1rem 0.5rem;
border-radius: 5px;
font-weight: 500;
2020-04-19 05:00:47 +08:00
color: rgba($colorBlack, 0.6);
2020-04-18 05:18:18 +08:00
margin-bottom: 0.2rem;
margin-left: -0.5rem;
&:hover {
color: $colorBlack;
2020-04-19 05:00:47 +08:00
}
&.active {
color: $colorBlack;
2020-04-18 05:18:18 +08:00
background-color: rgba($colorBlack, 0.05);
}
}
2020-04-17 23:06:55 +08:00
&__header {
2020-04-23 03:23:24 +08:00
align-self: center;
position: fixed;
2020-04-23 03:57:26 +08:00
top: 0;
2020-04-23 03:23:24 +08:00
z-index: 2;
2020-04-23 03:57:26 +08:00
display: flex;
align-items: center;
justify-content: center;
2020-04-23 03:23:24 +08:00
width: 100%;
2020-04-23 03:57:26 +08:00
height: $navHeight;
2020-04-17 23:06:55 +08:00
flex: 0 0 auto;
2020-04-23 03:23:24 +08:00
background-color: rgba($colorBackground, 0.8);
2020-04-23 03:57:26 +08:00
border-bottom: 1px solid rgba($colorBlack, 0.05);
2020-04-23 03:23:24 +08:00
backdrop-filter: blur(10px);
2020-04-17 23:06:55 +08:00
}
2020-08-13 16:26:11 +08:00
2020-04-23 03:57:26 +08:00
&__header-inner {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
max-width: 62rem;
margin: 0 auto;
padding: 0 1rem;
2020-04-23 18:22:59 +08:00
@media (min-width: $menuBreakPoint) {
2020-04-23 03:57:26 +08:00
padding: 0 2rem;
}
}
2020-04-17 23:06:55 +08:00
&__content {
2020-04-23 04:09:01 +08:00
position: relative;
z-index: 1;
2020-04-17 23:06:55 +08:00
flex: 1 1 auto;
2020-04-23 03:57:26 +08:00
display: flex;
width: 100%;
max-width: 62rem;
margin: 0 auto;
padding-left: 1rem;
padding-right: 1rem;
2020-04-23 18:22:59 +08:00
@media (min-width: $menuBreakPoint) {
2020-04-23 03:57:26 +08:00
padding-left: 2rem;
padding-right: 2rem;
}
2020-04-17 23:06:55 +08:00
}
2020-04-23 18:22:59 +08:00
&__menu-icon,
&__close-icon {
border: none;
padding: 0;
background-color: transparent;
margin-left: 1rem;
@media (min-width: $menuBreakPoint) {
display: none;
}
}
2020-04-23 03:23:24 +08:00
&__sidebar-wrapper {
2020-04-23 04:09:01 +08:00
position: fixed;
z-index: 2;
top: $navHeight;
bottom: 0;
left: 0;
right: 0;
background-color: $colorBackground;
padding-left: 1rem;
padding-right: 1rem;
2020-04-23 18:22:59 +08:00
visibility: hidden;
opacity: 0;
&.is-mobile-visible {
visibility: visible;
opacity: 1;
}
2020-08-13 16:26:11 +08:00
2020-04-23 18:22:59 +08:00
@media (min-width: $menuBreakPoint) {
visibility: visible;
opacity: 1;
2020-04-23 04:09:01 +08:00
position: sticky;
flex: 0 0 auto;
align-self: flex-start;
top: 0;
width: 18rem;
height: 100vh;
padding-left: 0;
padding-right: 0;
padding-right: 3rem;
padding-top: $navHeight;
2020-04-23 03:26:03 +08:00
}
2020-04-23 03:23:24 +08:00
}
&__sidebar {
overflow: auto;
height: 100%;
2020-04-23 03:57:26 +08:00
padding-top: 2rem;
padding-left: 0.5rem;
margin-left: -0.5rem;
2020-04-17 23:06:55 +08:00
}
&__main {
flex: 1 1 auto;
min-width: 0;
2020-04-23 03:57:26 +08:00
padding-top: $navHeight + 2rem;
2020-04-17 23:06:55 +08:00
}
}