You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2813 lines
54 KiB
2813 lines
54 KiB
@tailwind base; |
|
@tailwind components; |
|
@tailwind utilities; |
|
|
|
@font-face { |
|
font-family: "iransans-medium"; |
|
src: url(./assets/fonts/IRANSansXFaNum-Regular.woff); |
|
} |
|
|
|
@font-face { |
|
font-family: "sansbold"; |
|
src: url(./assets/fonts/IRANSansWeb_Bold.woff); |
|
} |
|
|
|
body { |
|
font-family: iransans-medium; |
|
direction: rtl; |
|
background-color: #f5f5f5; |
|
} |
|
|
|
.rtl { |
|
direction: rtl; |
|
} |
|
|
|
.ltr { |
|
direction: ltr; |
|
} |
|
|
|
.en { |
|
direction: ltr; |
|
text-align: left; |
|
} |
|
|
|
.fa { |
|
direction: rtl; |
|
text-align: right; |
|
} |
|
|
|
.no-scrollbar { |
|
-ms-overflow-style: none; /* IE and Edge */ |
|
scrollbar-width: none; /* Firefox */ |
|
} |
|
|
|
.no-scrollbar::-webkit-scrollbar { |
|
display: none; |
|
} |
|
|
|
// TODO Start FormInput Component |
|
|
|
.rmdp-container { |
|
display: flex !important; |
|
flex-direction: column-reverse; |
|
} |
|
|
|
.rmdp-container > div { |
|
position: relative !important; |
|
transform: none !important; |
|
} |
|
|
|
// * end FormInput Component |
|
|
|
// TODO Start Alert Component |
|
|
|
// varibale Colors |
|
// ? common colors: |
|
$alertBorderClr: #707070; |
|
$alertContentColor: #646464; |
|
$white: #fff; |
|
// $BgHeaderColor |
|
|
|
// ? blue alert Box , error1 |
|
$lightBlue: #06bace; |
|
$confirmBtnBgColor: #f6feff; |
|
$blueTitleBgColor: #dfe6e9; |
|
|
|
// * green alert Box , error1 |
|
$lightGreen: #3ee924; |
|
$darkGreen: #21ae0b; |
|
$greenTitleBgColor: #91ff5233; |
|
|
|
// ! red alert Box , error7 |
|
$darkRed: #c70000; |
|
$redTitleBgColor: #ff525233; |
|
$red: #e92424; |
|
|
|
// ! common styles |
|
// * alert box |
|
.swal2-container.swal2-center > .swal2-popup { |
|
border: solid 2px $alertBorderClr !important; |
|
border-top-right-radius: 10px !important; |
|
border-top-left-radius: 10px !important; |
|
// |
|
position: relative; |
|
} |
|
|
|
// * کلاس تمامی تایتل ها |
|
.swal2-title { |
|
text-align: right !important; |
|
font-size: 20px !important; |
|
padding: 15px !important; |
|
font-weight: 400 !important; |
|
margin-top: -4px; |
|
border-top-right-radius: 10px !important; |
|
border-top-left-radius: 10px !important; |
|
} |
|
|
|
// * کلاس متن داخل الرت باکس |
|
.swal2-html-container { |
|
text-align: justify !important; |
|
line-height: 1.8 !important; |
|
color: $alertContentColor !important; |
|
font-size: 16px !important; |
|
} |
|
|
|
// * کلاس ایکن کنسل یا ضربدر بالا سمت چپ الرت باکس |
|
.swal2-rtl .swal2-close { |
|
width: 31px !important; |
|
height: 30px !important; |
|
margin-top: 11px; |
|
margin-left: 24px !important; |
|
padding: 0; |
|
border-radius: 5px; |
|
cursor: pointer; |
|
justify-self: end; |
|
font-size: 33px !important; |
|
border-radius: 4px !important; |
|
transition: all 0.2s !important; |
|
z-index: 2; |
|
} |
|
|
|
// * کلاس کانفرم باتن |
|
.swal2-styled.swal2-confirm { |
|
transition: all 0.4s !important; |
|
outline: none !important; |
|
border-radius: 4px !important; |
|
} |
|
|
|
// * کلاس هاور کانفرم باتن |
|
.swal2-styled.swal2-confirm:hover { |
|
transform: translateY(-5px) !important; |
|
} |
|
|
|
// * کلاس کنسل باتن |
|
.swal2-styled.swal2-cancel { |
|
transition: all 0.4s !important; |
|
} |
|
|
|
// * کلاس هاور کنسل باتن |
|
.swal2-styled.swal2-cancel:hover { |
|
transform: translateY(-5px) !important; |
|
} |
|
|
|
// * ایکن اررور |
|
.swal2-icon.swal2-error { |
|
border-color: $darkRed !important; |
|
color: $darkRed !important; |
|
} |
|
|
|
// ? error 1 lightBlue |
|
// * به اررور های ابی رنگ کلاس هایی دادم که اخرش با 1 تمام میشود |
|
// TODO باکس اول از سمت راست در فایل پی اس دی |
|
// ? تایتل |
|
.title-error-1 { |
|
color: $lightBlue !important; |
|
background-color: $blueTitleBgColor !important; |
|
} |
|
|
|
// * دکمه ضربدر بالا سمت چپ |
|
.close-button-1 { |
|
background-color: $lightBlue !important; |
|
color: $white !important; |
|
} |
|
|
|
// * هاور دکمه ضربدر بالا سمت چپ |
|
.close-button-1:hover { |
|
background-color: $white !important; |
|
color: $lightBlue !important; |
|
border: solid 2px $lightBlue !important; |
|
} |
|
|
|
// * کانفرم باتن |
|
.confirm-button-1 { |
|
background-color: $confirmBtnBgColor !important; |
|
border: solid 1px $lightBlue !important; |
|
color: $lightBlue !important; |
|
// |
|
position: absolute !important; |
|
left: 20px !important; |
|
margin-bottom: 33px !important; |
|
} |
|
|
|
// * هاور کانفرم باتن |
|
.confirm-button-1:hover { |
|
background-color: $lightBlue !important; |
|
color: $white !important; |
|
} |
|
|
|
// ? error 2 lightBlue |
|
// TODO کنسل باتن |
|
.cancle-button1 { |
|
background-color: $lightBlue !important; |
|
color: $white !important; |
|
border: solid 1px $lightBlue !important; |
|
// |
|
position: absolute !important; |
|
left: 33% !important; |
|
margin-bottom: 33px !important; |
|
} |
|
|
|
// TODO هاور کنسل باتن |
|
.cancle-button1:hover { |
|
background: $white !important; |
|
color: $lightBlue !important; |
|
} |
|
|
|
// ? error3 |
|
// TODO تایتل |
|
.title-error-2 { |
|
color: $darkGreen !important; |
|
background-color: $greenTitleBgColor !important; |
|
} |
|
|
|
// * دکمه ضربدر بالا سمت چپ |
|
.close-button-2 { |
|
background-color: $lightGreen !important; |
|
color: $white !important; |
|
} |
|
|
|
// * هاور دکمه ضربدر بالا سمت چپ |
|
.close-button-2:hover { |
|
background-color: $white !important; |
|
color: $lightGreen !important; |
|
border: solid 2px $lightGreen !important; |
|
} |
|
|
|
// * کانفرم باتن |
|
.confirm-button-2 { |
|
background-color: $white !important; |
|
border: solid 1px $lightGreen !important; |
|
color: $darkGreen !important; |
|
// |
|
position: absolute !important; |
|
left: 20px !important; |
|
margin-bottom: 33px !important; |
|
} |
|
|
|
// * هاور کانفرم باتن |
|
.confirm-button-2:hover { |
|
background-color: $lightGreen !important; |
|
color: $white !important; |
|
} |
|
|
|
// * کنسل باتن |
|
.cancle-button2 { |
|
background-color: $lightGreen !important; |
|
color: $white !important; |
|
border: solid 1px $lightGreen !important; |
|
// |
|
position: absolute !important; |
|
left: 33% !important; |
|
margin-bottom: 33px !important; |
|
} |
|
|
|
// * هاور کنسل باتن |
|
.cancle-button2:hover { |
|
background: $white !important; |
|
color: $lightGreen !important; |
|
} |
|
|
|
// ? error4 |
|
// TODO تایتل |
|
.title-error-4 { |
|
text-align: center !important; |
|
color: $darkGreen !important; |
|
} |
|
|
|
// * کانفرم باتن |
|
.confirm-button-4 { |
|
background-color: $white !important; |
|
border: solid 1px $lightGreen !important; |
|
color: $darkGreen !important; |
|
} |
|
|
|
// * هاور کانفرم باتن |
|
.confirm-button-4:hover { |
|
background-color: $lightGreen !important; |
|
color: $white !important; |
|
} |
|
|
|
// * کنسل باتن |
|
.cancle-button4 { |
|
background-color: $lightGreen !important; |
|
color: $white !important; |
|
border: solid 1px $lightGreen !important; |
|
} |
|
|
|
// * هاور کنسل باتن |
|
.cancle-button4:hover { |
|
background: $white !important; |
|
color: $lightGreen !important; |
|
} |
|
|
|
// * alert box width |
|
.alert-popup4 { |
|
width: 440px !important; |
|
} |
|
|
|
// ? error5 |
|
// TODO کانفرم باتن |
|
.confirm-button-5 { |
|
background-color: $lightGreen !important; |
|
padding: 12px 15px !important; |
|
border-top-right-radius: 0px !important; |
|
border-bottom-right-radius: 0px !important; |
|
position: absolute; |
|
left: 4% !important; |
|
bottom: 8% !important; |
|
} |
|
|
|
// *input field |
|
.input-error-5 { |
|
position: relative; |
|
border-top-left-radius: 0px !important; |
|
border-bottom-left-radius: 0px !important; |
|
} |
|
|
|
// ? error6 |
|
// TODO دکمه ضربدر بالا سمت چپ |
|
.close-button-6 { |
|
color: $lightBlue !important; |
|
} |
|
|
|
// ? error7 |
|
// TODO تایتل |
|
.title-error-7 { |
|
color: $darkRed !important; |
|
background-color: $redTitleBgColor !important; |
|
} |
|
|
|
// * دکمه ضربدر بالا سمت چپ |
|
.close-button-7 { |
|
background-color: $red !important; |
|
color: $white !important; |
|
} |
|
|
|
// * هاور دکمه ضربدر بالا سمت چپ |
|
.close-button-7:hover { |
|
background-color: $white !important; |
|
color: $red !important; |
|
border: solid 2px $red !important; |
|
} |
|
|
|
// * کانفرم باتن |
|
.confirm-button-7 { |
|
background-color: $redTitleBgColor !important; |
|
border: solid 1px $darkRed !important; |
|
color: $darkRed !important; |
|
// |
|
position: absolute !important; |
|
left: 20px !important; |
|
margin-bottom: 33px !important; |
|
} |
|
|
|
// * هاور کانفرم باتن |
|
.confirm-button-7:hover { |
|
background-color: $red !important; |
|
color: $white !important; |
|
} |
|
|
|
// * کنسل باتن |
|
.cancle-button7 { |
|
background-color: $red !important; |
|
border: solid 1px $red !important; |
|
color: $white !important; |
|
// |
|
position: absolute !important; |
|
left: 33% !important; |
|
margin-bottom: 33px !important; |
|
} |
|
|
|
// * هاور کنسل باتن |
|
.cancle-button7:hover { |
|
background: $white !important; |
|
color: $red !important; |
|
} |
|
|
|
// ? error8 |
|
.title-error-8 { |
|
color: $darkRed !important; |
|
text-align: center !important; |
|
} |
|
|
|
// * کانفرم باتن |
|
.confirm-button-8 { |
|
background-color: $redTitleBgColor !important; |
|
border: solid 1px $darkRed !important; |
|
color: $darkRed !important; |
|
} |
|
|
|
// * هاور کانفرم باتن |
|
.confirm-button-8:hover { |
|
background-color: $red !important; |
|
color: $white !important; |
|
} |
|
|
|
// * کنسل باتن |
|
.cancle-button-8 { |
|
background-color: $red !important; |
|
border: solid 1px $red !important; |
|
color: $white !important; |
|
} |
|
|
|
// * هاور کنسل باتن |
|
.cancle-button-8:hover { |
|
background: $white !important; |
|
color: $red !important; |
|
} |
|
|
|
// * alert box width |
|
.alert-popup8 { |
|
width: 440px !important; |
|
} |
|
|
|
// ? error9 |
|
.title-error-9 { |
|
color: $white !important; |
|
} |
|
|
|
.alert-popup9 { |
|
background-color: $darkRed !important; |
|
border-color: $darkRed !important; |
|
} |
|
|
|
.close-button-9 { |
|
background-color: $white !important; |
|
color: $red !important; |
|
} |
|
|
|
.confirm-button-9 { |
|
background-color: $red !important; |
|
} |
|
|
|
.cancle-button9 { |
|
background-color: $white !important; |
|
color: $red !important; |
|
} |
|
|
|
.footer-error-9 a { |
|
color: $white !important; |
|
} |
|
|
|
// ? error10 |
|
|
|
.alert-popup10 { |
|
background-color: $darkGreen !important; |
|
border-color: $darkGreen !important; |
|
} |
|
|
|
.close-button-10 { |
|
background-color: $white !important; |
|
color: $darkGreen !important; |
|
} |
|
|
|
.confirm-button-10 { |
|
background-color: $lightGreen !important; |
|
} |
|
|
|
.cancle-button10 { |
|
background-color: $white !important; |
|
color: $lightGreen !important; |
|
} |
|
|
|
// * end Alert Component |
|
|
|
// TODO Start CardDesign3 Component |
|
|
|
.scrollYDesign::-webkit-scrollbar { |
|
position: absolute; |
|
left: 1px; |
|
bottom: 0; |
|
z-index: 2; |
|
width: 4px; |
|
/* width: 5px !important; */ |
|
} |
|
|
|
.scrollYDesign::-webkit-scrollbar-button { |
|
display: none; |
|
appearance: none; |
|
} |
|
|
|
.scrollYDesign::-webkit-scrollbar-thumb { |
|
border-radius: 10px; |
|
background-color: #80b2f7; |
|
} |
|
|
|
.scrollYDesign::-webkit-scrollbar-track { |
|
background-color: transparent !important; |
|
display: none; |
|
appearance: none; |
|
} |
|
|
|
// * end CardDesign3 Component |
|
|
|
// TODO Start ContactInfoSection Component |
|
|
|
.customer-support { |
|
transition: all 0.4s; |
|
} |
|
|
|
.customer-support:hover { |
|
transform: translateY(-7px) !important; |
|
} |
|
|
|
// * end ContactInfoSection Component |
|
|
|
// TODO Start DateRangePicker Component |
|
|
|
.rmdp-arrow-container { |
|
background-color: #3b98f3; |
|
border-radius: 4px !important; |
|
height: 24px !important; |
|
width: 24px !important; |
|
} |
|
|
|
.rmdp-arrow-container:hover { |
|
box-shadow: none !important; |
|
} |
|
|
|
.rmdp-day { |
|
color: #1073d5 !important; |
|
} |
|
|
|
.rmdp-day.rmdp-deactive, |
|
.rmdp-day.rmdp-disabled { |
|
color: #8798ad !important; |
|
} |
|
|
|
.disabled { |
|
background-color: transparent !important; |
|
} |
|
|
|
.rmdp-arrow-container .rmdp-arrow { |
|
border: solid #fff; |
|
border-width: 0 2px 2px 0; |
|
margin-top: 8px !important; |
|
} |
|
|
|
.rmdp-wrapper .start { |
|
background: #3b98f3 !important; |
|
color: #fff !important; |
|
border: none !important; |
|
box-shadow: none !important; |
|
border-top-right-radius: 4px !important; |
|
border-bottom-right-radius: 4px !important; |
|
} |
|
|
|
.rmdp-wrapper .end { |
|
background: #3b98f3 !important; |
|
color: #fff !important; |
|
border: none !important; |
|
box-shadow: none !important; |
|
border-top-left-radius: 4px !important; |
|
border-bottom-left-radius: 4px !important; |
|
} |
|
|
|
.rmdp-range { |
|
background: #f7f7f7 !important; |
|
color: #3b98f3 !important; |
|
border: none !important; |
|
box-shadow: none !important; |
|
} |
|
|
|
.rmdp-header-values span { |
|
color: #12508e !important; |
|
font-weight: bold !important; |
|
} |
|
|
|
.rmdp-week-day { |
|
color: #3b98f3; |
|
font-size: 9px !important; |
|
} |
|
|
|
.rmdp-shadow { |
|
box-shadow: none !important; |
|
border: solid 1px #dbdbdb !important; |
|
} |
|
|
|
.rmdp-day.rmdp-today span { |
|
color: #f7f7f7 !important; |
|
background-color: #7ea6f0 !important; |
|
border-radius: 4px !important; |
|
} |
|
|
|
.rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover { |
|
color: #fff; |
|
border-radius: 4px; |
|
background: #f7f7f7 !important; |
|
color: #3b98f3 !important; |
|
} |
|
|
|
// * end DateRangePicker Component |
|
|
|
// TODO Start RangeDatePicker Component |
|
|
|
.Calendar * { |
|
font-family: "iranSans"; |
|
} |
|
|
|
.DatePicker { |
|
position: relative; |
|
display: inline-block; |
|
z-index: 100; |
|
} |
|
|
|
.DatePicker__input { |
|
background: #fff; |
|
border: 1px solid rgba(0, 0, 0, 0.4); |
|
padding: 0.6em 1.2em; |
|
font-family: "iranSans"; |
|
text-align: center; |
|
font-size: 12px; |
|
border-radius: 7px; |
|
} |
|
.DatePicker__input:focus { |
|
outline: 1px solid #06bace; |
|
color: #06bace; |
|
} |
|
|
|
.DatePicker__input.-rtl { |
|
direction: rtl; |
|
} |
|
|
|
.DatePicker__input::placeholder { |
|
color: #979797; |
|
} |
|
.DatePicker__input:focus::placeholder { |
|
color: #06bace; |
|
} |
|
|
|
.DatePicker__calendarContainer.-top + .DatePicker__calendarArrow { |
|
top: auto; |
|
bottom: calc(100% + 10px); |
|
transform: translateY(-2.5rem) rotate(180deg); |
|
animation: fadeArrowFlipped 0.3s forwards; |
|
} |
|
|
|
.DatePicker__calendarContainer { |
|
position: absolute; |
|
top: calc(100% + 20px); |
|
left: 50%; |
|
transform: translateX(-50%); |
|
} |
|
|
|
.DatePicker__calendarContainer.-top { |
|
top: auto; |
|
bottom: calc(100% + 20px); |
|
} |
|
|
|
.Calendar, |
|
.Calendar * { |
|
margin: 0; |
|
padding: 0; |
|
box-sizing: border-box; |
|
direction: ltr; |
|
} |
|
|
|
.Calendar, |
|
.Calendar.-rtl * { |
|
direction: rtl; |
|
} |
|
|
|
.DatePicker__calendarArrow { |
|
position: absolute; |
|
width: 0; |
|
height: 0; |
|
top: calc(100% + 10px); |
|
left: 0; |
|
right: 0; |
|
margin: 0 auto; |
|
border-style: solid; |
|
z-index: 10; |
|
border-width: 0 10px 10px 10px; |
|
border-color: transparent transparent #fff transparent; |
|
} |
|
|
|
.Calendar { |
|
--cl-color-black: #444444; |
|
--cl-color-disabled: #d4d4d4; |
|
--cl-color-error: #ff2929; |
|
font-family: "iranSans"; |
|
font-size: 10px; |
|
background: rgba(245, 245, 245, 0.53); |
|
border: 1px solid #dbdbdb; |
|
box-shadow: 0 1em em rgba(0, 0, 0, 0.07); |
|
border-radius: 1em; |
|
position: relative; |
|
user-select: none; |
|
padding-top: 1.2em; |
|
display: flex; |
|
flex-direction: column; |
|
width: 40em; |
|
z-index: 10; |
|
max-width: 90vw; |
|
min-height: 38.7em; |
|
} |
|
|
|
.DatePicker .Calendar, |
|
.DatePicker__calendarArrow { |
|
transform: translateY(2.5em); |
|
opacity: 0; |
|
animation: fadeCalendar 0.3s forwards; |
|
} |
|
|
|
.DatePicker__calendarContainer.-top .Calendar { |
|
transform: translateY(-2.5em); |
|
} |
|
|
|
.Calendar.-noFocusOutline *:focus { |
|
outline: none !important; |
|
} |
|
|
|
.Calendar > :not(.Calendar__footer) button { |
|
font-family: inherit; |
|
background: transparent; |
|
cursor: pointer; |
|
-webkit-tap-highlight-color: transparent; |
|
outline: none; |
|
} |
|
|
|
.Calendar__header { |
|
display: flex; |
|
color: var(--cl-color-black); |
|
padding: 2em 2.9em; |
|
align-items: center; |
|
overflow: hidden; |
|
} |
|
|
|
.Calendar__monthArrowWrapper { |
|
line-height: 0; |
|
font-size: 1em; |
|
padding: 3px; |
|
position: relative; |
|
border: none; |
|
z-index: 1; |
|
opacity: 1; |
|
transition: 0.2s; |
|
background-color: #06bace; |
|
} |
|
|
|
.Calendar__monthArrowWrapper:focus { |
|
outline: 1px dashed rgba(0, 0, 0, 0.4); |
|
outline-offset: 2px; |
|
} |
|
|
|
.Calendar__monthArrowWrapper:disabled, |
|
.Calendar__monthArrowWrapper.-hidden { |
|
opacity: 0; |
|
pointer-events: none; |
|
} |
|
|
|
.Calendar__monthArrowWrapper.-left { |
|
transform: rotate(180deg); |
|
} |
|
.Calendar.-rtl .Calendar__monthArrowWrapper.-left { |
|
transform: rotate(-180deg); |
|
} |
|
|
|
.Calendar__monthArrowWrapper.-right { |
|
transform: rotate(-0deg); |
|
} |
|
.Calendar.-rtl .Calendar__monthArrowWrapper.-right { |
|
transform: rotate(0deg); |
|
} |
|
|
|
.Calendar__monthArrowWrapper:active .Calendar__monthArrow { |
|
transform: scale(0.7); |
|
} |
|
|
|
.Calendar__monthArrow { |
|
border-radius: 7px; |
|
padding: 12px; |
|
transition: var(--animation-duration) transform; |
|
pointer-events: none; |
|
background-repeat: no-repeat; |
|
display: block; |
|
width: 0.7em; |
|
height: 0.7em; |
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='15' height='15' viewBox='0 0 50 80' xml:space='preserve'%3E%3Cpolyline fill='none' stroke='%23FFFFFF' stroke-width='15' stroke-linecap='round' stroke-linejoin='round' points=' 0.375,0.375 45.63,38.087 0.375,75.8 '/%3E%3C/svg%3E"); |
|
background-size: 100% 100%; |
|
background-color: #06bace; |
|
background-size: 10px; |
|
background-position: center; |
|
} |
|
|
|
.Calendar__monthYearContainer { |
|
flex: 1; |
|
position: relative; |
|
} |
|
|
|
.Calendar__monthYear { |
|
font-size: 2em; |
|
font-weight: 500; |
|
display: flex; |
|
align-items: center; |
|
position: absolute; |
|
top: 0; |
|
bottom: 0; |
|
left: 50%; |
|
will-change: transform, opacity; |
|
backface-visibility: hidden; |
|
transform: translateZ(0); |
|
transition: var(--animation-duration); |
|
line-height: 1; |
|
color: #246e8a; |
|
} |
|
|
|
.Calendar__monthYear.-hiddenNext { |
|
opacity: 0; |
|
transform: translateX(50%); |
|
} |
|
|
|
.Calendar.-rtl .Calendar__monthYear.-hiddenNext { |
|
transform: translateX(-150%); |
|
} |
|
|
|
.Calendar__monthYear.-hiddenPrevious { |
|
opacity: 0; |
|
transform: translateX(-150%); |
|
} |
|
|
|
.Calendar.-rtl .Calendar__monthYear.-hiddenPrevious { |
|
transform: translateX(50%); |
|
} |
|
|
|
.Calendar__monthYear.-shown { |
|
opacity: 1; |
|
margin-top: auto; |
|
margin-bottom: auto; |
|
transform: translateX(-50%); |
|
} |
|
|
|
.Calendar__monthYear.-shownAnimated { |
|
animation: var(--animation-duration) fadeTextToCenter forwards; |
|
} |
|
|
|
.Calendar__monthYear > * { |
|
padding: 0.2em 0.5em; |
|
border: 1px solid transparent; |
|
transition: var(--animation-duration); |
|
font-size: 1.05em; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
transform: translateX(0) scale(0.95); |
|
will-change: transform; |
|
border-radius: 5px; |
|
} |
|
|
|
.Calendar__monthYear:not(.-shown) > *, |
|
.Calendar__monthYear > *.-hidden { |
|
cursor: default; |
|
pointer-events: none; |
|
} |
|
|
|
.Calendar__monthText { |
|
margin-left: -0.3em; |
|
} |
|
.Calendar__yearText:last-child { |
|
margin-right: -0.3em; |
|
} |
|
|
|
.Calendar__monthYear.-shown > *:hover, |
|
.Calendar:not(.-noFocusOutline) .Calendar__monthYear.-shown > *:focus, |
|
.Calendar__monthYear > *.-activeBackground { |
|
background: #f5f5f5; |
|
} |
|
|
|
.Calendar__monthText:hover { |
|
transform: translateX(-0.2em) scale(0.95); |
|
} |
|
.Calendar.-rtl .Calendar__monthText:hover { |
|
transform: translateX(0.2em) scale(0.95); |
|
} |
|
|
|
.Calendar__yearText:hover { |
|
transform: translateX(0.2em) scale(0.95); |
|
} |
|
.Calendar.-rtl .Calendar__yearText:hover { |
|
transform: translateX(-0.2em) scale(0.95); |
|
} |
|
|
|
.Calendar__monthYear .Calendar__yearText.-hidden { |
|
transform: translateX(50%); |
|
opacity: 0; |
|
} |
|
|
|
.Calendar.-rtl .Calendar__monthYear .Calendar__yearText.-hidden { |
|
transform: translateX(-50%); |
|
} |
|
|
|
.Calendar__monthYear .Calendar__monthText.-hidden { |
|
transform: translateX(-50%); |
|
opacity: 0; |
|
} |
|
|
|
.Calendar.-rtl .Calendar__monthYear .Calendar__monthText.-hidden { |
|
transform: translateX(50%); |
|
} |
|
|
|
.Calendar__monthYear:not(.-shown) > * { |
|
pointer-events: none; |
|
} |
|
|
|
.Calendar__monthSelectorAnimationWrapper, |
|
.Calendar__yearSelectorAnimationWrapper { |
|
position: absolute; |
|
width: 100%; |
|
height: 80%; |
|
bottom: 0; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
overflow: hidden; |
|
} |
|
|
|
.Calendar__monthSelectorWrapper { |
|
width: 100%; |
|
height: 100%; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
.Calendar__monthSelector { |
|
padding: 0 2.5em; |
|
align-content: center; |
|
padding-bottom: 2em; |
|
} |
|
|
|
.Calendar__monthSelector, |
|
.Calendar__yearSelector { |
|
display: flex; |
|
flex-wrap: wrap; |
|
position: relative; |
|
z-index: 2; |
|
background-color: #fff; |
|
transform: translateY(-150%); |
|
will-change: transform; |
|
transition: 0.6s; |
|
height: 100%; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper { |
|
width: 100%; |
|
height: 100%; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper::after, |
|
.Calendar__yearSelectorWrapper::before { |
|
content: ""; |
|
width: 100%; |
|
height: 5em; |
|
position: absolute; |
|
left: 0; |
|
opacity: 0; |
|
transition: 0.4s; |
|
transition-delay: 0.2s; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper::after { |
|
background-image: linear-gradient( |
|
to bottom, |
|
#fff, |
|
#fff 10%, |
|
rgba(245, 245, 245, 0) |
|
); |
|
top: -0.1em; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper::before { |
|
background-image: linear-gradient( |
|
to top, |
|
#fff, |
|
#fff 10%, |
|
rgba(245, 245, 245, 0) |
|
); |
|
bottom: 0; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper.-faded::after, |
|
.Calendar__yearSelectorWrapper.-faded::before { |
|
opacity: 1; |
|
z-index: 3; |
|
} |
|
|
|
.Calendar__yearSelector { |
|
align-content: flex-start; |
|
scrollbar-width: 0; |
|
overflow: scroll; |
|
position: relative; |
|
width: 100%; |
|
padding: 5em 2em; |
|
-ms-overflow-style: none; |
|
} |
|
|
|
.Calendar__yearSelector::-webkit-scrollbar { |
|
display: none; |
|
} |
|
|
|
.Calendar__yearSelectorItem { |
|
width: 25%; |
|
display: flex; |
|
justify-content: center; |
|
} |
|
|
|
.Calendar__yearSelectorItem:not(:nth-child(-n + 4)) { |
|
margin-top: 1.5em; |
|
} |
|
|
|
.Calendar__yearSelectorText { |
|
border: none; |
|
font-size: 1.4em; |
|
min-width: 85%; |
|
padding: 0.2em 0.5em; |
|
border-radius: 5px; |
|
} |
|
|
|
.Calendar__monthSelector.-open, |
|
.Calendar__yearSelector.-open { |
|
transform: translateY(0); |
|
} |
|
|
|
.Calendar__yearSelectorText:focus, |
|
.Calendar__monthSelectorItemText:focus { |
|
outline: 1px dashed rgba(0, 0, 0, 0.4); |
|
outline-offset: 2px; |
|
} |
|
|
|
.Calendar__monthSelectorItem { |
|
width: calc(100% / 3); |
|
display: flex; |
|
justify-content: center; |
|
} |
|
|
|
.Calendar__monthSelectorItem:not(:nth-child(-n + 3)) { |
|
margin-top: 2em; |
|
} |
|
|
|
.Calendar__monthSelectorItemText { |
|
border: none; |
|
padding: 0.4em 0.4em; |
|
border-radius: 8.5px; |
|
font-size: 1.3em; |
|
min-width: 70%; |
|
transition: 0.3s; |
|
} |
|
|
|
.Calendar__monthSelectorItem:not(.-active) |
|
.Calendar__monthSelectorItemText:not(:disabled):hover, |
|
.Calendar__yearSelectorItem:not(.-active) |
|
.Calendar__yearSelectorText:not(:disabled):hover { |
|
background: #f5f5f5; |
|
} |
|
|
|
.Calendar__monthSelectorItemText:disabled, |
|
.Calendar__yearSelectorText:disabled { |
|
opacity: 0.5; |
|
cursor: default; |
|
} |
|
|
|
.Calendar__monthSelectorItem.-active .Calendar__monthSelectorItemText, |
|
.Calendar__yearSelectorItem.-active .Calendar__yearSelectorText { |
|
background-color: #006c94; |
|
color: #fff; |
|
} |
|
|
|
.Calendar__weekDays { |
|
display: flex; |
|
justify-content: space-between; |
|
color: var(--cl-color-disabled); |
|
font-size: 1.2em; |
|
margin-bottom: 0.7em; |
|
padding: 0 2.6em; |
|
position: relative; |
|
} |
|
|
|
.Calendar__weekDay { |
|
display: block; |
|
width: calc(100% / 7); |
|
|
|
text-align: center; |
|
text-decoration: none; |
|
border: 0px; |
|
color: #06bace; |
|
margin: 0.2em; |
|
white-space: nowrap; |
|
} |
|
.Calendar__weekDay[title] { |
|
text-decoration: none; |
|
} |
|
|
|
.Calendar__sectionWrapper { |
|
position: relative; |
|
min-height: 25.8em; |
|
overflow: hidden; |
|
} |
|
|
|
.Calendar__section { |
|
display: flex; |
|
flex-direction: column; |
|
padding: 0 3.2em; |
|
position: absolute; |
|
color: var(--cl-color-black); |
|
top: 0; |
|
padding-top: 0.5em; |
|
left: 0; |
|
width: 100%; |
|
will-change: transform, opacity; |
|
transform: translateZ(0); |
|
backface-visibility: hidden; |
|
transition: var(--animation-duration); |
|
} |
|
|
|
.Calendar__section.-hiddenPrevious { |
|
opacity: 0.5; |
|
transform: translateX(-90%); |
|
} |
|
|
|
.Calendar.-rtl .Calendar__section.-hiddenPrevious { |
|
transform: translateX(90%); |
|
} |
|
|
|
.Calendar__section.-hiddenNext { |
|
opacity: 0.5; |
|
transform: translateX(90%); |
|
} |
|
|
|
.Calendar.-rtl .Calendar__section.-hiddenNext { |
|
transform: translateX(-90%); |
|
} |
|
|
|
.Calendar__section.-shown { |
|
opacity: 1; |
|
transform: translateX(0); |
|
} |
|
|
|
.Calendar__section.-shownAnimated { |
|
animation: var(--animation-duration) FadeContentToCenter forwards; |
|
} |
|
|
|
.Calendar__weekRow { |
|
display: flex; |
|
width: 100%; |
|
} |
|
|
|
.Calendar__day { |
|
width: calc(100% / 7 - 6px); |
|
text-align: center; |
|
padding: calc(0.25em - 1px); |
|
font-size: 1.6em; |
|
border-radius: 7px; |
|
transition: 0.2s; |
|
border: 1px solid transparent; |
|
margin: 3px; |
|
color: rgba(0, 0, 0, 0.8); |
|
display: flex; |
|
align-items: center; |
|
|
|
cursor: pointer; |
|
vertical-align: middle; |
|
background-color: #f3f3f3; |
|
color: #06bace; |
|
} |
|
.Calendar__day span { |
|
padding: -10px; |
|
margin-top: -30px; |
|
font-size: 28px; |
|
} |
|
|
|
.Calendar__day:focus { |
|
outline: 1px dashed rgba(0, 0, 0, 0.4); |
|
outline-offset: 2px; |
|
} |
|
|
|
.Calendar__day.-ltr { |
|
min-height: 2.6em; |
|
font-size: 1.45em; |
|
} |
|
|
|
.Calendar__day.-rtl { |
|
font-size: 1.55em; |
|
height: 2.45em; |
|
} |
|
|
|
.Calendar__day:not(.-blank):not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween):not(.-selected):hover { |
|
background-color: #dafbff; |
|
color: #06bace; |
|
border: 1px solid #06bace; |
|
} |
|
|
|
.Calendar__day.-selected, |
|
.Calendar__day.-selectedStart, |
|
.Calendar__day.-selectedEnd { |
|
background: #006c94; |
|
color: #fff; |
|
} |
|
|
|
.Calendar__day.-ltr.-selectedStart { |
|
border-radius: 0; |
|
border-top-left-radius: 7px; |
|
border-bottom-left-radius: 7px; |
|
} |
|
|
|
.Calendar__day.-rtl.-selectedStart { |
|
border-radius: 0; |
|
border-top-right-radius: 7px; |
|
border-bottom-right-radius: 7px; |
|
} |
|
|
|
.Calendar__day.-selectedBetween { |
|
background: rgba(0, 108, 148, 0.07); |
|
|
|
border-radius: 0; |
|
} |
|
|
|
.Calendar__day.-ltr.-selectedEnd { |
|
border-radius: 0; |
|
border-top-right-radius: 7px; |
|
border-bottom-right-radius: 7px; |
|
} |
|
|
|
.Calendar__day.-rtl.-selectedEnd { |
|
border-radius: 0; |
|
border-top-left-radius: 7px; |
|
border-bottom-left-radius: 7px; |
|
} |
|
|
|
.Calendar__day.-weekend:not(.-selected):not(.-blank):not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween) { |
|
color: var(--cl-color-error); |
|
} |
|
|
|
.Calendar__day.-weekend.-today:not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween)::after { |
|
background: var(--cl-color-error); |
|
} |
|
|
|
.Calendar__day.-disabled { |
|
color: var(--cl-color-disabled) !important; |
|
background: transparent !important; |
|
cursor: default !important; |
|
} |
|
.Calendar__day.-selected { |
|
} |
|
.Calendar__day.-today:not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween) { |
|
font-weight: 600; |
|
color: var(--cl-color-black); |
|
color: #000; |
|
position: relative; |
|
} |
|
|
|
.Calendar__day.-today:not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween)::after { |
|
content: ""; |
|
position: absolute; |
|
bottom: 0.2em; |
|
display: block; |
|
width: 0.6em; |
|
height: 1px; |
|
background: #000; |
|
left: 50%; |
|
opacity: 0.5; |
|
transform: translateX(-50%); |
|
transition: 0.2s; |
|
} |
|
|
|
.Calendar__day.-today:hover:not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween)::after { |
|
opacity: 0; |
|
} |
|
|
|
.Calendar__day.-blank { |
|
color: transparent; |
|
cursor: default; |
|
pointer-events: none; |
|
} |
|
|
|
.Calendar__footer { |
|
position: relative; |
|
z-index: 1; |
|
} |
|
.Calendar__footer .footer__Events { |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
font-size: 12px; |
|
font-family: "IranSans"; |
|
padding: 3px; |
|
} |
|
|
|
.Calendar .holiday span { |
|
color: #ff2929; |
|
} |
|
.Calendar .DayNumDiv { |
|
display: flex; |
|
flex-direction: column; |
|
} |
|
.Calendar .DayNumDiv span { |
|
margin: 0; |
|
padding: 0; |
|
margin-bottom: -5px; |
|
} |
|
.Calendar .DayNumDiv .eventDots { |
|
margin-top: -10px; |
|
font-size: 20px; |
|
} |
|
.GoToTodayButton { |
|
background-color: #006c94; |
|
padding: 7.5px; |
|
font-size: 12px; |
|
color: white; |
|
font-family: "iranSans"; |
|
border-radius: 50%; |
|
float: left; |
|
margin: 15px; |
|
} |
|
|
|
@keyframes fadeCalendar { |
|
from { |
|
opacity: 0; |
|
} |
|
|
|
to { |
|
opacity: 1; |
|
transform: translateY(0); |
|
} |
|
} |
|
|
|
@keyframes fadeArrowFlipped { |
|
from { |
|
opacity: 0; |
|
} |
|
|
|
to { |
|
opacity: 1; |
|
transform: translateY(0) rotate(180deg); |
|
} |
|
} |
|
|
|
@keyframes fadeTextToCenter { |
|
to { |
|
opacity: 1; |
|
transform: translateX(-50%); |
|
} |
|
} |
|
|
|
@keyframes FadeContentToCenter { |
|
to { |
|
opacity: 1; |
|
transform: translateX(0); |
|
} |
|
} |
|
|
|
// * end RangeDatePicker Component |
|
|
|
// TODO Start SimpleCalendar Component |
|
|
|
.Calendar * { |
|
font-family: "iranSans"; |
|
} |
|
|
|
.DatePicker { |
|
position: relative; |
|
display: inline-block; |
|
z-index: 100; |
|
} |
|
|
|
.DatePicker__input { |
|
background: #fff; |
|
border: 1px solid rgba(0, 0, 0, 0.4); |
|
padding: 0.6em 1.2em; |
|
font-family: "iranSans"; |
|
text-align: center; |
|
font-size: 12px; |
|
border-radius: 7px; |
|
} |
|
.DatePicker__input:focus { |
|
outline: 1px solid #06bace; |
|
color: #06bace; |
|
} |
|
|
|
.DatePicker__input.-rtl { |
|
direction: rtl; |
|
} |
|
|
|
.DatePicker__input::placeholder { |
|
color: #979797; |
|
} |
|
.DatePicker__input:focus::placeholder { |
|
color: #06bace; |
|
} |
|
|
|
.DatePicker__calendarContainer.-top + .DatePicker__calendarArrow { |
|
top: auto; |
|
bottom: calc(100% + 10px); |
|
transform: translateY(-2.5rem) rotate(180deg); |
|
animation: fadeArrowFlipped 0.3s forwards; |
|
} |
|
|
|
.DatePicker__calendarContainer { |
|
position: absolute; |
|
top: calc(100% + 20px); |
|
left: 50%; |
|
transform: translateX(-50%); |
|
} |
|
|
|
.DatePicker__calendarContainer.-top { |
|
top: auto; |
|
bottom: calc(100% + 20px); |
|
} |
|
|
|
.Calendar, |
|
.Calendar * { |
|
margin: 0; |
|
padding: 0; |
|
box-sizing: border-box; |
|
direction: ltr; |
|
} |
|
|
|
.Calendar, |
|
.Calendar.-rtl * { |
|
direction: rtl; |
|
} |
|
|
|
.DatePicker__calendarArrow { |
|
position: absolute; |
|
width: 0; |
|
height: 0; |
|
top: calc(100% + 10px); |
|
left: 0; |
|
right: 0; |
|
margin: 0 auto; |
|
border-style: solid; |
|
z-index: 10; |
|
border-width: 0 10px 10px 10px; |
|
border-color: transparent transparent #fff transparent; |
|
} |
|
|
|
.Calendar { |
|
--cl-color-black: #444444; |
|
--cl-color-disabled: #d4d4d4; |
|
--cl-color-error: #ff2929; |
|
font-family: "iranSans"; |
|
font-size: 10px; |
|
background: rgba(245, 245, 245, 0.53); |
|
border: 1px solid #dbdbdb; |
|
box-shadow: 0 1em em rgba(0, 0, 0, 0.07); |
|
border-radius: 1em; |
|
position: relative; |
|
user-select: none; |
|
padding-top: 1.2em; |
|
display: flex; |
|
flex-direction: column; |
|
width: 40em; |
|
z-index: 10; |
|
max-width: 90vw; |
|
min-height: 38.7em; |
|
} |
|
.Calendar.dashboard { |
|
--cl-color-black: #444444; |
|
--cl-color-disabled: #d4d4d4; |
|
--cl-color-error: #ff2929; |
|
font-family: "iranSans"; |
|
font-size: 10px; |
|
background: rgba(255, 255, 255, 1); |
|
border: 1px solid #edf2fb; |
|
box-shadow: 0 1em em rgba(0, 0, 0, 0.07); |
|
border-radius: 1em; |
|
position: relative; |
|
user-select: none; |
|
padding-top: 1.2em; |
|
display: flex; |
|
flex-direction: column; |
|
width: 50em; |
|
z-index: 10; |
|
max-width: 90vw; |
|
min-height: 38.7em; |
|
} |
|
|
|
.DatePicker .Calendar, |
|
.DatePicker__calendarArrow { |
|
transform: translateY(2.5em); |
|
opacity: 0; |
|
animation: fadeCalendar 0.3s forwards; |
|
} |
|
|
|
.DatePicker__calendarContainer.-top .Calendar { |
|
transform: translateY(-2.5em); |
|
} |
|
|
|
.Calendar.-noFocusOutline *:focus { |
|
outline: none !important; |
|
} |
|
|
|
.Calendar > :not(.Calendar__footer) button { |
|
font-family: inherit; |
|
background: transparent; |
|
cursor: pointer; |
|
-webkit-tap-highlight-color: transparent; |
|
outline: none; |
|
} |
|
|
|
.Calendar__header { |
|
display: flex; |
|
color: var(--cl-color-black); |
|
padding: 2em 2.9em; |
|
align-items: center; |
|
overflow: hidden; |
|
} |
|
|
|
.Calendar__monthArrowWrapper { |
|
line-height: 0; |
|
font-size: 1em; |
|
padding: 3px; |
|
position: relative; |
|
border: none; |
|
z-index: 1; |
|
opacity: 1; |
|
transition: 0.2s; |
|
background-color: #06bace; |
|
} |
|
|
|
.Calendar__monthArrowWrapper:focus { |
|
outline: 1px dashed rgba(0, 0, 0, 0.4); |
|
outline-offset: 2px; |
|
} |
|
|
|
.Calendar__monthArrowWrapper:disabled, |
|
.Calendar__monthArrowWrapper.-hidden { |
|
opacity: 0; |
|
pointer-events: none; |
|
} |
|
|
|
.Calendar__monthArrowWrapper.-left { |
|
transform: rotate(180deg); |
|
} |
|
.Calendar.-rtl .Calendar__monthArrowWrapper.-left { |
|
transform: rotate(-180deg); |
|
} |
|
|
|
.Calendar__monthArrowWrapper.-right { |
|
transform: rotate(-0deg); |
|
} |
|
.Calendar.-rtl .Calendar__monthArrowWrapper.-right { |
|
transform: rotate(0deg); |
|
} |
|
|
|
.Calendar__monthArrowWrapper:active .Calendar__monthArrow { |
|
transform: scale(0.7); |
|
} |
|
|
|
.Calendar__monthArrow { |
|
border-radius: 7px; |
|
padding: 12px; |
|
transition: var(--animation-duration) transform; |
|
pointer-events: none; |
|
background-repeat: no-repeat; |
|
display: block; |
|
width: 0.7em; |
|
height: 0.7em; |
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='15' height='15' viewBox='0 0 50 80' xml:space='preserve'%3E%3Cpolyline fill='none' stroke='%23FFFFFF' stroke-width='15' stroke-linecap='round' stroke-linejoin='round' points=' 0.375,0.375 45.63,38.087 0.375,75.8 '/%3E%3C/svg%3E"); |
|
background-size: 100% 100%; |
|
background-color: #06bace; |
|
background-size: 10px; |
|
background-position: center; |
|
} |
|
|
|
.Calendar__monthYearContainer { |
|
flex: 1; |
|
position: relative; |
|
} |
|
|
|
.Calendar__monthYear { |
|
font-size: 2em; |
|
font-weight: 500; |
|
display: flex; |
|
align-items: center; |
|
position: absolute; |
|
top: 0; |
|
bottom: 0; |
|
left: 50%; |
|
will-change: transform, opacity; |
|
backface-visibility: hidden; |
|
transform: translateZ(0); |
|
transition: var(--animation-duration); |
|
line-height: 1; |
|
color: #246e8a; |
|
} |
|
.Calendar__monthYear.dashboard { |
|
font-size: 2em; |
|
font-weight: 500; |
|
display: flex; |
|
align-items: center; |
|
position: absolute; |
|
top: 0; |
|
bottom: 0; |
|
left: 50%; |
|
will-change: transform, opacity; |
|
backface-visibility: hidden; |
|
transform: translateZ(0); |
|
transition: var(--animation-duration); |
|
line-height: 1; |
|
color: #65a9ff; |
|
} |
|
|
|
.Calendar__monthYear.-hiddenNext { |
|
opacity: 0; |
|
transform: translateX(50%); |
|
} |
|
|
|
.Calendar.-rtl .Calendar__monthYear.-hiddenNext { |
|
transform: translateX(-150%); |
|
} |
|
|
|
.Calendar__monthYear.-hiddenPrevious { |
|
opacity: 0; |
|
transform: translateX(-150%); |
|
} |
|
|
|
.Calendar.-rtl .Calendar__monthYear.-hiddenPrevious { |
|
transform: translateX(50%); |
|
} |
|
|
|
.Calendar__monthYear.-shown { |
|
opacity: 1; |
|
margin-top: auto; |
|
margin-bottom: auto; |
|
transform: translateX(-50%); |
|
} |
|
|
|
.Calendar__monthYear.-shownAnimated { |
|
animation: var(--animation-duration) fadeTextToCenter forwards; |
|
} |
|
|
|
.Calendar__monthYear > * { |
|
padding: 0.2em 0.5em; |
|
border: 1px solid transparent; |
|
transition: var(--animation-duration); |
|
font-size: 1.05em; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
transform: translateX(0) scale(0.95); |
|
will-change: transform; |
|
border-radius: 5px; |
|
} |
|
|
|
.Calendar__monthYear:not(.-shown) > *, |
|
.Calendar__monthYear > *.-hidden { |
|
cursor: default; |
|
pointer-events: none; |
|
} |
|
|
|
.Calendar__monthText { |
|
margin-left: -0.3em; |
|
} |
|
.Calendar__yearText:last-child { |
|
margin-right: -0.3em; |
|
} |
|
|
|
.Calendar__monthYear.-shown > *:hover, |
|
.Calendar:not(.-noFocusOutline) .Calendar__monthYear.-shown > *:focus, |
|
.Calendar__monthYear > *.-activeBackground { |
|
background: #f5f5f5; |
|
} |
|
|
|
.Calendar__monthText:hover { |
|
transform: translateX(-0.2em) scale(0.95); |
|
} |
|
.Calendar.-rtl .Calendar__monthText:hover { |
|
transform: translateX(0.2em) scale(0.95); |
|
} |
|
|
|
.Calendar__yearText:hover { |
|
transform: translateX(0.2em) scale(0.95); |
|
} |
|
.Calendar.-rtl .Calendar__yearText:hover { |
|
transform: translateX(-0.2em) scale(0.95); |
|
} |
|
|
|
.Calendar__monthYear .Calendar__yearText.-hidden { |
|
transform: translateX(50%); |
|
opacity: 0; |
|
} |
|
|
|
.Calendar.-rtl .Calendar__monthYear .Calendar__yearText.-hidden { |
|
transform: translateX(-50%); |
|
} |
|
|
|
.Calendar__monthYear .Calendar__monthText.-hidden { |
|
transform: translateX(-50%); |
|
opacity: 0; |
|
} |
|
|
|
.Calendar.-rtl .Calendar__monthYear .Calendar__monthText.-hidden { |
|
transform: translateX(50%); |
|
} |
|
|
|
.Calendar__monthYear:not(.-shown) > * { |
|
pointer-events: none; |
|
} |
|
|
|
.Calendar__monthSelectorAnimationWrapper, |
|
.Calendar__yearSelectorAnimationWrapper { |
|
position: absolute; |
|
width: 100%; |
|
height: 80%; |
|
bottom: 0; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
overflow: hidden; |
|
} |
|
|
|
.Calendar__monthSelectorWrapper { |
|
width: 100%; |
|
height: 100%; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
.Calendar__monthSelector { |
|
padding: 0 2.5em; |
|
align-content: center; |
|
padding-bottom: 2em; |
|
} |
|
|
|
.Calendar__monthSelector, |
|
.Calendar__yearSelector { |
|
display: flex; |
|
flex-wrap: wrap; |
|
position: relative; |
|
z-index: 2; |
|
background-color: #fff; |
|
transform: translateY(-150%); |
|
will-change: transform; |
|
transition: 0.6s; |
|
height: 100%; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper { |
|
width: 100%; |
|
height: 100%; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper::after, |
|
.Calendar__yearSelectorWrapper::before { |
|
content: ""; |
|
width: 100%; |
|
height: 5em; |
|
position: absolute; |
|
left: 0; |
|
opacity: 0; |
|
transition: 0.4s; |
|
transition-delay: 0.2s; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper::after { |
|
background-image: linear-gradient( |
|
to bottom, |
|
#fff, |
|
#fff 10%, |
|
rgba(245, 245, 245, 0) |
|
); |
|
top: -0.1em; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper::before { |
|
background-image: linear-gradient( |
|
to top, |
|
#fff, |
|
#fff 10%, |
|
rgba(245, 245, 245, 0) |
|
); |
|
bottom: 0; |
|
} |
|
|
|
.Calendar__yearSelectorWrapper.-faded::after, |
|
.Calendar__yearSelectorWrapper.-faded::before { |
|
opacity: 1; |
|
z-index: 3; |
|
} |
|
|
|
.Calendar__yearSelector { |
|
align-content: flex-start; |
|
scrollbar-width: 0; |
|
overflow: scroll; |
|
position: relative; |
|
width: 100%; |
|
padding: 5em 2em; |
|
-ms-overflow-style: none; |
|
} |
|
|
|
.Calendar__yearSelector::-webkit-scrollbar { |
|
display: none; |
|
} |
|
|
|
.Calendar__yearSelectorItem { |
|
width: 25%; |
|
display: flex; |
|
justify-content: center; |
|
} |
|
|
|
.Calendar__yearSelectorItem:not(:nth-child(-n + 4)) { |
|
margin-top: 1.5em; |
|
} |
|
|
|
.Calendar__yearSelectorText { |
|
border: none; |
|
font-size: 1.4em; |
|
min-width: 85%; |
|
padding: 0.2em 0.5em; |
|
border-radius: 5px; |
|
} |
|
|
|
.Calendar__monthSelector.-open, |
|
.Calendar__yearSelector.-open { |
|
transform: translateY(0); |
|
} |
|
|
|
.Calendar__yearSelectorText:focus, |
|
.Calendar__monthSelectorItemText:focus { |
|
outline: 1px dashed rgba(0, 0, 0, 0.4); |
|
outline-offset: 2px; |
|
} |
|
|
|
.Calendar__monthSelectorItem { |
|
width: calc(100% / 3); |
|
display: flex; |
|
justify-content: center; |
|
} |
|
|
|
.Calendar__monthSelectorItem:not(:nth-child(-n + 3)) { |
|
margin-top: 2em; |
|
} |
|
|
|
.Calendar__monthSelectorItemText { |
|
border: none; |
|
padding: 0.4em 0.4em; |
|
border-radius: 8.5px; |
|
font-size: 1.3em; |
|
min-width: 70%; |
|
transition: 0.3s; |
|
} |
|
|
|
.Calendar__monthSelectorItem:not(.-active) |
|
.Calendar__monthSelectorItemText:not(:disabled):hover, |
|
.Calendar__yearSelectorItem:not(.-active) |
|
.Calendar__yearSelectorText:not(:disabled):hover { |
|
background: #f5f5f5; |
|
} |
|
|
|
.Calendar__monthSelectorItemText:disabled, |
|
.Calendar__yearSelectorText:disabled { |
|
opacity: 0.5; |
|
cursor: default; |
|
} |
|
|
|
.Calendar__monthSelectorItem.-active .Calendar__monthSelectorItemText, |
|
.Calendar__yearSelectorItem.-active .Calendar__yearSelectorText { |
|
background-color: #006c94; |
|
color: #fff; |
|
} |
|
|
|
.Calendar__weekDays { |
|
display: flex; |
|
justify-content: space-between; |
|
color: var(--cl-color-disabled); |
|
font-size: 1.2em; |
|
margin-bottom: 0.7em; |
|
padding: 0 2.6em; |
|
position: relative; |
|
} |
|
.Calendar__weekDays.dashboard { |
|
display: flex; |
|
justify-content: space-between; |
|
color: var(--cl-color-disabled); |
|
font-size: 1.2em; |
|
margin-bottom: 0.7em; |
|
padding: 0.75em 2.6em; |
|
position: relative; |
|
background-color: #edf2fb; |
|
} |
|
|
|
.Calendar__weekDay { |
|
display: block; |
|
width: calc(100% / 7); |
|
|
|
text-align: center; |
|
text-decoration: none; |
|
border: 0px; |
|
color: #06bace; |
|
margin: 0.2em; |
|
white-space: nowrap; |
|
} |
|
.Calendar__weekDay.dashboard { |
|
color: #a2b4cb; |
|
} |
|
.Calendar__weekDay[title] { |
|
text-decoration: none; |
|
} |
|
|
|
.Calendar__sectionWrapper { |
|
position: relative; |
|
min-height: 25.8em; |
|
overflow: hidden; |
|
} |
|
|
|
.Calendar__section { |
|
display: flex; |
|
flex-direction: column; |
|
padding: 0 3.2em; |
|
position: absolute; |
|
color: var(--cl-color-black); |
|
top: 0; |
|
padding-top: 0.5em; |
|
left: 0; |
|
width: 100%; |
|
will-change: transform, opacity; |
|
transform: translateZ(0); |
|
backface-visibility: hidden; |
|
transition: var(--animation-duration); |
|
} |
|
|
|
.Calendar__section.-hiddenPrevious { |
|
opacity: 0.5; |
|
transform: translateX(-90%); |
|
} |
|
|
|
.Calendar.-rtl .Calendar__section.-hiddenPrevious { |
|
transform: translateX(90%); |
|
} |
|
|
|
.Calendar__section.-hiddenNext { |
|
opacity: 0.5; |
|
transform: translateX(90%); |
|
} |
|
|
|
.Calendar.-rtl .Calendar__section.-hiddenNext { |
|
transform: translateX(-90%); |
|
} |
|
|
|
.Calendar__section.-shown { |
|
opacity: 1; |
|
transform: translateX(0); |
|
} |
|
|
|
.Calendar__section.-shownAnimated { |
|
animation: var(--animation-duration) FadeContentToCenter forwards; |
|
} |
|
|
|
.Calendar__weekRow { |
|
display: flex; |
|
width: 100%; |
|
} |
|
|
|
.Calendar__day { |
|
width: calc(100% / 7 - 6px); |
|
text-align: center; |
|
padding: calc(0.25em - 1px); |
|
font-size: 1.6em; |
|
border-radius: 7px; |
|
transition: 0.2s; |
|
border: 1px solid transparent; |
|
margin: 3px; |
|
color: rgba(0, 0, 0, 0.8); |
|
display: flex; |
|
align-items: center; |
|
|
|
cursor: pointer; |
|
vertical-align: middle; |
|
background-color: #f3f3f3; |
|
color: #06bace; |
|
} |
|
.Calendar__day.dashboard { |
|
width: calc(100% / 7 - 6px); |
|
text-align: center; |
|
padding: calc(0.25em - 1px); |
|
font-size: 1.6em; |
|
border-radius: 7px; |
|
transition: 0.2s; |
|
border: 1px solid transparent; |
|
margin: 3px; |
|
color: rgba(0, 0, 0, 0.8); |
|
display: flex; |
|
align-items: center; |
|
|
|
cursor: pointer; |
|
vertical-align: middle; |
|
background-color: transparent; |
|
color: #00253a; |
|
} |
|
.Calendar__day span { |
|
padding: -10px; |
|
margin-top: -30px; |
|
font-size: 28px; |
|
} |
|
|
|
.Calendar__day:focus { |
|
outline: 1px dashed rgba(0, 0, 0, 0.4); |
|
outline-offset: 2px; |
|
} |
|
|
|
.Calendar__day.-ltr { |
|
min-height: 2.6em; |
|
font-size: 1.45em; |
|
} |
|
|
|
.Calendar__day.-rtl { |
|
font-size: 1.55em; |
|
height: 2.45em; |
|
} |
|
|
|
.Calendar__day:not(.-blank):not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween):not(.-selected):hover { |
|
background-color: #dafbff; |
|
color: #06bace; |
|
border: 1px solid #06bace; |
|
} |
|
|
|
.Calendar__day.-selected, |
|
.Calendar__day.-selectedStart, |
|
.Calendar__day.-selectedEnd { |
|
background: #006c94; |
|
color: #fff; |
|
} |
|
|
|
.Calendar__day.-ltr.-selectedStart { |
|
border-radius: 0; |
|
border-top-left-radius: 7px; |
|
border-bottom-left-radius: 7px; |
|
} |
|
|
|
.Calendar__day.-rtl.-selectedStart { |
|
border-radius: 0; |
|
border-top-right-radius: 7px; |
|
border-bottom-right-radius: 7px; |
|
} |
|
|
|
.Calendar__day.-selectedBetween { |
|
background: rgba(0, 108, 148, 0.07); |
|
|
|
border-radius: 0; |
|
} |
|
|
|
.Calendar__day.-ltr.-selectedEnd { |
|
border-radius: 0; |
|
border-top-right-radius: 7px; |
|
border-bottom-right-radius: 7px; |
|
} |
|
|
|
.Calendar__day.-rtl.-selectedEnd { |
|
border-radius: 0; |
|
border-top-left-radius: 7px; |
|
border-bottom-left-radius: 7px; |
|
} |
|
|
|
.Calendar__day.-weekend:not(.-selected):not(.-blank):not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween) { |
|
color: var(--cl-color-error); |
|
} |
|
|
|
.Calendar__day.-weekend.-today:not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween)::after { |
|
background: var(--cl-color-error); |
|
} |
|
|
|
.Calendar__day.-disabled { |
|
color: var(--cl-color-disabled) !important; |
|
background: transparent !important; |
|
cursor: default !important; |
|
} |
|
.Calendar__day.-selected { |
|
} |
|
.Calendar__day.-today:not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween) { |
|
font-weight: 600; |
|
color: var(--cl-color-black); |
|
color: #000; |
|
position: relative; |
|
} |
|
|
|
.Calendar__day.-today:not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween)::after { |
|
content: ""; |
|
position: absolute; |
|
bottom: 0.2em; |
|
display: block; |
|
width: 0.6em; |
|
height: 1px; |
|
background: #000; |
|
left: 50%; |
|
opacity: 0.5; |
|
transform: translateX(-50%); |
|
transition: 0.2s; |
|
} |
|
|
|
.Calendar__day.-today:hover:not(.-selectedStart):not(.-selectedEnd):not(.-selectedBetween)::after { |
|
opacity: 0; |
|
} |
|
|
|
.Calendar__day.-blank { |
|
color: transparent; |
|
cursor: default; |
|
pointer-events: none; |
|
} |
|
|
|
.Calendar__footer { |
|
position: relative; |
|
z-index: 1; |
|
} |
|
.Calendar__footer .footer__Events { |
|
display: flex; |
|
flex-direction: column; |
|
align-items: center; |
|
font-size: 12px; |
|
font-family: "IranSans"; |
|
padding: 3px; |
|
} |
|
.Calendar__footer .footer__Events.dashboard { |
|
display: flex; |
|
justify-content: start; |
|
width: 100%; |
|
align-items: flex-start; |
|
font-size: 12px; |
|
font-family: "IranSans"; |
|
margin-top: 10px; |
|
padding: 1em 2em; |
|
border-top: 1px solid #edf2fb; |
|
} |
|
|
|
.Calendar__footer .footer__Events.dashboard p { |
|
font-size: 15px; |
|
margin: 2.5px 0px; |
|
} |
|
|
|
.Calendar .holiday span { |
|
color: #ff2929; |
|
} |
|
.Calendar .DayNumDiv { |
|
display: flex; |
|
flex-direction: column; |
|
} |
|
.Calendar .DayNumDiv span { |
|
margin: 0; |
|
padding: 0; |
|
margin-bottom: -5px; |
|
} |
|
.Calendar .DayNumDiv .eventDots { |
|
margin-top: -10px; |
|
font-size: 20px; |
|
} |
|
.GoToTodayButton { |
|
background-color: #006c94; |
|
padding: 7.5px; |
|
font-size: 12px; |
|
color: white; |
|
font-family: "iranSans"; |
|
border-radius: 50%; |
|
float: left; |
|
margin: 15px; |
|
} |
|
@keyframes fadeCalendar { |
|
from { |
|
opacity: 0; |
|
} |
|
|
|
to { |
|
opacity: 1; |
|
transform: translateY(0); |
|
} |
|
} |
|
|
|
@keyframes fadeArrowFlipped { |
|
from { |
|
opacity: 0; |
|
} |
|
|
|
to { |
|
opacity: 1; |
|
transform: translateY(0) rotate(180deg); |
|
} |
|
} |
|
|
|
@keyframes fadeTextToCenter { |
|
to { |
|
opacity: 1; |
|
transform: translateX(-50%); |
|
} |
|
} |
|
|
|
@keyframes FadeContentToCenter { |
|
to { |
|
opacity: 1; |
|
transform: translateX(0); |
|
} |
|
} |
|
|
|
// * end SimpleCalendar Component |
|
|
|
// TODO Start Folderlist Component |
|
|
|
.tabbar { |
|
cursor: pointer; |
|
} |
|
|
|
.active2, |
|
.active2 li a { |
|
cursor: move !important; |
|
} |
|
|
|
// * end Folderlist Component |
|
|
|
// TODO Start Footer/Design1 Component |
|
|
|
.footer-items { |
|
transition: all 0.4s; |
|
} |
|
|
|
.footer-items:hover { |
|
transform: translateY(-2px) !important; |
|
} |
|
|
|
// * end Footer/Design1 Component |
|
|
|
// TODO Start LeafletMap Component |
|
|
|
.leaflet-container { |
|
width: 100%; |
|
height: 100vh; |
|
} |
|
|
|
.leaflet-control-scale-line:not(:first-child) { |
|
display: none !important; |
|
} |
|
|
|
.leaflet-tile { |
|
border: 1px solid gray; |
|
|
|
box-sizing: content-box; |
|
} |
|
|
|
.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon { |
|
display: none !important; |
|
} |
|
|
|
// .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle { |
|
// display: none !important; |
|
// } |
|
|
|
// .leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker { |
|
// display: none !important; |
|
// } |
|
|
|
.leaflet-right .leaflet-draw-actions li:first-child a { |
|
border-radius: 0px !important; |
|
} |
|
|
|
.leaflet-right .leaflet-draw-actions li:last-child a { |
|
border-radius: 4px 0 0 4px; |
|
} |
|
|
|
.leaflet-popup-content, |
|
.leaflet-draw-toolbar a, |
|
.leaflet-popup-content, |
|
.leaflet-draw-toolbar span, |
|
.leaflet-popup-content, |
|
.leaflet-draw-toolbar title, |
|
.leaflet-popup-content, |
|
.leaflet-draw-toolbar p, |
|
l.leaflet-popup-content, |
|
.leaflet-draw-toolbar i { |
|
font-family: "iransans-medium" !important; |
|
} |
|
|
|
.leaflet-touch .leaflet-draw-actions a { |
|
font-family: "iransans-medium" !important; |
|
} |
|
|
|
// * end LeafletMap Component |
|
|
|
// TODO Start PopupCard Component |
|
|
|
.MuiOutlinedInput-input { |
|
box-shadow: none !important; |
|
font-family: iransans-medium !important; |
|
} |
|
|
|
.MuiOutlinedInput-input::placeholder { |
|
font-family: iransans-medium !important; |
|
} |
|
|
|
// * end PopupCard Component |
|
|
|
// TODO Start ReactTable4 Component |
|
|
|
.customeClass1 .customeClass2 input { |
|
display: none !important; |
|
} |
|
|
|
.customeClass1 .customeClass2 span { |
|
display: none !important; |
|
} |
|
|
|
.tabbar { |
|
cursor: pointer; |
|
} |
|
|
|
.active2, |
|
.active2 li a { |
|
cursor: move !important; |
|
} |
|
|
|
// * end PopupCard ReactTable4 |
|
|
|
// TODO Start ReactTable5 Component |
|
|
|
.customeClass1 .customeClass2 input { |
|
display: none !important; |
|
} |
|
|
|
.customeClass1 .customeClass2 span { |
|
display: none !important; |
|
} |
|
|
|
.tabbar { |
|
cursor: pointer; |
|
} |
|
|
|
.active2, |
|
.active2 li a { |
|
cursor: move !important; |
|
} |
|
|
|
// * end PopupCard ReactTable5 |
|
|
|
// TODO Start ReactTable5 Component |
|
|
|
.tabbar { |
|
cursor: pointer; |
|
} |
|
|
|
.active2, |
|
.active2 li a { |
|
cursor: move !important; |
|
} |
|
|
|
// * end PopupCard SelectYear |
|
|
|
// TODO Start SemiDonut Component |
|
|
|
.apexcharts-legend { |
|
display: flex; |
|
overflow: auto; |
|
padding: 0 10px; |
|
position: absolute !important; |
|
left: 0px; |
|
top: 200px !important; |
|
justify-content: center !important; |
|
} |
|
|
|
.apexcharts-canvas { |
|
top: -54px !important; |
|
} |
|
|
|
.apexcharts-legend-text { |
|
margin-right: 5px !important; |
|
font-family: iransans-medium !important; |
|
} |
|
|
|
.apexcharts-legend-marker { |
|
border-radius: 0px !important; |
|
width: 15px !important; |
|
height: 15px !important; |
|
} |
|
|
|
.apexcharts-legend-series { |
|
margin-top: 10px !important; |
|
} |
|
|
|
.apexcharts-datalabels { |
|
display: none !important; |
|
} |
|
|
|
// * end PopupCard SemiDonut |
|
|
|
// TODO Start StarRating Component |
|
|
|
.on { |
|
color: #ffbd35; |
|
} |
|
|
|
.off { |
|
color: #ccc; |
|
} |
|
|
|
// * end PopupCard StarRating |
|
|
|
// TODO Start Switch Component |
|
|
|
input:checked ~ .dot { |
|
transform: translateX(100%); |
|
background-color: #65a9ff; |
|
} |
|
|
|
input:checked ~ .dot { |
|
transform: translateX(100%); |
|
background-color: #65a9ff; |
|
} |
|
|
|
// * end PopupCard Switch |
|
|
|
// TODO Start TimeLineComponent Component |
|
|
|
#root { |
|
width: 100%; |
|
} |
|
|
|
.timeline-container::after { |
|
background-color: #06bace; |
|
content: ""; |
|
position: absolute; |
|
right: calc(50% - 2px); |
|
width: 4px; |
|
height: 100%; |
|
border-radius: 10px; |
|
} |
|
|
|
.timeline-item:nth-child(odd) { |
|
align-self: flex-start; |
|
justify-content: flex-end; |
|
padding-right: 0px; |
|
padding-left: 30px; |
|
} |
|
|
|
.timeline-item-content::after { |
|
content: ""; |
|
background-color: #fff; |
|
box-shadow: 1px -1px 1px #d6d6d6; |
|
width: 15px; |
|
height: 15px; |
|
position: absolute; |
|
transform: rotate(45deg); |
|
right: -7.5px; |
|
top: calc(50% - 5px); |
|
} |
|
|
|
.timeline-item:nth-child(odd) .timeline-item-content { |
|
align-items: flex-start; |
|
text-align: left; |
|
} |
|
|
|
.timeline-item:nth-child(odd) .timeline-item-content::after { |
|
box-shadow: -1px 1px 1px #d6d6d6; |
|
right: auto; |
|
left: -7.5px; |
|
} |
|
|
|
.timeline-item-content .circle { |
|
background-color: #06bace; |
|
border: solid 4px #fff; |
|
border-radius: 50%; |
|
width: 20px; |
|
height: 20px; |
|
position: absolute; |
|
top: calc(50% - 10px); |
|
right: -41px; |
|
z-index: 100; |
|
} |
|
|
|
.timeline-item:nth-child(odd) .timeline-item-content .circle { |
|
right: auto; |
|
left: -41px; |
|
} |
|
|
|
@media only screen and (max-width: 767px) { |
|
.timeline-item-content, |
|
.timeline-item:nth-child(odd) .timeline-item-content { |
|
padding: 15px 10px; |
|
text-align: center !important; |
|
align-items: center !important; |
|
} |
|
|
|
.timeline-item-content .tag { |
|
width: calc(100% - 10px); |
|
} |
|
|
|
.timeline-item-content time { |
|
margin-top: 20px; |
|
} |
|
|
|
.timeline-item-content a { |
|
text-decoration: underline; |
|
} |
|
|
|
.timeline-item-content a::after { |
|
display: none; |
|
} |
|
} |
|
|
|
// * end PopupCard TimeLineComponent |
|
|
|
// TODO Start Toast Component |
|
|
|
$red: #e92424; |
|
$errorToastBgColor: #ffeaea; |
|
|
|
$lightGreen: #3ee924; |
|
$successToastBgColor: #f2ffea; |
|
|
|
$white: #fff; |
|
|
|
.swal2-popup.swal2-toast .swal2-title { |
|
font-size: 14px !important; |
|
} |
|
|
|
.swal2-popup.swal2-toast .swal2-close { |
|
margin-left: 0px !important; |
|
margin-top: 0px !important; |
|
} |
|
|
|
.swal2-timer-progress-bar-container { |
|
direction: ltr !important; |
|
} |
|
|
|
// .swal2-timer-progress-bar { |
|
// background-color: yellow !important; |
|
// } |
|
|
|
.swal2-icon { |
|
font-size: 13px !important; |
|
} |
|
|
|
// ! error Tost |
|
.error-toast-title { |
|
color: $red !important; |
|
} |
|
|
|
.error-toast-modalBox, |
|
.error-toast-modalBox-timer { |
|
background-color: $errorToastBgColor !important; |
|
} |
|
|
|
.error-toast-closeButton { |
|
background-color: $red !important; |
|
color: $white !important; |
|
padding: 15px !important; |
|
} |
|
|
|
.success-toast-title { |
|
color: $lightGreen !important; |
|
} |
|
|
|
.success-toast-modalBox, |
|
.success-toast-modalBox-timer { |
|
background-color: $successToastBgColor !important; |
|
} |
|
|
|
.success-toast-closeButton { |
|
background-color: $lightGreen !important; |
|
color: $white !important; |
|
padding: 15px !important; |
|
} |
|
|
|
.error-toast-modalBox-timer .swal2-timer-progress-bar-container { |
|
background-color: #e9242455 !important; |
|
} |
|
|
|
.error-toast-modalBox-timer .swal2-timer-progress-bar { |
|
background-color: $red !important; |
|
} |
|
|
|
.success-toast-modalBox-timer .swal2-timer-progress-bar-container { |
|
background-color: #3ee92455 !important; |
|
} |
|
|
|
.success-toast-modalBox-timer .swal2-timer-progress-bar { |
|
background-color: $lightGreen !important; |
|
} |
|
|
|
// * end Toast Component |
|
|
|
// TODO Start vodProductDesign Component |
|
|
|
.playBtnImg { |
|
transition: all 0.4s; |
|
} |
|
|
|
// * end vodProductDesign Component |
|
|
|
// TODO Start CheckBox Component |
|
|
|
.checkbox-container * { |
|
box-sizing: border-box; |
|
} |
|
|
|
.checkbox:not(:last-child) { |
|
margin-right: 6px; |
|
} |
|
|
|
.checkbox span:first-child { |
|
position: relative; |
|
flex: 0 0 18px; |
|
width: 18px; |
|
height: 18px; |
|
border-radius: 4px; |
|
transform: scale(1); |
|
border: 1px solid #cccfdb; |
|
transition: all 0.3s ease; |
|
} |
|
|
|
.checkbox span:first-child svg { |
|
position: absolute; |
|
top: 3px; |
|
left: 2px; |
|
fill: none; |
|
stroke: #fff; |
|
stroke-dasharray: 16px; |
|
stroke-dashoffset: 16px; |
|
transition: all 0.3s ease; |
|
transform: translate3d(0, 0, 0); |
|
} |
|
|
|
.checkbox span:last-child { |
|
padding-left: 8px; |
|
line-height: 18px; |
|
} |
|
|
|
.checkbox:hover span:first-child { |
|
border-color: #0077ff; |
|
} |
|
|
|
.checkbox-input:checked + .checkbox span:first-child { |
|
background: #0077ff; |
|
border-color: #0077ff; |
|
animation: zoom-in-out 0.3s ease; |
|
} |
|
|
|
.checkbox-input:checked + .checkbox span:first-child svg { |
|
stroke-dashoffset: 0; |
|
} |
|
|
|
@keyframes zoom-in-out { |
|
50% { |
|
transform: scale(0.9); |
|
} |
|
} |
|
|
|
// * end CheckBox Component |
|
|
|
// ? class for selectbox inside -->> CustomSelectBox <<-- |
|
.customizeSelect { |
|
background-position: left 0.5rem center; |
|
padding-right: 1rem; |
|
} |
|
|
|
// TODO Start CheckBox Component |
|
|
|
$primary: #06bace; |
|
$gray: #dbdbdb; |
|
$danger: #e00a0a; |
|
$success: #23c933; |
|
|
|
.input { |
|
&__labelFocus { |
|
top: 0px !important; |
|
font-size: 9px !important; |
|
color: $primary !important; |
|
} |
|
&__labelDanger { |
|
top: 0px !important; |
|
font-size: 9px !important; |
|
color: $danger !important; |
|
} |
|
&__labelSuccess { |
|
top: 0px !important; |
|
font-size: 9px !important; |
|
color: $success !important; |
|
} |
|
|
|
&__inputActive { |
|
border-color: $primary !important; |
|
} |
|
&__inputSuccess { |
|
border-color: $success !important; |
|
} |
|
&__inputDanger { |
|
border-color: $danger !important; |
|
} |
|
|
|
&__message { |
|
&Success { |
|
color: $success; |
|
} |
|
&Danger { |
|
color: $danger; |
|
} |
|
} |
|
&__length { |
|
&Success { |
|
color: $success; |
|
} |
|
&Danger { |
|
color: $danger; |
|
} |
|
} |
|
} |
|
|
|
// * end CheckBox Component |
|
|
|
// TODO Start Switch2 Component |
|
|
|
.switch { |
|
position: relative; |
|
input[type="checkbox"] { |
|
visibility: hidden; |
|
position: absolute; |
|
&:checked + label { |
|
transform: rotate(0deg); |
|
background-color: #000; |
|
&:before { |
|
transform: translateX(35.5px); |
|
background-color: #fff; |
|
} |
|
} |
|
} |
|
|
|
label { |
|
transition: transform 0.3s ease-in-out; |
|
transform-origin: 50% 50%; |
|
|
|
&:before { |
|
transition: transform 0.3s ease; |
|
transition-delay: 0s; |
|
content: ""; |
|
display: block; |
|
position: absolute; |
|
width: 24px; |
|
height: 24px; |
|
background-color: #000; |
|
border-radius: 50%; |
|
top: 2px; |
|
left: 3px; |
|
} |
|
} |
|
} |
|
|
|
// * end Switch2 Component |
|
|
|
// TODO Start Radio1 Component |
|
|
|
$radioColor1: #f4f4f4; |
|
$radkoColor2: #3197ee; |
|
|
|
.radio { |
|
input[type="radio"] { |
|
position: absolute; |
|
opacity: 0; |
|
+ .radio-label { |
|
&:before { |
|
content: ""; |
|
background: $radioColor1; |
|
border-radius: 100%; |
|
border: 1px solid darken($radioColor1, 25%); |
|
display: inline-block; |
|
width: 1.4em; |
|
height: 1.4em; |
|
position: relative; |
|
vertical-align: top; |
|
margin-left: 0.5em; |
|
cursor: pointer; |
|
text-align: center; |
|
transition: all 250ms ease; |
|
} |
|
} |
|
&:checked { |
|
+ .radio-label { |
|
&:before { |
|
background-color: $radkoColor2; |
|
box-shadow: inset 0 0 0 4px $radioColor1; |
|
} |
|
} |
|
} |
|
&:focus { |
|
+ .radio-label { |
|
&:before { |
|
outline: none; |
|
border-color: $radkoColor2; |
|
} |
|
} |
|
} |
|
&:disabled { |
|
+ .radio-label { |
|
&:before { |
|
box-shadow: inset 0 0 0 4px $radioColor1; |
|
border-color: darken($radioColor1, 25%); |
|
background: darken($radioColor1, 25%); |
|
} |
|
} |
|
} |
|
+ .radio-label { |
|
&:empty { |
|
&:before { |
|
margin-right: 0; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
// * end Radio1 Component
|
|
|