refactor(frontend): scss deprecated 警告に対応 (#14513)

This commit is contained in:
かっこかり 2024-09-06 16:12:14 +09:00 committed by GitHub
parent f7398faeac
commit cdb0566c5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 30 additions and 31 deletions

View File

@ -94,12 +94,12 @@ defineExpose({
--root-margin: 24px; --root-margin: 24px;
--headerHeight: 46px;
--headerHeightNarrow: 42px;
@media (max-width: 500px) { @media (max-width: 500px) {
--root-margin: 16px; --root-margin: 16px;
} }
--headerHeight: 46px;
--headerHeightNarrow: 42px;
} }
.header { .header {

View File

@ -100,14 +100,14 @@ defineProps<{
&.grid { &.grid {
> .group { > .group {
margin-left: 0;
margin-right: 0;
& + .group { & + .group {
padding-top: 0; padding-top: 0;
border-top: none; border-top: none;
} }
margin-left: 0;
margin-right: 0;
> .title { > .title {
font-size: 1em; font-size: 1em;
opacity: 0.7; opacity: 0.7;

View File

@ -508,10 +508,6 @@ defineExpose({
.header { .header {
--height: 39px; --height: 39px;
&.mini {
--height: 32px;
}
display: flex; display: flex;
position: relative; position: relative;
z-index: 1; z-index: 1;
@ -524,6 +520,10 @@ defineExpose({
//border-bottom: solid 1px var(--divider); //border-bottom: solid 1px var(--divider);
font-size: 90%; font-size: 90%;
font-weight: bold; font-weight: bold;
&.mini {
--height: 32px;
}
} }
.headerButton { .headerButton {

View File

@ -47,14 +47,14 @@ useInterval(fetch, 1000 * 60, {
.root { .root {
&:global { &:global {
> .users { > .users {
.chart-move {
transition: transform 1s ease;
}
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-gap: 12px; grid-gap: 12px;
.chart-move {
transition: transform 1s ease;
}
> .user:hover { > .user:hover {
text-decoration: none; text-decoration: none;
} }

View File

@ -433,13 +433,12 @@ definePageMetadata(() => ({
.pageBannerTitleUser { .pageBannerTitleUser {
--height: 32px; --height: 32px;
flex-shrink: 0; flex-shrink: 0;
line-height: var(--height);
.avatar { .avatar {
height: var(--height); height: var(--height);
width: var(--height); width: var(--height);
} }
line-height: var(--height);
} }
.pageBannerTitleSubActions { .pageBannerTitleSubActions {

View File

@ -17,10 +17,6 @@
--minBottomSpacingMobile: calc(72px + max(12px, env(safe-area-inset-bottom, 0px))); --minBottomSpacingMobile: calc(72px + max(12px, env(safe-area-inset-bottom, 0px)));
--minBottomSpacing: var(--minBottomSpacingMobile); --minBottomSpacing: var(--minBottomSpacingMobile);
@media (max-width: 500px) {
--margin: var(--marginHalf);
}
//--ad: rgb(255 169 0 / 10%); //--ad: rgb(255 169 0 / 10%);
--eventFollow: #36aed2; --eventFollow: #36aed2;
--eventRenote: #36d298; --eventRenote: #36d298;
@ -29,6 +25,10 @@
--eventReaction: #e99a0b; --eventReaction: #e99a0b;
--eventAchievement: #cb9a11; --eventAchievement: #cb9a11;
--eventOther: #88a6b7; --eventOther: #88a6b7;
@media (max-width: 500px) {
--margin: var(--marginHalf);
}
} }
::selection { ::selection {

View File

@ -40,6 +40,14 @@ const XUserList = defineAsyncComponent(() => import('./statusbar-user-list.vue')
--nameMargin: 10px; --nameMargin: 10px;
font-size: 0.85em; font-size: 0.85em;
display: flex;
vertical-align: bottom;
width: 100%;
line-height: var(--height);
height: var(--height);
overflow: clip;
contain: strict;
&.verySmall { &.verySmall {
--nameMargin: 7px; --nameMargin: 7px;
--height: 16px; --height: 16px;
@ -64,14 +72,6 @@ const XUserList = defineAsyncComponent(() => import('./statusbar-user-list.vue')
font-size: 0.9em; font-size: 0.9em;
} }
display: flex;
vertical-align: bottom;
width: 100%;
line-height: var(--height);
height: var(--height);
overflow: clip;
contain: strict;
&.black { &.black {
background: #000; background: #000;
color: #fff; color: #fff;

View File

@ -324,11 +324,11 @@ function onDrop(ev) {
> .body { > .body {
background: transparent !important; background: transparent !important;
scrollbar-color: var(--scrollbarHandle) transparent;
&::-webkit-scrollbar-track { &::-webkit-scrollbar-track {
background: transparent; background: transparent;
} }
scrollbar-color: var(--scrollbarHandle) transparent;
} }
} }
@ -338,11 +338,11 @@ function onDrop(ev) {
> .body { > .body {
background: var(--bg) !important; background: var(--bg) !important;
overflow-y: scroll !important; overflow-y: scroll !important;
scrollbar-color: var(--scrollbarHandle) transparent;
&::-webkit-scrollbar-track { &::-webkit-scrollbar-track {
background: inherit; background: inherit;
} }
scrollbar-color: var(--scrollbarHandle) transparent;
} }
} }
} }
@ -423,10 +423,10 @@ function onDrop(ev) {
box-sizing: border-box; box-sizing: border-box;
container-type: size; container-type: size;
background-color: var(--bg); background-color: var(--bg);
scrollbar-color: var(--scrollbarHandle) var(--panel);
&::-webkit-scrollbar-track { &::-webkit-scrollbar-track {
background: var(--panel); background: var(--panel);
} }
scrollbar-color: var(--scrollbarHandle) var(--panel);
} }
</style> </style>