adata-ui 0.1.2 → 0.1.6
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/README.md +3 -20
- package/dist/adata-ui.common.js +4478 -290
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +4478 -290
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +1 -1
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/package-lock.json +25791 -12100
- package/package.json +71 -52
- package/src/App.vue +23 -28
- package/src/components/Alert/Alert.stories.js +17 -0
- package/src/components/Alert/Alert.vue +63 -0
- package/src/components/Button/BaseButton.vue +241 -0
- package/src/components/Button/Button.stories.js +23 -0
- package/src/components/Footer/Footer.stories.js +20 -0
- package/src/components/Footer/Footer.vue +233 -0
- package/src/components/Header/Header.stories.js +55 -0
- package/src/components/Header/Header.vue +315 -0
- package/src/components/Header/Profile.vue +806 -0
- package/src/components/PasswordField/PasswordField.stories.js +16 -0
- package/src/components/PasswordField/PasswordField.vue +68 -0
- package/src/components/TextField/TextField.stories.js +17 -0
- package/src/components/TextField/TextField.vue +355 -0
- package/src/components/index.js +12 -5
- package/src/components/transitions/SlideToggle.vue +55 -0
- package/src/components/transitions/VerticalMobileToggle.vue +76 -0
- package/src/configs/navigationBarConfig.js +22 -0
- package/src/configs/profileDropDown.js +101 -0
- package/src/stories/Button.stories.js +46 -0
- package/src/stories/Button.vue +54 -0
- package/src/stories/Header.stories.js +21 -0
- package/src/stories/Header.vue +59 -0
- package/src/stories/Introduction.stories.mdx +211 -0
- package/src/stories/Page.stories.js +25 -0
- package/src/stories/Page.vue +88 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +26 -0
- package/src/stories/page.css +69 -0
- package/src/components/Button.vue +0 -18
- package/src/components/HelloWorld.vue +0 -58
|
@@ -0,0 +1,806 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="profile" :class="{ active: active }">
|
|
3
|
+
<div v-click-outside="() => {active = false}">
|
|
4
|
+
<div class="profile__inner">
|
|
5
|
+
<div class="requests__link" v-if="requestCount !== null && isAuthenticated">
|
|
6
|
+
Суточный лимит запросов:
|
|
7
|
+
<span>
|
|
8
|
+
{{ requestCount }} {{ (daysRemaining === null || daysRemaining === '-') ? '' : `(${daysRemaining})` }}
|
|
9
|
+
</span>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="profile__item" @click="active = !active">
|
|
12
|
+
<div v-show="isAuthenticated" class="profile__item-link">
|
|
13
|
+
<span class="desktop">{{ email }}</span>
|
|
14
|
+
<svg width="18" height="18" fill="#25476AFF" class="desktop arrow-svg" :class="{ rotate: active }" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
15
|
+
<path fill="none" d="M0 0h16v16H0z"></path>
|
|
16
|
+
<path fill="none" d="M3 6.5L8 10l5-3.5" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
17
|
+
</svg>
|
|
18
|
+
</div>
|
|
19
|
+
<div v-show="isAuthenticated" class="profile__item-link">
|
|
20
|
+
<svg width="18" height="18" fill="#25476AFF" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="user">
|
|
21
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
22
|
+
d="M15.5 8a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm-1.023 4.344a5 5 0 10-4.954 0C5.757 13.417 3 16.874 3 20.974V21h1.543v-.026c0-4.106 3.339-7.435 7.457-7.435 4.119 0 7.457 3.329 7.457 7.435V21H21v-.026c0-4.1-2.757-7.557-6.523-8.63z"
|
|
23
|
+
fill="#2C3E50"></path>
|
|
24
|
+
</svg>
|
|
25
|
+
</div>
|
|
26
|
+
<a :href="loginUrl" class="sign" v-show="!isAuthenticated">
|
|
27
|
+
<svg width="18" height="18" fill="#25476AFF" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="desktop">
|
|
28
|
+
<path fill="#fff" d="M0 0h16v16H0z" stroke="none"></path>
|
|
29
|
+
<path d="M8 10l2-2.054L8.077 6" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
30
|
+
<path d="M6 4.1V2h8v12H6v-1.65M9 8H2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
31
|
+
</svg>
|
|
32
|
+
<svg width="18" height="18" fill="#25476AFF" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="user">
|
|
33
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13 7.94L17.06 12 13 16.06 11.94 15l3-3-3-3L13 7.94z" fill="#2C3E50"></path>
|
|
34
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.25 2.25h13.5v19.5H8.25v-4.5h1.5v3h10.5V3.75H9.75v3h-1.5v-4.5z" fill="#2C3E50"></path>
|
|
35
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 11.25h13.5v1.5H2.25v-1.5z" fill="#2C3E50"></path>
|
|
36
|
+
</svg>
|
|
37
|
+
<span class="sign_text">Вход</span>
|
|
38
|
+
</a>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<SlideToggle v-slot="{ animationClass }">
|
|
42
|
+
<div
|
|
43
|
+
class="profile-menu"
|
|
44
|
+
v-if="isAuthenticated"
|
|
45
|
+
v-show="active"
|
|
46
|
+
:class="animationClass"
|
|
47
|
+
>
|
|
48
|
+
<div class="profile-menu__inner">
|
|
49
|
+
<div class="profile-menu__items" v-if="listDropDown.length">
|
|
50
|
+
<div v-for="(elem, index) in listDropDown" :key="index">
|
|
51
|
+
<div :class="elem.link ? 'profile-menu__balance-link': 'profile-menu__links'"
|
|
52
|
+
class="gray-text"
|
|
53
|
+
v-if="elem.url"
|
|
54
|
+
@click="handleClick(elem.url, elem.name)">
|
|
55
|
+
<div>
|
|
56
|
+
{{ elem.name }}
|
|
57
|
+
</div>
|
|
58
|
+
<span
|
|
59
|
+
v-if="elem.link"
|
|
60
|
+
@click="setShowModal(true)"
|
|
61
|
+
class="profile-menu__balance"
|
|
62
|
+
>
|
|
63
|
+
{{ elem.link }}
|
|
64
|
+
</span>
|
|
65
|
+
</div>
|
|
66
|
+
<div v-if="elem.children" @click="rotateItem(index)" class="gray-text profile-menu__item">
|
|
67
|
+
<div class="profile-menu__item__children">{{ elem.name }}
|
|
68
|
+
<span v-if="elem.children.length > 0">
|
|
69
|
+
<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg" :class="{'rotated': elem.opened}">
|
|
70
|
+
<path d="M1 1.5L6 6.5L11 1.5" stroke="#69797D" stroke-width="2" stroke-linecap="round"
|
|
71
|
+
stroke-linejoin="round"/>
|
|
72
|
+
</svg>
|
|
73
|
+
</span>
|
|
74
|
+
</div>
|
|
75
|
+
<SlideToggle v-slot="{ animationClass }" :class="animationClass">
|
|
76
|
+
<div v-if="elem.opened">
|
|
77
|
+
<template v-for="(child, idx) in elem.children">
|
|
78
|
+
<div
|
|
79
|
+
class="profile-menu__item__child"
|
|
80
|
+
:key="idx + 'link'"
|
|
81
|
+
v-if="child.url"
|
|
82
|
+
@click="handleClick(child.url, child.name)"
|
|
83
|
+
>
|
|
84
|
+
<span>
|
|
85
|
+
<svg width="4" height="4" viewBox="0 0 4 4" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
86
|
+
<circle cx="2" cy="2" r="2" fill="#2C3E50"/>
|
|
87
|
+
</svg>
|
|
88
|
+
{{ child.name }}
|
|
89
|
+
</span>
|
|
90
|
+
</div>
|
|
91
|
+
</template>
|
|
92
|
+
</div>
|
|
93
|
+
</SlideToggle>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="exit" @click="logout">
|
|
98
|
+
<svg width="18" height="18" fill="#25476AFF" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
|
|
99
|
+
<path d="M11 10l2-2.054L11.077 6M10 11.9V14H2V2h8v1.65M12 8H5" stroke-miterlimit="10"
|
|
100
|
+
stroke-linecap="round" stroke-linejoin="round"></path>
|
|
101
|
+
</svg>
|
|
102
|
+
Выход
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</SlideToggle>
|
|
107
|
+
<MobileToggle v-slot="{ animationClass }">
|
|
108
|
+
<div v-show="isAuthenticated && active" class="mobile-table" :class="animationClass">
|
|
109
|
+
<div class="mobile-table-head">
|
|
110
|
+
<p>Профиль пользователя</p>
|
|
111
|
+
<!-- close_hamburger-->
|
|
112
|
+
<svg @click.stop="active = !active" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="close_hamburger">
|
|
113
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.414 18.142L18.556 4l1.415 1.414L5.828 19.556l-1.414-1.414z"
|
|
114
|
+
fill="#2C3E50"></path>
|
|
115
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.414 4l14.142 14.142-1.414 1.414L4 5.414 5.414 4z"
|
|
116
|
+
fill="#2C3E50"></path>
|
|
117
|
+
</svg>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="profile-menu-mobile">
|
|
120
|
+
<div class="profile-menu-mobile__inner">
|
|
121
|
+
<div class="profile-menu-mobile__items" v-if="listDropDown.length > 0">
|
|
122
|
+
<div v-for="(elem, index) in listDropDown" :key="index" class="bb">
|
|
123
|
+
<div
|
|
124
|
+
@click="handleClick(elem.url, elem.name)"
|
|
125
|
+
v-if="elem.url"
|
|
126
|
+
:class="elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links'"
|
|
127
|
+
>
|
|
128
|
+
<div v-if="!elem.link" class="button-inner">
|
|
129
|
+
<div>{{ elem.name }}</div>
|
|
130
|
+
<!-- arrow_right -->
|
|
131
|
+
<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 18">
|
|
132
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
133
|
+
d="M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z" fill="#2C3E50"></path>
|
|
134
|
+
</svg>
|
|
135
|
+
</div>
|
|
136
|
+
<div v-if="elem.link" class="profile-menu-mobile__balance-items">
|
|
137
|
+
<div class="profile-menu-mobile__balance-items__upper-text">
|
|
138
|
+
{{ elem.name.substr(0, 15) }}
|
|
139
|
+
</div>
|
|
140
|
+
<div class="profile-menu-mobile__balance__bot-text">
|
|
141
|
+
{{ elem.name.substr(15) }}
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
<span
|
|
145
|
+
v-if="elem.link"
|
|
146
|
+
@click="$emit('showBalanceModal', true)"
|
|
147
|
+
class="profile-menu-mobile__balance"
|
|
148
|
+
>
|
|
149
|
+
{{ elem.link }}
|
|
150
|
+
</span>
|
|
151
|
+
</div>
|
|
152
|
+
<div v-if="elem.children" @click="rotateItem(index)" class="profile-menu-mobile__links">
|
|
153
|
+
<div class="button-inner">
|
|
154
|
+
<div>{{ elem.name }}</div>
|
|
155
|
+
<!-- arrow_right -->
|
|
156
|
+
<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 18">
|
|
157
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
158
|
+
d="M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z" fill="#2C3E50"></path>
|
|
159
|
+
</svg>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="exit-mob" @click="logout">
|
|
166
|
+
<!-- exit-black-->
|
|
167
|
+
<svg width="18" height="18" fill="#25476AFF" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="arrow-svg">
|
|
168
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
169
|
+
d="M17.7501 7.93933L21.8108 12L17.7501 16.0607L16.6895 15L19.6895 12L16.6895 8.99999L17.7501 7.93933Z"
|
|
170
|
+
fill="#2C3E50"></path>
|
|
171
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 2.25H2V21.75H15.5V17.25H14V20.25H3.5V3.75H14V6.75H15.5V2.25Z"
|
|
172
|
+
fill="#2C3E50"></path>
|
|
173
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 11.25L20.5 11.25L20.5 12.75L7 12.75L7 11.25Z"
|
|
174
|
+
fill="#2C3E50"></path>
|
|
175
|
+
</svg>
|
|
176
|
+
Выход
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
</MobileToggle>
|
|
181
|
+
<MobileToggle v-slot="{ animationClass }">
|
|
182
|
+
<div
|
|
183
|
+
v-show="someMobileOpened.length > 0 && chosenElem && chosenElem.children.length > 0"
|
|
184
|
+
:class="animationClass"
|
|
185
|
+
class="mobile-table"
|
|
186
|
+
>
|
|
187
|
+
<div class="mobile-table-head mobile-table-head-chosen">
|
|
188
|
+
<div @click="chosenElem.opened = false">
|
|
189
|
+
<!-- arrow_right -->
|
|
190
|
+
<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg" class="rotated" viewBox="0 0 10 18">
|
|
191
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
192
|
+
d="M2.108.59L9.318 9l-7.21 8.41L.59 16.108 6.683 9 .59 1.892 2.108.59z" fill="#2C3E50"></path>
|
|
193
|
+
</svg>
|
|
194
|
+
</div>
|
|
195
|
+
<p>{{ chosenElem.name }}</p>
|
|
196
|
+
</div>
|
|
197
|
+
<div
|
|
198
|
+
class="profile-menu-mobile"
|
|
199
|
+
>
|
|
200
|
+
<div class="profile-menu-mobile__inner">
|
|
201
|
+
<div class="profile-menu-mobile__items" v-if="chosenElem.children.length > 0">
|
|
202
|
+
<div v-for="(elem, index) in chosenElem.children" :key="index" class="bb">
|
|
203
|
+
<div @click="handleClick(elem.url, elem.name)"
|
|
204
|
+
v-if="elem.url"
|
|
205
|
+
:class="elem.link ? 'profile-menu-mobile__balance-link': 'profile-menu-mobile__links'">
|
|
206
|
+
<div class="button-inner">
|
|
207
|
+
<div>{{ elem.name }}</div>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
</div>
|
|
213
|
+
<div class="exit-mob" @click="logout">
|
|
214
|
+
<!-- exit-black-->
|
|
215
|
+
<svg width="18" height="18" fill="#25476AFF" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="arrow-svg">
|
|
216
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
217
|
+
d="M17.7501 7.93933L21.8108 12L17.7501 16.0607L16.6895 15L19.6895 12L16.6895 8.99999L17.7501 7.93933Z"
|
|
218
|
+
fill="#2C3E50"></path>
|
|
219
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 2.25H2V21.75H15.5V17.25H14V20.25H3.5V3.75H14V6.75H15.5V2.25Z"
|
|
220
|
+
fill="#2C3E50"></path>
|
|
221
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 11.25L20.5 11.25L20.5 12.75L7 12.75L7 11.25Z"
|
|
222
|
+
fill="#2C3E50"></path>
|
|
223
|
+
</svg>
|
|
224
|
+
Выход
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
</MobileToggle>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
</template>
|
|
232
|
+
|
|
233
|
+
<script>
|
|
234
|
+
import SlideToggle from "../transitions/SlideToggle";
|
|
235
|
+
import vClickOutside from "v-click-outside";
|
|
236
|
+
import MobileToggle from "../transitions/VerticalMobileToggle";
|
|
237
|
+
|
|
238
|
+
export default {
|
|
239
|
+
directives: {
|
|
240
|
+
clickOutside: vClickOutside.directive,
|
|
241
|
+
},
|
|
242
|
+
props: {
|
|
243
|
+
isDev: {
|
|
244
|
+
type: Boolean,
|
|
245
|
+
default: false
|
|
246
|
+
},
|
|
247
|
+
profileDropDown: {
|
|
248
|
+
type: Array,
|
|
249
|
+
required: true,
|
|
250
|
+
},
|
|
251
|
+
isAuthenticated: {
|
|
252
|
+
type: Boolean,
|
|
253
|
+
default: false
|
|
254
|
+
},
|
|
255
|
+
requestCount: {
|
|
256
|
+
type: Number,
|
|
257
|
+
default: null
|
|
258
|
+
},
|
|
259
|
+
daysRemaining: {
|
|
260
|
+
type: String,
|
|
261
|
+
default: null
|
|
262
|
+
},
|
|
263
|
+
email: {
|
|
264
|
+
type: String,
|
|
265
|
+
default: ""
|
|
266
|
+
},
|
|
267
|
+
loginUrl: {
|
|
268
|
+
type: String,
|
|
269
|
+
default: "",
|
|
270
|
+
required: true
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
components: {
|
|
274
|
+
SlideToggle,
|
|
275
|
+
MobileToggle
|
|
276
|
+
},
|
|
277
|
+
data() {
|
|
278
|
+
return {
|
|
279
|
+
active: false,
|
|
280
|
+
listDropDown: [],
|
|
281
|
+
chosenElem: {
|
|
282
|
+
children: []
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
},
|
|
286
|
+
mounted() {
|
|
287
|
+
if (this.profileDropDown && this.profileDropDown.length > 0) {
|
|
288
|
+
this.listDropDown = [...this.profileDropDown]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
computed: {
|
|
292
|
+
someMobileOpened() {
|
|
293
|
+
return this.listDropDown.filter(el => el.opened && el.children.length > 0);
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
methods: {
|
|
297
|
+
setShowModal(bool) {
|
|
298
|
+
this.$emit("setShowModal", bool);
|
|
299
|
+
},
|
|
300
|
+
logout() {
|
|
301
|
+
this.$emit("logout");
|
|
302
|
+
},
|
|
303
|
+
handleClick(url, name) {
|
|
304
|
+
if (name.includes('Текущий')) {
|
|
305
|
+
window.open(this.toAdtdev(url), "_self");
|
|
306
|
+
this.$emit("setIsReplenishModal", true);
|
|
307
|
+
} else {
|
|
308
|
+
window.open(this.toAdtdev(url), "_self");
|
|
309
|
+
}
|
|
310
|
+
this.active = false;
|
|
311
|
+
if (this.chosenElem) this.chosenElem.opened = false;
|
|
312
|
+
},
|
|
313
|
+
rotateItem(index) {
|
|
314
|
+
this.chosenElem = this.listDropDown[index];
|
|
315
|
+
this.$set(this.listDropDown[index], 'opened', !this.listDropDown[index].opened)
|
|
316
|
+
},
|
|
317
|
+
toAdtdev(url) {
|
|
318
|
+
return this.isDev ? url.replace("adata", "adtdev") : url;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
</script>
|
|
323
|
+
|
|
324
|
+
<style lang="scss" scoped>
|
|
325
|
+
a {
|
|
326
|
+
text-decoration: none;
|
|
327
|
+
background-color: transparent;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
svg {
|
|
331
|
+
transition: all .3s linear;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
svg.rotated {
|
|
335
|
+
transform: rotate(180deg);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.gray-text {
|
|
339
|
+
font-size: 12px;
|
|
340
|
+
line-height: 14px;
|
|
341
|
+
font-weight: 400;
|
|
342
|
+
color: #2c3e50;
|
|
343
|
+
padding: 10px 16px;
|
|
344
|
+
cursor: pointer;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.profile {
|
|
348
|
+
position: relative;
|
|
349
|
+
|
|
350
|
+
&__inner {
|
|
351
|
+
padding: 0;
|
|
352
|
+
display: flex;
|
|
353
|
+
align-items: center;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
&__item {
|
|
357
|
+
font-size: 14px;
|
|
358
|
+
font-weight: 600;
|
|
359
|
+
margin: 0;
|
|
360
|
+
padding: 8px 0;
|
|
361
|
+
white-space: nowrap;
|
|
362
|
+
cursor: pointer;
|
|
363
|
+
|
|
364
|
+
&-link {
|
|
365
|
+
display: flex;
|
|
366
|
+
align-items: center;
|
|
367
|
+
font-size: 14px;
|
|
368
|
+
&:first-child {
|
|
369
|
+
@media (max-width: 1025px) {
|
|
370
|
+
display: none;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
&:nth-child(2) {
|
|
374
|
+
display: none;
|
|
375
|
+
@media (max-width: 1025px) {
|
|
376
|
+
display: flex;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
span {
|
|
382
|
+
white-space: nowrap;
|
|
383
|
+
margin: 0 7px;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.arrow-svg {
|
|
387
|
+
transition: all 0.3s;
|
|
388
|
+
vertical-align: middle;
|
|
389
|
+
width: 16px;
|
|
390
|
+
height: 16px;
|
|
391
|
+
transform: rotate(0deg);
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
&.rotate {
|
|
395
|
+
transform: rotate(180deg);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.profile-menu {
|
|
401
|
+
width: 368px;
|
|
402
|
+
height: 100%;
|
|
403
|
+
position: absolute;
|
|
404
|
+
right: 0;
|
|
405
|
+
top: 100%;
|
|
406
|
+
background-color: #fff;
|
|
407
|
+
box-shadow: 0px 3px 6px #959cb140;
|
|
408
|
+
border-radius: 2px;
|
|
409
|
+
z-index: 10000;
|
|
410
|
+
@media (max-width: 1025px) {
|
|
411
|
+
display: none;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
&__items {
|
|
415
|
+
font-size: 12px;
|
|
416
|
+
line-height: 14px;
|
|
417
|
+
font-weight: 400;
|
|
418
|
+
color: #2c3e50;
|
|
419
|
+
cursor: pointer;
|
|
420
|
+
|
|
421
|
+
div:not(:last-child) > a > .gray-text {
|
|
422
|
+
border-bottom: 0.5px solid #BDC7CE;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
div:not(:last-child) > .gray-text {
|
|
426
|
+
border-bottom: 0.5px solid #BDC7CE;
|
|
427
|
+
|
|
428
|
+
& + div {
|
|
429
|
+
padding: 10px 16px;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
div > .gray-text:not(.profile-menu__balance-link):not(.profile-menu__links) {
|
|
434
|
+
padding: 0;
|
|
435
|
+
|
|
436
|
+
a {
|
|
437
|
+
color: #2c3e50;
|
|
438
|
+
|
|
439
|
+
&:visited {
|
|
440
|
+
color: #2c3e50;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
&__item__child {
|
|
447
|
+
padding: 0 16px 0 32px;
|
|
448
|
+
height: 40px;
|
|
449
|
+
display: flex;
|
|
450
|
+
border-top: 0.5px solid #BDC7CE;
|
|
451
|
+
align-items: center;
|
|
452
|
+
|
|
453
|
+
&:hover {
|
|
454
|
+
background: #2C3E500C;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
span {
|
|
458
|
+
display: flex;
|
|
459
|
+
align-items: center;
|
|
460
|
+
|
|
461
|
+
svg {
|
|
462
|
+
margin-right: 5px;
|
|
463
|
+
|
|
464
|
+
path {
|
|
465
|
+
fill: #2C3E500C !important;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
&__item__children {
|
|
472
|
+
padding: 0 16px;
|
|
473
|
+
display: flex;
|
|
474
|
+
justify-content: space-between;
|
|
475
|
+
align-items: center;
|
|
476
|
+
height: 40px;
|
|
477
|
+
&:hover {
|
|
478
|
+
background: #2C3E500C;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
&__balance-link {
|
|
483
|
+
display: flex;
|
|
484
|
+
align-items: center;
|
|
485
|
+
justify-content: space-between;
|
|
486
|
+
height: 40px;
|
|
487
|
+
padding: 0 16px;
|
|
488
|
+
|
|
489
|
+
&:hover {
|
|
490
|
+
background: #2c3e500d;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
&:not(:last-child) {
|
|
494
|
+
border-bottom: 1px solid #eef0f5;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
&__balance {
|
|
499
|
+
font-size: 14px;
|
|
500
|
+
color: #007aff;
|
|
501
|
+
white-space: nowrap;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
&__links {
|
|
505
|
+
display: flex;
|
|
506
|
+
align-items: center;
|
|
507
|
+
align-content: center;
|
|
508
|
+
height: 40px;
|
|
509
|
+
padding: 0 16px;
|
|
510
|
+
|
|
511
|
+
&:hover {
|
|
512
|
+
background: #2c3e500d;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
&:not(:last-child) {
|
|
516
|
+
border-bottom: 1px solid #eef0f5;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.exit {
|
|
523
|
+
background: #69797D;
|
|
524
|
+
height: 40px;
|
|
525
|
+
border-radius: 0 0 2px 2px;
|
|
526
|
+
display: flex;
|
|
527
|
+
align-items: center;
|
|
528
|
+
justify-content: center;
|
|
529
|
+
cursor: pointer;
|
|
530
|
+
|
|
531
|
+
&:hover {
|
|
532
|
+
background: #9da3ac;
|
|
533
|
+
color: #fff;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
&:hover svg {
|
|
537
|
+
stroke: #fff;
|
|
538
|
+
background: #9da3ac;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
svg {
|
|
542
|
+
margin-right: 8px;
|
|
543
|
+
background: #69797D;
|
|
544
|
+
fill: none !important;
|
|
545
|
+
stroke: #fff;
|
|
546
|
+
transition: all 0s;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
&:active {
|
|
550
|
+
background: #0055bb;
|
|
551
|
+
color: #fff;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
&:active svg {
|
|
555
|
+
stroke: #fff;
|
|
556
|
+
background: #0055bb;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
font-weight: 600;
|
|
560
|
+
font-size: 14px;
|
|
561
|
+
line-height: 16px;
|
|
562
|
+
color: #fff;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.sign {
|
|
566
|
+
height: 40px;
|
|
567
|
+
border-radius: 0 0 2px 2px;
|
|
568
|
+
display: flex;
|
|
569
|
+
align-items: center;
|
|
570
|
+
justify-content: center;
|
|
571
|
+
cursor: pointer;
|
|
572
|
+
|
|
573
|
+
&:hover {
|
|
574
|
+
svg {
|
|
575
|
+
stroke: #71757a !important;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
span {
|
|
579
|
+
color: #71757a;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
&:active {
|
|
584
|
+
svg {
|
|
585
|
+
stroke: #9da3ac !important;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
span {
|
|
589
|
+
color: #9da3ac;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
svg {
|
|
594
|
+
margin-right: 8px;
|
|
595
|
+
fill: none !important;
|
|
596
|
+
stroke: #2c3e50 !important;
|
|
597
|
+
@media(max-width: 1025px) {
|
|
598
|
+
stroke: none !important;
|
|
599
|
+
margin-right: 24px;
|
|
600
|
+
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
span {
|
|
605
|
+
font-weight: 600;
|
|
606
|
+
font-size: 14px;
|
|
607
|
+
line-height: 16px;
|
|
608
|
+
color: #2c3e50;
|
|
609
|
+
margin: 0 0;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.requests {
|
|
614
|
+
&__link {
|
|
615
|
+
font-size: 12px;
|
|
616
|
+
line-height: 16px;
|
|
617
|
+
font-weight: 400;
|
|
618
|
+
padding: 12px;
|
|
619
|
+
color: var(--newColor);
|
|
620
|
+
white-space: nowrap;
|
|
621
|
+
margin: 0 6px 0 0;
|
|
622
|
+
@media (max-width: 1025px) {
|
|
623
|
+
display: none;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
svg {
|
|
627
|
+
vertical-align: middle;
|
|
628
|
+
width: 20px;
|
|
629
|
+
height: 20px;
|
|
630
|
+
margin-right: 4px;
|
|
631
|
+
margin-bottom: 2px;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
span {
|
|
635
|
+
color: #2c3e50;
|
|
636
|
+
font-weight: 600;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.user {
|
|
642
|
+
display: none;
|
|
643
|
+
@media(max-width: 1025px) {
|
|
644
|
+
width: 24px;
|
|
645
|
+
height: 24px;
|
|
646
|
+
margin-right: 24px;
|
|
647
|
+
display: flex;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.exit-mobile {
|
|
652
|
+
display: none;
|
|
653
|
+
@media(max-width: 1025px) {
|
|
654
|
+
display: block;
|
|
655
|
+
width: 24px;
|
|
656
|
+
height: 24px;
|
|
657
|
+
margin-right: 12px;
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.mobile-table {
|
|
664
|
+
display: none;
|
|
665
|
+
@media (max-width: 1025px) {
|
|
666
|
+
display: block;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
&-head {
|
|
670
|
+
padding: 0 16px;
|
|
671
|
+
background: #F4F4F4;
|
|
672
|
+
display: flex;
|
|
673
|
+
align-items: center;
|
|
674
|
+
justify-content: space-between;
|
|
675
|
+
width: 100%;
|
|
676
|
+
height: 40px;
|
|
677
|
+
|
|
678
|
+
p {
|
|
679
|
+
font-weight: 600;
|
|
680
|
+
font-size: 17px;
|
|
681
|
+
line-height: 19px;
|
|
682
|
+
color: #2C3E50;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
svg {
|
|
686
|
+
width: 18px;
|
|
687
|
+
height: 18px;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
&-chosen {
|
|
691
|
+
position: relative;
|
|
692
|
+
|
|
693
|
+
& > div {
|
|
694
|
+
position: absolute;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
p {
|
|
698
|
+
text-align: center;
|
|
699
|
+
width: 100%;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.profile-menu-mobile {
|
|
706
|
+
height: 100%;
|
|
707
|
+
|
|
708
|
+
.bb > a, .bb > a:visited {
|
|
709
|
+
color: #000;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
&__inner {
|
|
713
|
+
display: flex;
|
|
714
|
+
flex-direction: column;
|
|
715
|
+
height: 72%;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
&__links, &__item {
|
|
719
|
+
padding: 0 16px;
|
|
720
|
+
height: 52px;
|
|
721
|
+
border: 1px solid #9DA3AC;
|
|
722
|
+
border-bottom: none;
|
|
723
|
+
font-size: 14px;
|
|
724
|
+
display: flex;
|
|
725
|
+
align-items: center;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
&__balance-link {
|
|
729
|
+
padding: 0 16px;
|
|
730
|
+
height: 52px;
|
|
731
|
+
border: 1px solid #9DA3AC;
|
|
732
|
+
border-bottom: none;
|
|
733
|
+
font-size: 14px;
|
|
734
|
+
display: flex;
|
|
735
|
+
justify-content: space-between;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
&__balance {
|
|
739
|
+
color: #1E88E5;
|
|
740
|
+
font-size: 16px;
|
|
741
|
+
white-space: nowrap;
|
|
742
|
+
display: flex;
|
|
743
|
+
align-items: center;
|
|
744
|
+
|
|
745
|
+
&-items {
|
|
746
|
+
display: flex;
|
|
747
|
+
flex-direction: column;
|
|
748
|
+
justify-content: center;
|
|
749
|
+
|
|
750
|
+
&__upper-text {
|
|
751
|
+
font-weight: normal;
|
|
752
|
+
font-size: 10px;
|
|
753
|
+
line-height: 14px;
|
|
754
|
+
color: #69797D;
|
|
755
|
+
margin-bottom: 4px;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
&__bot-text {
|
|
759
|
+
font-weight: 600;
|
|
760
|
+
font-size: 12px;
|
|
761
|
+
line-height: 16px;
|
|
762
|
+
color: #2C3E50;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.exit-mob {
|
|
769
|
+
background: #FFCD33;
|
|
770
|
+
border-radius: 2px;
|
|
771
|
+
height: 40px;
|
|
772
|
+
display: flex;
|
|
773
|
+
align-items: center;
|
|
774
|
+
justify-content: center;
|
|
775
|
+
cursor: pointer;
|
|
776
|
+
font-weight: normal;
|
|
777
|
+
font-size: 16px;
|
|
778
|
+
line-height: 16px;
|
|
779
|
+
color: #2c3e50;
|
|
780
|
+
margin: 16px 16px 0;
|
|
781
|
+
|
|
782
|
+
svg {
|
|
783
|
+
margin-right: 8px;
|
|
784
|
+
fill: none !important;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.bb {
|
|
789
|
+
&:last-child {
|
|
790
|
+
border-bottom: 1px solid #9DA3AC;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.button-inner {
|
|
795
|
+
display: flex;
|
|
796
|
+
align-items: center;
|
|
797
|
+
justify-content: space-between;
|
|
798
|
+
width: 100%;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.sign_text {
|
|
802
|
+
@media (max-width: 1025px) {
|
|
803
|
+
display: none;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
</style>
|