GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Pro版本更新4.4.9,修复一些问题。 · pigadmin/SKRoot-linuxKernelRoot@4aeaec0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Pro(众测开放中)/src/testModule/module_hide_data_dir/webroot
    • main.js
    • style.css
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Pro(众测开放中)/src/testModule/module_hide_data_dir/webroot/main.js‎

Copy file name to clipboardExpand all lines: Pro(众测开放中)/src/testModule/module_hide_data_dir/webroot/main.js
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const $btnOpenAdd = document.getElementById('btnOpenAdd');
1515
const $sheetLayer = document.getElementById('sheetLayer');
1616
const $sheetBackdrop = document.getElementById('sheetBackdrop');
1717
const $btnCloseSheet = document.getElementById('btnCloseSheet');
18+
const $modeSwitch = document.querySelector('.mode-switch');
1819
const $modeButtons = Array.from(document.querySelectorAll('.mode-option'));
1920
const $inputLabel = document.getElementById('inputLabel');
2021
const $ruleInput = document.getElementById('ruleInput');
@@ -242,6 +243,8 @@ function setMode(mode) {
242243
clearError();
243244
$ruleInput.value = '';
244245

246+
$modeSwitch.classList.toggle('path-active', mode === RULE_TYPE.PATH);
247+
245248
$modeButtons.forEach(button => {
246249
const active = button.dataset.mode === mode;
247250
button.classList.toggle('active', active);
Collapse file

‎Pro(众测开放中)/src/testModule/module_hide_data_dir/webroot/style.css‎

Copy file name to clipboardExpand all lines: Pro(众测开放中)/src/testModule/module_hide_data_dir/webroot/style.css
+24-3Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,16 +406,39 @@ body.sheet-open {
406406
}
407407

408408
.mode-switch {
409+
position: relative;
409410
display: grid;
410411
grid-template-columns: 1fr 1fr;
411412
gap: 6px;
412413
margin-top: 14px;
413414
padding: 4px;
415+
overflow: hidden;
414416
background: #f1f3f7;
415417
border-radius: 14px;
416418
}
417419

420+
/* 选中项底部滑块:从左向右平移,而不是切换背景淡入淡出 */
421+
.mode-switch::before {
422+
position: absolute;
423+
top: 4px;
424+
bottom: 4px;
425+
left: 4px;
426+
width: calc((100% - 14px) / 2);
427+
content: "";
428+
background: #fff;
429+
border-radius: 11px;
430+
box-shadow: 0 2px 8px rgba(15, 23, 42, .10);
431+
transform: translateX(0);
432+
transition: transform .28s cubic-bezier(.22, .82, .28, 1);
433+
}
434+
435+
.mode-switch.path-active::before {
436+
transform: translateX(calc(100% + 6px));
437+
}
438+
418439
.mode-option {
440+
position: relative;
441+
z-index: 1;
419442
display: flex;
420443
min-width: 0;
421444
height: 58px;
@@ -429,13 +452,11 @@ body.sheet-open {
429452
border: 0;
430453
border-radius: 11px;
431454
text-align: center;
432-
transition: color .16s ease, background .16s ease, box-shadow .16s ease;
455+
transition: color .18s ease;
433456
}
434457

435458
.mode-option.active {
436459
color: var(--text);
437-
background: #fff;
438-
box-shadow: 0 2px 8px rgba(15, 23, 42, .10);
439460
}
440461

441462
.mode-title {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.