Skip to content

Commit

Permalink
fix(search): 모바일 환경에서 폰트 축소, 섬네일 이미지 생략, 문서 리스트 width 증가
Browse files Browse the repository at this point in the history
  • Loading branch information
5ewon committed Apr 13, 2024
1 parent 8200f98 commit b15a282
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion app/search/[keyword]/style.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { flex, font, theme } from "@/styles";
import { flex, font, theme, screen } from "@/styles";
import { style } from "@vanilla-extract/css";

export const container = style({
Expand All @@ -18,6 +18,12 @@ export const docs = style({
height: "100px",
gap: "8px",
...flex.COLUMN_HORIZONTAL,

"@media": {
[`screen and (max-width: ${screen.phone})`]: {
width: "100%",
},
},
});

export const titleBox = style({
Expand All @@ -28,11 +34,23 @@ export const titleBox = style({
export const lastModifiedAt = style({
color: theme.boldgray,
...font.p2,

"@media": {
[`screen and (max-width: ${screen.phone})`]: {
...font.p4,
},
},
});

export const title = style({
color: theme.primary,
...font.H4,

"@media": {
[`screen and (max-width: ${screen.phone})`]: {
...font.H6,
},
},
});

export const simpleContents = style({
Expand All @@ -41,6 +59,12 @@ export const simpleContents = style({

export const thumbnail = style({
objectFit: "cover",

"@media": {
[`screen and (max-width: ${screen.phone})`]: {
display: "none",
},
},
});

export const searchNotFoundBox = style({
Expand Down

0 comments on commit b15a282

Please sign in to comment.