otimus-library 0.0.49 → 0.0.51

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.
@@ -1,226 +1,226 @@
1
- @use '../variables.scss';
2
-
3
- .oc.button {
4
- height: 3rem;
5
-
6
- padding: 0 2rem;
7
-
8
- background-color: variables.$color-gray-4;
9
- color: variables.$color-gray-1;
10
-
11
- border-radius: 0.5rem;
12
- border: none;
13
-
14
- font-weight: 500;
15
- font-size: 1rem;
16
- transition: 0.15s ease;
17
-
18
- display: flex;
19
- justify-content: center;
20
- align-items: center;
21
- gap: 0.5rem;
22
-
23
- cursor: pointer;
24
-
25
- span{
26
- pointer-events: none;
27
- }
28
-
29
- &.align-left{
30
- padding-left: 1rem;
31
- }
32
-
33
- &.align-right{
34
- padding-right: 1rem;
35
- }
36
-
37
- // EFECTS
38
- &:hover{
39
- filter: brightness(0.96);
40
-
41
- *> {
42
- filter: brightness(1.3);
43
- }
44
- }
45
-
46
- &:active{
47
- transform: translateY(1.5px);
48
- }
49
-
50
- &.white {
51
- background-color: variables.$color-white;
52
- color: variables.$color-gray-3;
53
- }
54
-
55
- &.no-bg{
56
- color: variables.$color-gray-3;
57
- background-color: transparent;
58
-
59
- &:hover{
60
- background-color: variables.$color-gray-6;
61
- }
62
- }
63
-
64
- &.error{
65
- background-color: variables.$color-error;
66
- color: variables.$color-gray-6;
67
- }
68
-
69
- //Purple Tones
70
- &.p-1{
71
- background-color: variables.$color-brand-p-1;
72
- color: variables.$color-gray-6;
73
- }
74
-
75
- &.p-2{
76
- background-color: variables.$color-brand-p-2;
77
- color: variables.$color-gray-6;
78
- }
79
-
80
- &.p-3{
81
- background-color: variables.$color-brand-p-4;
82
- color: variables.$color-gray-6;
83
- }
84
-
85
- &.p-4{
86
- background-color: variables.$color-brand-p-6;
87
- color: variables.$color-gray-6;
88
- }
89
-
90
- //Green Tones
91
- &.g-1{
92
- background-color: variables.$color-brand-g-1;
93
- color: variables.$color-brand-p-2;
94
- }
95
-
96
- &.g-2{
97
- background-color: variables.$color-brand-g-2;
98
- color: variables.$color-brand-p-2;
99
- }
100
-
101
- &.g-3{
102
- background-color: variables.$color-brand-g-3;
103
- color: variables.$color-brand-p-2;
104
- }
105
-
106
- &.g-4{
107
- background-color: variables.$color-brand-g-6;
108
- color: variables.$color-brand-p-2;
109
- }
110
-
111
- &.gray-1 {
112
- background-color: variables.$color-gray-6;
113
- color: variables.$color-gray-3
114
- }
115
-
116
- &.gray-2{
117
- background-color: variables.$color-gray-4;
118
- color: variables.$color-gray-1
119
- }
120
-
121
- &.gray-3{
122
- background-color: variables.$color-gray-3;
123
- color: variables.$color-gray-6;
124
- }
125
-
126
- &.gray-4{
127
- background-color: variables.$color-gray-2;
128
- color: variables.$color-gray-6;
129
- }
130
-
131
- &.gray-5{
132
- background-color: variables.$color-gray-1;
133
- color: variables.$color-gray-6;
134
- }
135
-
136
- // SIZES
137
- &.tiny {
138
- height: 2rem !important;
139
- }
140
-
141
- &.small{
142
- height: 2.5rem !important;
143
- }
144
-
145
- &.large{
146
- height: 3.5rem !important;
147
- }
148
-
149
- //ICON
150
- &.icon{
151
- height: 3rem;
152
- width: 3rem;
153
- padding: 0;
154
-
155
- gap: 0 ;
156
-
157
- &.tiny{
158
- width: 2rem !important;
159
- }
160
-
161
- &.small{
162
- width: 2.5rem !important;
163
- padding: 0;
164
- }
165
-
166
- &.large{
167
- width: 3.5rem !important;
168
- padding: 0;
169
-
170
- // font-size: 2rem !important;
171
- }
172
- }
173
-
174
- &.outlined{
175
- background-color: transparent;
176
- border: 2px solid;
177
-
178
- //Purple Tones
179
- &.p-1{
180
- color: variables.$color-brand-p-1;
181
- }
182
-
183
- &.p-2{
184
- color: variables.$color-brand-p-2;
185
- }
186
-
187
- &.p-3{
188
- color: variables.$color-brand-p-4;
189
- }
190
-
191
- &.p-4{
192
- color: variables.$color-brand-p-6;
193
- }
194
-
195
- //Green Tones
196
- &.g-1{
197
- color: variables.$color-brand-g-1;
198
- }
199
-
200
- &.g-2{
201
- color: variables.$color-brand-g-2;
202
- }
203
-
204
- &.g-3{
205
- color: variables.$color-brand-g-3;
206
- }
207
-
208
- &.g-4{
209
- color: variables.$color-brand-g-6;
210
- }
211
-
212
- //Gray
213
-
214
- &.gray-1{
215
- color: variables.$color-gray-3;
216
- }
217
-
218
- &.gray-2{
219
- color: variables.$color-gray-2;
220
- }
221
-
222
- &.gray-3{
223
- color: variables.$color-gray-1;
224
- }
225
- }
226
- }
1
+ @use '../variables.scss';
2
+
3
+ .oc.button {
4
+ height: 3rem;
5
+
6
+ padding: 0 2rem;
7
+
8
+ background-color: variables.$color-gray-4;
9
+ color: variables.$color-gray-1;
10
+
11
+ border-radius: 0.5rem;
12
+ border: none;
13
+
14
+ font-weight: 500;
15
+ font-size: 1rem;
16
+ transition: 0.15s ease;
17
+
18
+ display: flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+ gap: 0.5rem;
22
+
23
+ cursor: pointer;
24
+
25
+ span{
26
+ pointer-events: none;
27
+ }
28
+
29
+ &.align-left{
30
+ padding-left: 1rem;
31
+ }
32
+
33
+ &.align-right{
34
+ padding-right: 1rem;
35
+ }
36
+
37
+ // EFECTS
38
+ &:hover{
39
+ filter: brightness(0.96);
40
+
41
+ *> {
42
+ filter: brightness(1.3);
43
+ }
44
+ }
45
+
46
+ &:active{
47
+ transform: translateY(1.5px);
48
+ }
49
+
50
+ &.white {
51
+ background-color: variables.$color-white;
52
+ color: variables.$color-gray-3;
53
+ }
54
+
55
+ &.no-bg{
56
+ color: variables.$color-gray-3;
57
+ background-color: transparent;
58
+
59
+ &:hover{
60
+ background-color: variables.$color-gray-6;
61
+ }
62
+ }
63
+
64
+ &.error{
65
+ background-color: variables.$color-error;
66
+ color: variables.$color-gray-6;
67
+ }
68
+
69
+ //Purple Tones
70
+ &.p-1{
71
+ background-color: variables.$color-brand-p-1;
72
+ color: variables.$color-gray-6;
73
+ }
74
+
75
+ &.p-2{
76
+ background-color: variables.$color-brand-p-2;
77
+ color: variables.$color-gray-6;
78
+ }
79
+
80
+ &.p-3{
81
+ background-color: variables.$color-brand-p-4;
82
+ color: variables.$color-gray-6;
83
+ }
84
+
85
+ &.p-4{
86
+ background-color: variables.$color-brand-p-6;
87
+ color: variables.$color-gray-6;
88
+ }
89
+
90
+ //Green Tones
91
+ &.g-1{
92
+ background-color: variables.$color-brand-g-1;
93
+ color: variables.$color-brand-p-2;
94
+ }
95
+
96
+ &.g-2{
97
+ background-color: variables.$color-brand-g-2;
98
+ color: variables.$color-brand-p-2;
99
+ }
100
+
101
+ &.g-3{
102
+ background-color: variables.$color-brand-g-3;
103
+ color: variables.$color-brand-p-2;
104
+ }
105
+
106
+ &.g-4{
107
+ background-color: variables.$color-brand-g-6;
108
+ color: variables.$color-brand-p-2;
109
+ }
110
+
111
+ &.gray-1 {
112
+ background-color: variables.$color-gray-6;
113
+ color: variables.$color-gray-3
114
+ }
115
+
116
+ &.gray-2{
117
+ background-color: variables.$color-gray-4;
118
+ color: variables.$color-gray-1
119
+ }
120
+
121
+ &.gray-3{
122
+ background-color: variables.$color-gray-3;
123
+ color: variables.$color-gray-6;
124
+ }
125
+
126
+ &.gray-4{
127
+ background-color: variables.$color-gray-2;
128
+ color: variables.$color-gray-6;
129
+ }
130
+
131
+ &.gray-5{
132
+ background-color: variables.$color-gray-1;
133
+ color: variables.$color-gray-6;
134
+ }
135
+
136
+ // SIZES
137
+ &.tiny {
138
+ height: 2rem !important;
139
+ }
140
+
141
+ &.small{
142
+ height: 2.5rem !important;
143
+ }
144
+
145
+ &.large{
146
+ height: 3.5rem !important;
147
+ }
148
+
149
+ //ICON
150
+ &.icon{
151
+ height: 3rem;
152
+ width: 3rem;
153
+ padding: 0;
154
+
155
+ gap: 0 ;
156
+
157
+ &.tiny{
158
+ width: 2rem !important;
159
+ }
160
+
161
+ &.small{
162
+ width: 2.5rem !important;
163
+ padding: 0;
164
+ }
165
+
166
+ &.large{
167
+ width: 3.5rem !important;
168
+ padding: 0;
169
+
170
+ // font-size: 2rem !important;
171
+ }
172
+ }
173
+
174
+ &.outlined{
175
+ background-color: transparent;
176
+ border: 2px solid;
177
+
178
+ //Purple Tones
179
+ &.p-1{
180
+ color: variables.$color-brand-p-1;
181
+ }
182
+
183
+ &.p-2{
184
+ color: variables.$color-brand-p-2;
185
+ }
186
+
187
+ &.p-3{
188
+ color: variables.$color-brand-p-4;
189
+ }
190
+
191
+ &.p-4{
192
+ color: variables.$color-brand-p-6;
193
+ }
194
+
195
+ //Green Tones
196
+ &.g-1{
197
+ color: variables.$color-brand-g-1;
198
+ }
199
+
200
+ &.g-2{
201
+ color: variables.$color-brand-g-2;
202
+ }
203
+
204
+ &.g-3{
205
+ color: variables.$color-brand-g-3;
206
+ }
207
+
208
+ &.g-4{
209
+ color: variables.$color-brand-g-6;
210
+ }
211
+
212
+ //Gray
213
+
214
+ &.gray-1{
215
+ color: variables.$color-gray-3;
216
+ }
217
+
218
+ &.gray-2{
219
+ color: variables.$color-gray-2;
220
+ }
221
+
222
+ &.gray-3{
223
+ color: variables.$color-gray-1;
224
+ }
225
+ }
226
+ }
@@ -1,114 +1,114 @@
1
-
2
- .oc-input-box {
3
- position: relative;
4
-
5
- select * {
6
- background-color: variables.$color-gray-6;
7
- }
8
-
9
- label {
10
- position: absolute;
11
- left: 0;
12
- top: 0;
13
- padding: 0.5rem 0.7rem;
14
- font-size: 0.85rem;
15
- color: variables.$color-gray-3;
16
- pointer-events: none;
17
- transition: 0.3s ease;
18
- border-radius: 0.5rem;
19
- white-space: nowrap
20
- }
21
-
22
- input, textarea, select {
23
- font-size: 1rem;
24
- border-radius: 0.7rem;
25
- background-color: variables.$color-gray-6;
26
- border: 1px solid variables.$color-gray-4;
27
- outline: none;
28
- padding: 0.6rem 0.9rem;
29
- width: 100%;
30
- transition: 0.3s ease;
31
- color: variables.$color-gray-2;
32
- font-weight: 500;
33
-
34
- &:focus {
35
- border: 1px solid variables.$color-brand-g-1;
36
- box-shadow: 0px 4px 3.2px 0px rgba(0, 221, 163, 0.08);
37
- }
38
- }
39
-
40
- input:not(:placeholder-shown) ~ label,
41
- input:focus ~ label,
42
- textarea:not(:placeholder-shown) ~ label,
43
- textarea:focus ~ label,
44
- select:valid ~ label,
45
- select:focus ~ label {
46
- transform: translateY(-0.855rem) translateX(0.6rem);
47
- color: variables.$color-brand-p-2;
48
- background-color: variables.$color-gray-6;
49
- padding: 1px 7px;
50
- font-weight: 500;
51
- }
52
-
53
- }
54
-
55
-
56
- .error {
57
- input, textarea, select {
58
- border: 1px solid variables.$color-error;
59
- box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
60
- }
61
-
62
- small, label {
63
- color: variables.$color-error !important;
64
- font-weight: 600;
65
- }
66
- }
67
-
68
- .small {
69
- input, textarea, select {
70
- padding: 0.3rem 0.7rem;
71
- border-radius: 0.5rem;
72
- }
73
-
74
- label {
75
- padding: 0.5rem 0.7rem;
76
- }
77
-
78
- input:focus ~ label,
79
- input:not(:placeholder-shown) ~ label,
80
- textarea:focus ~ label,
81
- textarea:not(:placeholder-shown) ~ label,
82
- select:focus ~ label,
83
- select:valid ~ label {
84
- transform: translateY(-0.99rem) translateX(0.6rem);
85
- color: variables.$color-gray-2;
86
- background-color: variables.$color-white;
87
- padding: 1px 7px;
88
- font-weight: 500;
89
- }
90
- }
91
-
92
- .large {
93
- input, textarea, select {
94
- padding: 1rem;
95
- border-radius: 1rem;
96
- }
97
-
98
- label {
99
- padding: 1rem 0.7rem;
100
- }
101
-
102
- input:focus ~ label,
103
- input:not(:placeholder-shown) ~ label,
104
- textarea:focus ~ label,
105
- textarea:not(:placeholder-shown) ~ label,
106
- select:focus ~ label,
107
- select:valid ~ label {
108
- transform: translateY(-0.77rem) translateX(0.6rem);
109
- color: variables.$color-gray-2;
110
- background-color: variables.$color-white;
111
- padding: 1px 7px;
112
- font-weight: 500;
113
- }
114
- }
1
+
2
+ .oc-input-box {
3
+ position: relative;
4
+
5
+ select * {
6
+ background-color: variables.$color-gray-6;
7
+ }
8
+
9
+ label {
10
+ position: absolute;
11
+ left: 0;
12
+ top: 0;
13
+ padding: 0.5rem 0.7rem;
14
+ font-size: 0.85rem;
15
+ color: variables.$color-gray-3;
16
+ pointer-events: none;
17
+ transition: 0.3s ease;
18
+ border-radius: 0.5rem;
19
+ white-space: nowrap
20
+ }
21
+
22
+ input, textarea, select {
23
+ font-size: 1rem;
24
+ border-radius: 0.7rem;
25
+ background-color: variables.$color-gray-6;
26
+ border: 1px solid variables.$color-gray-4;
27
+ outline: none;
28
+ padding: 0.6rem 0.9rem;
29
+ width: 100%;
30
+ transition: 0.3s ease;
31
+ color: variables.$color-gray-2;
32
+ font-weight: 500;
33
+
34
+ &:focus {
35
+ border: 1px solid variables.$color-brand-g-1;
36
+ box-shadow: 0px 4px 3.2px 0px rgba(0, 221, 163, 0.08);
37
+ }
38
+ }
39
+
40
+ input:not(:placeholder-shown) ~ label,
41
+ input:focus ~ label,
42
+ textarea:not(:placeholder-shown) ~ label,
43
+ textarea:focus ~ label,
44
+ select:valid ~ label,
45
+ select:focus ~ label {
46
+ transform: translateY(-0.855rem) translateX(0.6rem);
47
+ color: variables.$color-brand-p-2;
48
+ background-color: variables.$color-gray-6;
49
+ padding: 1px 7px;
50
+ font-weight: 500;
51
+ }
52
+
53
+ }
54
+
55
+
56
+ .error {
57
+ input, textarea, select {
58
+ border: 1px solid variables.$color-error;
59
+ box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
60
+ }
61
+
62
+ small, label {
63
+ color: variables.$color-error !important;
64
+ font-weight: 600;
65
+ }
66
+ }
67
+
68
+ .small {
69
+ input, textarea, select {
70
+ padding: 0.3rem 0.7rem;
71
+ border-radius: 0.5rem;
72
+ }
73
+
74
+ label {
75
+ padding: 0.5rem 0.7rem;
76
+ }
77
+
78
+ input:focus ~ label,
79
+ input:not(:placeholder-shown) ~ label,
80
+ textarea:focus ~ label,
81
+ textarea:not(:placeholder-shown) ~ label,
82
+ select:focus ~ label,
83
+ select:valid ~ label {
84
+ transform: translateY(-0.99rem) translateX(0.6rem);
85
+ color: variables.$color-gray-2;
86
+ background-color: variables.$color-white;
87
+ padding: 1px 7px;
88
+ font-weight: 500;
89
+ }
90
+ }
91
+
92
+ .large {
93
+ input, textarea, select {
94
+ padding: 1rem;
95
+ border-radius: 1rem;
96
+ }
97
+
98
+ label {
99
+ padding: 1rem 0.7rem;
100
+ }
101
+
102
+ input:focus ~ label,
103
+ input:not(:placeholder-shown) ~ label,
104
+ textarea:focus ~ label,
105
+ textarea:not(:placeholder-shown) ~ label,
106
+ select:focus ~ label,
107
+ select:valid ~ label {
108
+ transform: translateY(-0.77rem) translateX(0.6rem);
109
+ color: variables.$color-gray-2;
110
+ background-color: variables.$color-white;
111
+ padding: 1px 7px;
112
+ font-weight: 500;
113
+ }
114
+ }