注册 登录
n/program · 2024-12-04 · 446 次浏览
u/Str荣誉会员王者
n/programu/Str 荣誉会员 · 2024-12-04

写窗口给我脑子差点烧了

在写增强脚本的设置页面,艰难的写css……


说实话写出来只是时间问题,不过我快被css干晕了
很难想象 flarum 开发人员的精神状态

设置页面的ui工程量真的大,我打算是这样子的结构
~~
(随便起的草稿,请以实际为准)

</i>    #NL_settings {
position: fixed;
z-index: 114514;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #00000010;
display: flex;
justify-content: center;
align-items: center;
}
#NL_settings &gt; .s-window {
z-index: 1919810;
width: 600px;
height: 400px;
background: #ffffff;
border-radius: 8px;
display: flex;
flex-direction: column;
}
#NL_settings &gt; .s-window &gt; .s-topbar {
background: #00000005;
display: flex;
justify-content: flex-end;
}
#NL_settings &gt; .s-window &gt; .s-topbar &gt; .s-title {
width: 100%;
font-weight: bold;
font-size: 16px;
padding: 8px 16px;
}
#NL_settings &gt; .s-window &gt; .s-body {
height: 100%;
}
@media (max-width: 768px) {
#NL_settings &gt; .s-window {
width: 100%;
height: 100%;
border-radius: 0px !important;
}
}<i>
</i><e>```</e></r>
0
7
登录后参与讨论。

7 条回复

排序
  1. James 💯 传奇 MANAGER 2024-12-04

    @"[已注销]"#p172700 让GPT帮你写

    0
  2. Str 荣誉会员 王者 楼主 2024-12-04

    @"James"#p172701 gpt看不懂图啊,现在gpt的图片识别问题很大,不过我记得好像有个网页能根据图片生成css……不过这得看美工了

    0
  3. TaoXu 白银 2024-12-04

    这个用claude或gpt不是很快就搞定了吗

    0
  4. enjiiG 白银 2024-12-04

    找个UI框架套套皮换换颜色应该挺容易解决

    0
  5. Str 荣誉会员 王者 楼主 2024-12-05

    @"TaoXu"#p173092 主题不符合啊,比如那些GenTo弹窗一看就不是NL的,而且nl有webpack(flarum论坛都这样子),还没法直接用flarum提供的

    0
  6. Str 荣誉会员 王者 楼主 2024-12-05

    @"enjiiG"#p173096 感觉可以?

    0
  7. enjiiG 白银 2024-12-05

    @"[已注销]"#p173425 除非需求特别专不然大部分都能解决吧,起码会比自己死磕好很多捏

    0