school-dashboard-exercise/src/Styles/Home/Home.scss
2024-08-07 14:47:50 +03:00

225 lines
3.9 KiB
SCSS

.HomePage {
height: 100%;
}
.ChartSection {
width: 70%;
padding: 30px 40px 30px 20px;
display: flex;
flex-direction: column;
gap: 20px;
}
.TowItem {
display: flex;
gap: 4%;
> * {
width: 48%;
height: 30vw;
}
}
.ant-picker-calendar-mini .ant-picker-content {
height: 21vw;
}
.ColumnChart {
background: var(--bg);
@include Shadow;
border-radius: var(--border-radius);
.ColumnChart_header {
padding: 20px;
display: flex;
width: 100%;
justify-content: space-between;
// flex-wrap: wrap;
.ant-select-outlined:not(.ant-select-customize-input) .ant-select-selector {
border: none;
}
> span {
align-self: center;
}
}
.Legend {
display: flex;
gap: 25px;
align-items: center;
color: var(--subtext);
padding-inline: 20px;
div {
position: relative;
font-weight: 400;
&::after {
content: "";
position: absolute;
top: 50%;
right: -25px;
transform: translate(-50%, -50%);
width: 14px;
/* Adjust size as needed */
height: 14px;
/* Adjust size as needed */
border: 4px solid var(--utils_color_one);
/* Set border properties */
border-radius: 50%;
z-index: 2;
}
&:nth-child(2) {
&::after {
border: 4px solid var(--utils_color_tow);
/* Set border properties */
}
}
}
}
}
.ColumnChartWrapper {
height: 23vw;
}
.CalendarSection {
.Calendar {
padding: 0 10px;
}
background: var(--bg);
@include Shadow;
border-radius: var(--border-radius);
.ant-picker-outlined {
border-color: var(--bg);
direction: ltr;
// width: 140px;
}
.CalendarHeader {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1vw 1.5vw;
width: 100%;
h4 {
color: var(--secondary);
font-weight: bold;
font-size: 1.4vw;
}
}
.Calendar_Div {
// border: 1px solid red;
// aspect-ratio: 1 / 1;
}
.Calendar_ActiveDiv:nth-child(odd) {
background-color: var(--utils_color_one);
color: var(--white);
height: 90%;
// aspect-ratio: 1 / 1;
width: 70%;
margin-inline: auto;
border-radius: 50%;
@include Flex;
/* Include your Flex mixin here */
}
.Calendar_ActiveDiv:nth-child(even) {
background-color: var(--utils_color_tow);
color: var(--white);
height: 90%;
width: 70%;
margin-inline: auto;
border-radius: 50%;
// aspect-ratio: 1 / 1;
@include Flex;
/* Include your Flex mixin here */
}
}
.AreaChart {
background: var(--bg);
@include Shadow;
border-radius: var(--border-radius);
}
// <DatePicker
// suffixIcon={<IoMdArrowDropdown size={30} />}
// onChange={onChangeDatePicker}
// picker="month"
// />
.CalenderPop {
}
.Calendar_Popover {
background: var(--primary);
color: var(--white);
display: flex;
gap: 10px;
flex-direction: column;
align-items: center;
justify-content: center;
h5 {
font-size: 0.9vw;
font-weight: normal;
}
h6 {
font-size: 0.5vw;
font-weight: normal;
}
.Actions {
position: absolute;
right: -30px;
top: 0;
width: 35px;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: var(--border-radius);
border: 1px solid var(--primary);
border-top-left-radius: 0;
border-bottom-left-radius: 0;
background: var(--bg);
}
}
.ant-popover .ant-popover-inner:has(.Actions) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.CalenderPop .ant-popover-inner {
background: var(--primary) !important;
color: var(--white);
}
.ant-popover .ant-popover-arrow::after {
background: var(--primary) !important;
}
.NoteSections {
width: 30%;
background: var(--bg);
}
.DummyHomePage {
display: flex;
justify-content: center;
align-items: center;
height: 70vh;
img {
width: 20vw;
}
}