RecentBooksPage.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. <template>
  2. <Window ref="window" width="600px" @close="close">
  3. <template #header>
  4. <span v-show="!loading">{{ header }}</span>
  5. <span v-if="loading"><q-spinner class="q-mr-sm" color="lime-12" size="20px" :thickness="7" />
  6. Список загружается
  7. </span>
  8. </template>
  9. <template #buttons>
  10. <div
  11. class="row justify-center items-center"
  12. :class="{'header-button': !archive, 'header-button-pressed': archive}"
  13. @mousedown.stop @click="archiveToggle"
  14. >
  15. <q-icon class="q-mr-xs" name="la la-archive" size="20px" />
  16. <span style="font-size: 90%">Архив</span>
  17. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">
  18. {{ (archive ? 'Скрыть архивные' : 'Показать архивные') }}
  19. </q-tooltip>
  20. </div>
  21. </template>
  22. <a ref="download" style="display: none;" target="_blank"></a>
  23. <div id="vs-container" ref="vsContainer" class="recent-books-scroll col">
  24. <div ref="header" class="scroll-header row bg-blue-2">
  25. <q-btn class="tool-button" round @click="showSameBookClick">
  26. <q-icon name="la la-caret-right" class="icon" :class="{'expanded-icon': showSameBook}" color="green-8" size="24px" />
  27. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">
  28. Показать/скрыть версии книг
  29. </q-tooltip>
  30. </q-btn>
  31. <q-btn class="tool-button" round @click="scrollToBegin">
  32. <q-icon name="la la-arrow-up" color="green-8" size="24px" />
  33. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">
  34. В начало списка
  35. </q-tooltip>
  36. </q-btn>
  37. <q-btn class="tool-button" round @click="scrollToEnd">
  38. <q-icon name="la la-arrow-down" color="green-8" size="24px" />
  39. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">
  40. В конец списка
  41. </q-tooltip>
  42. </q-btn>
  43. <q-btn class="tool-button" round @click="scrollToActiveBook">
  44. <q-icon name="la la-location-arrow" color="green-8" size="24px" />
  45. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">
  46. На текущую книгу
  47. </q-tooltip>
  48. </q-btn>
  49. <q-input
  50. ref="input"
  51. v-model="search"
  52. class="q-ml-sm q-mt-xs"
  53. outlined dense
  54. style="width: 185px"
  55. bg-color="white"
  56. placeholder="Найти"
  57. @click.stop
  58. >
  59. <template #append>
  60. <q-icon v-if="search !== ''" name="la la-times" class="cursor-pointer" @click.stop="resetSearch" />
  61. </template>
  62. </q-input>
  63. <q-select
  64. ref="sortMethod"
  65. v-model="sortMethod"
  66. class="q-ml-sm q-mt-xs"
  67. :options="sortMethodOptions"
  68. style="width: 180px"
  69. bg-color="white"
  70. dropdown-icon="la la-angle-down la-sm"
  71. outlined dense emit-value map-options display-value-sanitize options-sanitize
  72. options-html display-value-html
  73. @update:model-value="sortMethodSelected"
  74. >
  75. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">
  76. Метод сортировки
  77. </q-tooltip>
  78. <template #selected-item="scope">
  79. <div style="height: 28px; padding-top: 2px; overflow: hidden" v-html="scope.opt.label" />
  80. </template>
  81. </q-select>
  82. </div>
  83. <q-virtual-scroll
  84. ref="virtualScroll"
  85. v-slot="{ item, index }"
  86. :items="tableData"
  87. scroll-target="#vs-container"
  88. virtual-scroll-item-size="80"
  89. @virtual-scroll="onScroll"
  90. >
  91. <div class="table-row row" :class="{even: index % 2 > 0, 'active-book': item.active, 'active-parent-book': item.activeParent}">
  92. <div v-show="item.inGroup" class="row-part column justify-center items-center" style="width: 40px">
  93. <q-icon name="la la-code-branch" size="24px" style="color: green" />
  94. </div>
  95. <div class="row-part column justify-center items-stretch" style="width: 80px">
  96. <div class="col row justify-center items-center clickable" @click="loadBook(item)">
  97. <q-icon name="la la-book" size="40px" style="color: #dddddd" />
  98. </div>
  99. <div v-show="!showSameBook && item.group && item.group.length > 0" class="row justify-center" style="font-size: 70%">
  100. {{ (item.group ? item.group.length + 1 : 0) }} верси{{ wordEnding((item.group ? item.group.length + 1 : 0), 1) }}
  101. </div>
  102. </div>
  103. <div class="row-part column items-stretch clickable break-word" @click="loadBook(item)">
  104. <div
  105. class="col" style="border: 1px solid #cccccc; border-bottom: 0; padding: 4px; line-height: 140%;"
  106. :style="{ 'width': (380 - 40*(+item.inGroup)) + 'px' }"
  107. >
  108. <div class="text-green-10" style="font-size: 80%">
  109. {{ item.desc.author }}
  110. </div>
  111. <div style="font-size: 75%">
  112. {{ item.desc.title }}
  113. </div>
  114. </div>
  115. <div class="row" style="font-size: 10px">
  116. <div class="row justify-center items-center row-info-top" style="width: 60px">
  117. {{ item.desc.textLen }}
  118. </div>
  119. <div class="row items-center row-info-top" :style="`width: ${(260 - 40*(+item.inGroup))}px; padding: 1px`">
  120. <div class="read-bar" :style="`width: ${100*item.readPart}%`"></div>
  121. </div>
  122. <div class="row justify-center items-center row-info-top" style="width: 59px">
  123. {{ item.desc.perc }}
  124. </div>
  125. <div class="row-info-top" style="width: 1px">
  126. </div>
  127. </div>
  128. <div class="row" style="font-size: 10px" :style="{ 'width': (380 - 40*(+item.inGroup)) + 'px' }">
  129. <div class="row justify-center items-center row-info-bottom" style="width: 30px">
  130. {{ item.num }}
  131. </div>
  132. <div class="col row">
  133. <div class="row justify-center items-center row-info-bottom time-info" style="width: 50%">
  134. Загружен: {{ item.loadTime }}
  135. </div>
  136. <div class="row justify-center items-center row-info-bottom time-info" style="width: 50%">
  137. Читался: {{ item.touchTime }}
  138. </div>
  139. </div>
  140. <div class="row-info-bottom" style="width: 1px">
  141. </div>
  142. </div>
  143. </div>
  144. <div
  145. class="row-part column"
  146. style="width: 90px;"
  147. >
  148. <div
  149. class="col column justify-center"
  150. style="font-size: 75%; padding-left: 6px; border: 1px solid #cccccc; border-left: 0;"
  151. >
  152. <div>
  153. <a v-show="isUrl(item.url)" :href="item.url" target="_blank">Оригинал</a><br><br>
  154. <a :href="item.path" @click.prevent="downloadBook(item.path, item.fullTitle)">Скачать FB2</a>
  155. </div>
  156. </div>
  157. <div
  158. class="del-button self-end row justify-center items-center clickable"
  159. @click="handleDel(item.key)"
  160. >
  161. <q-icon class="la la-times" size="12px" />
  162. </div>
  163. <div
  164. v-show="archive"
  165. class="restore-button self-start row justify-center items-center clickable"
  166. @click="handleRestore(item.key)"
  167. >
  168. <q-icon class="la la-trash-restore" size="12px" />
  169. </div>
  170. </div>
  171. </div>
  172. </q-virtual-scroll>
  173. </div>
  174. </Window>
  175. </template>
  176. <script>
  177. //-----------------------------------------------------------------------------
  178. import vueComponent from '../../vueComponent.js';
  179. import path from 'path-browserify';
  180. import _ from 'lodash';
  181. import * as utils from '../../../share/utils';
  182. import LockQueue from '../../../share/LockQueue';
  183. import Window from '../../share/Window.vue';
  184. import bookManager from '../share/bookManager';
  185. import readerApi from '../../../api/reader';
  186. const componentOptions = {
  187. components: {
  188. Window,
  189. },
  190. watch: {
  191. search() {
  192. this.updateTableData();
  193. },
  194. sortMethod() {
  195. this.updateTableData();
  196. },
  197. settings() {
  198. this.loadSettings();
  199. },
  200. },
  201. };
  202. class RecentBooksPage {
  203. _options = componentOptions;
  204. loading = false;
  205. search = '';
  206. tableData = [];
  207. sortMethod = '';
  208. showSameBook = false;
  209. archive = false;
  210. created() {
  211. this.commit = this.$store.commit;
  212. this.lastScrollTop1 = 0;
  213. this.lastScrollTop2 = 0;
  214. this.lock = new LockQueue(100);
  215. this.loadSettings();
  216. }
  217. init() {
  218. this.$refs.window.init();
  219. this.$nextTick(() => {
  220. //this.$refs.input.focus();//плохо на планшетах
  221. });
  222. this.inited = true;
  223. (async() => {
  224. this.showBar();
  225. await this.updateTableData();
  226. await this.scrollToActiveBook();
  227. })();
  228. }
  229. loadSettings() {
  230. const settings = this.settings;
  231. this.showSameBook = settings.recentShowSameBook;
  232. this.sortMethod = settings.recentSortMethod || 'loadTimeDesc';
  233. }
  234. get settings() {
  235. return this.$store.state.reader.settings;
  236. }
  237. async updateTableData() {
  238. if (!this.inited)
  239. return;
  240. await this.lock.get();
  241. try {
  242. let result = [];
  243. const sorted = bookManager.getSortedRecent();
  244. const activeBook = bookManager.mostRecentBook();
  245. //подготовка полей
  246. for (const book of sorted) {
  247. if ((!this.archive && book.deleted) || (this.archive && book.deleted != 1))
  248. continue;
  249. let d = new Date();
  250. d.setTime(book.touchTime);
  251. const touchTime = utils.formatDate(d);
  252. const loadTimeRaw = (book.loadTime ? book.loadTime : 0);//book.addTime);
  253. d.setTime(loadTimeRaw);
  254. const loadTime = utils.formatDate(d);
  255. let readPart = 0;
  256. let perc = '';
  257. let textLen = '';
  258. const p = (book.bookPosSeen ? book.bookPosSeen : (book.bookPos ? book.bookPos : 0));
  259. if (book.textLength) {
  260. readPart = p/book.textLength;
  261. perc = `${(readPart*100).toFixed(2)}%`;
  262. textLen = `${Math.floor(readPart*book.textLength/1000)}/${Math.floor(book.textLength/1000)}`;
  263. }
  264. const bt = utils.getBookTitle(book.fb2);
  265. let title = bt.bookTitle;
  266. title = (title ? `"${title}"`: '');
  267. const author = (bt.author ? bt.author : (bt.bookTitle ? bt.bookTitle : (book.uploadFileName ? book.uploadFileName : book.url)));
  268. result.push({
  269. touchTime,
  270. loadTime,
  271. desc: {
  272. author,
  273. title,
  274. perc,
  275. textLen,
  276. },
  277. readPart,
  278. url: book.url,
  279. path: book.path,
  280. fullTitle: bt.fullTitle,
  281. key: book.key,
  282. sameBookKey: book.sameBookKey,
  283. active: (activeBook.key == book.key),
  284. activeParent: false,
  285. inGroup: false,
  286. //для сортировки
  287. loadTimeRaw,
  288. touchTimeRaw: book.touchTime,
  289. });
  290. }
  291. //нумерация
  292. result.sort((a, b) => b.loadTimeRaw - a.loadTimeRaw);
  293. let num = 0;
  294. for (let i = result.length - 1; i >= 0; i--) {
  295. num++;
  296. result[i].num = num;
  297. }
  298. //фильтрация
  299. const search = this.search;
  300. if (search) {
  301. result = result.filter(item => {
  302. return !search ||
  303. item.touchTime.includes(search) ||
  304. item.loadTime.includes(search) ||
  305. item.desc.title.toLowerCase().includes(search.toLowerCase()) ||
  306. item.desc.author.toLowerCase().includes(search.toLowerCase())
  307. });
  308. }
  309. //сортировка
  310. switch (this.sortMethod) {
  311. case 'loadTimeDesc':
  312. result.sort((a, b) => b.loadTimeRaw - a.loadTimeRaw);
  313. break;
  314. case 'loadTimeAsc':
  315. result.sort((a, b) => a.loadTimeRaw - b.loadTimeRaw);
  316. break;
  317. case 'touchTimeDesc':
  318. result.sort((a, b) => b.touchTimeRaw - a.touchTimeRaw);
  319. break;
  320. case 'touchTimeAsc':
  321. result.sort((a, b) => a.touchTimeRaw - b.touchTimeRaw);
  322. break;
  323. case 'authorDesc':
  324. result.sort((a, b) => b.desc.author.localeCompare(a.desc.author));
  325. break;
  326. case 'authorAsc':
  327. result.sort((a, b) => a.desc.author.localeCompare(b.desc.author));
  328. break;
  329. case 'titleDesc':
  330. result.sort((a, b) => b.desc.title.localeCompare(a.desc.title));
  331. break;
  332. case 'titleAsc':
  333. result.sort((a, b) => a.desc.title.localeCompare(b.desc.title));
  334. break;
  335. }
  336. //группировка
  337. const groups = {};
  338. const parents = {};
  339. let newResult = [];
  340. for (const book of result) {
  341. if (book.sameBookKey !== undefined) {
  342. if (!groups[book.sameBookKey]) {
  343. groups[book.sameBookKey] = [];
  344. parents[book.sameBookKey] = book;
  345. book.group = groups[book.sameBookKey];
  346. newResult.push(book);
  347. } else {
  348. book.inGroup = true;
  349. if (book.active)
  350. parents[book.sameBookKey].activeParent = true;
  351. groups[book.sameBookKey].push(book);
  352. }
  353. } else {
  354. newResult.push(book);
  355. }
  356. }
  357. result = newResult;
  358. //showSameBook
  359. if (this.showSameBook) {
  360. newResult = [];
  361. for (const book of result) {
  362. newResult.push(book);
  363. if (book.group) {
  364. for (const sameBook of book.group) {
  365. newResult.push(sameBook);
  366. }
  367. }
  368. }
  369. result = newResult;
  370. }
  371. //другие стадии
  372. //.....
  373. this.tableData = result;
  374. } finally {
  375. this.lock.ret();
  376. }
  377. }
  378. resetSearch() {
  379. this.search = '';
  380. this.$refs.input.focus();
  381. }
  382. wordEnding(num, type = 0) {
  383. const endings = [
  384. ['ов', '', 'а', 'а', 'а', 'ов', 'ов', 'ов', 'ов', 'ов'],
  385. ['й', 'я', 'и', 'и', 'и', 'й', 'й', 'й', 'й', 'й']
  386. ];
  387. const deci = num % 100;
  388. if (deci > 10 && deci < 20) {
  389. return endings[type][0];
  390. } else {
  391. return endings[type][num % 10];
  392. }
  393. }
  394. get header() {
  395. const len = (this.tableData ? this.tableData.length : 0);
  396. return `${(this.search ? 'Найдено' : 'Всего')} ${len} файл${this.wordEnding(len)}${this.archive ? ' в архиве' : ''}`;
  397. }
  398. async downloadBook(fb2path, fullTitle) {
  399. try {
  400. await readerApi.checkCachedBook(fb2path);
  401. const d = this.$refs.download;
  402. d.href = fb2path;
  403. try {
  404. const fn = utils.makeValidFilename(fullTitle);
  405. d.download = fn.substring(0, 100) + '.fb2';
  406. } catch(e) {
  407. d.download = path.basename(fb2path).substr(0, 10) + '.fb2';
  408. }
  409. d.click();
  410. } catch (e) {
  411. let errMes = e.message;
  412. if (errMes.indexOf('404') >= 0)
  413. errMes = 'Файл не найден на сервере (возможно был удален как устаревший)';
  414. this.$root.stdDialog.alert(errMes, 'Ошибка', {color: 'negative'});
  415. }
  416. }
  417. async handleDel(key) {
  418. if (!this.archive) {
  419. await bookManager.delRecentBook({key});
  420. this.$root.notify.info('Перенесено в архив');
  421. } else {
  422. if (await this.$root.stdDialog.confirm('Подтвердите удаление из архива:', ' ')) {
  423. await bookManager.delRecentBook({key}, 2);
  424. this.$root.notify.info('Удалено безвозвратно');
  425. }
  426. }
  427. }
  428. async handleRestore(key) {
  429. await bookManager.delRecentBook({key});
  430. this.$root.notify.info('Перенесено в архив');
  431. }
  432. loadBook(row) {
  433. this.$emit('load-book', {url: row.url, path: row.path});
  434. this.close();
  435. }
  436. isUrl(url) {
  437. if (url)
  438. return (url.indexOf('disk://') != 0);
  439. else
  440. return false;
  441. }
  442. showBar() {
  443. this.lastScrollTop1 = this.$refs.vsContainer.scrollTop;
  444. this.$refs.header.style.position = 'sticky';
  445. this.$refs.header.style.top = 0;
  446. }
  447. onScroll() {
  448. const curScrollTop = this.$refs.vsContainer.scrollTop;
  449. if (this.lockScroll) {
  450. this.lastScrollTop1 = curScrollTop;
  451. return;
  452. }
  453. if (curScrollTop - this.lastScrollTop1 > 100) {
  454. this.$refs.header.style.top = `-${this.$refs.header.offsetHeight}px`;
  455. this.$refs.header.style.transition = 'top 0.2s ease 0s';
  456. this.lastScrollTop1 = curScrollTop;
  457. } else if (curScrollTop - this.lastScrollTop2 < 0) {
  458. this.$refs.header.style.position = 'sticky';
  459. this.$refs.header.style.top = 0;
  460. this.lastScrollTop1 = curScrollTop;
  461. }
  462. this.lastScrollTop2 = curScrollTop;
  463. }
  464. showSameBookClick() {
  465. this.showSameBook = !this.showSameBook;
  466. const newSettings = _.cloneDeep(this.settings);
  467. newSettings.recentShowSameBook = this.showSameBook;
  468. this.commit('reader/setSettings', newSettings);
  469. this.updateTableData();
  470. }
  471. sortMethodSelected() {
  472. const newSettings = _.cloneDeep(this.settings);
  473. newSettings.recentSortMethod = this.sortMethod;
  474. this.commit('reader/setSettings', newSettings);
  475. }
  476. async scrollToActiveBook() {
  477. this.lockScroll = true;
  478. try {
  479. let activeIndex = -1;
  480. let activeParentIndex = -1;
  481. for (let i = 0; i < this.tableData.length; i++) {
  482. const book = this.tableData[i];
  483. if (book.active)
  484. activeIndex = i;
  485. if (book.activeParent)
  486. activeParentIndex = i;
  487. if (activeIndex >= 0 && activeParentIndex >= 0)
  488. break;
  489. }
  490. const index = (activeIndex >= 0 ? activeIndex : activeParentIndex);
  491. if (index >= 0) {
  492. this.$refs.virtualScroll.scrollTo(index, 'center');
  493. }
  494. } finally {
  495. await utils.sleep(100);
  496. this.lockScroll = false;
  497. }
  498. }
  499. async scrollToBegin() {
  500. this.lockScroll = true;
  501. try {
  502. this.$refs.virtualScroll.scrollTo(0, 'center');
  503. } finally {
  504. await utils.sleep(100);
  505. this.lockScroll = false;
  506. }
  507. }
  508. async scrollToEnd() {
  509. this.lockScroll = true;
  510. try {
  511. this.$refs.virtualScroll.scrollTo(this.tableData.length, 'center');
  512. } finally {
  513. await utils.sleep(100);
  514. this.lockScroll = false;
  515. }
  516. }
  517. get sortMethodOptions() {
  518. return [
  519. {label: '<span style="font-size: 150%">&uarr;</span> Время загрузки', value: 'loadTimeDesc'},
  520. {label: '<span style="font-size: 150%">&darr;</span> Время загрузки', value: 'loadTimeAsc'},
  521. {label: '<span style="font-size: 150%">&uarr;</span> Время чтения', value: 'touchTimeDesc'},
  522. {label: '<span style="font-size: 150%">&darr;</span> Время чтения', value: 'touchTimeAsc'},
  523. {label: '<span style="font-size: 150%">&uarr;</span> Автор', value: 'authorDesc'},
  524. {label: '<span style="font-size: 150%">&darr;</span> Автор', value: 'authorAsc'},
  525. {label: '<span style="font-size: 150%">&uarr;</span> Название', value: 'titleDesc'},
  526. {label: '<span style="font-size: 150%">&darr;</span> Название', value: 'titleAsc'},
  527. ];
  528. }
  529. archiveToggle() {
  530. this.archive = !this.archive;
  531. this.updateTableData();
  532. }
  533. close() {
  534. this.$emit('recent-books-close');
  535. }
  536. keyHook(event) {
  537. if (!this.$root.stdDialog.active && event.type == 'keydown' && event.key == 'Escape') {
  538. this.close();
  539. }
  540. return true;
  541. }
  542. }
  543. export default vueComponent(RecentBooksPage);
  544. //-----------------------------------------------------------------------------
  545. </script>
  546. <style scoped>
  547. .recent-books-scroll {
  548. width: 573px;
  549. overflow-y: auto;
  550. overflow-x: hidden;
  551. }
  552. .scroll-header {
  553. height: 50px;
  554. position: sticky;
  555. z-index: 1;
  556. top: 0;
  557. border-bottom: 2px solid #aaaaaa;
  558. padding-left: 5px;
  559. }
  560. .table-row {
  561. min-height: 80px;
  562. }
  563. .row-part {
  564. padding: 4px 0px 4px 0px;
  565. }
  566. .clickable {
  567. cursor: pointer;
  568. }
  569. .break-word {
  570. overflow-wrap: break-word;
  571. word-wrap: break-word;
  572. white-space: normal;
  573. }
  574. .even {
  575. background-color: #f2f2f2;
  576. }
  577. .active-book {
  578. background-color: #b0f0b0 !important;
  579. }
  580. .active-parent-book {
  581. background-color: #ffbbbb !important;
  582. }
  583. .icon {
  584. transition: transform 0.2s;
  585. }
  586. .expanded-icon {
  587. transform: rotate(90deg);
  588. }
  589. .tool-button {
  590. min-width: 30px;
  591. width: 30px;
  592. min-height: 30px;
  593. height: 30px;
  594. margin: 10px 6px 0px 3px;
  595. background-color: white;
  596. }
  597. .row-info-bottom {
  598. line-height: 110%;
  599. border-left: 1px solid #cccccc;
  600. border-bottom: 1px solid #cccccc;
  601. height: 12px;
  602. }
  603. .row-info-top {
  604. line-height: 110%;
  605. border: 1px solid #cccccc;
  606. border-right: 0;
  607. height: 12px;
  608. }
  609. .time-info, .row-info-top {
  610. color: #888888;
  611. }
  612. .read-bar {
  613. height: 4px;
  614. background-color: #bbbbbb;
  615. }
  616. .del-button {
  617. width: 25px;
  618. height: 20px;
  619. position: absolute;
  620. border-left: 1px solid #cccccc;
  621. border-bottom: 1px solid #cccccc;
  622. border-radius: 0 0 0 10px;
  623. margin: 1px;
  624. }
  625. .del-button:hover {
  626. color: white;
  627. background-color: #FF3030;
  628. }
  629. .header-button, .header-button-pressed {
  630. width: 80px;
  631. height: 30px;
  632. cursor: pointer;
  633. color: #555555;
  634. }
  635. .header-button:hover {
  636. color: white;
  637. background-color: #39902F;
  638. }
  639. .header-button-pressed {
  640. color: black;
  641. background-color: yellow;
  642. }
  643. .header-button-pressed:hover {
  644. color: black;
  645. }
  646. </style>