SettingsPage.vue 24 KB

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