diff --git a/src/main/resources/views/layouts/platform.html b/src/main/resources/views/layouts/platform.html index 444d5f7f..7a90c3ce 100644 --- a/src/main/resources/views/layouts/platform.html +++ b/src/main/resources/views/layouts/platform.html @@ -115,22 +115,82 @@ layout("/layouts/v4/baseLayout.html"){ height: 100%; } + + /* 悬浮菜单按钮样式 */ + .menu-toggle-btn { + display: none; + position: fixed; + bottom: 20px; + right: 20px; + width: 50px; + height: 50px; + border-radius: 50%; + background-color: rgb(64 109 157); + color: white; + text-align: center; + line-height: 50px; + font-size: 24px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + z-index: 1000; + cursor: pointer; + transition: all 0.3s ease; + } + + .menu-toggle-btn:hover { + background-color: rgb(54 99 147); + transform: scale(1.05); + } + + .menu-toggle-btn.active { + background-color: #d9534f; + } + + /* 菜单遮罩层样式 */ + .menu-overlay { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.5); + z-index: 998; + } + @media (max-width: 768px) { - .sub-app-container { - flex-direction: column; - } - .sidebar-menu { - width: 100%; + position: fixed; + top: 64px; + left: -100%; + width: 40%; + z-index: 999; + transition: left 0.3s ease; + box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); } - .sub-app-container-main-content { + .sidebar-menu.show { + left: 0; + } + + .menu-toggle-btn { + display: block; + } + + .menu-overlay.show { + display: block; + } + + .main-content { padding: 20px; + width: 100%; } }
+ + +