-
Notifications
You must be signed in to change notification settings - Fork 3
medium commit #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ohkjh1
wants to merge
5
commits into
dev
Choose a base branch
from
origin/feature/108-calendar-modification
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
medium commit #109
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,39 +5,40 @@ | |
| box-sizing: border-box; | ||
| } | ||
|
|
||
| /* 달력 몸통 */ | ||
|
|
||
| /* 달력 기본 스타일 */ | ||
| .react-calendar { | ||
| min-width: 550px; /* 달력의 너비 - 모바일 화면에 적합하게 조정 */ | ||
| width: 80%; /* 너비를 %로 조정 */ | ||
| max-width: 550px; /* 최대 너비 설정 */ | ||
| border-radius: 20px; | ||
| border: 3px solid #afa4ce; | ||
| display: flex; | ||
| flex-direction: column; | ||
| margin: auto; /* 수평 중앙 정렬 */ | ||
| margin-top: 75px; /* 상단에서의 마진 */ | ||
| /*max-height: 700px; /* 부모 요소의 높이를 따르도록 설정 */ | ||
| height: 760px; | ||
| overflow-y: hidden !important; | ||
| position: relative; /* 추가: 상대 위치 설정 */ | ||
| margin: 70vh auto 0; /* 상단 마진을 뷰포트 높이의 %로 조정 */ | ||
| height: auto; | ||
| overflow-y: hidden; | ||
| position: relative; | ||
|
|
||
| } | ||
|
|
||
|
|
||
| /* 달력 내부 스타일 */ | ||
| .react-calendar__month-view { | ||
| min-height: 420px !important; /* 내부 높이를 자동으로 조절 */ | ||
| display: flex; | ||
| flex-direction: column; | ||
| margin: auto; /* 수평 중앙 정렬 */ | ||
| margin-top: px; /* 상단에서의 마진 */ | ||
| max-height: 620px; /* 부모 요소의 높이를 따르도록 설정 */ | ||
| overflow-y: hidden !important; /* 내용이 넘칠 경우 스크롤 표시 */ | ||
| margin: auto; /* 수평 중앙 정렬 */ | ||
| max-height: 520px; /* 부모 요소의 높이를 따르도록 설정 */ | ||
| position: relative; /* 추가: 상대 위치 설정 */ | ||
| overflow-y: auto; | ||
| } | ||
|
|
||
| /* 달력 내부 스타일 */ | ||
| .react-calendar__month-view__days { | ||
| margin-top: 10px; | ||
| overflow-y: auto; /* 내용이 넘칠 경우 스크롤 표시 */ | ||
| height:450px; | ||
|
|
||
| } | ||
|
|
||
|
|
||
| /* 오버레이 스타일 */ | ||
| .react-calendar::before { | ||
| content: ''; | ||
|
|
@@ -69,12 +70,12 @@ | |
| cursor: pointer; | ||
| } | ||
|
|
||
| /* 미디어 쿼리 반응형 */ | ||
| /* 미디어 쿼리: 태블릿 */ | ||
| @media screen and (min-width: 768px) { | ||
| .react-calendar { | ||
| min-width: 62%; /* 중간 크기 화면에 적합한 너비 */ | ||
| max-width: 900px; /* 최대 너비 */ | ||
| width: 70%; /* 태블릿에서의 너비 */ | ||
| } | ||
| } | ||
| .react-calendar__navigation { | ||
| background-color: #e6e6fa; | ||
| border-bottom: 4px solid #afa4ce; | ||
|
|
@@ -91,25 +92,35 @@ | |
| .react-calendar__navigation__prev-button { | ||
| font-size: 40px; | ||
| } | ||
| } | ||
|
|
||
| /* 더 큰 화면을 위한 미디어 쿼리 */ | ||
|
|
||
| /* 미디어 쿼리: 데스크톱 */ | ||
| @media screen and (min-width: 1024px) { | ||
| .react-calendar { | ||
| min-width: 50%; /* 더 큰 화면에 적합한 너비 */ | ||
| width: 60%; /* 데스크톱에서의 너비 */ | ||
| } | ||
| } | ||
|
|
||
|
|
||
| /* 다크 모드 스타일 */ | ||
| @media (prefers-color-scheme: dark) { | ||
| .react-calendar { | ||
| background-color: #333; /* 어두운 배경색 */ | ||
| color: white; /* 흰색 글자 */ | ||
| } | ||
|
|
||
| .react-calendar__navigation { | ||
| background-color: #444; /* 네비게이션 배경색 변경 */ | ||
| } | ||
| .react-calendar__tile { | ||
| background-color: #555; /* 타일 배경색 변경 */ | ||
| color: white; /* 타일 글자색 변경 */ | ||
| } | ||
|
|
||
|
|
||
| } | ||
|
|
||
| /* 기타 스타일 설정 */ | ||
| /* ... (나머지 스타일 설정은 동일하게 유지) */ | ||
|
|
||
|
|
||
| /* 달력 상단 */ | ||
| .react-calendar__navigation { | ||
|
|
@@ -138,21 +149,15 @@ | |
| color: red; | ||
| } | ||
|
|
||
| /* 달력 안쪽 여백 */ | ||
| .react-calendar__month-view { | ||
| padding: 20px 36px; | ||
| } | ||
|
|
||
| .react-calendar__month-view__days { | ||
| margin-top: 10px; | ||
| height: 450; | ||
| } | ||
|
|
||
| .react-calendar__tile { | ||
| width: 40px; /* 날짜별 칸의 너비를 조절합니다. */ | ||
| height: 105px !important; /* 날짜별 칸의 높이를 조절합니다. */ | ||
| height: 100px !important; /* 날짜별 칸의 높이를 조절합니다. */ | ||
| font-size: 16px; /* 날짜의 글꼴 크기를 조절합니다. */ | ||
| margin-top: 10px; | ||
| margin-right: 8px; /* 날짜 칸 간격 늘림 */ | ||
|
|
||
| } | ||
|
|
||
| /* 날짜 색상 및 크기 */ | ||
|
|
@@ -173,6 +178,21 @@ | |
| color: black; | ||
| text-decoration: none; | ||
| } | ||
|
|
||
|
|
||
| /* 요일 헤더 스타일 */ | ||
| .react-calendar__month-view__weekdays { | ||
| display: flex; | ||
| justify-content: space-around; /* 요일 헤더를 가로로 균등 배치 */ | ||
| } | ||
|
|
||
|
|
||
| .react-calendar__month-view__weekdays__weekday, | ||
| .react-calendar__month-view__weekdays__weekday abbr { | ||
| text-align: center; | ||
| flex-grow: 1; | ||
| } | ||
|
|
||
| .react-calendar__tile--active.react-calendar__year-view__months__month { | ||
| background-color: transparent; | ||
| color: black; | ||
|
|
@@ -221,6 +241,7 @@ | |
| align-items: center; | ||
| padding: 0; | ||
| margin-top: 10px !important; /* 수정된 부분: 날짜 간의 간격을 조절합니다. */ | ||
|
|
||
| } | ||
|
|
||
| /* 날짜 클릭했을 때 칸 색상 */ | ||
|
|
@@ -300,7 +321,14 @@ | |
| position: relative; /* 컨테이너 위치 설정 */ | ||
| } | ||
|
Comment on lines
275
to
289
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The adjustments to the calendar's width, max-width, and margin are well thought out for responsive design. However, consider whether a top margin of 75vh might push the calendar too low on the viewport for some screen sizes. |
||
|
|
||
| .react-calendar { | ||
|
|
||
|
|
||
|
|
||
| /* 추가된 부분: 정중앙 위치를 위한 스타일 */ | ||
| .calendar-container { | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| height: 90vh; /* 컨테이너의 높이를 뷰포트의 90%로 설정 */ | ||
| position: relative; | ||
| overflow-y: auto !important; | ||
| } | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider avoiding the use of
!importantfor the height of the calendar tiles to maintain the CSS specificity hierarchy and allow for easier overrides if necessary.