Skip to content

Commit

Permalink
refactor(frontend): scss deprecated 警告に対応 (#14513)
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih authored Sep 6, 2024
1 parent f7398fa commit cdb0566
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 31 deletions.
6 changes: 3 additions & 3 deletions packages/frontend/src/components/MkModalWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ defineExpose({

--root-margin: 24px;

--headerHeight: 46px;
--headerHeightNarrow: 42px;

@media (max-width: 500px) {
--root-margin: 16px;
}

--headerHeight: 46px;
--headerHeightNarrow: 42px;
}

.header {
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/src/components/MkSuperMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ defineProps<{

&.grid {
> .group {
margin-left: 0;
margin-right: 0;

& + .group {
padding-top: 0;
border-top: none;
}

margin-left: 0;
margin-right: 0;

> .title {
font-size: 1em;
opacity: 0.7;
Expand Down
8 changes: 4 additions & 4 deletions packages/frontend/src/components/MkWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,6 @@ defineExpose({
.header {
--height: 39px;

&.mini {
--height: 32px;
}

display: flex;
position: relative;
z-index: 1;
Expand All @@ -524,6 +520,10 @@ defineExpose({
//border-bottom: solid 1px var(--divider);
font-size: 90%;
font-weight: bold;

&.mini {
--height: 32px;
}
}

.headerButton {
Expand Down
8 changes: 4 additions & 4 deletions packages/frontend/src/pages/admin/overview.users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ useInterval(fetch, 1000 * 60, {
.root {
&:global {
> .users {
.chart-move {
transition: transform 1s ease;
}

display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-gap: 12px;

.chart-move {
transition: transform 1s ease;
}

> .user:hover {
text-decoration: none;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/frontend/src/pages/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,12 @@ definePageMetadata(() => ({
.pageBannerTitleUser {
--height: 32px;
flex-shrink: 0;
line-height: var(--height);

.avatar {
height: var(--height);
width: var(--height);
}

line-height: var(--height);
}

.pageBannerTitleSubActions {
Expand Down
8 changes: 4 additions & 4 deletions packages/frontend/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
--minBottomSpacingMobile: calc(72px + max(12px, env(safe-area-inset-bottom, 0px)));
--minBottomSpacing: var(--minBottomSpacingMobile);

@media (max-width: 500px) {
--margin: var(--marginHalf);
}

//--ad: rgb(255 169 0 / 10%);
--eventFollow: #36aed2;
--eventRenote: #36d298;
Expand All @@ -29,6 +25,10 @@
--eventReaction: #e99a0b;
--eventAchievement: #cb9a11;
--eventOther: #88a6b7;

@media (max-width: 500px) {
--margin: var(--marginHalf);
}
}

::selection {
Expand Down
16 changes: 8 additions & 8 deletions packages/frontend/src/ui/_common_/statusbars.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ const XUserList = defineAsyncComponent(() => import('./statusbar-user-list.vue')
--nameMargin: 10px;
font-size: 0.85em;

display: flex;
vertical-align: bottom;
width: 100%;
line-height: var(--height);
height: var(--height);
overflow: clip;
contain: strict;

&.verySmall {
--nameMargin: 7px;
--height: 16px;
Expand All @@ -64,14 +72,6 @@ const XUserList = defineAsyncComponent(() => import('./statusbar-user-list.vue')
font-size: 0.9em;
}

display: flex;
vertical-align: bottom;
width: 100%;
line-height: var(--height);
height: var(--height);
overflow: clip;
contain: strict;

&.black {
background: #000;
color: #fff;
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/src/ui/deck/column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ function onDrop(ev) {

> .body {
background: transparent !important;
scrollbar-color: var(--scrollbarHandle) transparent;

&::-webkit-scrollbar-track {
background: transparent;
}
scrollbar-color: var(--scrollbarHandle) transparent;
}
}

Expand All @@ -338,11 +338,11 @@ function onDrop(ev) {
> .body {
background: var(--bg) !important;
overflow-y: scroll !important;
scrollbar-color: var(--scrollbarHandle) transparent;

&::-webkit-scrollbar-track {
background: inherit;
}
scrollbar-color: var(--scrollbarHandle) transparent;
}
}
}
Expand Down Expand Up @@ -423,10 +423,10 @@ function onDrop(ev) {
box-sizing: border-box;
container-type: size;
background-color: var(--bg);
scrollbar-color: var(--scrollbarHandle) var(--panel);

&::-webkit-scrollbar-track {
background: var(--panel);
}
scrollbar-color: var(--scrollbarHandle) var(--panel);
}
</style>

0 comments on commit cdb0566

Please sign in to comment.