Skip to content

Commit

Permalink
Merge pull request #80 from /issues/62-feat-responsive-codesPage
Browse files Browse the repository at this point in the history
feat: 「鑑賞する」画面のレスポンシブ対応
  • Loading branch information
SatooRu65536 authored Nov 19, 2024
2 parents 7c43a24 + 90366cb commit 27146b2
Showing 1 changed file with 34 additions and 5 deletions.
39 changes: 34 additions & 5 deletions src/app/(use-header)/codes/_components/view/Page/Card.module.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
.container {
padding: 20px 50px;
padding: min(15px, 2.5%) min(50px, 5%);
border: solid 1.5px #333; /*線の種類・太さ・色*/
width: 100%;
width: 95%;
max-width: 800px;
border-radius: 10px; /*角の丸み*/

h1 {
font-size: $font-size-lg;
}

.tags {
display: flex;
justify-content: start;
p {
padding: 0.5px 15px;
border: solid 2px #333; /*線の種類・太さ・色*/
border-radius: 10px; /*角の丸み*/
padding: 0.5px min(15px, 3%);
background-color: #e3e3e3;
border-radius: 6px;
}
}

Expand Down Expand Up @@ -67,3 +71,28 @@
}
}
}

@media (max-width: 540px) {
.container {
h1 {
font-size: $font-size-md;
}

p {
font-size: $font-size-sm;
}

img {
width: 24px;
height: 24px;
}

button {
font-size: $font-size-xs;
}

span {
font-size: $font-size-sm;
}
}
}

0 comments on commit 27146b2

Please sign in to comment.