@trilogy-ds/styles 0.0.16-esm-cjs → 0.0.18-esm-cjs

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,129 @@
1
+ .calendar {
2
+ border-collapse: separate;
3
+ box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
4
+ padding: 24px;
5
+ border-radius: 8px;
6
+ border-spacing: 0 8px;
7
+ background-color: getColor('background');
8
+
9
+ button {
10
+ all: unset;
11
+ &:focus-visible:not(.is-disabled, .is-active), &:hover:not(.is-disabled, .is-active){
12
+ background-color: getColor('main-fade');
13
+ }
14
+
15
+ &.is-active:hover, &.is-active:focus-visible,
16
+ &.is-disabled:hover, &.is-disabled:focus-visible {
17
+ filter: brightness(80%);
18
+ }
19
+ }
20
+
21
+ &-range.calendar-range-init {
22
+ .calendar-week-day:not(.calendar-date-in-range) {
23
+ button:focus-visible:not(.is-disabled, .is-active), button:hover:not(.is-disabled, .is-active){
24
+ background-color: getColor('main');
25
+ color: getColor('background');
26
+ }
27
+ }
28
+ }
29
+
30
+ &-date-in-range {
31
+ button:not(.is-disabled, .is-active){
32
+ background-color: getColor('main-fade');
33
+ border-radius: 0px;
34
+ &:hover {
35
+ filter: brightness(95%) ;
36
+ border-radius: 4px;
37
+ }
38
+ }
39
+
40
+ &.calendar-date-rounded-left {
41
+ button:not(.is-disabled, .is-active){
42
+ border-radius: 8px 0 0 8px;
43
+ }
44
+ }
45
+
46
+ &.calendar-date-rounded-right {
47
+ button:not(.is-disabled, .is-active){
48
+ border-radius: 0px 8px 8px 0;
49
+ }
50
+ }
51
+ }
52
+
53
+ &-next-month, &-prev-month {
54
+ padding-bottom: 16px;
55
+ button {
56
+ text-align: center;
57
+ border-radius: 4px;
58
+ width: 36px;
59
+ height: 36px;
60
+ i {
61
+ height: 100%;
62
+ }
63
+ }
64
+ }
65
+
66
+ &-week-day {
67
+ text-align: center !important;
68
+ vertical-align: middle;
69
+ &-disabled {
70
+ button {
71
+ color: getColor('disabled');
72
+ background-color: getColor('disabled-fade');
73
+ }
74
+ }
75
+ &-label {
76
+ padding: 4px;
77
+ text-align: center !important;
78
+ width: 36px;
79
+ color: getColor('font-placeholder');
80
+ }
81
+ button {
82
+ display: block;
83
+ width: 36px;
84
+ height: 36px;
85
+ border-radius: 4px;
86
+ }
87
+ }
88
+
89
+ &-active-month {
90
+ height: 28px;
91
+ text-align: center !important;
92
+ position: relative;
93
+ padding-bottom: 16px;
94
+ .icon {
95
+ vertical-align: bottom;
96
+ }
97
+ button {
98
+ padding: 2px 6px;
99
+ border-radius: 4px;
100
+ }
101
+ }
102
+
103
+ &-active-date button {
104
+ background-color: getColor('main');
105
+ color: getColor('background');
106
+ }
107
+
108
+ &-header-dropdown {
109
+ display: flex;
110
+ gap: $spacing-3;
111
+ justify-content: center;
112
+ .select{
113
+ margin-bottom: 0 !important;
114
+ width: 40%;
115
+ select {
116
+ height: 30px !important;
117
+ margin-bottom: 0 !important;
118
+ padding: 0px 25px 0px 5px;
119
+ &:focus{
120
+ padding-left: 4px !important;
121
+ }
122
+ }
123
+ .control:after {
124
+ right: -8px !important;
125
+ }
126
+ }
127
+ }
128
+
129
+ }
@@ -0,0 +1,58 @@
1
+ .date-picker {
2
+ span {
3
+ outline: none;
4
+ text-align: center;
5
+ caret-color: transparent;
6
+ &:focus-visible {
7
+ background-color: getColor('main-fade')
8
+ }
9
+ &::selection {
10
+ background-color: getColor('main-fade')
11
+ }
12
+ }
13
+
14
+ .input {
15
+ &.is-focused {
16
+ border: 2px solid currentColor;
17
+ padding-left: 15px !important;
18
+ background-color: getColor('background') !important;
19
+ }
20
+ &:active {
21
+ padding-left: 15px !important;
22
+ }
23
+ &[aria-disabled="true"] {
24
+ &:active {
25
+ padding-left: 16px !important;
26
+ }
27
+ & span::selection {
28
+ background-color: transparent !important
29
+ }
30
+ }
31
+ &-hidden {
32
+ border: 0;
33
+ clip: rect(0 0 0 0);
34
+ height: 1px;
35
+ margin: -1px;
36
+ overflow: hidden;
37
+ padding: 0;
38
+ white-space: nowrap;
39
+ width: 1px;
40
+ }
41
+ }
42
+
43
+ .modal {
44
+ flex-direction: inherit;
45
+ .modal-content, .modal-header {
46
+ background-color: transparent !important;
47
+ }
48
+ .modal-body {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ .calendar {
53
+ height: 440px;
54
+ }
55
+ }
56
+ }
57
+
58
+ }