diff --git a/src/components/Pagination/index.module.css b/src/components/Pagination/index.module.css index dcf0509..c994f31 100644 --- a/src/components/Pagination/index.module.css +++ b/src/components/Pagination/index.module.css @@ -2,23 +2,23 @@ display: flex; align-items: center; justify-content: center; - gap: 8px; + gap: .5rem; flex-wrap: wrap; } .item, .itemActive, .arrow { - width: 45px; - height: 45px; + width: 2.8125rem; + height: 2.8125rem; display: inline-flex; align-items: center; justify-content: center; - border-radius: 5px; - border: 1px solid #e0e0e0; + border-radius: .3125rem; + border: .0625rem solid #e0e0e0; background: #fff; color: #222; - font-size: 14px; + font-size: .875rem; font-weight: 500; font-family: inherit; cursor: pointer; @@ -54,13 +54,13 @@ } .ellipsis { - width: 45px; - height: 45px; + width: 2.8125rem; + height: 2.8125rem; font-weight: 400; - font-size: 20px; + font-size: 1.25rem; color: rgba(0, 0, 0, 0.25); - line-height: 45px; - letter-spacing: 2px; + line-height: 2.8125rem; + letter-spacing: .125rem; text-align: center; font-style: normal; text-transform: none; diff --git a/src/components/ScreenOpen/index.module.css b/src/components/ScreenOpen/index.module.css index 78bb7cc..7c7ccfc 100644 --- a/src/components/ScreenOpen/index.module.css +++ b/src/components/ScreenOpen/index.module.css @@ -15,7 +15,7 @@ flex-direction: row; overflow: hidden; img { - width: 100px; + width: 6.25rem; } } diff --git a/src/components/SineWaveTimeline/index.module.css b/src/components/SineWaveTimeline/index.module.css index 2d880bc..804a247 100644 --- a/src/components/SineWaveTimeline/index.module.css +++ b/src/components/SineWaveTimeline/index.module.css @@ -48,18 +48,18 @@ .labelBlock { position: absolute; pointer-events: auto; - min-width: 160px; - max-width: 550px; - min-height: 200px; - padding: 0 20px; + min-width: 10rem; + max-width: 34.375rem; + min-height: 12.5rem; + padding: 0 1.25rem; } .labelBlock.top { - margin-bottom: 4px; + margin-bottom: .25rem; } .labelBlock.bottom { - margin-top: 4px; + margin-top: .25rem; display: flex; flex-direction: column; justify-content: flex-end; @@ -69,20 +69,20 @@ font-size: 1.125rem; font-weight: 600; color: #14355c; - margin-bottom: 6px; + margin-bottom: .375rem; line-height: 1.3; } .labelList { margin: 0; - font-size: 0.875rem; + font-size: .875rem; line-height: 1.6; color: #333; list-style: disc; } .labelList li { - margin-bottom: 4px; + margin-bottom: .25rem; list-style: disc; margin-left: 1.25em; } diff --git a/src/components/YearPicker/YearPicker.module.css b/src/components/YearPicker/YearPicker.module.css index 6d9036f..d2fb16d 100644 --- a/src/components/YearPicker/YearPicker.module.css +++ b/src/components/YearPicker/YearPicker.module.css @@ -8,12 +8,12 @@ display: flex; align-items: center; justify-content: space-between; - gap: 0.5rem; - padding: 0.5rem 0.6875rem; + gap: .5rem; + padding: .5rem .6875rem; background: #14355C; color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); - border-radius: 0.375rem; + border-radius: .375rem; cursor: pointer; user-select: none; } @@ -58,10 +58,10 @@ width: 1rem; height: 1rem; color: rgba(255, 255, 255, 0.85); - font-size: 0.875rem; + font-size: .875rem; line-height: 1; cursor: pointer; - border-radius: 0.125rem; + border-radius: .125rem; } .clear:hover { @@ -80,23 +80,23 @@ .panel { position: absolute; - top: calc(100% + 0.25rem); + top: calc(100% + .25rem); left: 0; z-index: 1050; min-width: 13.75rem; - padding: 0.75rem; + padding: .75rem; background: #14355C; border: 1px solid rgba(255, 255, 255, 0.25); - border-radius: 0.5rem; - box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.3); + border-radius: .5rem; + box-shadow: 0 .375rem 1rem rgba(0, 0, 0, 0.3); } .header { display: flex; align-items: center; justify-content: space-between; - margin-bottom: 0.75rem; - padding: 0 0.25rem; + margin-bottom: .75rem; + padding: 0 .25rem; } .navBtn { @@ -109,9 +109,9 @@ background: transparent; color: #fff; border: none; - border-radius: 0.25rem; + border-radius: .25rem; cursor: pointer; - font-size: 0.75rem; + font-size: .75rem; } .navBtn:hover:not(:disabled) { @@ -125,14 +125,14 @@ .decadeLabel { color: #fff; - font-size: 0.875rem; + font-size: .875rem; font-weight: 500; } .yearGrid { display: grid; grid-template-columns: repeat(3, 1fr); - gap: 0.25rem; + gap: .25rem; } .yearCell { @@ -142,9 +142,9 @@ background: transparent; color: #fff; border: none; - border-radius: 0.25rem; + border-radius: .25rem; cursor: pointer; - font-size: 0.875rem; + font-size: .875rem; transition: background 0.2s; } diff --git a/src/components/YearPicker/index.tsx b/src/components/YearPicker/index.tsx index 716cb5d..dfb03fd 100644 --- a/src/components/YearPicker/index.tsx +++ b/src/components/YearPicker/index.tsx @@ -94,7 +94,7 @@ export default function YearPicker({ {value != null ? `${value}年` : placeholder}
{data.contact}