-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: optimize examples style for doc (#3306)
- Loading branch information
1 parent
8fc0b72
commit 6317493
Showing
16 changed files
with
135 additions
and
140 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
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
37 changes: 17 additions & 20 deletions
37
sites/x6-sites/src/tutorial/basic/graph/auto-resize/index.less
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 |
---|---|---|
@@ -1,29 +1,26 @@ | ||
.app { | ||
.auto-resize-app { | ||
display: flex; | ||
width: 600px; | ||
height: 400px; | ||
padding: 0; | ||
padding: 16px 8px; | ||
font-family: sans-serif; | ||
} | ||
|
||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
} | ||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
} | ||
|
||
.full { | ||
width: 100%; | ||
height: 100%; | ||
.full { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} | ||
|
||
:global { | ||
.x6-split-box-horizontal > .x6-split-box-resizer, | ||
.x6-split-box-vertical > .x6-split-box-resizer { | ||
background: #e3e6e9; | ||
} | ||
} | ||
.x6-split-box-horizontal > .x6-split-box-resizer, | ||
.x6-split-box-vertical > .x6-split-box-resizer { | ||
background: #e3e6e9; | ||
} |
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
20 changes: 10 additions & 10 deletions
20
sites/x6-sites/src/tutorial/basic/graph/background-grid/index.less
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
.app { | ||
.backgournd-grid-app { | ||
display: flex; | ||
width: 100%; | ||
padding: 0; | ||
padding: 16px 8px; | ||
font-family: sans-serif; | ||
} | ||
|
||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
} | ||
} |
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
20 changes: 10 additions & 10 deletions
20
sites/x6-sites/src/tutorial/basic/graph/panning-mousewheel/index.less
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
.app { | ||
.panning-mousewheel-app { | ||
display: flex; | ||
width: 100%; | ||
padding: 0; | ||
padding: 16px 8px; | ||
font-family: sans-serif; | ||
} | ||
|
||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
} | ||
} |
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
31 changes: 15 additions & 16 deletions
31
sites/x6-sites/src/tutorial/basic/graph/transform/index.less
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 |
---|---|---|
@@ -1,21 +1,20 @@ | ||
.app { | ||
display: flex; | ||
flex-direction: column; | ||
.transform-app { | ||
width: 100%; | ||
padding: 0; | ||
padding: 16px 8px; | ||
font-family: sans-serif; | ||
} | ||
|
||
.app-btns { | ||
bottom: 0; | ||
padding: 0 8px; | ||
} | ||
.app-btns { | ||
bottom: 0; | ||
padding: 0 8px; | ||
} | ||
|
||
.app-content { | ||
height: 240px; | ||
margin-top: 16px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
.app-content { | ||
width: 100%; | ||
height: 240px; | ||
margin-top: 16px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
} | ||
} |
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
21 changes: 11 additions & 10 deletions
21
sites/x6-sites/src/tutorial/getting-started/helloworld/index.less
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
.app { | ||
.helloworld-app { | ||
display: flex; | ||
width: 100%; | ||
padding: 0; | ||
font-family: sans-serif; | ||
} | ||
|
||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
} | ||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
} | ||
} |
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
48 changes: 24 additions & 24 deletions
48
sites/x6-sites/src/tutorial/getting-started/react-shape/index.less
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
.app { | ||
.react-shape-app { | ||
display: flex; | ||
width: 100%; | ||
padding: 0; | ||
padding: 16px 8px; | ||
font-family: sans-serif; | ||
} | ||
|
||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
} | ||
.app-content { | ||
flex: 1; | ||
height: 280px; | ||
margin-right: 8px; | ||
margin-left: 8px; | ||
border-radius: 5px; | ||
box-shadow: 0 12px 5px -10px rgb(0 0 0 / 10%), 0 0 4px 0 rgb(0 0 0 / 10%); | ||
} | ||
|
||
.custom-react-node { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
border: 1px solid #8f8f8f; | ||
border-radius: 6px; | ||
} | ||
.custom-react-node { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
border: 1px solid #8f8f8f; | ||
border-radius: 6px; | ||
} | ||
|
||
.custom-react-node span { | ||
display: inline-block; | ||
width: 100%; | ||
height: 100%; | ||
.custom-react-node span { | ||
display: inline-block; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
} |
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
Oops, something went wrong.