@topvisor/ui 0.0.13 → 0.0.14
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/.chunks/forms-1b3f76e9.es.js +410 -0
- package/.chunks/forms-1b3f76e9.es.js.map +1 -0
- package/.chunks/forms-512abfa7.amd.js +413 -0
- package/.chunks/forms-512abfa7.amd.js.map +1 -0
- package/README.md +62 -85
- package/{l/common → common}/common.amd.js +0 -1
- package/{l/common → common}/common.amd.js.map +1 -1
- package/{l/common → common}/common.js +0 -1
- package/{l/common → common}/common.js.map +1 -1
- package/core.css +442 -371
- package/dark.css +127 -115
- package/forms/forms.amd.js +11 -0
- package/forms/forms.amd.js.map +1 -0
- package/forms/forms.js +11 -0
- package/forms/forms.js.map +1 -0
- package/{c/style.css → forms.css} +301 -252
- package/helpers/helpers.amd.js +6 -0
- package/helpers/helpers.amd.js.map +1 -0
- package/helpers/helpers.js +6 -0
- package/helpers/helpers.js.map +1 -0
- package/icomoon/demo-files/Read Me.txt +7 -7
- package/icomoon/demo-files/demo.css +161 -161
- package/icomoon/demo-files/demo.js +30 -30
- package/icomoon/demo.html +2931 -2931
- package/icomoon/fonts/Topvisor-2.svg +231 -231
- package/icomoon/style.css +644 -644
- package/light.css +127 -128
- package/package.json +19 -19
- package/c/_plugin-vue_export-helper-cb5c78ba.js +0 -12
- package/c/_plugin-vue_export-helper-cb5c78ba.js.map +0 -1
- package/c/_plugin-vue_export-helper-cc2b3d55.js +0 -11
- package/c/_plugin-vue_export-helper-cc2b3d55.js.map +0 -1
- package/c/button/button.amd.js +0 -99
- package/c/button/button.amd.js.map +0 -1
- package/c/button/button.js +0 -100
- package/c/button/button.js.map +0 -1
- package/c/checkbox/checkbox.amd.js +0 -58
- package/c/checkbox/checkbox.amd.js.map +0 -1
- package/c/checkbox/checkbox.js +0 -59
- package/c/checkbox/checkbox.js.map +0 -1
- package/c/example/example.amd.js +0 -35
- package/c/example/example.amd.js.map +0 -1
- package/c/example/example.js +0 -36
- package/c/example/example.js.map +0 -1
- package/c/icon/icon.amd.js +0 -22
- package/c/icon/icon.amd.js.map +0 -1
- package/c/icon/icon.js +0 -22
- package/c/icon/icon.js.map +0 -1
- package/c/radio/radio.amd.js +0 -49
- package/c/radio/radio.amd.js.map +0 -1
- package/c/radio/radio.js +0 -50
- package/c/radio/radio.js.map +0 -1
- package/l/forms/forms.amd.js +0 -206
- package/l/forms/forms.amd.js.map +0 -1
- package/l/forms/forms.js +0 -205
- package/l/forms/forms.js.map +0 -1
- package/l/style.css +0 -352
package/l/forms/forms.js
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, renderSlot, createTextVNode, toDisplayString, createElementBlock, createElementVNode, createCommentVNode } from "vue";
|
|
2
|
-
var COLOR = /* @__PURE__ */ ((COLOR2) => {
|
|
3
|
-
COLOR2["Theme"] = "theme";
|
|
4
|
-
COLOR2["Blue"] = "blue";
|
|
5
|
-
COLOR2["Green"] = "green";
|
|
6
|
-
COLOR2["Orange"] = "orange";
|
|
7
|
-
COLOR2["Red"] = "red";
|
|
8
|
-
COLOR2["Pink"] = "pink";
|
|
9
|
-
return COLOR2;
|
|
10
|
-
})(COLOR || {});
|
|
11
|
-
var STYLING = /* @__PURE__ */ ((STYLING2) => {
|
|
12
|
-
STYLING2["Regular"] = "";
|
|
13
|
-
STYLING2["Outline"] = "outline";
|
|
14
|
-
STYLING2["Soft"] = "soft";
|
|
15
|
-
STYLING2["Transparent"] = "transparent";
|
|
16
|
-
return STYLING2;
|
|
17
|
-
})(STYLING || {});
|
|
18
|
-
var SIZE = /* @__PURE__ */ ((SIZE2) => {
|
|
19
|
-
SIZE2["S"] = "";
|
|
20
|
-
SIZE2["L"] = "l";
|
|
21
|
-
SIZE2["XL"] = "xl";
|
|
22
|
-
return SIZE2;
|
|
23
|
-
})(SIZE || {});
|
|
24
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
25
|
-
__name: "button",
|
|
26
|
-
props: {
|
|
27
|
-
color: { default: COLOR.Blue },
|
|
28
|
-
styling: { default: STYLING.Regular },
|
|
29
|
-
size: { default: SIZE.S },
|
|
30
|
-
name: {},
|
|
31
|
-
title: {},
|
|
32
|
-
icon: {},
|
|
33
|
-
icon2: {},
|
|
34
|
-
href: {},
|
|
35
|
-
disabled: { type: Boolean },
|
|
36
|
-
isSubmit: { type: Boolean },
|
|
37
|
-
isActive: { type: Boolean },
|
|
38
|
-
isProgress: { type: Boolean }
|
|
39
|
-
},
|
|
40
|
-
setup(__props) {
|
|
41
|
-
const props = __props;
|
|
42
|
-
const tagName = computed(() => props.href ? "a" : "button");
|
|
43
|
-
const type = computed(() => props.isSubmit ? "submit" : void 0);
|
|
44
|
-
return (_ctx, _cache) => {
|
|
45
|
-
return openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
46
|
-
class: normalizeClass({
|
|
47
|
-
["top-active"]: props.isActive,
|
|
48
|
-
["top-disabled"]: props.disabled,
|
|
49
|
-
[_ctx.$style["top-button"]]: true,
|
|
50
|
-
[_ctx.$style["top-button-progress"]]: props.isProgress,
|
|
51
|
-
[_ctx.$style[`top-size_${props.size}`]]: !!props.size,
|
|
52
|
-
[_ctx.$style[`top-color_${props.color}`]]: true,
|
|
53
|
-
[_ctx.$style[`top-style_${props.styling}`]]: !!props.styling
|
|
54
|
-
}),
|
|
55
|
-
name: _ctx.name,
|
|
56
|
-
title: _ctx.title,
|
|
57
|
-
href: _ctx.href,
|
|
58
|
-
type: type.value,
|
|
59
|
-
"data-top-icon": _ctx.icon || void 0,
|
|
60
|
-
"data-top-icon2": _ctx.icon2 || void 0,
|
|
61
|
-
disabled: _ctx.disabled || void 0,
|
|
62
|
-
inProgress: _ctx.isProgress
|
|
63
|
-
}, {
|
|
64
|
-
default: withCtx(() => [
|
|
65
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
66
|
-
createTextVNode(toDisplayString(!_ctx.icon ? "Button" : ""), 1)
|
|
67
|
-
])
|
|
68
|
-
]),
|
|
69
|
-
_: 3
|
|
70
|
-
}, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]);
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
const progress = "_progress_fevtt_1";
|
|
75
|
-
const style0$2 = {
|
|
76
|
-
"top-button": "top-button",
|
|
77
|
-
"top-active": "top-active",
|
|
78
|
-
"top-button-progress": "top-button-progress",
|
|
79
|
-
progress,
|
|
80
|
-
"top-color_blue": "top-color_blue",
|
|
81
|
-
"top-color_green": "top-color_green",
|
|
82
|
-
"top-color_orange": "top-color_orange",
|
|
83
|
-
"top-color_red": "top-color_red",
|
|
84
|
-
"top-color_pink": "top-color_pink",
|
|
85
|
-
"top-color_theme": "top-color_theme",
|
|
86
|
-
"top-style_outline": "top-style_outline",
|
|
87
|
-
"top-style_soft": "top-style_soft",
|
|
88
|
-
"top-style_transparent": "top-style_transparent",
|
|
89
|
-
"top-size_l": "top-size_l",
|
|
90
|
-
"top-size_xl": "top-size_xl"
|
|
91
|
-
};
|
|
92
|
-
const _export_sfc = (sfc, props) => {
|
|
93
|
-
const target = sfc.__vccOpts || sfc;
|
|
94
|
-
for (const [key, val] of props) {
|
|
95
|
-
target[key] = val;
|
|
96
|
-
}
|
|
97
|
-
return target;
|
|
98
|
-
};
|
|
99
|
-
const cssModules$2 = {
|
|
100
|
-
"$style": style0$2
|
|
101
|
-
};
|
|
102
|
-
const button = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__cssModules", cssModules$2]]);
|
|
103
|
-
const _hoisted_1$1 = ["name", "value", "checked", "indeterminate", "disabled"];
|
|
104
|
-
const _hoisted_2$1 = {
|
|
105
|
-
key: 0,
|
|
106
|
-
class: "top-checkbox_caption"
|
|
107
|
-
};
|
|
108
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
109
|
-
__name: "checkbox",
|
|
110
|
-
props: {
|
|
111
|
-
name: {},
|
|
112
|
-
value: {},
|
|
113
|
-
title: {},
|
|
114
|
-
checked: { type: Boolean },
|
|
115
|
-
disabled: { type: Boolean },
|
|
116
|
-
indeterminate: { type: Boolean },
|
|
117
|
-
isSwitcher: { type: Boolean }
|
|
118
|
-
},
|
|
119
|
-
setup(__props) {
|
|
120
|
-
const props = __props;
|
|
121
|
-
return (_ctx, _cache) => {
|
|
122
|
-
return openBlock(), createElementBlock("label", {
|
|
123
|
-
class: normalizeClass({
|
|
124
|
-
["top-el"]: true,
|
|
125
|
-
["top-checkbox"]: true,
|
|
126
|
-
["top-checkbox_" + props.name]: props.name !== "",
|
|
127
|
-
["top-active"]: props.checked,
|
|
128
|
-
["top-disabled"]: props.disabled
|
|
129
|
-
})
|
|
130
|
-
}, [
|
|
131
|
-
createElementVNode("input", {
|
|
132
|
-
type: "checkbox",
|
|
133
|
-
class: normalizeClass(["top-el", {
|
|
134
|
-
["top-checkbox_input"]: true,
|
|
135
|
-
["top-checkbox_input-switcher"]: _ctx.isSwitcher
|
|
136
|
-
}]),
|
|
137
|
-
name: _ctx.name,
|
|
138
|
-
value: _ctx.value,
|
|
139
|
-
checked: _ctx.checked,
|
|
140
|
-
indeterminate: _ctx.indeterminate,
|
|
141
|
-
disabled: _ctx.disabled
|
|
142
|
-
}, null, 10, _hoisted_1$1),
|
|
143
|
-
_ctx.title ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
|
|
144
|
-
], 2);
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
const style0$1 = {
|
|
149
|
-
"top-el": "top-el",
|
|
150
|
-
"top-checkbox_input-switcher": "top-checkbox_input-switcher"
|
|
151
|
-
};
|
|
152
|
-
const cssModules$1 = {
|
|
153
|
-
"$style": style0$1
|
|
154
|
-
};
|
|
155
|
-
const checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__cssModules", cssModules$1]]);
|
|
156
|
-
const _hoisted_1 = ["name", "value", "checked", "disabled"];
|
|
157
|
-
const _hoisted_2 = {
|
|
158
|
-
key: 0,
|
|
159
|
-
class: "top-radio_caption"
|
|
160
|
-
};
|
|
161
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
162
|
-
__name: "radio",
|
|
163
|
-
props: {
|
|
164
|
-
name: {},
|
|
165
|
-
value: {},
|
|
166
|
-
title: {},
|
|
167
|
-
checked: { type: Boolean },
|
|
168
|
-
disabled: { type: Boolean }
|
|
169
|
-
},
|
|
170
|
-
setup(__props) {
|
|
171
|
-
return (_ctx, _cache) => {
|
|
172
|
-
return openBlock(), createElementBlock("label", {
|
|
173
|
-
class: normalizeClass(["top-el top-radio", {
|
|
174
|
-
["top-radio_" + _ctx.name]: _ctx.name !== "",
|
|
175
|
-
["top-active"]: _ctx.checked,
|
|
176
|
-
["top-disabled"]: _ctx.disabled
|
|
177
|
-
}])
|
|
178
|
-
}, [
|
|
179
|
-
createElementVNode("input", {
|
|
180
|
-
type: "radio",
|
|
181
|
-
class: "top-el top-radio_input",
|
|
182
|
-
name: _ctx.name,
|
|
183
|
-
value: _ctx.value,
|
|
184
|
-
checked: _ctx.checked,
|
|
185
|
-
disabled: _ctx.disabled
|
|
186
|
-
}, null, 8, _hoisted_1),
|
|
187
|
-
_ctx.title ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true)
|
|
188
|
-
], 2);
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
const style0 = {
|
|
193
|
-
"top-radio": "top-radio",
|
|
194
|
-
"top-el": "top-el"
|
|
195
|
-
};
|
|
196
|
-
const cssModules = {
|
|
197
|
-
"$style": style0
|
|
198
|
-
};
|
|
199
|
-
const radio = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
200
|
-
export {
|
|
201
|
-
button as Button,
|
|
202
|
-
checkbox as Checkbox,
|
|
203
|
-
radio as Radio
|
|
204
|
-
};
|
|
205
|
-
//# sourceMappingURL=forms.js.map
|
package/l/forms/forms.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forms.js","sources":["../../../src/components/forms/button/button.ts","../../../src/components/forms/button/button.vue"],"sourcesContent":["import type { VNode } from 'vue';\n\n/**\n * Определение параметров\n */\nexport interface Props {\n\tcolor?: COLOR\n\tstyling?: STYLING // bug: name = style init with object type\n\tsize?: SIZE\n\n\tname?: string\n\ttitle?: string\n\ticon?: string\n\ticon2?: string\n\n\thref?: string // если установлена ссылка, isSubmit не может быть true\n\t// value?: string\n\n\tdisabled?: boolean\n\tisSubmit?: boolean\n\tisActive?: boolean\n\tisProgress?: boolean\n}\n\n/**\n * Определение слотов\n */\nexport interface Slots {\n\t/**\n\t * Cлот с проивзольным содержимым\n\t */\n\tdefault(): VNode[];\n}\n\n/**\n * Определение событий\n */\nexport interface Emits { }\n\n/**\n * Цвета\n */\nexport enum COLOR {\n\tTheme = 'theme',\n\tBlue = 'blue',\n\tGreen = 'green',\n\tOrange = 'orange',\n\tRed = 'red',\n\tPink = 'pink',\n}\n\n/**\n * Стили\n */\nexport enum STYLING {\n\tRegular = '',\n\tOutline = 'outline',\n\tSoft = 'soft',\n\tTransparent = 'transparent',\n}\n\n/**\n * Размеры\n */\nexport enum SIZE {\n\tS = '',\n\tL = 'l',\n\tXL = 'xl',\n}","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport type { Props } from './button';\nimport { COLOR, STYLING, SIZE } from './button';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tcolor: COLOR.Blue,\n\tstyling: STYLING.Regular,\n\tsize: SIZE.S,\n});\n\nconst tagName = computed(() => props.href ? 'a' : 'button');\n\nconst type = computed(() => props.isSubmit ? 'submit' : undefined);\n</script>\n\n<template>\n\t<component\n\t\t:is=\"tagName\"\n\t\t:class=\"{\n\t\t\t['top-active']: props.isActive,\n\t\t\t['top-disabled']: props.disabled,\n\t\t\t[$style['top-button']]: true,\n\t\t\t[$style['top-button-progress']]: props.isProgress,\n\t\t\t[$style[`top-size_${props.size}`]]: !!props.size,\n\t\t\t[$style[`top-color_${props.color}`]]: true,\n\t\t\t[$style[`top-style_${props.styling}`]]: !!props.styling,\n\t\t}\"\n\t\t:name=\"name\"\n\t\t:title=\"title\"\n\t\t:href=\"href\"\n\t\t:type=\"type\"\n\t\t:data-top-icon=\"icon || undefined\"\n\t\t:data-top-icon2=\"icon2 || undefined\"\n\t\t:disabled=\"disabled || undefined\"\n\t\t:inProgress=\"isProgress\"\n\t>\n\t\t<slot>{{ !icon ? \"Button\" : \"\" }}</slot>\n\t</component>\n</template>\n\n<style module>\n@import \"./style/button.css\";\n@import \"./style/style-outline.css\";\n@import \"./style/style-soft.css\";\n@import \"./style/style-transparent.css\";\n\n.top-button {\n\t--top-button-color: var(--color-white);\n\t--top-button-background-color: transparent;\n\t--top-button-background-color-hover: var(--top-button-background-color);\n\t--top-button-background-color-active: var(--top-button-background-color-hover);\n\t--top-button-background-color-selected: var(--top-button-background-color-hover);\n\t--top-button-box-shadow: none;\n\t--top-button-box-shadow-hover: var(--top-shadow-darken-2);\n\t--top-button-box-shadow-active: var(--top-shadow-darken-3);\n\t--top-button-box-shadow-selected: var(--top-shadow-darken-3);\n\t--top-forms-border-width: 0px;\n\t--top-icon-width: calc(var(--top-icon-size) + var(--top-forms-padding));\n\t--top-icon2-width: calc(var(--top-icon2-size) + var(--top-forms-padding));\n}\n\n.top-button.top-size_l {\n\t--top-forms-padding: var(--top-forms-padding_l);\n\t--top-forms-base-height: var(--top-forms-base-height_l);\n}\n\n.top-button.top-size_xl {\n\t--top-forms-padding: var(--top-forms-padding_xl);\n\t--top-forms-base-height: var(--top-forms-base-height_xl);\n}\n\n.top-button-progress {}\n</style>"],"names":["COLOR","STYLING","SIZE"],"mappings":";AA0CY,IAAA,0BAAAA,WAAL;AACNA,SAAA,OAAQ,IAAA;AACRA,SAAA,MAAO,IAAA;AACPA,SAAA,OAAQ,IAAA;AACRA,SAAA,QAAS,IAAA;AACTA,SAAA,KAAM,IAAA;AACNA,SAAA,MAAO,IAAA;AANIA,SAAAA;AAAA,GAAA,SAAA,CAAA,CAAA;AAYA,IAAA,4BAAAC,aAAL;AACNA,WAAA,SAAU,IAAA;AACVA,WAAA,SAAU,IAAA;AACVA,WAAA,MAAO,IAAA;AACPA,WAAA,aAAc,IAAA;AAJHA,SAAAA;AAAA,GAAA,WAAA,CAAA,CAAA;AAUA,IAAA,yBAAAC,UAAL;AACNA,QAAA,GAAI,IAAA;AACJA,QAAA,GAAI,IAAA;AACJA,QAAA,IAAK,IAAA;AAHMA,SAAAA;AAAA,GAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;ACrDZ,UAAM,UAAU,SAAS,MAAM,MAAM,OAAO,MAAM,QAAQ;AAE1D,UAAM,OAAO,SAAS,MAAM,MAAM,WAAW,WAAW,MAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/l/style.css
DELETED
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* стили этого компонента грузятся всегда: resources/styles/core/icon.css */
|
|
3
|
-
.top-button {
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
box-shadow: var(--top-button-box-shadow);
|
|
6
|
-
background-color: var(--top-button-background-color);
|
|
7
|
-
height: var(--top-forms-base-height);
|
|
8
|
-
padding: 0 var(--top-forms-padding);
|
|
9
|
-
color: var(--top-button-color);
|
|
10
|
-
line-height: 1;
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
display: inline-flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
|
|
16
|
-
transition: background-color 150ms, border-color 150ms, box-shadow 150ms;
|
|
17
|
-
}
|
|
18
|
-
.top-button:hover {
|
|
19
|
-
box-shadow: var(--top-button-box-shadow-hover);
|
|
20
|
-
background-color: var(--top-button-background-color-hover);
|
|
21
|
-
}
|
|
22
|
-
.top-button:active {
|
|
23
|
-
box-shadow: var(--top-button-box-shadow-active);
|
|
24
|
-
background-color: var(--top-button-background-color-active);
|
|
25
|
-
}
|
|
26
|
-
.top-button.top-active {
|
|
27
|
-
box-shadow: var(--top-button-box-shadow-selected);
|
|
28
|
-
background-color: var(--top-button-background-color-selected);
|
|
29
|
-
}
|
|
30
|
-
.top-button.top-button-progress {
|
|
31
|
-
cursor: help;
|
|
32
|
-
box-shadow: inset rgba(0, 0, 0, 0.5) 0 0 64px;
|
|
33
|
-
background-image:
|
|
34
|
-
linear-gradient(-45deg,
|
|
35
|
-
rgba(255, 255, 255, 0.2) 25%,
|
|
36
|
-
transparent 25%,
|
|
37
|
-
transparent 50%,
|
|
38
|
-
rgba(255, 255, 255, 0.2) 50%,
|
|
39
|
-
rgba(255, 255, 255, 0.2) 75%,
|
|
40
|
-
transparent 75%,
|
|
41
|
-
transparent);
|
|
42
|
-
background-size: 32px 32px;
|
|
43
|
-
animation: _progress_fevtt_1 1s linear infinite;
|
|
44
|
-
}
|
|
45
|
-
@keyframes _progress_fevtt_1 {
|
|
46
|
-
0% {
|
|
47
|
-
background-position-x: 0px;
|
|
48
|
-
}
|
|
49
|
-
100% {
|
|
50
|
-
background-position-x: 32px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
a.top-button,
|
|
54
|
-
button.top-button {
|
|
55
|
-
min-width: 135px;
|
|
56
|
-
text-decoration: none;
|
|
57
|
-
}
|
|
58
|
-
a.top-button,
|
|
59
|
-
a.top-button:hover {
|
|
60
|
-
min-width: var(--top-forms-base-height);
|
|
61
|
-
text-decoration: none;
|
|
62
|
-
}
|
|
63
|
-
.top-button[data-top-icon]:not(:empty),
|
|
64
|
-
.top-button[data-top-icon2]:not(:empty) {
|
|
65
|
-
justify-content: flex-start;
|
|
66
|
-
text-align: left;
|
|
67
|
-
}
|
|
68
|
-
.top-button[data-top-icon] {
|
|
69
|
-
padding-left: 0;
|
|
70
|
-
}
|
|
71
|
-
.top-button[data-top-icon2] {
|
|
72
|
-
padding-right: var(--top-select_arrow-width);
|
|
73
|
-
}
|
|
74
|
-
.top-button[data-top-icon2]:after {
|
|
75
|
-
margin-left: auto;
|
|
76
|
-
}
|
|
77
|
-
.top-button:empty {
|
|
78
|
-
min-width: var(--top-forms-base-height);
|
|
79
|
-
}
|
|
80
|
-
.top-button[data-top-icon]:empty,
|
|
81
|
-
.top-button[data-top-icon2]:empty {
|
|
82
|
-
padding: 0;
|
|
83
|
-
}
|
|
84
|
-
.top-button.top-color_blue {
|
|
85
|
-
--top-button-background-color: var(--color-blue-500);
|
|
86
|
-
}
|
|
87
|
-
.top-button.top-color_green {
|
|
88
|
-
--top-button-background-color: var(--color-green-500);
|
|
89
|
-
}
|
|
90
|
-
.top-button.top-color_orange {
|
|
91
|
-
--top-button-background-color: var(--color-orange-500);
|
|
92
|
-
}
|
|
93
|
-
.top-button.top-color_red {
|
|
94
|
-
--top-button-background-color: var(--color-red-500);
|
|
95
|
-
}
|
|
96
|
-
.top-button.top-color_pink {
|
|
97
|
-
--top-button-background-color: var(--color-pink-500);
|
|
98
|
-
}
|
|
99
|
-
.top-button.top-color_theme {
|
|
100
|
-
--top-button-box-shadow-hover: none;
|
|
101
|
-
--top-button-box-shadow-active: none;
|
|
102
|
-
--top-button-box-shadow-selected: none;
|
|
103
|
-
|
|
104
|
-
--top-icon-color: var(--color-text-2);
|
|
105
|
-
--top-icon2-color: var(--color-text-2);
|
|
106
|
-
|
|
107
|
-
--top-button-color: var(--color-text-1);
|
|
108
|
-
--top-button-background-color: transparent;
|
|
109
|
-
--top-button-background-color-hover: var(--color-secondary-opacity);
|
|
110
|
-
--top-button-background-color-active: var(--color-secondary-2-opacity);
|
|
111
|
-
--top-button-background-color-selected: var(--color-secondary-2-opacity);
|
|
112
|
-
}
|
|
113
|
-
.top-button.top-color_theme.top-active {
|
|
114
|
-
--top-icon-color: var(--color-text-2);
|
|
115
|
-
}
|
|
116
|
-
.top-button.top-style_outline {
|
|
117
|
-
--top-button-box-shadow: none;
|
|
118
|
-
--top-button-box-shadow-hover: none;
|
|
119
|
-
--top-button-box-shadow-active: none;
|
|
120
|
-
--top-button-box-shadow-selected: none;
|
|
121
|
-
|
|
122
|
-
--top-forms-border-color: var(--top-style_outline-color);
|
|
123
|
-
|
|
124
|
-
--top-style_outline-color: var(--color-steel-400);
|
|
125
|
-
|
|
126
|
-
--top-button-color: var(--top-style_outline-color);
|
|
127
|
-
--top-button-background-color: var(--content-background-color);
|
|
128
|
-
--top-button-background-color-hover: var(--color-theme-100);
|
|
129
|
-
--top-button-background-color-active: var(--color-theme-150);
|
|
130
|
-
--top-button-background-color-selected: var(--color-theme-125);
|
|
131
|
-
|
|
132
|
-
--top-forms-border-width: 1px;
|
|
133
|
-
}
|
|
134
|
-
.top-button.top-style_outline.top-color_theme {
|
|
135
|
-
--top-button-color: var(--color-text);
|
|
136
|
-
}
|
|
137
|
-
.top-button.top-style_outline.top-color_blue {
|
|
138
|
-
--top-style_outline-color: var(--color-blue-500);
|
|
139
|
-
}
|
|
140
|
-
.top-button.top-style_outline.top-color_green {
|
|
141
|
-
--top-style_outline-color: var(--color-green-500);
|
|
142
|
-
}
|
|
143
|
-
.top-button.top-style_outline.top-color_orange {
|
|
144
|
-
--top-style_outline-color: var(--color-orange-500);
|
|
145
|
-
}
|
|
146
|
-
.top-button.top-style_outline.top-color_red {
|
|
147
|
-
--top-style_outline-color: var(--color-red-500);
|
|
148
|
-
}
|
|
149
|
-
.top-button.top-style_outline.top-color_pink {
|
|
150
|
-
--top-style_outline-color: var(--color-pink-500);
|
|
151
|
-
}
|
|
152
|
-
.top-button.top-style_soft {
|
|
153
|
-
--top-shadow-darken: none;
|
|
154
|
-
--top-shadow-darken-2: none;
|
|
155
|
-
--top-shadow-darken-3: none;
|
|
156
|
-
|
|
157
|
-
--top-button-color: var(--color-text);
|
|
158
|
-
--top-button-background-color: var(--color-secondary-opacity);
|
|
159
|
-
--top-button-background-color-hover: var(--color-secondary-2-opacity);
|
|
160
|
-
--top-button-background-color-active: var(--color-secondary-3-opacity);
|
|
161
|
-
--top-button-background-color-selected: var(--color-secondary-3-opacity);
|
|
162
|
-
}
|
|
163
|
-
.top-button.top-style_soft.top-color_blue {
|
|
164
|
-
--top-button-color: var(--color-blue-500);
|
|
165
|
-
}
|
|
166
|
-
.top-button.top-style_soft.top-color_orange {
|
|
167
|
-
--top-button-color: var(--color-orange-500);
|
|
168
|
-
}
|
|
169
|
-
.top-button.top-style_soft.top-color_green {
|
|
170
|
-
--top-button-color: var(--color-green-500);
|
|
171
|
-
}
|
|
172
|
-
.top-button.top-style_soft.top-color_red {
|
|
173
|
-
--top-button-color: var(--color-red-500);
|
|
174
|
-
}
|
|
175
|
-
.top-button.top-style_soft.top-color_pink {
|
|
176
|
-
--top-button-color: var(--color-pink-500);
|
|
177
|
-
}
|
|
178
|
-
.top-button.top-style_transparent {
|
|
179
|
-
--top-shadow-darken: none;
|
|
180
|
-
--top-shadow-darken-2: none;
|
|
181
|
-
--top-shadow-darken-3: none;
|
|
182
|
-
|
|
183
|
-
--top-button-color: var(--color-text);
|
|
184
|
-
--top-button-background-color: transparent;
|
|
185
|
-
--top-button-background-color-hover: transparent;
|
|
186
|
-
--top-button-background-color-active: transparent;
|
|
187
|
-
--top-button-background-color-selected: var(--color-steel-200);
|
|
188
|
-
}
|
|
189
|
-
.top-button.top-style_transparent:hover {
|
|
190
|
-
opacity: 0.8;
|
|
191
|
-
}
|
|
192
|
-
.top-button.top-style_transparent.top-color_blue {
|
|
193
|
-
--top-button-color: var(--color-blue-450);
|
|
194
|
-
}
|
|
195
|
-
.top-button.top-style_transparent.top-color_green {
|
|
196
|
-
--top-button-color: var(--color-green-450);
|
|
197
|
-
}
|
|
198
|
-
.top-button.top-style_transparent.top-color_orange {
|
|
199
|
-
--top-button-color: var(--color-orange-450);
|
|
200
|
-
}
|
|
201
|
-
.top-button.top-style_transparent.top-color_red {
|
|
202
|
-
--top-button-color: var(--color-red-450);
|
|
203
|
-
}
|
|
204
|
-
.top-button.top-style_transparent.top-color_pink {
|
|
205
|
-
--top-button-color: var(--color-pink-450);
|
|
206
|
-
}
|
|
207
|
-
.top-button {
|
|
208
|
-
--top-button-color: var(--color-white);
|
|
209
|
-
--top-button-background-color: transparent;
|
|
210
|
-
--top-button-background-color-hover: var(--top-button-background-color);
|
|
211
|
-
--top-button-background-color-active: var(--top-button-background-color-hover);
|
|
212
|
-
--top-button-background-color-selected: var(--top-button-background-color-hover);
|
|
213
|
-
--top-button-box-shadow: none;
|
|
214
|
-
--top-button-box-shadow-hover: var(--top-shadow-darken-2);
|
|
215
|
-
--top-button-box-shadow-active: var(--top-shadow-darken-3);
|
|
216
|
-
--top-button-box-shadow-selected: var(--top-shadow-darken-3);
|
|
217
|
-
--top-forms-border-width: 0px;
|
|
218
|
-
--top-icon-width: calc(var(--top-icon-size) + var(--top-forms-padding));
|
|
219
|
-
--top-icon2-width: calc(var(--top-icon2-size) + var(--top-forms-padding));
|
|
220
|
-
}
|
|
221
|
-
.top-button.top-size_l {
|
|
222
|
-
--top-forms-padding: var(--top-forms-padding_l);
|
|
223
|
-
--top-forms-base-height: var(--top-forms-base-height_l);
|
|
224
|
-
}
|
|
225
|
-
.top-button.top-size_xl {
|
|
226
|
-
--top-forms-padding: var(--top-forms-padding_xl);
|
|
227
|
-
--top-forms-base-height: var(--top-forms-base-height_xl);
|
|
228
|
-
}
|
|
229
|
-
.top-button-progress {}
|
|
230
|
-
|
|
231
|
-
[type="checkbox"].top-el:before {
|
|
232
|
-
--top-checkbox-color: var(--top-radio-color);
|
|
233
|
-
--top-checkbox-color-hover: var(--top-radio-color-hover);
|
|
234
|
-
|
|
235
|
-
--top-checkbox-symbol: '';
|
|
236
|
-
|
|
237
|
-
font-family: "Topvisor-2";
|
|
238
|
-
}
|
|
239
|
-
[type="checkbox"].top-el:not(.top-checkbox_input-switcher):before {
|
|
240
|
-
content: ' ';
|
|
241
|
-
text-align: center;
|
|
242
|
-
line-height: 16px;
|
|
243
|
-
font-size: 16px;
|
|
244
|
-
border-radius: 4px;
|
|
245
|
-
background: var(--content-background-color);
|
|
246
|
-
border: 1px solid var(--color-gray-200);
|
|
247
|
-
width: 16px;
|
|
248
|
-
height: 16px;
|
|
249
|
-
color: #FFF;
|
|
250
|
-
text-indent: 0px;
|
|
251
|
-
font-family: 'Topvisor-2';
|
|
252
|
-
}
|
|
253
|
-
[type="checkbox"].top-el:not(.top-checkbox_input-switcher)[title]:after {
|
|
254
|
-
margin: 0 0 0 8px;
|
|
255
|
-
}
|
|
256
|
-
[type="checkbox"].top-el:not(.top-checkbox_input-switcher):not(:checked):not(:disabled):not(:indeterminate):hover:before {
|
|
257
|
-
border-color: var(--color-gray-400);
|
|
258
|
-
background: var(--color-steel-150)
|
|
259
|
-
}
|
|
260
|
-
[type="checkbox"].top-el:not(.top-checkbox_input-switcher):checked:before,
|
|
261
|
-
[type="checkbox"].top-el:not(.top-checkbox_input-switcher):indeterminate:before {
|
|
262
|
-
content: var(--top-checkbox-symbol);
|
|
263
|
-
border-color: var(--top-checkbox-color);
|
|
264
|
-
background: var(--top-checkbox-color);
|
|
265
|
-
}
|
|
266
|
-
[type="checkbox"].top-el:not(.top-checkbox_input-switcher):checked:not(:disabled):hover:before,
|
|
267
|
-
[type="checkbox"].top-el:not(.top-checkbox_input-switcher):indeterminate:not(:disabled):hover:before {
|
|
268
|
-
border-color: var(--top-checkbox-color-hover);
|
|
269
|
-
background: var(--top-checkbox-color-hover);
|
|
270
|
-
}
|
|
271
|
-
[type="checkbox"].top-el:indeterminate:before {
|
|
272
|
-
--top-checkbox-symbol: '';
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/* top-checkbox_input-switcher */
|
|
276
|
-
[type="checkbox"].top-checkbox_input-switcher {
|
|
277
|
-
line-height: 1;
|
|
278
|
-
}
|
|
279
|
-
[type="checkbox"].top-checkbox_input-switcher:before {
|
|
280
|
-
--top-checkbox-background-color: var(--color-theme-200);
|
|
281
|
-
--top-checkbox-background-color-hover: var(--color-theme-300);
|
|
282
|
-
--top-checkbox-background-color-checked: var(--top-radio-color);
|
|
283
|
-
--top-checkbox-background-color-checked-hover: var(--top-radio-color-hover);
|
|
284
|
-
|
|
285
|
-
--top-checkbox_input-switcher-color: #FFF;
|
|
286
|
-
--top-checkbox_input-switcher-color-hover: #FFF;
|
|
287
|
-
--top-checkbox_input-switcher-color-checked: #FFF;
|
|
288
|
-
--top-checkbox_input-switcher-color-checked-hover: #FFF;
|
|
289
|
-
|
|
290
|
-
--top-checkbox-symbol: '';
|
|
291
|
-
|
|
292
|
-
transition: text-indent 50ms;
|
|
293
|
-
content: var(--top-checkbox-symbol);
|
|
294
|
-
border-radius: 9px;
|
|
295
|
-
background: var(--top-checkbox-background-color);
|
|
296
|
-
width: 30px;
|
|
297
|
-
padding: 0 1px;
|
|
298
|
-
color: var(--top-checkbox_input-switcher-color);
|
|
299
|
-
font-family: Topvisor-2;
|
|
300
|
-
font-size: 16px;
|
|
301
|
-
line-height: 16px;
|
|
302
|
-
text-indent: -1px;
|
|
303
|
-
display: inline-block;
|
|
304
|
-
}
|
|
305
|
-
[type="checkbox"].top-checkbox_input-switcher:not(:disabled):hover:before {
|
|
306
|
-
background: var(--top-checkbox-background-color-hover);
|
|
307
|
-
color: var(--top-checkbox_input-switcher-color-hover);
|
|
308
|
-
}
|
|
309
|
-
[type="checkbox"].top-checkbox_input-switcher:after {
|
|
310
|
-
white-space: nowrap;
|
|
311
|
-
}
|
|
312
|
-
[type="checkbox"].top-checkbox_input-switcher:checked:before {
|
|
313
|
-
background: var(--top-checkbox-background-color-checked);
|
|
314
|
-
color: var(--top-checkbox_input-switcher-color-checked);
|
|
315
|
-
text-indent: 15px;
|
|
316
|
-
}
|
|
317
|
-
[type="checkbox"].top-checkbox_input-switcher:not(:disabled):checked:hover:before {
|
|
318
|
-
background: var(--top-checkbox-background-color-checked-hover);
|
|
319
|
-
color: var(--top-checkbox_input-switcher-color-checked-hover);
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
:root {
|
|
323
|
-
--top-radio-background-color: var(--content-background-color);
|
|
324
|
-
--top-radio-background-color-hover: var(--top-radio-background-color);
|
|
325
|
-
--top-radio-background-color-active: var(--top-radio-background-color);
|
|
326
|
-
}
|
|
327
|
-
.top-radio {
|
|
328
|
-
cursor: pointer;
|
|
329
|
-
}
|
|
330
|
-
[type="radio"].top-el:before {
|
|
331
|
-
content: ' ';
|
|
332
|
-
border-radius: 100%;
|
|
333
|
-
border: 1px solid var(--color-gray-200);
|
|
334
|
-
width: 16px;
|
|
335
|
-
height: 16px;
|
|
336
|
-
}
|
|
337
|
-
[type="radio"].top-el:hover:before,
|
|
338
|
-
.top-radio:hover > [type="radio"].top-el:before {
|
|
339
|
-
border-color: var(--top-radio-color-hover);
|
|
340
|
-
}
|
|
341
|
-
[type="radio"].top-el:checked:before {
|
|
342
|
-
box-shadow:
|
|
343
|
-
var(--top-radio-background-color) 1px 1px 0 inset,
|
|
344
|
-
var(--top-radio-background-color) -1px -1px 0 inset,
|
|
345
|
-
var(--top-radio-background-color) 1px -1px 0 inset,
|
|
346
|
-
var(--top-radio-background-color) -1px 1px 0 inset;
|
|
347
|
-
background: var(--top-radio-color);
|
|
348
|
-
border-color: var(--top-radio-color);
|
|
349
|
-
}
|
|
350
|
-
[type="radio"].top-el[title]:after {
|
|
351
|
-
margin: 0 0 0 8px;
|
|
352
|
-
}
|