Skip to content

Commit

Permalink
修改cfop页
Browse files Browse the repository at this point in the history
  • Loading branch information
windshadow233 committed Jan 14, 2025
1 parent af6b103 commit c253a30
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
5 changes: 5 additions & 0 deletions source/_data/cfop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- algo_type: F2L
algo_name: 标态 F2L (First Two Layers)
page_name: F2L
id_prefix: f2l
algo_list:
- algo: (R U R')
- algo: y' (R U R')
Expand Down Expand Up @@ -46,6 +47,7 @@
- algo_type: F2L
algo_name: 非标态 F2L 或标态其他方向的解法
page_name: 进阶 F2L
id_prefix: f2l+
algo_list:
- algo: r' U' R U M'
- algo: F' r U r'
Expand All @@ -58,9 +60,11 @@
- algo: (R U R') (R' F R F') (R U' R')
- algo: (U R' U' R2) (U R2' U' R)
- algo: (U' R U R2') (U' R)
- algo: (U R' U' R2) (U R')
- algo_type: OLL
algo_name: OLL (Orientation of the Last Layer)
page_name: OLL
id_prefix: oll
algo_list:
- algo: (R U R' U) (R U2' R')
- algo: (R' U' R U') (R' U2' R)
Expand Down Expand Up @@ -116,6 +120,7 @@
- algo_type: PLL
algo_name: PLL (Permutation of the Last Layer)
page_name: PLL
id_prefix: pll
algo_list:
- algo: (R U' R) U (R U R U') (R' U' R2)
- algo: (R2' U) (R U R' U') (R3 U') (R' U R')
Expand Down
16 changes: 7 additions & 9 deletions themes/butterfly/layout/includes/page/cfop.pug
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,12 @@ style.
[data-theme="light"] .twisty-container twisty-player {
background: none;
}
.twisty-container .algo-text {
font-size: 12px;
text-align: center;
line-height: 110%;
twisty-alg-viewer .twisty-alg-alg {
margin: 10px 5px;
}
.twisty-container .algo-simulate{
width: calc(100% / 8 - 15px);
border: 4px double var(--fyz-theme);
margin-bottom: 20px;
border: 3px solid var(--fyz-theme);
display: flex;
flex-direction: column;
align-items: center;
Expand Down Expand Up @@ -137,16 +133,18 @@ if site.data.cfop
.category-page(data-index=index style=(index === 0 ? '' : 'display: none;'))
h2= category.algo_name
.twisty-container
- let algoCounter = 0;
each item in category.algo_list
- let id = category.id_prefix + '-' + algoCounter++;
.algo-simulate
twisty-player(
id=id,
alg=item.algo,
experimental-setup-anchor="end",
experimental-stickering=category.algo_type,
experimental-drag-input="auto",
viewer-link="none",
background="none",
visualization="PG3D"
visualization="3D"
)
.algo-text= item.algo

twisty-alg-viewer(for=id)

0 comments on commit c253a30

Please sign in to comment.