SettingsPage.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <template lang="includer">
  2. <Window ref="window" height="95%" width="600px" @close="close">
  3. <template slot="header">
  4. Настройки
  5. </template>
  6. <div class="col row">
  7. <div class="full-height">
  8. <q-tabs
  9. ref="tabs"
  10. class="bg-grey-3 text-black"
  11. v-model="selectedTab"
  12. left-icon="la la-caret-up"
  13. right-icon="la la-caret-down"
  14. active-color="white"
  15. active-bg-color="primary"
  16. indicator-color="black"
  17. vertical
  18. no-caps
  19. stretch
  20. inline-label
  21. >
  22. <div v-show="tabsScrollable" class="q-pt-lg"/>
  23. <q-tab class="tab" name="profiles" icon="la la-users" label="Профили" />
  24. <q-tab class="tab" name="view" icon="la la-eye" label="Вид" />
  25. <q-tab class="tab" name="buttons" icon="la la-grip-horizontal" label="Кнопки" />
  26. <q-tab class="tab" name="keys" icon="la la-gamepad" label="Управление" />
  27. <q-tab class="tab" name="pagemove" icon="la la-school" label="Листание" />
  28. <q-tab class="tab" name="convert" icon="la la-magic" label="Конвертир." />
  29. <q-tab class="tab" name="others" icon="la la-list-ul" label="Прочее" />
  30. <q-tab class="tab" name="reset" icon="la la-broom" label="Сброс" />
  31. <div v-show="tabsScrollable" class="q-pt-lg"/>
  32. </q-tabs>
  33. </div>
  34. <div class="col fit">
  35. <!-- Профили --------------------------------------------------------------------->
  36. <div v-if="selectedTab == 'profiles'" class="fit tab-panel">
  37. @@include('./include/ProfilesTab.inc');
  38. </div>
  39. <!-- Вид ------------------------------------------------------------------------->
  40. <div v-if="selectedTab == 'view'" class="fit column">
  41. @@include('./include/ViewTab.inc');
  42. </div>
  43. <!-- Кнопки ---------------------------------------------------------------------->
  44. <div v-if="selectedTab == 'buttons'" class="fit tab-panel">
  45. @@include('./include/ButtonsTab.inc');
  46. </div>
  47. <!-- Управление ------------------------------------------------------------------>
  48. <div v-if="selectedTab == 'keys'" class="fit column">
  49. @@include('./include/KeysTab.inc');
  50. </div>
  51. <!-- Листание -------------------------------------------------------------------->
  52. <div v-if="selectedTab == 'pagemove'" class="fit tab-panel">
  53. @@include('./include/PageMoveTab.inc');
  54. </div>
  55. <!-- Конвертирование ------------------------------------------------------------->
  56. <div v-if="selectedTab == 'convert'" class="fit tab-panel">
  57. @@include('./include/ConvertTab.inc');
  58. </div>
  59. <!-- Прочее ---------------------------------------------------------------------->
  60. <div v-if="selectedTab == 'others'" class="fit tab-panel">
  61. @@include('./include/OthersTab.inc');
  62. </div>
  63. <!-- Сброс ----------------------------------------------------------------------->
  64. <div v-if="selectedTab == 'reset'" class="fit tab-panel">
  65. @@include('./include/ResetTab.inc');
  66. </div>
  67. </div>
  68. </div>
  69. </Window>
  70. </template>
  71. <script>
  72. //-----------------------------------------------------------------------------
  73. import Vue from 'vue';
  74. import Component from 'vue-class-component';
  75. import _ from 'lodash';
  76. import * as utils from '../../../share/utils';
  77. import * as cryptoUtils from '../../../share/cryptoUtils';
  78. import Window from '../../share/Window.vue';
  79. import NumInput from '../../share/NumInput.vue';
  80. import UserHotKeys from './UserHotKeys/UserHotKeys.vue';
  81. import wallpaperStorage from '../share/wallpaperStorage';
  82. import rstore from '../../../store/modules/reader';
  83. import defPalette from './defPalette';
  84. const hex = /^#[0-9a-fA-F]{3}([0-9a-fA-F]{3})?$/;
  85. export default @Component({
  86. components: {
  87. Window,
  88. NumInput,
  89. UserHotKeys,
  90. },
  91. data: function() {
  92. return Object.assign({}, rstore.settingDefaults);
  93. },
  94. watch: {
  95. settings: function() {
  96. this.settingsChanged();
  97. },
  98. form: function(newValue) {
  99. if (this.inited)
  100. this.commit('reader/setSettings', newValue);
  101. },
  102. fontBold: function(newValue) {
  103. this.fontWeight = (newValue ? 'bold' : '');
  104. },
  105. fontItalic: function(newValue) {
  106. this.fontStyle = (newValue ? 'italic' : '');
  107. },
  108. vertShift: function(newValue) {
  109. const font = (this.webFontName ? this.webFontName : this.fontName);
  110. if (this.fontShifts[font] != newValue || this.fontVertShift != newValue) {
  111. this.fontShifts = Object.assign({}, this.fontShifts, {[font]: newValue});
  112. this.fontVertShift = newValue;
  113. }
  114. },
  115. fontName: function(newValue) {
  116. const font = (this.webFontName ? this.webFontName : newValue);
  117. this.vertShift = this.fontShifts[font] || 0;
  118. },
  119. webFontName: function(newValue) {
  120. const font = (newValue ? newValue : this.fontName);
  121. this.vertShift = this.fontShifts[font] || 0;
  122. },
  123. wallpaper: function(newValue) {
  124. if (newValue != '' && this.pageChangeAnimation == 'flip')
  125. this.pageChangeAnimation = '';
  126. },
  127. dualPageMode(newValue) {
  128. if (newValue && this.pageChangeAnimation == 'flip' || this.pageChangeAnimation == 'rightShift')
  129. this.pageChangeAnimation = '';
  130. },
  131. textColor: function(newValue) {
  132. this.textColorFiltered = newValue;
  133. },
  134. textColorFiltered: function(newValue) {
  135. if (hex.test(newValue))
  136. this.textColor = newValue;
  137. },
  138. backgroundColor: function(newValue) {
  139. this.bgColorFiltered = newValue;
  140. },
  141. bgColorFiltered: function(newValue) {
  142. if (hex.test(newValue))
  143. this.backgroundColor = newValue;
  144. },
  145. dualDivColor(newValue) {
  146. this.dualDivColorFiltered = newValue;
  147. },
  148. dualDivColorFiltered(newValue) {
  149. if (hex.test(newValue))
  150. this.dualDivColor = newValue;
  151. },
  152. statusBarColor(newValue) {
  153. this.statusBarColorFiltered = newValue;
  154. },
  155. statusBarColorFiltered(newValue) {
  156. if (hex.test(newValue))
  157. this.statusBarColor = newValue;
  158. },
  159. },
  160. })
  161. class SettingsPage extends Vue {
  162. selectedTab = 'profiles';
  163. selectedViewTab = 'mode';
  164. selectedKeysTab = 'mouse';
  165. form = {};
  166. fontBold = false;
  167. fontItalic = false;
  168. vertShift = 0;
  169. tabsScrollable = false;
  170. textColorFiltered = '';
  171. bgColorFiltered = '';
  172. dualDivColorFiltered = '';
  173. webFonts = [];
  174. fonts = [];
  175. serverStorageKeyVisible = false;
  176. toolButtons = [];
  177. rstore = {};
  178. created() {
  179. this.commit = this.$store.commit;
  180. this.reader = this.$store.state.reader;
  181. this.form = {};
  182. this.rstore = rstore;
  183. this.toolButtons = rstore.toolButtons;
  184. this.settingsChanged();
  185. }
  186. mounted() {
  187. this.$watch(
  188. '$refs.tabs.scrollable',
  189. (newValue) => {
  190. this.tabsScrollable = newValue && !this.$isMobileDevice;
  191. }
  192. );
  193. }
  194. init() {
  195. this.$refs.window.init();
  196. this.inited = true;
  197. }
  198. settingsChanged() {
  199. if (_.isEqual(this.form, this.settings))
  200. return;
  201. this.form = Object.assign({}, this.settings);
  202. if (!this.unwatch)
  203. this.unwatch = {};
  204. for (let prop in rstore.settingDefaults) {
  205. if (this.unwatch && this.unwatch[prop])
  206. this.unwatch[prop]();
  207. this[prop] = this.form[prop];
  208. this.unwatch[prop] = this.$watch(prop, (newValue) => {
  209. this.form = Object.assign({}, this.form, {[prop]: newValue});
  210. });
  211. }
  212. this.fontBold = (this.fontWeight == 'bold');
  213. this.fontItalic = (this.fontStyle == 'italic');
  214. this.fonts = rstore.fonts;
  215. this.webFonts = rstore.webFonts;
  216. const font = (this.webFontName ? this.webFontName : this.fontName);
  217. this.vertShift = this.fontShifts[font] || 0;
  218. this.textColorFiltered = this.textColor;
  219. this.bgColorFiltered = this.backgroundColor;
  220. this.dualDivColorFiltered = this.dualDivColor;
  221. this.statusBarColorFiltered = this.statusBarColor;
  222. }
  223. get mode() {
  224. return this.$store.state.config.mode;
  225. }
  226. get isExternalConverter() {
  227. return this.$store.state.config.useExternalBookConverter;
  228. }
  229. get settings() {
  230. return this.$store.state.reader.settings;
  231. }
  232. get serverSyncEnabled() {
  233. return this.$store.state.reader.serverSyncEnabled;
  234. }
  235. set serverSyncEnabled(newValue) {
  236. this.commit('reader/setServerSyncEnabled', newValue);
  237. }
  238. get profiles() {
  239. return this.$store.state.reader.profiles;
  240. }
  241. get currentProfileOptions() {
  242. const profNames = Object.keys(this.profiles)
  243. profNames.sort();
  244. let result = [{label: 'Нет', value: ''}];
  245. profNames.forEach(name => {
  246. result.push({label: name, value: name});
  247. });
  248. return result;
  249. }
  250. get wallpaperOptions() {
  251. let result = [{label: 'Нет', value: ''}];
  252. const userWallpapers = _.cloneDeep(this.userWallpapers);
  253. userWallpapers.sort((a, b) => a.label.localeCompare(b.label));
  254. for (const wp of userWallpapers) {
  255. if (wallpaperStorage.keyExists(wp.cssClass))
  256. result.push({label: wp.label, value: wp.cssClass});
  257. }
  258. for (let i = 1; i <= 17; i++) {
  259. result.push({label: i, value: `paper${i}`});
  260. }
  261. return result;
  262. }
  263. get fontsOptions() {
  264. let result = [];
  265. this.fonts.forEach(font => {
  266. result.push({label: (font.label ? font.label : font.name), value: font.name});
  267. });
  268. return result;
  269. }
  270. get webFontsOptions() {
  271. let result = [{label: 'Нет', value: ''}];
  272. this.webFonts.forEach(font => {
  273. result.push({label: font.name, value: font.name});
  274. });
  275. return result;
  276. }
  277. get pageChangeAnimationOptions() {
  278. let result = [
  279. {label: 'Нет', value: ''},
  280. {label: 'Вверх-вниз', value: 'downShift'},
  281. (!this.dualPageMode ? {label: 'Вправо-влево', value: 'rightShift'} : null),
  282. {label: 'Протаивание', value: 'thaw'},
  283. {label: 'Мерцание', value: 'blink'},
  284. {label: 'Вращение', value: 'rotate'},
  285. (this.wallpaper == '' && !this.dualPageMode ? {label: 'Листание', value: 'flip'} : null),
  286. ];
  287. result = result.filter(v => v);
  288. return result;
  289. }
  290. get currentProfile() {
  291. return this.$store.state.reader.currentProfile;
  292. }
  293. set currentProfile(newValue) {
  294. this.commit('reader/setCurrentProfile', newValue);
  295. }
  296. get partialStorageKey() {
  297. return this.serverStorageKey.substr(0, 7) + '***';
  298. }
  299. get serverStorageKey() {
  300. return this.$store.state.reader.serverStorageKey;
  301. }
  302. get setStorageKeyLink() {
  303. return `https://${window.location.host}/#/reader?setStorageAccessKey=${utils.toBase58(this.serverStorageKey)}`;
  304. }
  305. get predefineTextColors() {
  306. return defPalette.concat([
  307. '#ffffff',
  308. '#000000',
  309. '#202020',
  310. '#323232',
  311. '#aaaaaa',
  312. '#00c0c0',
  313. '#ebe2c9',
  314. '#cfdc99',
  315. '#478355',
  316. '#909080',
  317. ]);
  318. }
  319. get predefineBackgroundColors() {
  320. return defPalette.concat([
  321. '#ffffff',
  322. '#000000',
  323. '#202020',
  324. '#ebe2c9',
  325. '#cfdc99',
  326. '#478355',
  327. '#a6caf0',
  328. '#909080',
  329. '#808080',
  330. '#c8c8c8',
  331. ]);
  332. }
  333. colorPanStyle(type) {
  334. let result = 'width: 30px; height: 30px; border: 1px solid black; border-radius: 4px;';
  335. switch (type) {
  336. case 'text':
  337. result += `background-color: ${this.textColor};`
  338. break;
  339. case 'bg':
  340. result += `background-color: ${this.backgroundColor};`
  341. break;
  342. case 'div':
  343. result += `background-color: ${this.dualDivColor};`
  344. break;
  345. case 'statusbar':
  346. result += `background-color: ${this.statusBarColor};`
  347. break;
  348. }
  349. return result;
  350. }
  351. needReload() {
  352. this.$root.notify.warning('Необходимо обновить страницу (F5), чтобы изменения возымели эффект');
  353. }
  354. needTextReload() {
  355. this.$root.notify.warning('Необходимо обновить книгу в обход кэша, чтобы изменения возымели эффект');
  356. }
  357. close() {
  358. this.$emit('do-action', {action: 'settings'});
  359. }
  360. async setDefaults() {
  361. try {
  362. if (await this.$root.stdDialog.confirm('Подтвердите установку настроек по умолчанию:', ' ')) {
  363. this.form = Object.assign({}, rstore.settingDefaults);
  364. for (let prop in rstore.settingDefaults) {
  365. this[prop] = this.form[prop];
  366. }
  367. }
  368. } catch (e) {
  369. //
  370. }
  371. }
  372. changeShowToolButton(buttonName) {
  373. this.showToolButton = Object.assign({}, this.showToolButton, {[buttonName]: !this.showToolButton[buttonName]});
  374. }
  375. async addProfile() {
  376. try {
  377. if (Object.keys(this.profiles).length >= 100) {
  378. this.$root.stdDialog.alert('Достигнут предел количества профилей', 'Ошибка');
  379. return;
  380. }
  381. const result = await this.$root.stdDialog.prompt('Введите произвольное название для профиля устройства:', ' ', {
  382. inputValidator: (str) => { if (!str) return 'Название не должно быть пустым'; else if (str.length > 50) return 'Слишком длинное название'; else return true; },
  383. });
  384. if (result && result.value) {
  385. if (this.profiles[result.value]) {
  386. this.$root.stdDialog.alert('Такой профиль уже существует', 'Ошибка');
  387. } else {
  388. const newProfiles = Object.assign({}, this.profiles, {[result.value]: 1});
  389. this.commit('reader/setAllowProfilesSave', true);
  390. await this.$nextTick();//ждем обработчики watch
  391. this.commit('reader/setProfiles', newProfiles);
  392. await this.$nextTick();//ждем обработчики watch
  393. this.commit('reader/setAllowProfilesSave', false);
  394. this.currentProfile = result.value;
  395. }
  396. }
  397. } catch (e) {
  398. //
  399. }
  400. }
  401. async delProfile() {
  402. if (!this.currentProfile)
  403. return;
  404. try {
  405. const result = await this.$root.stdDialog.prompt(`<b>Предупреждение!</b> Удаление профиля '${this.$root.sanitize(this.currentProfile)}' необратимо.` +
  406. `<br>Все настройки профиля будут потеряны, однако список читаемых книг сохранится.` +
  407. `<br><br>Введите 'да' для подтверждения удаления:`, ' ', {
  408. inputValidator: (str) => { if (str && str.toLowerCase() === 'да') return true; else return 'Удаление не подтверждено'; },
  409. });
  410. if (result && result.value && result.value.toLowerCase() == 'да') {
  411. if (this.profiles[this.currentProfile]) {
  412. const newProfiles = Object.assign({}, this.profiles);
  413. delete newProfiles[this.currentProfile];
  414. this.commit('reader/setAllowProfilesSave', true);
  415. await this.$nextTick();//ждем обработчики watch
  416. this.commit('reader/setProfiles', newProfiles);
  417. await this.$nextTick();//ждем обработчики watch
  418. this.commit('reader/setAllowProfilesSave', false);
  419. this.currentProfile = '';
  420. }
  421. }
  422. } catch (e) {
  423. //
  424. }
  425. }
  426. async delAllProfiles() {
  427. if (!Object.keys(this.profiles).length)
  428. return;
  429. try {
  430. const result = await this.$root.stdDialog.prompt(`<b>Предупреждение!</b> Удаление ВСЕХ профилей с настройками необратимо.` +
  431. `<br><br>Введите 'да' для подтверждения удаления:`, ' ', {
  432. inputValidator: (str) => { if (str && str.toLowerCase() === 'да') return true; else return 'Удаление не подтверждено'; },
  433. });
  434. if (result && result.value && result.value.toLowerCase() == 'да') {
  435. this.commit('reader/setAllowProfilesSave', true);
  436. await this.$nextTick();//ждем обработчики watch
  437. this.commit('reader/setProfiles', {});
  438. await this.$nextTick();//ждем обработчики watch
  439. this.commit('reader/setAllowProfilesSave', false);
  440. this.currentProfile = '';
  441. }
  442. } catch (e) {
  443. //
  444. }
  445. }
  446. async copyToClip(text, prefix) {
  447. const result = await utils.copyTextToClipboard(text);
  448. const suf = (prefix.substr(-1) == 'а' ? 'а' : '');
  449. const msg = (result ? `${prefix} успешно скопирован${suf} в буфер обмена` : 'Копирование не удалось');
  450. if (result)
  451. this.$root.notify.success(msg);
  452. else
  453. this.$root.notify.error(msg);
  454. }
  455. async showServerStorageKey() {
  456. this.serverStorageKeyVisible = !this.serverStorageKeyVisible;
  457. }
  458. async enterServerStorageKey(key) {
  459. try {
  460. const result = await this.$root.stdDialog.prompt(`<b>Предупреждение!</b> Изменение ключа доступа приведет к замене всех профилей и читаемых книг в читалке.` +
  461. `<br><br>Введите новый ключ доступа:`, ' ', {
  462. inputValidator: (str) => {
  463. try {
  464. if (str && utils.fromBase58(str).length == 32) {
  465. return true;
  466. }
  467. } catch (e) {
  468. //
  469. }
  470. return 'Неверный формат ключа';
  471. },
  472. inputValue: (key && _.isString(key) ? key : null),
  473. });
  474. if (result && result.value && utils.fromBase58(result.value).length == 32) {
  475. this.commit('reader/setServerStorageKey', result.value);
  476. }
  477. } catch (e) {
  478. //
  479. }
  480. }
  481. async generateServerStorageKey() {
  482. try {
  483. const result = await this.$root.stdDialog.prompt(`<b>Предупреждение!</b> Генерация нового ключа доступа приведет к удалению всех профилей и читаемых книг в читалке.` +
  484. `<br><br>Введите 'да' для подтверждения генерации нового ключа:`, ' ', {
  485. inputValidator: (str) => { if (str && str.toLowerCase() === 'да') return true; else return 'Генерация не подтверждена'; },
  486. });
  487. if (result && result.value && result.value.toLowerCase() == 'да') {
  488. this.$root.$emit('generateNewServerStorageKey');
  489. }
  490. } catch (e) {
  491. //
  492. }
  493. }
  494. loadWallpaperFileClick() {
  495. this.$refs.file.click();
  496. }
  497. loadWallpaperFile() {
  498. const file = this.$refs.file.files[0];
  499. if (file.size > 10*1024*1024) {
  500. this.$root.stdDialog.alert('Файл обоев не должен превышать в размере 10Mb', 'Ошибка');
  501. return;
  502. }
  503. if (file.type != 'image/png' && file.type != 'image/jpeg') {
  504. this.$root.stdDialog.alert('Файл обоев должен иметь тип PNG или JPEG', 'Ошибка');
  505. return;
  506. }
  507. if (this.userWallpapers.length >= 100) {
  508. this.$root.stdDialog.alert('Превышено максимальное количество пользовательских обоев.', 'Ошибка');
  509. return;
  510. }
  511. this.$refs.file.value = '';
  512. if (file) {
  513. const reader = new FileReader();
  514. reader.onload = (e) => {
  515. (async() => {
  516. const data = e.target.result;
  517. const key = utils.toHex(cryptoUtils.sha256(data));
  518. const label = `#${key.substring(0, 4)}`;
  519. const cssClass = `user-paper${key}`;
  520. const newUserWallpapers = _.cloneDeep(this.userWallpapers);
  521. const index = _.findIndex(newUserWallpapers, (item) => (item.cssClass == cssClass));
  522. if (index < 0)
  523. newUserWallpapers.push({label, cssClass});
  524. if (!wallpaperStorage.keyExists(cssClass))
  525. await wallpaperStorage.setData(cssClass, data);
  526. this.userWallpapers = newUserWallpapers;
  527. this.wallpaper = cssClass;
  528. })();
  529. }
  530. reader.readAsDataURL(file);
  531. }
  532. }
  533. async delWallpaper() {
  534. if (this.wallpaper.indexOf('user-paper') == 0) {
  535. const newUserWallpapers = [];
  536. for (const wp of this.userWallpapers) {
  537. if (wp.cssClass != this.wallpaper) {
  538. newUserWallpapers.push(wp);
  539. }
  540. }
  541. await wallpaperStorage.removeData(this.wallpaper);
  542. this.userWallpapers = newUserWallpapers;
  543. this.wallpaper = '';
  544. }
  545. }
  546. keyHook(event) {
  547. if (!this.$root.stdDialog.active && event.type == 'keydown' && event.key == 'Escape') {
  548. this.close();
  549. }
  550. return true;
  551. }
  552. }
  553. //-----------------------------------------------------------------------------
  554. </script>
  555. <style scoped>
  556. .tab {
  557. justify-content: initial;
  558. }
  559. .tab-panel {
  560. overflow-x: hidden;
  561. overflow-y: auto;
  562. font-size: 90%;
  563. padding: 0 10px 15px 10px;
  564. }
  565. .part-header {
  566. border-top: 2px solid #bbbbbb;
  567. font-weight: bold;
  568. font-size: 110%;
  569. margin-top: 15px;
  570. margin-bottom: 5px;
  571. }
  572. .item {
  573. width: 100%;
  574. margin-top: 5px;
  575. margin-bottom: 5px;
  576. }
  577. .label-1, .label-7 {
  578. width: 75px;
  579. }
  580. .label-2, .label-3, .label-4, .label-5 {
  581. width: 110px;
  582. }
  583. .label-6 {
  584. width: 100px;
  585. }
  586. .label-1, .label-2, .label-3, .label-4, .label-5, .label-6, .label-7 {
  587. display: flex;
  588. flex-direction: column;
  589. justify-content: center;
  590. text-align: right;
  591. margin-right: 10px;
  592. overflow: hidden;
  593. }
  594. .text {
  595. font-size: 90%;
  596. line-height: 130%;
  597. }
  598. .button {
  599. margin: 3px 15px 3px 0;
  600. padding: 0 5px 0 5px;
  601. }
  602. .copy-icon {
  603. margin-left: 5px;
  604. cursor: pointer;
  605. font-size: 120%;
  606. color: blue;
  607. }
  608. .input {
  609. max-width: 150px;
  610. }
  611. .no-mp {
  612. margin: 0;
  613. padding: 0;
  614. }
  615. .col-left {
  616. width: 150px;
  617. }
  618. </style>