-
-
Notifications
You must be signed in to change notification settings - Fork 339
Refresh UI #911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh UI #911
Changes from 5 commits
88e10a9
ece780e
35bdbc0
c7eb9c9
7622fe0
2aaae00
8133b08
786ba76
b515662
c05bd0d
cf6f751
badc941
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| intro:我会显示出来:\:\,\.\;不信你看看 -hold; | ||
| WebGal:我会显示出来:\:\,\.\;不信你看看; | ||
| WebGAL:我会显示出来:\:\,\.\;不信你看看; | ||
| choose:我会显示出来:\:\,\.\;不信你看看; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| setVar:heroine=WebGAL; | ||
| setVar:egine=WebGAL; | ||
| setVar:engine=WebGAL; | ||
| choose:简体中文:demo_zh_cn.txt|日本語:demo_ja.txt|English:demo_en.txt|Test:function_test.txt; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,9 @@ | |
| //text-shadow: 0 0 3px rgba(81,168,221,1); | ||
| } | ||
|
|
||
| $height: 330px; | ||
| $baseHeight: 330px; | ||
| $topReserve: 100px; | ||
| $height: $baseHeight + $topReserve; | ||
|
|
||
| .TextBox_Container { | ||
| position: absolute; | ||
|
|
@@ -23,16 +25,16 @@ $height: 330px; | |
| .TextBox_main { | ||
| z-index: 3; | ||
| position: absolute; | ||
| right: 25px; | ||
| right: -2px; | ||
| min-height: $height; | ||
| max-height: $height; | ||
| background-blend-mode: darken; | ||
| border-radius: calc($height / 2) 20px 20px calc($height / 2); | ||
| bottom: 20px; | ||
| left: 275px; | ||
| border-radius: 0; | ||
| bottom: -2px; | ||
| left: 0; | ||
| font-weight: bold; | ||
| color: white; | ||
| padding: 1em 50px 70px 200px; | ||
| padding: calc(1em + #{$topReserve}) 50px 70px 490px; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
为了提高代码的可维护性,建议将这个值提取为一个 SCSS 变量。例如,在文件的顶部定义一个变量,然后在所有使用到该值的地方引用这个变量。 // 建议
$textBoxLeftOffset: 490px;
.TextBox_main {
// ...
padding: calc(1em + #{$topReserve}) 50px 70px $textBoxLeftOffset;
// ...
}
.TextBox_showName {
// ...
left: $textBoxLeftOffset;
// ...
}这样当需要调整布局时,只需修改一处即可。 |
||
| box-sizing: border-box; | ||
| display: flex; | ||
| flex-flow: column; | ||
|
|
@@ -42,12 +44,18 @@ $height: 330px; | |
| } | ||
|
|
||
| .TextBox_main_miniavatarOff { | ||
| left: 25px; | ||
| left: 0; | ||
| } | ||
|
|
||
| .TextBox_Background { | ||
| z-index: 2; | ||
| background: linear-gradient(rgba(245, 247, 250, 1) 0%, rgba(189, 198, 222, 1) 100%); | ||
| background-color: rgba(167, 186, 214, 0.28); | ||
| background-image: | ||
| linear-gradient(118deg, rgba(147, 165, 207, 0.9) 0%, rgba(182, 198, 222, 0.82) 48%, rgba(228, 239, 233, 0.82) 100%); | ||
| mask-image: | ||
| linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 0, rgba(0, 0, 0, 0.28) 10%, #000 75%), | ||
| linear-gradient(to right, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.28) 10%, #000 42%); | ||
| mask-composite: intersect; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
根据 MDN 文档,此属性需要用户手动开启实验性功能标志位才能在 Firefox 中使用,对于普通用户来说默认是关闭的。 为了保证跨浏览器体验的一致性,建议:
|
||
| } | ||
|
|
||
| @keyframes showSoftly { | ||
|
|
@@ -144,17 +152,18 @@ $height: 330px; | |
| font-size: 85%; | ||
| //border-bottom: 3px solid rgb(176, 176, 176); | ||
| //min-width: 25%; | ||
| padding: 0 2em 0 2em; | ||
| padding: 0 1em 10px 0; | ||
| min-width: 50%; | ||
| //margin: 0 0 0 0; | ||
| position: absolute; | ||
| left: 150px; | ||
| top: -68px; | ||
| height: 80px; | ||
| left: 490px; | ||
| top: 26px; | ||
| height: 90px; | ||
| line-height: 68px; | ||
| //display: flex; | ||
| //align-items: center; | ||
| // background: rgba(11, 52, 110, 0.9); | ||
| border-radius: 40px; | ||
| border-radius: 0; | ||
| // border: 4px solid rgba(255, 255, 255, 0.75); | ||
| // box-shadow: 3px 3px 10px rgba(100, 100, 100, 0.5); | ||
| z-index: 3; | ||
|
|
@@ -163,9 +172,21 @@ $height: 330px; | |
|
|
||
| .TextBox_ShowName_Background { | ||
| z-index: 2; | ||
| background: rgba(11, 52, 110, 1); | ||
| border: 4px solid rgba(255, 255, 255, 0.75); | ||
| box-shadow: 3px 3px 10px rgba(100, 100, 100, 0.5); | ||
| background: transparent; | ||
| border: 0; | ||
| border-bottom: 3px solid transparent; | ||
| border-image: linear-gradient( | ||
| to right, | ||
| rgba(255, 255, 255, 0.2) 0%, | ||
| rgba(255, 255, 255, 0.5) 5%, | ||
| rgba(255, 255, 255, 0) 100% | ||
| ) | ||
| 1; | ||
| box-shadow: none; | ||
| -webkit-backdrop-filter: none; | ||
| backdrop-filter: none; | ||
| -webkit-mask-image: none; | ||
| mask-image: none; | ||
| } | ||
|
|
||
| @keyframes TextDelayShow { | ||
|
|
@@ -183,9 +204,8 @@ $height: 330px; | |
| height: 450px; | ||
| width: 450px; | ||
| bottom: 0; | ||
| left: -250px; | ||
| border-radius: 100% 0 0 100%; | ||
| overflow: hidden; | ||
| left: 0; | ||
| overflow: visible; | ||
| } | ||
|
|
||
| .miniAvatarImg { | ||
|
|
@@ -206,28 +226,18 @@ $height: 330px; | |
| position: absolute; | ||
| left: 0; | ||
| top: 0; | ||
| //background-image: linear-gradient(rgba(255, 255, 255, 1) 0%, rgb(225, 237, 255) 100%); | ||
| //background-image: linear-gradient( | ||
| // #bfd8ff 0%, | ||
| // //#f5f7fa 45%, | ||
| // #bfbfc7 100% | ||
| //); | ||
| background: linear-gradient(150deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 35%, rgb(165, 212, 228) 100%); | ||
| //background: rgba(255, 255, 255, 1); | ||
| background-clip: text; | ||
| -webkit-background-clip: text; | ||
| color: transparent; | ||
| color: #0b346e; | ||
| z-index: 2; | ||
| text-shadow: 0 2px 8px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.18); | ||
| } | ||
|
|
||
| .innerName { | ||
| position: absolute; | ||
| left: 0; | ||
| top: 0; | ||
| //-webkit-text-stroke: 0.1em rgba(0, 0, 0, 0.25); | ||
| //-webkit-text-stroke: 0.1em rgba(255, 255, 255, 1); | ||
| -webkit-text-stroke: 0.08em rgba(255, 255, 255, 0.98); | ||
| z-index: 1; | ||
| //text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75); | ||
| text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); | ||
| } | ||
|
|
||
| .text { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我不太建议直接动任何 module.scss,它们是底样式,永远存在于样式表里,很容易影响用户的模板,应该只把更改限制在 public/game/template 中