菜单显示,登录卡片 #20

Merged
Ghost merged 1 commits from wanghy into master 2026-08-07 18:17:18 +08:00
3 changed files with 26 additions and 15 deletions
+5 -5
View File
@@ -22,7 +22,7 @@
<menuitem id="menu_yuthon_education_root"
name="学习管理"
web_icon="college,static/src/img/education.png"
sequence="10"/>
sequence="4"/>
<!-- ===================== 课程管理 ===================== -->
<menuitem id="menu_yuthon_course_root"
@@ -51,7 +51,7 @@
name="我的课程"
web_icon="college,static/src/img/my_course.png"
action="action_yuthon_school_my_course_student"
sequence="18"
sequence="2"
groups="college.group_student"/>
<!-- 课程学习:学生端专用(简单表单 + 去学习按钮) -->
@@ -59,7 +59,7 @@
name="课程学习"
web_icon="college,static/src/img/course_study.png"
action="action_yuthon_school_course_study"
sequence="19"
sequence="3"
groups="college.group_student"/>
<!-- ===================== 师生管理(顶级菜单,与「教育」平级,仅老师/管理员) ===================== -->
@@ -157,11 +157,11 @@
<field name="target">current</field>
</record>
<!-- ===================== 关于(顶级菜单,放在「组织架构」后面) ===================== -->
<!-- ===================== 关于(顶级菜单,按截图顺序排在「我的实训」之后) ===================== -->
<menuitem id="menu_yuthon_about"
name="关于"
web_icon="college,static/src/img/about.png"
sequence="30"
sequence="99"
groups="college.group_teacher,college.group_student,base.group_system"/>
<menuitem id="menu_yuthon_about_system"
name="系统说明"
+20 -9
View File
@@ -29,27 +29,38 @@ html body.bg-100 {
background-size: cover;
}
/* 登录卡片:纯白实底 + 圆角 + 阴影,覆盖第三方主题
同时覆盖「数据库选择页(.o_database_list)」与「登录页(.oe_login_form)」两种卡片 */
/* 登录卡片:核心修复
真相(用户 F12 确认):
.o_database_list 是 <div class="card ...">,内嵌 <div class="card-body">
udoo_om_ux/style_login_page.scss:
- line 12-14: .o_database_list { border-radius: 16px !important; border; box-shadow }
- line 16-17: .card-body { border-radius: 16px !important }
两层都有 border-radius + padding → 视觉"壳子"。
修复策略:让 .o_database_list 完全透明(无 border/box-shadow/bg),所有视觉
样式给 .card-body,card 与 card-body 融为一体。 */
html body.light-dm main:has(.o_database_list) .o_database_list,
html body.light-dm .oe_login_form,
.edu-login-card {
position: relative !important;
z-index: 10 !important;
max-width: 420px !important;
margin: 0 auto;
margin: 0 auto !important;
margin-top: 0 !important;
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* 所有视觉样式集中在 .card-body:白底 + 圆角 + 阴影 + padding */
html body.light-dm main:has(.o_database_list) .o_database_list > .card-body {
background-color: #ffffff !important;
border-radius: 22px !important;
border: 1px solid rgba(226, 232, 240, 0.8) !important;
box-shadow: 0 24px 70px rgba(79, 70, 229, 0.22) !important;
background-color: #ffffff !important;
padding: 2rem 1.5rem !important;
overflow: hidden;
}
/* 数据库选择卡片内部 .card-body 也强制白底,防止透出背景图 */
html body.light-dm main:has(.o_database_list) .o_database_list > .card-body {
background-color: #ffffff !important;
}
/* 品牌标题区(我们注入的内容,不受主题作用域影响) */
.edu-login-head {
text-align: center;
+1 -1
View File
@@ -3,7 +3,7 @@
<!-- 在表单最顶部插入品牌标题 -->
<xpath expr="//form[@role='form']/input[@name='csrf_token']" position="before">
<div class="edu-login-head">
<div class="edu-login-brand">Odoo实训平台</div>
<div class="edu-login-brand">Python企业级实训平台</div>
<h1 class="edu-login-title">欢迎登录</h1>
</div>
</xpath>