vue3-year-calendar
Version:
A customizable year calendar component for Vue 3 applications
2 lines (1 loc) • 3.02 kB
CSS
.yc-container{border-radius:2px;min-width:0;background-color:#f6f6f3}.yc-year{-webkit-user-select:none;user-select:none;height:65px;background-color:#fff;font-size:24px;display:flex;justify-content:center}.yc-year-chooser{flex:1;max-width:80px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#000000e6}.yc-year-chooser:hover{background-color:#6666661a}.yc-year-chooser:nth-child(4n-3){color:#0000004d}.yc-year-chooser:nth-child(2n){color:#0009}.yc-year-chooser:nth-child(3){box-shadow:inset 0 -3px #4792bd}.yc-months{display:flex;flex-wrap:wrap;padding:15px}.yc-month{padding:8px;flex:16.66%;transition:transform .2s ease-in-out}.yc-month:hover{transform:scale(1.1);z-index:1}.yc-empty{padding:0}@media (max-width: 1300px){.yc-month{flex:25%}}@media (max-width: 992px){.yc-month{flex:33.3%}}@media (max-width: 768px){.yc-month{flex:50%}}@media (max-width: 450px){.yc-month{flex:100%}}.yc-wrapper{padding:10px}.yc-calendar{background-color:#fff;min-height:295px;text-align:center;color:#353c46cc;border-radius:2px;min-width:0}.yc-calendar__title{font-weight:700;display:flex;align-items:center;justify-content:center;border-bottom:1px solid rgba(196,196,196,.3);font-size:18px;height:50px;margin-bottom:12px}.yc-calendar__body{display:flex;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;padding:0 20px;min-width:194px}.yc-calendar__day{flex:14.28%;display:flex;justify-content:center;align-items:center;font-size:16px;height:31px;color:#5db3d4}.yc-day__weektitle{color:#353c46cc}.yc-day{font-size:14px;cursor:pointer;-webkit-user-select:none;user-select:none;width:22px;height:22px;display:flex;justify-content:center;align-items:center;position:relative;border-radius:5px}.yc-day.your_customized_wrapper_class{background-color:#0aa;color:#fff}.yc-day.your_customized_wrapper_class.red{background-color:#e92323;color:#fff}.yc-day.your_customized_wrapper_class.blue{background-color:#2e5dc9;color:#fff}.yc-day.your_customized_wrapper_class.your_customized_classname{background-color:#61dc9b;color:#fff}.yc-day.your_customized_wrapper_class.custom-day{background-color:#00ff15;color:#fff}.yc-day:not(.your_customized_wrapper_class):hover{background-color:#6666661a;border-radius:5px}.yc-calendar__day--otherMonth{color:#eaeaea;cursor:auto}.yc-dark .yc-container{background-color:#1a1a1a;color:#e0e0e0}.yc-dark .yc-year__button,.yc-dark .yc-year__select{background-color:#333;border-color:#555;color:#e0e0e0}.yc-dark .yc-wrapper{background-color:#2a2a2a;border:none}.yc-dark .yc-calendar__title{color:#e0e0e0}.yc-dark .yc-day__weektitle{color:#aaa}.yc-dark .yc-day{color:#e0e0e0}.yc-dark .yc-month:hover{transform:scale(1.1);z-index:1}.yc-day:hover{background-color:#6666661a;border-radius:5px}.yc-dark .yc-day:hover{background-color:#444}.yc-dark .yc-calendar__day--otherMonth{color:#666}.yc-dark .yc-calendar{background-color:#333;color:#e0e0e0;border:1px solid #444;box-sizing:border-box}.yc-dark .yc-calendar__title{color:#e0e0e0;border-bottom:1px solid rgba(255,255,255,.2)}