Skip to content

Commit

Permalink
feat: update scss syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrkafuu committed Nov 5, 2024
1 parent 9a4fd01 commit a715083
Show file tree
Hide file tree
Showing 16 changed files with 117 additions and 115 deletions.
2 changes: 1 addition & 1 deletion src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
html,
body,
#root {
font-size: $font-size-base;
font-size: var.$font-size-base;
height: 100%;
width: 100%;
overflow: hidden;
Expand Down
10 changes: 5 additions & 5 deletions src/DevPanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ $devp-width: 3rem;

&-settings {
z-index: 1;
backdrop-filter: $filter;
font-size: $font-size-sm;
backdrop-filter: var.$filter;
font-size: var.$font-size-sm;
position: absolute;
width: $devp-width;
margin: 0 auto;
Expand All @@ -33,7 +33,7 @@ $devp-width: 3rem;

&-toggle {
width: $devp-width;
line-height: $size-form;
line-height: var.$size-form;
text-align: center;
cursor: pointer;
color: var(--color-settings-tab-fg);
Expand All @@ -49,7 +49,7 @@ $devp-width: 3rem;

&-content {
width: $devp-width;
padding: $padding-lg;
padding: var.$padding-lg;

&-row {
display: flex;
Expand All @@ -62,7 +62,7 @@ $devp-width: 3rem;
}

&-ctrl {
width: $size-form-minwidth;
width: var.$size-form-minwidth;
}
}
}
16 changes: 8 additions & 8 deletions src/SW.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
.sw {
margin-top: $padding-md;
font-size: $font-size-sm;
margin-top: var.$padding-md;
font-size: var.$font-size-sm;
flex: 0 0 auto;
width: 3.84rem;
display: flex;
backdrop-filter: $filter;
backdrop-filter: var.$filter;

&-text {
flex: 1 1 auto;
min-width: 0;
height: $size-form;
line-height: $size-form;
height: var.$size-form;
line-height: var.$size-form;
color: var(--color-encounter-fg);
background-color: var(--color-encounter-bg);
text-shadow: var(--shadow-encounter);
white-space: nowrap;
overflow: hidden;
padding: 0 $padding-xl;
padding: 0 var.$padding-xl;
text-align: center;
}

Expand All @@ -26,8 +26,8 @@
cursor: pointer;
position: relative;
flex: 0 0 auto;
height: $size-form;
width: $size-form;
height: var.$size-form;
width: var.$size-form;
display: flex;
justify-content: center;
align-items: center;
Expand Down
16 changes: 8 additions & 8 deletions src/components/SInput.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.s-input {
display: flex;
width: $size-form-minwidth;
height: $size-form;
line-height: $size-form;
width: var.$size-form-minwidth;
height: var.$size-form;
line-height: var.$size-form;
color: var(--color-form-fg);
background-color: var(--color-form-bg);

&-btn {
flex: 0 0 auto;
height: $size-form;
width: $size-form;
height: var.$size-form;
width: var.$size-form;
display: flex;
justify-content: center;
align-items: center;
Expand All @@ -34,9 +34,9 @@
outline: none;
color: var(--color-form-fg);
background-color: var(--color-form-bg);
height: $size-form;
line-height: $size-form;
padding: 0 $padding-md;
height: var.$size-form;
line-height: var.$size-form;
padding: 0 var.$padding-md;
user-select: auto;
text-align: center;
text-shadow: var(--shadow-form);
Expand Down
8 changes: 4 additions & 4 deletions src/components/SInputColor.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.s-input-color {
display: inline-block;
height: $size-form;
width: $size-form;
height: var.$size-form;
width: var.$size-form;
position: relative;
cursor: pointer;

Expand Down Expand Up @@ -30,10 +30,10 @@
z-index: 999;

&-bottom {
top: $size-form + $padding-md;
top: var.$size-form + var.$padding-md;
}
&-top {
bottom: $size-form + $padding-md;
bottom: var.$size-form + var.$padding-md;
}
}

Expand Down
12 changes: 6 additions & 6 deletions src/components/SInputNumber.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.s-input-number {
display: inline-flex;
height: $size-form;
min-width: $size-form-minwidth;
height: var.$size-form;
min-width: var.$size-form-minwidth;
color: var(--color-form-fg);
background-color: var(--color-form-bg);
text-shadow: var(--shadow-form);
Expand All @@ -13,15 +13,15 @@
div.value {
flex: 1 1 auto;
text-align: center;
height: $size-form;
line-height: $size-form;
height: var.$size-form;
line-height: var.$size-form;
padding-left: 0.04rem;
}

.btn {
flex: 0 0 auto;
height: $size-form;
width: $size-form;
height: var.$size-form;
width: var.$size-form;
display: flex;
justify-content: center;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/SList.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.s-list {
width: 100%;
font-size: $font-size-sm;
font-size: var.$font-size-sm;
padding: 0.04rem 0.06rem;

&-section {
Expand Down
18 changes: 9 additions & 9 deletions src/components/SSelect.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.s-select {
position: relative;
height: $size-form;
line-height: $size-form;
min-width: $size-form-minwidth;
height: var.$size-form;
line-height: var.$size-form;
min-width: var.$size-form-minwidth;
text-align: center;
cursor: pointer;
text-shadow: var(--shadow-form);
Expand All @@ -11,8 +11,8 @@
color: var(--color-form-fg);
background-color: var(--color-form-bg);
display: flex;
height: $size-form;
line-height: $size-form;
height: var.$size-form;
line-height: var.$size-form;

.disp {
flex: 1 1 auto;
Expand All @@ -21,8 +21,8 @@

.btn {
flex: 0 0 auto;
height: $size-form;
width: $size-form;
height: var.$size-form;
width: var.$size-form;
display: flex;
justify-content: center;
align-items: center;
Expand All @@ -45,10 +45,10 @@
width: 100%;

&-bottom {
top: $size-form;
top: var.$size-form;
}
&-top {
bottom: $size-form;
bottom: var.$size-form;
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/components/SSwitch.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.s-switch {
display: flex;
cursor: pointer;
height: $size-form;
min-width: $size-form * 2;
height: var.$size-form;
min-width: var.$size-form * 2;
display: flex;
color: var(--color-form-fg);
background-color: var(--color-form-bg);

.s-switch-btn {
flex: 0 0 auto;
height: $size-form;
width: $size-form;
height: var.$size-form;
width: var.$size-form;
display: flex;
justify-content: center;
align-items: center;
Expand Down
6 changes: 3 additions & 3 deletions src/scss/utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
color: var(--color-fg);
text-shadow: var(--shadow);
text-decoration: underline;
padding-left: $padding-sm;
padding-right: $padding-sm;
padding-left: var.$padding-sm;
padding-right: var.$padding-sm;

&:hover {
color: var(--color-form-fg-active);
Expand All @@ -24,6 +24,6 @@
}
.g-counter {
display: inline-block;
font-size: $font-size-xs;
font-size: var.$font-size-xs;
margin-left: 0.02rem;
}
2 changes: 1 addition & 1 deletion src/themes/ikegami.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ body[data-theme='ikegami'] {

.s-input-number,
.s-switch {
gap: $padding-md;
gap: var.$padding-md;

& > div {
border: 0.01rem solid #ffffff;
Expand Down
8 changes: 4 additions & 4 deletions src/themes/jround.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ body[data-theme='jround'] {
}

&-duration {
flex: 0 0 $size-form * 2 + 0.03rem;
width: $size-form * 2 + 0.03rem;
flex: 0 0 var.$size-form * 2 + 0.03rem;
width: var.$size-form * 2 + 0.03rem;
margin-right: 0.08rem;
}
&-btns {
Expand Down Expand Up @@ -159,8 +159,8 @@ body[data-theme='jround'] {

&-history-row {
border-radius: var(--border-radius-inner);
margin-left: $padding-lg;
margin-right: $padding-lg;
margin-left: var.$padding-lg;
margin-right: var.$padding-lg;
}
}

Expand Down
14 changes: 7 additions & 7 deletions src/views/Combatant.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
position: relative;
flex: 0 0 auto;
width: 1.2rem;
margin: 0 $padding-sm;
margin: 0 var.$padding-sm;
display: flex;
flex-direction: column;
color: var(--color-combatant-fg);
text-shadow: var(--shadow-combatant);

&-name,
&-bottom {
line-height: $size-form;
height: $size-form;
font-size: $font-size-sm;
line-height: var.$size-form;
height: var.$size-form;
font-size: var.$font-size-sm;
text-align: center;
white-space: nowrap;
display: flex;
Expand All @@ -25,7 +25,7 @@
cursor: pointer;

&--blured {
filter: $filter;
filter: var.$filter;
}
}

Expand Down Expand Up @@ -55,7 +55,7 @@
position: relative;
padding: 0.04rem 0.08rem;
background-color: var(--color-common);
backdrop-filter: $filter;
backdrop-filter: var.$filter;
cursor: pointer;

&-data {
Expand Down Expand Up @@ -98,7 +98,7 @@
right: 0;
// top: 0.50rem; // each ticker 0.04rem
z-index: 999;
backdrop-filter: $filter;
backdrop-filter: var.$filter;
background-color: var(--color-common);
}

Expand Down
Loading

0 comments on commit a715083

Please sign in to comment.