@betarena/ad-engine 0.0.23 → 0.0.25
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.
- package/dist/index.css +1 -1
- package/dist/index.js +55 -53
- package/package.json +14 -13
- package/src/App.svelte +44 -0
- package/src/index.ts +29 -0
- package/src/lib/Advert-Engine-Widget.svelte +49 -34
- package/src/lib/Advert-General-Child.svelte +12 -43
- package/src/lib/Advert-Slide-Child.svelte +110 -72
- package/src/lib/_store.ts +4 -5
- package/src/lib/constants/instance.ts +6 -3
- package/src/lib/misc/admin/Dev-Info-Box.svelte +199 -0
- package/src/lib/store/admin.ts +132 -0
- package/src/lib/types/admin.d.ts +34 -0
- package/src/style/app.css +3136 -0
- package/src/style/app.css.map +1 -0
- package/src/style/app.scss +19 -0
- package/src/style/scss/_root.scss +439 -0
- package/src/style/scss/animation.scss +36 -0
- package/src/style/scss/button.scss +266 -0
- package/src/style/scss/common.scss +40 -0
- package/src/style/scss/font.scss +298 -0
- package/src/style/scss/layout.scss +175 -0
- package/src/style/scss/main.scss +91 -0
- package/src/style/scss/misc.scss +189 -0
- package/src/style/scss/spacing.scss +41 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/* #region ➤ [MAIN] [CONTAINERS] Website Layout */
|
|
2
|
+
|
|
3
|
+
.widget-component
|
|
4
|
+
{
|
|
5
|
+
display: grid;
|
|
6
|
+
background: #ffffff;
|
|
7
|
+
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08);
|
|
8
|
+
border-radius: 12px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding: 20px 0;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
|
|
13
|
+
.dark-background &
|
|
14
|
+
, .dark-mode &
|
|
15
|
+
{
|
|
16
|
+
/* 🎨 style */
|
|
17
|
+
background-color: var(--dark-theme-1) !important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.container
|
|
22
|
+
{
|
|
23
|
+
display: block;
|
|
24
|
+
position: relative;
|
|
25
|
+
padding-left: 20px;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
font-size: 22px;
|
|
28
|
+
-webkit-user-select: none;
|
|
29
|
+
-moz-user-select: none;
|
|
30
|
+
-ms-user-select: none;
|
|
31
|
+
user-select: none;
|
|
32
|
+
|
|
33
|
+
& input
|
|
34
|
+
{
|
|
35
|
+
position: absolute;
|
|
36
|
+
opacity: 0;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
height: 1px;
|
|
39
|
+
width: 1px;
|
|
40
|
+
|
|
41
|
+
&:checked ~ .checkmark
|
|
42
|
+
{
|
|
43
|
+
background-color: var(--primary);
|
|
44
|
+
border: 1.5px solid transparent;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
section
|
|
50
|
+
{
|
|
51
|
+
min-height: calc(100vh - 128px);
|
|
52
|
+
padding: 22px 16px;
|
|
53
|
+
padding-bottom: 100px !important;
|
|
54
|
+
margin: auto;
|
|
55
|
+
|
|
56
|
+
@media only screen and (min-width: 768px)
|
|
57
|
+
{
|
|
58
|
+
padding: 26px 34px;
|
|
59
|
+
margin: auto;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media only screen and (min-width: 1025px)
|
|
63
|
+
{
|
|
64
|
+
padding: 26px 34px;
|
|
65
|
+
margin: auto;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.flex-start
|
|
70
|
+
{
|
|
71
|
+
align-items: flex-start !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.row
|
|
75
|
+
{
|
|
76
|
+
@mixin default
|
|
77
|
+
{
|
|
78
|
+
/* 🎨 style */
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
align-content: center;
|
|
82
|
+
width: 100%;
|
|
83
|
+
flex-direction: row;
|
|
84
|
+
flex-wrap: nowrap;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-space-out
|
|
88
|
+
{
|
|
89
|
+
@include default;
|
|
90
|
+
justify-content: space-between;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-space-even
|
|
94
|
+
{
|
|
95
|
+
@include default;
|
|
96
|
+
justify-content: space-evenly;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&-space-start
|
|
100
|
+
{
|
|
101
|
+
@include default;
|
|
102
|
+
justify-content: start;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&-space-out-top
|
|
106
|
+
{
|
|
107
|
+
@include default;
|
|
108
|
+
align-items: flex-start;
|
|
109
|
+
justify-content: space-between;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-space-center
|
|
113
|
+
{
|
|
114
|
+
@include default;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&-space-end
|
|
119
|
+
{
|
|
120
|
+
@include default;
|
|
121
|
+
justify-content: end;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.column
|
|
127
|
+
{
|
|
128
|
+
&-space-center
|
|
129
|
+
{
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
align-content: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
width: 100%;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
flex-wrap: nowrap;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&-space-start
|
|
140
|
+
{
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
align-content: center;
|
|
144
|
+
justify-content: flex-start;
|
|
145
|
+
width: 100%;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
flex-wrap: nowrap;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&-space-stretch
|
|
151
|
+
{
|
|
152
|
+
display: flex;
|
|
153
|
+
align-content: center;
|
|
154
|
+
width: 100%;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
flex-wrap: nowrap;
|
|
157
|
+
align-items: stretch;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&-start-grid
|
|
162
|
+
{
|
|
163
|
+
display: grid;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&-start-grid-start
|
|
168
|
+
{
|
|
169
|
+
display: grid;
|
|
170
|
+
width: 100%;
|
|
171
|
+
justify-items: start;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* #endregion ➤ [MAIN] [CONTAINERS] Website Layout */
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* #region ➤ [MAIN] Website Layout */
|
|
2
|
+
|
|
3
|
+
*
|
|
4
|
+
{
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
body,
|
|
9
|
+
html
|
|
10
|
+
{
|
|
11
|
+
margin: 0 !important;
|
|
12
|
+
background-color: var(--white);
|
|
13
|
+
scroll-behavior: smooth !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body
|
|
17
|
+
{
|
|
18
|
+
color: var(--black);
|
|
19
|
+
background-color: var(--whitev2);
|
|
20
|
+
margin: 0 !important;
|
|
21
|
+
font-family: Roboto;
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
line-height: 1.5;
|
|
24
|
+
/*
|
|
25
|
+
MOBILE
|
|
26
|
+
disable pinchin & user zooming on */
|
|
27
|
+
/* touch-action: pan-x pan-y; */
|
|
28
|
+
/*
|
|
29
|
+
SAFARI */
|
|
30
|
+
-webkit-text-size-adjust: none;
|
|
31
|
+
|
|
32
|
+
&.disable-scroll
|
|
33
|
+
{
|
|
34
|
+
/* 🎨 style */
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
a
|
|
41
|
+
{
|
|
42
|
+
text-decoration: none !important;
|
|
43
|
+
color: inherit;
|
|
44
|
+
display: flex;
|
|
45
|
+
|
|
46
|
+
&.disable-anchor
|
|
47
|
+
{
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.inter-font
|
|
53
|
+
{
|
|
54
|
+
font-family: Inter;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
p
|
|
58
|
+
{
|
|
59
|
+
font-style: normal;
|
|
60
|
+
font-weight: 400; /* 400 / 500 */
|
|
61
|
+
line-height: 150%;
|
|
62
|
+
margin: 0;
|
|
63
|
+
color: var(--dark-theme);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* MOBILE VIEW OVERFLOW HIDDEN */
|
|
67
|
+
@media only screen and (max-width: 375px)
|
|
68
|
+
{
|
|
69
|
+
html,
|
|
70
|
+
body
|
|
71
|
+
{
|
|
72
|
+
overflow-x: hidden;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/*
|
|
77
|
+
### NOTE:
|
|
78
|
+
### zoom-out-mobiles-input-form
|
|
79
|
+
### SEE:
|
|
80
|
+
### https://stackoverflow.com/questions/2989263/disable-auto-zoom-in-input-text-tag-safari-on-iphone
|
|
81
|
+
*/
|
|
82
|
+
@supports (-webkit-overflow-scrolling: touch)
|
|
83
|
+
{
|
|
84
|
+
form input:active,
|
|
85
|
+
input:active
|
|
86
|
+
{
|
|
87
|
+
font-size: 16px !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* #endregion ➤ [MAIN] Website Layout */
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
hr
|
|
2
|
+
{
|
|
3
|
+
/* 🎨 style */
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin: 16.17px 0;
|
|
6
|
+
opacity: 0.25;
|
|
7
|
+
border: 1.46983px solid #ff5555;
|
|
8
|
+
background-color: #ff5555;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
form
|
|
12
|
+
{
|
|
13
|
+
fieldset
|
|
14
|
+
{
|
|
15
|
+
/* 🎨 style */
|
|
16
|
+
outline: none;
|
|
17
|
+
border: none;
|
|
18
|
+
padding: 0;
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
input
|
|
23
|
+
, select
|
|
24
|
+
{
|
|
25
|
+
/* 🎨 style */
|
|
26
|
+
outline: none;
|
|
27
|
+
border: none;
|
|
28
|
+
opacity: 1;
|
|
29
|
+
cursor: text;
|
|
30
|
+
align-items: center;
|
|
31
|
+
text-align: start;
|
|
32
|
+
display: flex;
|
|
33
|
+
transition: all 0.15s ease;
|
|
34
|
+
/* background: #ffffff; */
|
|
35
|
+
/* border: 0.5px solid #37474f; */
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
border-radius: 7.34914px;
|
|
38
|
+
padding: 7px;
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
border: 1px solid var(--gray-day, #CCC);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
input
|
|
44
|
+
{
|
|
45
|
+
/* 🎨 style */
|
|
46
|
+
height: 44px;
|
|
47
|
+
width: -webkit-fill-available;
|
|
48
|
+
width: -moz-available;
|
|
49
|
+
border: 1px solid var(--grey-shade);
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
border-radius: 8px;
|
|
52
|
+
padding: 20px 12px;
|
|
53
|
+
outline: none;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
background-color: transparent;
|
|
56
|
+
|
|
57
|
+
&:hover
|
|
58
|
+
{
|
|
59
|
+
/* 🎨 style */
|
|
60
|
+
border: 1px solid var(--grey);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:focus
|
|
64
|
+
{
|
|
65
|
+
/* 🎨 style */
|
|
66
|
+
border: 1px solid var(--dark-theme-1);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&[placeholder]
|
|
70
|
+
{
|
|
71
|
+
/* 🎨 style */
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.v-1
|
|
78
|
+
{
|
|
79
|
+
/* 🎨 style */
|
|
80
|
+
width: 20px;
|
|
81
|
+
height: 20px;
|
|
82
|
+
border: 1px solid #CCCCCC;
|
|
83
|
+
accent-color: var(--primary);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.dark-background-1 &
|
|
87
|
+
, .dark-mode &
|
|
88
|
+
{
|
|
89
|
+
border: 1px solid var(--dark-theme-1-2-shade);
|
|
90
|
+
|
|
91
|
+
&:hover
|
|
92
|
+
{
|
|
93
|
+
/* 🎨 style */
|
|
94
|
+
border: 1px solid var(--dark-theme-1-3-shade);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:focus
|
|
98
|
+
{
|
|
99
|
+
/* 🎨 style */
|
|
100
|
+
border: 1px solid var(--dark-theme-1-3-shade);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.width-auto
|
|
107
|
+
{
|
|
108
|
+
width: auto;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.width-fit-content
|
|
112
|
+
{
|
|
113
|
+
width: fit-content;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.width-100
|
|
117
|
+
{
|
|
118
|
+
width: 100%;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// IMPORTANT
|
|
122
|
+
img.google-aspect-ratio
|
|
123
|
+
{
|
|
124
|
+
/* 🎨 style */
|
|
125
|
+
/* width: auto; */
|
|
126
|
+
/* max-height: 100%; */
|
|
127
|
+
object-fit: contain;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.checkmark
|
|
131
|
+
{
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: -10px;
|
|
134
|
+
left: 0;
|
|
135
|
+
height: 20px;
|
|
136
|
+
width: 20px;
|
|
137
|
+
background-color: transparent;
|
|
138
|
+
border: 1.5px solid #A9B8AE;
|
|
139
|
+
border-radius: 3.25px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/*
|
|
143
|
+
╭──────────────────────────────────────────────────────────────────╮
|
|
144
|
+
│ 📌 POSITIONS │
|
|
145
|
+
╰──────────────────────────────────────────────────────────────────╯
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
.box-center {
|
|
149
|
+
/* 📌 position */
|
|
150
|
+
position: absolute;
|
|
151
|
+
top: 0;
|
|
152
|
+
bottom: 0;
|
|
153
|
+
right: 0;
|
|
154
|
+
left: 0;
|
|
155
|
+
margin: auto;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.mutated
|
|
159
|
+
{
|
|
160
|
+
/* 🎨 style */
|
|
161
|
+
border: 1px solid #F00;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/*
|
|
165
|
+
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
|
|
166
|
+
◼️ DARK-THEME :: GENERAL ◼️
|
|
167
|
+
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
|
|
168
|
+
*/
|
|
169
|
+
.dark-background {
|
|
170
|
+
/* 🎨 style */
|
|
171
|
+
background-color: var(--dark-theme) !important;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.dark-background-1 {
|
|
175
|
+
/* 🎨 style */
|
|
176
|
+
background-color: var(--dark-theme-1) !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/*
|
|
180
|
+
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
|
|
181
|
+
◼️ DARK-THEME :: OTHER ◼️
|
|
182
|
+
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
|
|
183
|
+
*/
|
|
184
|
+
.dark-background .hover-color-primary:hover,
|
|
185
|
+
.dark-background-1 .hover-color-primary:hover,
|
|
186
|
+
.dark-mode .hover-color-primary:hover {
|
|
187
|
+
/* 🎨 style */
|
|
188
|
+
color: var(--primary) !important;
|
|
189
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* #region ➤ [MAIN] [MARGINS] Website Layout */
|
|
2
|
+
|
|
3
|
+
$marginDirection: ('r','l','t','b');
|
|
4
|
+
$count: 100;
|
|
5
|
+
|
|
6
|
+
//
|
|
7
|
+
// Generate possible Margins
|
|
8
|
+
//
|
|
9
|
+
|
|
10
|
+
.m-0
|
|
11
|
+
{
|
|
12
|
+
margin: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@each $dir in $marginDirection
|
|
16
|
+
{
|
|
17
|
+
.m-#{$dir}
|
|
18
|
+
{
|
|
19
|
+
@for $i from 1 through $count
|
|
20
|
+
{
|
|
21
|
+
@if $dir == r
|
|
22
|
+
{
|
|
23
|
+
&-#{$i} { margin-right: #{$i}px; }
|
|
24
|
+
}
|
|
25
|
+
@else if $dir == l
|
|
26
|
+
{
|
|
27
|
+
&-#{$i} { margin-left: #{$i}px; }
|
|
28
|
+
}
|
|
29
|
+
@else if $dir == t
|
|
30
|
+
{
|
|
31
|
+
&-#{$i} { margin-top: #{$i}px; }
|
|
32
|
+
}
|
|
33
|
+
@else if $dir == b
|
|
34
|
+
{
|
|
35
|
+
&-#{$i} { margin-bottom: #{$i}px; }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* #endregion ➤ [MAIN] [MARGINS] Website Layout */
|