-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
448 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 介绍 | ||
|
||
## 什么是 Island.js? | ||
|
||
🏝️ Island.js 是一个基于 Vite、React 和 MDX 的静态站点生成器。它的特点是**简单**、**强大**且**高性能**,旨在帮助你以最少的配置专注于编写和部署静态站点。它主要具有以下功能: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/runtime/theme-default/Layout/DocLayout/index.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$sidebarWidth: calc( | ||
var(--island-sidebar-width) + ((100vw - var(--island-layout-max-width)) / 2) | ||
); | ||
|
||
$sidebarPadding: calc(32px + (100vw - var(--island-layout-max-width)) / 2); | ||
|
||
.content { | ||
padding: 48px 24px; | ||
margin-left: calc( | ||
var(--island-sidebar-width) + ((100vw - var(--island-layout-max-width)) / 2) + | ||
48px | ||
); | ||
padding-right: $sidebarPadding; | ||
// 100 vw - sidebar 的宽度 - 右侧大纲栏的宽度 - padding-right | ||
max-width: calc(100vw - $sidebarWidth - var(--island-aside-width) - 100px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,5 @@ | |
32px, | ||
calc(32px + (100vw - var(--island-layout-max-width)) / 2) | ||
); | ||
background-color: var(--island-c-bg); | ||
} |
Oops, something went wrong.