Skip to content

Commit

Permalink
Style: 공통 스타일 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahaday12 committed Nov 16, 2023
1 parent 2646f02 commit fed6922
Showing 1 changed file with 114 additions and 2 deletions.
116 changes: 114 additions & 2 deletions src/styles/styleCommon.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { css } from 'styled-components'
import styled, { css } from 'styled-components'

export const CalendarBoxStyle = css`
width: 82%;
Expand All @@ -10,7 +10,7 @@ export const CalendarBoxStyle = css`
border: 4px solid #FBB04C;
border-radius: 10px;
`
export const StatusCommon = css<{ status: string }>`
export const StatusBox = styled.div<{ status: string }>`
width: 70px;
border-radius: 5px;
position: absolute;
Expand All @@ -32,4 +32,116 @@ export const StatusCommon = css<{ status: string }>`
return 'lightgray' // 기본 배경색
}
}};
`

export const CancelBox = styled(StatusBox)`
right: 20px;
background-color: #212a3e;
padding-left: 25px;
cursor: pointer;
`
export const CustomEvent = styled.div`
border: none;
font-size: 15px;
overflow: hidden;
width: 100%;
height: 20px;
padding: 4px;
margin-top: 2px;
margin: auto;
border-radius: 3px;
color: #ffff;
border: none;
background-color: ${({ title }) =>
title === 'ANNUAL' ? '#190482' : '#7752FE'};
`

export const CalendarBox = styled.div`
width: 90%;
position: relative;
margin: 0 auto;
height: 80%;
top: 20px;
border-radius: 10px;
font-family: 'LINESeedKR-Bd';
.fc-theme-standard .fc-scrollgrid {
width: 100%;
border-radius: 10px;
border: none;
}
.fc-header-toolbar {
width: 100%;
position: relative;
border-radius: 10px 10px 0px 0px;
padding-bottom: 10px;
}
.fc .fc-toolbar-title {
position: absolute;
margin: auto;
color: #0815a6;
max-width: 30%;
left: 40%;
top: 20px;
}
.fc-event-title fc-sticky {
padding: 2px;
}
.fc .fc-button-primary {
border: none;
background-color: #1c3879;
position: relative;
top: 15px;
margin-right: 18px;
}
.fc-button-group {
position: absolute;
border: 0;
outline: 0;
width: 5rem;
left: 10%;
}
.fc .fc-daygrid-day-number {
position: relative;
right: 20px;
font-size: 17px;
font-weight: bold;
color: #0815a6;
margin-right: 15px;
}
.fc-col-header-cell-cushion {
color: #0815a6;
width: 90%;
height: 50px;
font-size: 18px;
padding: 10px;
font-weight: bold;
}
table .fc-scrollgrid-sync-table {
width: 538px;
height: 700px;
}
/* border값 초기화 */
.fc-theme-standard th,
.fc-theme-standard td {
border: 0px;
}
.fc .fc-daygrid-day-top {
position: relative;
right: 60px;
}
.fc-event-time {
display: none;
}
`

0 comments on commit fed6922

Please sign in to comment.