mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(docs): documentation layout issue
- Update documentation layout to align with design
This commit is contained in:
@@ -42,10 +42,9 @@ const route = useRoute()
|
||||
}
|
||||
|
||||
.link {
|
||||
padding: 0.625rem 2rem 0.625rem 1.5rem;
|
||||
padding: 9px 16px;
|
||||
line-height: 1.5;
|
||||
font-size: 0.9rem;
|
||||
margin: 0 8px;
|
||||
border-radius: 8px;
|
||||
|
||||
.link-text {
|
||||
|
||||
@@ -33,7 +33,7 @@ const currentLink = computed(() => {
|
||||
|
||||
<template>
|
||||
<div class="navbar-wrapper">
|
||||
<div class="container">
|
||||
<div class="header-container">
|
||||
<div class="logo-container">
|
||||
<a :href="currentLink">
|
||||
<img
|
||||
@@ -70,7 +70,6 @@ const currentLink = computed(() => {
|
||||
}
|
||||
.logo {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ const sponsor = computed(() => sponsorLocale[lang.value])
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.sponsors {
|
||||
padding: 0.35rem 1.5rem 0.35rem 1.25rem;
|
||||
padding-bottom: 0.35rem;
|
||||
.sponsors-title {
|
||||
color: var(--text-color-lighter);
|
||||
font-weight: 300;
|
||||
|
||||
@@ -20,11 +20,10 @@
|
||||
padding: 0 32px;
|
||||
}
|
||||
|
||||
.container {
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin: 0 auto;
|
||||
max-width: var(--vp-screen-max-width);
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
@@ -32,6 +31,10 @@
|
||||
align-items: center;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
@include respond-to('xxl') {
|
||||
max-width: var(--vp-screen-max-width);
|
||||
}
|
||||
}
|
||||
|
||||
@include respond-to('md') {
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
z-index: var(--sidebar-z-index);
|
||||
width: var(--sidebar-width-xs);
|
||||
background-color: var(--bg-color);
|
||||
padding: 47px 32px 0;
|
||||
overflow-y: auto;
|
||||
transform: translate(-100%);
|
||||
transition: background-color 0.5s, opacity 0.25s,
|
||||
@@ -18,37 +19,11 @@
|
||||
transform: translate(0);
|
||||
}
|
||||
|
||||
// .nav.sponsors {
|
||||
// padding: 2rem 1.5rem 0 1.5rem;
|
||||
|
||||
// .sponsors-list {
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// padding: 0;
|
||||
// margin: 0;
|
||||
// }
|
||||
|
||||
// .sponsors-title {
|
||||
// margin-top: 0;
|
||||
// color: #777;
|
||||
// font-weight: 300;
|
||||
// font-size: 0.9rem;
|
||||
// }
|
||||
|
||||
// .sponsor-item {
|
||||
// margin-right: 0.5rem;
|
||||
// }
|
||||
|
||||
// img {
|
||||
// width: 2.2rem;
|
||||
// }
|
||||
// }
|
||||
|
||||
.sidebar-groups {
|
||||
padding: 0.75rem 0 5rem;
|
||||
|
||||
.sidebar-group__title {
|
||||
padding: 0.35rem 1.5rem 0.35rem 1.25rem;
|
||||
padding: 0.35rem 0;
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
@@ -75,7 +50,7 @@
|
||||
}
|
||||
|
||||
@include respond-to('xxl') {
|
||||
padding: 0 32px 96px calc((100% - var(--vp-screen-max-width)) / 2.2);
|
||||
padding: 0 32px 96px calc((100% - var(--vp-screen-max-width)) / 2);
|
||||
width: calc(
|
||||
(100% - var(--vp-screen-max-width)) / 2 + var(--vp-sidebar-width-small)
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// SCSS variables
|
||||
// breakpoints
|
||||
$breakpoint-xxl: 1440px !default;
|
||||
$breakpoint-xxl: 1680px !default;
|
||||
$breakpoint-xlg: 1280px !default;
|
||||
$breakpoint-lg: 960px !default;
|
||||
$breakpoint-md: 768px !default;
|
||||
|
||||
Reference in New Issue
Block a user