| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070 |
- /* resources/css/modules/_tipitaka.css
- Tipitaka 栏目专属样式。
- 来源:book-list.blade.php / book-item.blade.php 内联样式提取,
- 去除 CDN 引入,风格与 wiki 对齐。
- */
- /* ══════════════════════════════════════════
- 一、书籍卡片(.card-book)
- 纵向:封面上 + 信息下
- ══════════════════════════════════════════ */
- .card-book {
- transition:
- transform 0.2s,
- box-shadow 0.2s;
- }
- .card-book:hover {
- transform: translateY(-2px);
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
- }
- .card-book__link {
- display: block;
- text-decoration: none;
- color: inherit;
- }
- .card-book__link:hover {
- text-decoration: none;
- color: inherit;
- }
- /* 封面:撑满卡片宽度 */
- .card-book .book-cover--md {
- width: 100%;
- min-width: unset;
- height: 200px;
- border-radius: var(--tblr-border-radius);
- }
- @media (max-width: 768px) {
- .card-book .book-cover--md {
- height: 150px;
- }
- }
- /* 信息区 */
- .card-book__info {
- padding: 0.75rem 0 0;
- }
- .card-book__title {
- font-size: 0.9375rem;
- font-weight: 600;
- color: var(--tblr-body-color);
- margin-bottom: 0.25rem;
- line-height: 1.4;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- overflow: hidden;
- }
- .card-book:hover .card-book__title {
- color: var(--tblr-primary);
- }
- .card-book__author {
- font-size: 0.8125rem;
- color: var(--tblr-secondary);
- margin-bottom: 0.25rem;
- }
- .card-book__publisher {
- font-size: 0.8125rem;
- color: var(--tblr-secondary);
- margin-bottom: 0.375rem;
- }
- .card-book__publisher-link {
- color: var(--tblr-primary);
- text-decoration: none;
- }
- .card-book__publisher-link:hover {
- text-decoration: underline;
- }
- .card-book__badges {
- display: flex;
- flex-wrap: wrap;
- gap: 4px;
- margin-top: 0.375rem;
- }
- .card-book__badge {
- display: inline-block;
- padding: 2px 8px;
- background: var(--tblr-bg-surface-secondary);
- border: 1px solid var(--tblr-border-color);
- border-radius: 20px;
- font-size: 0.6875rem;
- color: var(--tblr-secondary);
- }
- /* ══════════════════════════════════════════
- 二、书籍网格(.book-grid)
- ══════════════════════════════════════════ */
- .book-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
- gap: 1.25rem;
- }
- @media (max-width: 575px) {
- .book-grid {
- grid-template-columns: repeat(2, 1fr);
- gap: 0.875rem;
- }
- }
- /* ══════════════════════════════════════════
- 三、show 页 — 文字截断
- ══════════════════════════════════════════ */
- .line2 {
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- /* ══════════════════════════════════════════
- 四、子分类网格
- ══════════════════════════════════════════ */
- .tipitaka-sub-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
- gap: 8px;
- }
- /* ══════════════════════════════════════════
- 五、过滤器区
- ══════════════════════════════════════════ */
- .tipitaka-filters {
- display: flex;
- flex-direction: column;
- gap: 0.875rem;
- }
- .tipitaka-filter-row {
- display: flex;
- align-items: flex-start;
- gap: 0.75rem;
- }
- .tipitaka-filter-label {
- font-size: 0.75rem;
- font-weight: 500;
- color: var(--tblr-secondary);
- white-space: nowrap;
- padding-top: 4px;
- min-width: 2.5rem;
- }
- .tipitaka-filter-pills {
- display: flex;
- flex-wrap: wrap;
- gap: 6px;
- flex: 1;
- }
- .tipitaka-pill {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- font-size: 0.8125rem;
- padding: 3px 10px;
- border-radius: 20px;
- border: 1px solid var(--tblr-border-color);
- color: var(--tblr-body-color);
- background: var(--tblr-bg-surface);
- text-decoration: none;
- transition:
- background 0.12s,
- border-color 0.12s,
- color 0.12s;
- white-space: nowrap;
- }
- .tipitaka-pill:hover {
- background: var(--tblr-bg-surface-secondary);
- border-color: var(--tblr-border-color-dark, #adb5bd);
- color: var(--tblr-body-color);
- text-decoration: none;
- }
- .tipitaka-pill--active {
- background: var(--tblr-primary);
- border-color: var(--tblr-primary);
- color: #fff;
- pointer-events: none;
- }
- .tipitaka-pill--active:hover {
- background: var(--tblr-primary);
- color: #fff;
- }
- .tipitaka-pill-count {
- font-size: 0.6875rem;
- opacity: 0.75;
- }
- .tipitaka-author-select {
- max-width: 220px;
- }
- .tipitaka-filter-clear {
- display: flex;
- justify-content: flex-end;
- padding-top: 0.25rem;
- border-top: 1px solid var(--tblr-border-color);
- }
- .tipitaka-clear-btn {
- font-size: 0.75rem;
- color: var(--tblr-secondary);
- text-decoration: none;
- display: inline-flex;
- align-items: center;
- gap: 4px;
- transition: color 0.12s;
- }
- .tipitaka-clear-btn:hover {
- color: var(--tblr-danger);
- }
- /* ══════════════════════════════════════════
- 六、排序栏
- ══════════════════════════════════════════ */
- .tipitaka-sort-bar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 0.25rem;
- }
- .tipitaka-sort-bar__count {
- font-size: 0.8125rem;
- color: var(--tblr-secondary);
- }
- .tipitaka-sort-bar__count strong {
- color: var(--tblr-body-color);
- font-weight: 500;
- }
- .tipitaka-sort-bar__right {
- display: flex;
- align-items: center;
- gap: 0.5rem;
- }
- .tipitaka-sort-bar__label {
- font-size: 0.8125rem;
- color: var(--tblr-secondary);
- white-space: nowrap;
- }
- .tipitaka-sort-select {
- width: auto;
- min-width: 80px;
- }
- /* ══════════════════════════════════════════
- 七、活跃译者列表
- ══════════════════════════════════════════ */
- .tipitaka-author-list {
- list-style: none;
- padding: 0;
- margin: 0;
- }
- .tipitaka-author-list li {
- border-bottom: 1px solid var(--tblr-border-color);
- }
- .tipitaka-author-list li:last-child {
- border-bottom: none;
- }
- .tipitaka-author-item {
- display: flex;
- align-items: center;
- gap: 0.625rem;
- padding: 6px 0;
- text-decoration: none;
- color: inherit;
- transition: background 0.12s;
- }
- .tipitaka-author-item:hover {
- color: var(--tblr-primary);
- text-decoration: none;
- }
- .tipitaka-author-item__info {
- display: flex;
- flex-direction: column;
- min-width: 0;
- }
- .tipitaka-author-item__name {
- font-size: 0.8125rem;
- font-weight: 500;
- color: var(--tblr-body-color);
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .tipitaka-author-item:hover .tipitaka-author-item__name {
- color: var(--tblr-primary);
- }
- .tipitaka-author-item__count {
- font-size: 0.6875rem;
- color: var(--tblr-secondary);
- }
- /* ══════════════════════════════════════════
- 八、响应式
- ══════════════════════════════════════════ */
- @media (max-width: 768px) {
- /* 过滤器:label 和 pills 垂直排列 */
- .tipitaka-filter-row {
- flex-direction: column;
- gap: 0.375rem;
- }
- .tipitaka-filter-label {
- padding-top: 0;
- }
- /* 作者下拉撑满 */
- .tipitaka-author-select {
- max-width: 100%;
- width: 100%;
- }
- }
- /* 目录项布局 */
- .toc-item {
- display: flex;
- flex-direction: column; /* 默认:手机上下 */
- gap: 0.4rem;
- }
- /* 标题 */
- .toc-title {
- font-size: 0.95rem;
- }
- /* 进度区 */
- .toc-progress {
- display: flex;
- align-items: center;
- gap: 0.5rem;
- }
- /* 百分比 */
- .toc-progress-text {
- font-size: 0.7rem;
- color: var(--tblr-secondary);
- white-space: nowrap;
- }
- /* ≥ md(平板/桌面):左右分布 */
- @media (min-width: 768px) {
- .toc-item {
- flex-direction: row;
- align-items: center;
- }
- .toc-title {
- flex: 1;
- }
- .toc-progress {
- width: 140px;
- }
- }
- /* ══════════════════════════════════════════
- 子分类网格
- ══════════════════════════════════════════ */
- .tipitaka-subcategory-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
- gap: 8px;
- padding: 4px 0;
- }
- .tipitaka-subcategory-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 8px;
- padding: 16px 12px;
- border-radius: var(--tblr-border-radius);
- text-decoration: none;
- color: var(--tblr-body-color);
- border: 1px solid transparent;
- transition:
- background 0.15s,
- border-color 0.15s;
- }
- .tipitaka-subcategory-item:hover {
- background: var(--tblr-bg-surface-secondary);
- border-color: var(--tblr-border-color);
- text-decoration: none;
- color: var(--tblr-body-color);
- }
- .tipitaka-subcategory-icon {
- font-size: 40px;
- color: var(--tblr-secondary);
- line-height: 1;
- }
- .tipitaka-subcategory-item:hover .tipitaka-subcategory-icon {
- color: var(--tblr-body-color);
- }
- .tipitaka-subcategory-name {
- font-size: 0.8125rem;
- text-align: center;
- line-height: 1.4;
- color: var(--tblr-secondary);
- }
- /* ══════════════════════════════════════════
- 两栏(无右边栏):channel 列表 / channel 作品列表
- ══════════════════════════════════════════ */
- .wiki-layout--two {
- grid-template-columns: 200px 1fr;
- grid-template-areas: 'left main';
- }
- @media (max-width: 768px) {
- .wiki-layout--two {
- grid-template-columns: 1fr;
- grid-template-areas: 'main' 'left';
- }
- }
- /* ══════════════════════════════════════════
- 进度条(x-ui.progress-bar)
- ══════════════════════════════════════════ */
- .ui-progress {
- display: flex;
- align-items: center;
- gap: 0.4rem;
- min-width: 0;
- }
- .ui-progress__bar {
- flex: 1;
- height: 6px;
- }
- .ui-progress__label {
- font-size: 0.7rem;
- color: var(--tblr-secondary);
- white-space: nowrap;
- min-width: 2.2em;
- text-align: right;
- }
- .card-book__progress {
- margin-top: 0.4rem;
- }
- .tipitaka-toc-summary {
- font-size: 0.75rem;
- color: var(--tblr-secondary);
- margin-left: 0.5rem;
- }
- .wiki-toc-list .toc-disabled .toc-title {
- color: var(--tblr-disabled-color, #aab);
- }
- .tipitaka-work-pali {
- color: var(--tblr-secondary);
- font-size: 0.875rem;
- }
- .tipitaka-pager {
- display: flex;
- justify-content: center;
- margin-top: 1rem;
- }
- /* ══════════════════════════════════════════
- 译本:首页磁贴 / 列表行 / channel 页头
- ══════════════════════════════════════════ */
- .tipitaka-channel-tiles {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
- gap: 0.75rem;
- }
- .tipitaka-channel-tile,
- .tipitaka-channel-row {
- display: flex;
- align-items: center;
- gap: 0.75rem;
- color: var(--tblr-body-color);
- text-decoration: none;
- }
- .tipitaka-channel-tile {
- padding: 0.7rem 0.8rem;
- border: 1px solid var(--tblr-border-color);
- border-radius: var(--tblr-border-radius);
- background: var(--tblr-bg-surface);
- }
- .tipitaka-channel-tile:hover {
- border-color: var(--tblr-primary);
- text-decoration: none;
- }
- .tipitaka-channel-tile__info,
- .tipitaka-channel-row__info {
- display: flex;
- flex-direction: column;
- min-width: 0;
- flex: 1;
- }
- .tipitaka-channel-tile__name,
- .tipitaka-channel-row__name {
- font-weight: 600;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .tipitaka-channel-tile__meta,
- .tipitaka-channel-row__meta,
- .tipitaka-channel-row__count {
- font-size: 0.75rem;
- color: var(--tblr-secondary);
- }
- .tipitaka-channel-row {
- padding: 0.65rem 0.25rem;
- border-bottom: 1px solid var(--tblr-border-color);
- }
- .tipitaka-channel-row:last-child {
- border-bottom: 0;
- }
- .tipitaka-channel-row:hover {
- background: var(--tblr-bg-surface-secondary);
- text-decoration: none;
- }
- .tipitaka-channel-head {
- margin-top: 1.5rem;
- }
- .tipitaka-channel-head__main {
- display: flex;
- align-items: center;
- gap: 1rem;
- }
- .tipitaka-channel-head__name {
- margin: 0;
- font-size: 1.35rem;
- }
- .tipitaka-channel-head__meta {
- font-size: 0.8125rem;
- color: var(--tblr-secondary);
- }
- .tipitaka-channel-tabs {
- display: flex;
- gap: 1.25rem;
- border-bottom: 1px solid var(--tblr-border-color);
- margin-top: 1rem;
- }
- .tipitaka-channel-tabs a {
- padding: 0.5rem 0;
- color: var(--tblr-secondary);
- border-bottom: 2px solid transparent;
- text-decoration: none;
- }
- .tipitaka-channel-tabs a.active {
- color: var(--tblr-primary);
- border-color: var(--tblr-primary);
- font-weight: 600;
- }
- /* ══════════════════════════════════════════
- channel 分类目录树(参考 documents/tipitaka_org.html)
- ══════════════════════════════════════════ */
- .tipitaka-tree-bar {
- display: flex;
- flex-wrap: wrap;
- gap: 0.5rem;
- align-items: center;
- justify-content: space-between;
- margin: 1rem 0 0;
- }
- .tipitaka-tree-bar__actions {
- display: flex;
- flex-wrap: wrap;
- gap: 0.5rem;
- }
- .tipitaka-tree {
- padding: 1rem 0 3rem;
- }
- .tipitaka-tree ul {
- list-style: none;
- margin: 0;
- padding-left: 26px;
- }
- .tipitaka-tree ul.tipitaka-tree__root {
- padding-left: 0;
- }
- .tipitaka-tree li[data-node] {
- position: relative;
- margin: 8px 0;
- }
- .tipitaka-tree ul ul > li[data-node]::before {
- content: '';
- position: absolute;
- left: -16px;
- top: 0;
- bottom: -8px;
- border-left: 1px solid var(--tblr-border-color);
- }
- .tipitaka-tree ul ul > li[data-node]:last-child::before {
- bottom: auto;
- height: 22px;
- }
- .tipitaka-tree ul ul > li[data-node]::after {
- content: '';
- position: absolute;
- left: -16px;
- top: 22px;
- width: 14px;
- border-top: 1px solid var(--tblr-border-color);
- }
- .tipitaka-tree__node {
- display: inline-flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 10px;
- padding: 7px 12px;
- border-radius: 8px;
- border: 1px solid var(--tblr-border-color);
- background: var(--tblr-bg-surface);
- }
- .tipitaka-tree__toggle {
- width: 20px;
- height: 20px;
- padding: 0;
- border: 0;
- background: none;
- color: var(--tblr-secondary);
- font-size: 12px;
- cursor: pointer;
- }
- .tipitaka-tree__name {
- font-weight: 700;
- }
- .tipitaka-tree__count {
- font-size: 12px;
- color: var(--tblr-secondary);
- }
- .tipitaka-tree__progress {
- width: 110px;
- }
- .tipitaka-tree__level-0 > .tipitaka-tree__node {
- background: var(--tblr-dark, #1d273b);
- border-color: var(--tblr-dark, #1d273b);
- color: #fff;
- }
- .tipitaka-tree__level-0 > .tipitaka-tree__node .tipitaka-tree__toggle,
- .tipitaka-tree__level-0 > .tipitaka-tree__node .tipitaka-tree__count,
- .tipitaka-tree__level-0 > .tipitaka-tree__node .ui-progress__label {
- color: #cfd6e0;
- }
- .tipitaka-tree__level-1 > .tipitaka-tree__node {
- background: #f3e2c7;
- border-color: #c4761c;
- }
- .tipitaka-tree__level-2 > .tipitaka-tree__node {
- background: var(--tblr-primary-lt, #e8f0fa);
- border-color: var(--tblr-primary);
- }
- .tipitaka-tree__cards {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
- gap: 10px;
- padding: 8px 0 4px 26px;
- }
- .tipitaka-tree__root > li > .tipitaka-tree__cards:only-of-type {
- padding-left: 0;
- }
- .tipitaka-tree__card {
- background: var(--tblr-bg-surface);
- border: 1px solid var(--tblr-border-color);
- border-radius: 8px;
- padding: 8px 12px;
- }
- .tipitaka-tree__card-title {
- font-weight: 600;
- font-size: 13px;
- margin-bottom: 4px;
- }
- .tipitaka-tree__card ol {
- margin: 0;
- padding: 0;
- list-style: none;
- }
- .tipitaka-tree__card li {
- border-top: 1px dotted var(--tblr-border-color);
- }
- .tipitaka-tree__card li:first-child {
- border-top: 0;
- }
- .tipitaka-tree__work {
- display: flex;
- align-items: center;
- gap: 0.5rem;
- padding: 4px 0;
- font-size: 13px;
- color: var(--tblr-body-color);
- text-decoration: none;
- }
- a.tipitaka-tree__work:hover {
- color: var(--tblr-primary);
- text-decoration: none;
- }
- .tipitaka-tree__work-title {
- flex: 1;
- min-width: 0;
- overflow-wrap: anywhere;
- }
- .tipitaka-tree__work-progress {
- width: 90px;
- flex: none;
- }
- .tipitaka-tree__card li.is-missing .tipitaka-tree__work {
- color: var(--tblr-disabled-color, #aab);
- }
- .tipitaka-tree__work-missing {
- font-size: 11px;
- }
- .tipitaka-tree li.collapsed > ul,
- .tipitaka-tree li.collapsed > .tipitaka-tree__cards {
- display: none;
- }
- /* ══════════════════════════════════════════
- 三藏首页 hero:底图是深色檀木(hero-tipitaka.jpg),
- Tabler 给 h1 单独设了标题色,会盖掉 .hero-content 继承的白色,这里显式改回白字
- ══════════════════════════════════════════ */
- .hero-section--dark .hero-title,
- .hero-section--dark .hero-subtitle {
- color: #fff;
- }
- .tipitaka-channel-row__progress {
- width: 140px;
- flex: none;
- }
- /* 分类页左栏:顶级加粗;当前路径上的祖先加粗;下一级字号更小、颜色更浅、缩进并带竖线与圆点 */
- .tipitaka-side-tree > li > a {
- font-weight: 600;
- }
- /* 叠两个类:.wiki-cat-list 的 margin/padding: 0 加载在后,同优先级会盖掉缩进 */
- .wiki-cat-list.tipitaka-side-tree__children {
- margin: 2px 0 6px 0.75rem;
- padding-left: 0.5rem;
- border-left: 2px solid var(--tblr-border-color);
- }
- .tipitaka-side-tree .tipitaka-side-tree__children > li > a {
- font-weight: 400;
- font-size: 0.75rem;
- color: var(--tblr-secondary);
- padding: 3px 8px;
- }
- .tipitaka-side-tree .tipitaka-side-tree__children > li > a::before {
- content: '';
- flex: none;
- width: 4px;
- height: 4px;
- margin-right: 6px;
- border-radius: 50%;
- background: currentColor;
- opacity: 0.6;
- }
- .tipitaka-side-tree .tipitaka-side-tree__children > li > a.is-open {
- font-weight: 600;
- color: var(--tblr-body-color);
- }
- .tipitaka-side-tree .tipitaka-side-tree__children > li > a.active {
- color: var(--tblr-primary);
- font-weight: 600;
- }
- /* ══════════════════════════════════════════
- 下载页(library/tipitaka/download.blade.php)
- ══════════════════════════════════════════ */
- .tipitaka-download__head {
- display: flex;
- gap: 1.25rem;
- align-items: center;
- padding: 1.25rem;
- }
- .tipitaka-download__cover {
- width: 96px;
- min-width: 96px;
- height: 128px;
- }
- .tipitaka-download__info {
- flex: 1;
- min-width: 0;
- }
- .tipitaka-download__title {
- font-size: 1.375rem;
- font-weight: 600;
- margin: 0;
- }
- .tipitaka-download__meta {
- display: flex;
- flex-wrap: wrap;
- gap: 4px 16px;
- margin-top: 0.5rem;
- color: var(--tblr-secondary);
- font-size: 0.8125rem;
- }
- .tipitaka-download__back {
- align-self: flex-start;
- }
- .tipitaka-download__section {
- display: flex;
- flex-wrap: wrap;
- align-items: baseline;
- gap: 4px 10px;
- font-size: 0.9375rem;
- font-weight: 600;
- margin: 1.5rem 0 0.75rem;
- }
- .tipitaka-download__section small {
- font-weight: 400;
- color: var(--tblr-secondary);
- }
- .tipitaka-download__formats {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- gap: 12px;
- }
- .tipitaka-download__format {
- display: flex;
- flex-direction: column;
- gap: 10px;
- padding: 1rem;
- margin: 0;
- transition: border-color 0.15s;
- }
- .tipitaka-download__format:hover {
- border-color: var(--tblr-primary);
- }
- .tipitaka-download__format-top {
- display: flex;
- gap: 12px;
- align-items: flex-start;
- }
- .tipitaka-download__format h3 {
- margin: 0;
- font-size: 0.9375rem;
- }
- .tipitaka-download__format p {
- margin: 2px 0 0;
- color: var(--tblr-secondary);
- font-size: 0.8125rem;
- }
- .tipitaka-download__icon {
- flex: none;
- width: 42px;
- height: 50px;
- border-radius: 5px 12px 5px 5px;
- color: #fff;
- font: 700 10px/1 var(--tblr-font-monospace, monospace);
- letter-spacing: 0.5px;
- display: flex;
- align-items: flex-end;
- justify-content: center;
- padding-bottom: 7px;
- }
- .tipitaka-download__icon--epub { background: #7b4bd1; }
- .tipitaka-download__icon--html { background: #e8590c; }
- .tipitaka-download__icon--docx { background: #1f5fbf; }
- .tipitaka-download__icon--markdown { background: #2b8a3e; }
- .tipitaka-download__file {
- font: 0.75rem/1.5 var(--tblr-font-monospace, monospace);
- color: var(--tblr-secondary);
- background: var(--tblr-bg-surface-secondary);
- border-radius: 6px;
- padding: 6px 10px;
- overflow-wrap: anywhere;
- }
- .tipitaka-download__foot {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: space-between;
- gap: 10px;
- }
- .tipitaka-download__state {
- display: flex;
- align-items: center;
- gap: 6px;
- font-size: 0.8125rem;
- color: var(--tblr-secondary);
- }
- .tipitaka-download__dot {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: var(--tblr-warning);
- }
- [data-state="ready"] .tipitaka-download__state,
- .tipitaka-download__state--ready { color: var(--tblr-success); }
- [data-state="ready"] .tipitaka-download__dot,
- .tipitaka-download__state--ready .tipitaka-download__dot { background: var(--tblr-success); }
- .tipitaka-download__state--failed { color: var(--tblr-danger); }
- .tipitaka-download__state--failed .tipitaka-download__dot,
- [data-state="too_large"] .tipitaka-download__dot { background: var(--tblr-danger); }
- .tipitaka-download__progress-text {
- display: flex;
- justify-content: space-between;
- gap: 8px;
- font-size: 0.8125rem;
- color: var(--tblr-secondary);
- margin-bottom: 4px;
- }
- .tipitaka-download__progress-text span:first-child {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .tipitaka-download__manual {
- font-size: 0.8125rem;
- cursor: pointer;
- }
- .tipitaka-download__hint {
- display: flex;
- gap: 8px;
- margin-top: 14px;
- padding: 10px 14px;
- border-radius: 8px;
- background: var(--tblr-primary-lt, #e8f0fa);
- font-size: 0.8125rem;
- }
- .tipitaka-download__works {
- padding: 0.25rem 0;
- }
- .tipitaka-download__works details + details {
- border-top: 1px solid var(--tblr-border-color);
- }
- .tipitaka-download__works summary {
- display: flex;
- gap: 10px;
- padding: 10px 16px;
- cursor: pointer;
- }
- .tipitaka-download__works summary span {
- margin-left: auto;
- color: var(--tblr-secondary);
- font-size: 0.8125rem;
- }
- .tipitaka-download__works ul {
- margin: 0;
- padding: 0 16px 12px 36px;
- columns: 2;
- column-gap: 24px;
- }
- .tipitaka-download__works li {
- display: flex;
- justify-content: space-between;
- gap: 8px;
- padding: 2px 0;
- font-size: 0.8125rem;
- break-inside: avoid;
- }
- .tipitaka-download__works li span {
- color: var(--tblr-secondary);
- }
- @media (max-width: 767px) {
- .tipitaka-download__formats { grid-template-columns: 1fr; }
- .tipitaka-download__head { flex-wrap: wrap; }
- .tipitaka-download__works ul { columns: 1; }
- }
|