mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
🎨 调整scss格式化
This commit is contained in:
@@ -37,7 +37,7 @@ rules:
|
||||
prettier/prettier: true
|
||||
property-no-vendor-prefix:
|
||||
- true
|
||||
- ignoreProperties: [backdrop-filter]
|
||||
- ignoreProperties: [-webkit-backdrop-filter]
|
||||
rule-empty-line-before:
|
||||
- always
|
||||
- except: ["first-nested"]
|
||||
|
||||
@@ -11,18 +11,14 @@ html #sentry-feedback {
|
||||
--foreground: var(--btn-text);
|
||||
--font-family: var(--font-text);
|
||||
--accent-background: var(--tgc-od-blue);
|
||||
|
||||
--dialog-color: var(--common-text-title);
|
||||
--dialog-background: var(--app-page-bg);
|
||||
|
||||
--input-color: var(--app-page-content);
|
||||
--input-border: 1px solid var(--common-shadow-1);
|
||||
|
||||
--button-color: var(--tgc-od-blue);
|
||||
--button-background: var(--app-side-bg);
|
||||
--button-hover-background: var(--box-bg-1);
|
||||
--button-primary-hover-background: var(--tgc-od-red);
|
||||
|
||||
--success-color: var(--tgc-od-green);
|
||||
--error-color: var(--tgc-od-red);
|
||||
--interactive-filter: none;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* @since Beta v0.9.0
|
||||
*/
|
||||
@use "sass:map";
|
||||
|
||||
/** 根据传入星级返回颜色 */
|
||||
@function get-od-star-color($star: 0) {
|
||||
$star-color-map: (
|
||||
@@ -12,8 +13,10 @@
|
||||
4: #c678ddff,
|
||||
5: #d19a66ff,
|
||||
);
|
||||
|
||||
@if map.has-key($star-color-map, $star) {
|
||||
@return map.get($star-color-map, $star);
|
||||
}
|
||||
|
||||
@return #e06c75ff;
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ defineExpose({ displayBox });
|
||||
height: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
|
||||
@@ -319,9 +319,9 @@ function getBox2(item: UgcHisCardBox): TItemBoxData {
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
color: var(--common-text-title);
|
||||
gap: 4px;
|
||||
font-family: var(--font-title);
|
||||
font-size: 20px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.ug-hisci-tag {
|
||||
|
||||
@@ -144,11 +144,11 @@ async function toOuter(item?: TGApp.App.Weapon.WikiBriefInfo): Promise<void> {
|
||||
.ww-list {
|
||||
position: relative;
|
||||
display: grid;
|
||||
overflow: hidden auto;
|
||||
width: 100%;
|
||||
padding-right: 8px;
|
||||
gap: 8px;
|
||||
grid-template-columns: repeat(3, 160px);
|
||||
overflow: hidden auto;
|
||||
}
|
||||
|
||||
.ww-detail {
|
||||
|
||||
Reference in New Issue
Block a user