@financial-times/o-quote

中文文档
5.3.4发布于 2023/10/27MITES Module零依赖近 30 天下载 1.2万

用于块引号、拉出引号和其他任何类型的引号的样式

此软件包已被标记为弃用

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

中文使用文档
文档目录6 节
  1. 使用量
  2. 标记
  3. 萨斯
  4. 移徙指南
  5. 联系人
  6. 许可证

○引语 MIT licensed

引用的样式

使用量

检查出来 如何将 Origami 组件纳入您的项目 开始 o-quote。 。 。 .

标记

或有人所讲的文字。 曾经将另一个信息来源归为属性,或者引用一个人的口语.

对于标准块引用样式使用类 o-quote o-quote--standard 和以下标记。 我们推荐编辑风格,以用于文章等编辑背景.

<blockquote class="o-quote o-quote--standard">
    <p>
        The prize for this century’s worst technology product probably belongs to Google Glass, a pair of spectacles with an inbuilt camera and a tiny lens on which you could browse the internet. Suddenly you could film everybody you met, or silently ignore them and read Wikipedia.
    </p>
    <cite class="o-quote__cite">
        <span class="o-quote__author">Henry Mance</span>
        <span class="o-quote__source">Financial Times</span>
    </cite>
</blockquote>

编辑风格 块引号交换 o-quote--standard 类别 o-quote--editorial. 编辑变体继承了字体大小和颜色以支持多种编辑背景. 例如,在编写本报告时 现场博客 和文章页在大取景口有不同的字体大小,但两者应共享编辑引用风格. 因此,编辑引文必须包含在规定打字风格的要素之内,例如: o-编辑-打字-正体。 。 。 .

-<blockquote class="o-quote o-quote--standard">
+<blockquote class="o-quote o-quote--editorial">
    <p>
        The prize for this century’s worst technology product probably belongs to Google Glass, a pair of spectacles with an inbuilt camera and a tiny lens on which you could browse the internet. Suddenly you could film everybody you met, or silently ignore them and read Wikipedia.
    </p>
    <cite class="o-quote__cite">
        <span class="o-quote__author">Henry Mance</span>
        <span class="o-quote__source">Financial Times</span>
    </cite>
</blockquote>

萨斯

输出所有 o- 引用样式包括 oQuote 混合剂.

@import '@financial-times/o-quote/main';
@include oQuote();

通过一个选项 $opts 只包含您需要的 o- 引用样式的地图。 例如:o-quote对标准语和编辑语块引用有风格. 只包含编辑块引用的样式:

@include oQuote($opts: (
    'standard': false, // do not output .o-quote--standard variant styles
    'editorial': true, // output .o-quote--editorial variant styles
    'cite': true // output .o-quote__cite styles, to support citations
));

"编辑"选项仅供核心品牌用户使用.

您也可以使用自定义 HTML 标记的 o- quote 混合。 例如,如果使用标记 my-blockquote 作为类名. 我们不建议采取这种做法,除非你无法更新你的标记,因为这可能导致不必要的CSS输出和更困难的迁移.

<blockquote class="my-blockquote">
    <p>The quote.</p>
    <cite class="my-blockquote__cite">
        <span class="my-blockquote__author">Author</span>
        <span class="my-blockquote__source">Source</span>
    </cite>
</blockquote>
.my-blockquote {
    @include oQuoteEditorial();
}

.my-blockquote .my-blockquote__cite {
    @include oQuoteEditorialCite();
}

.my-blockquote .my-blockquote__author {
    @include oQuoteEditorialCiteAuthor();
}

.my-blockquote .my-blockquote__source {
    @include oQuoteEditorialCiteSource();
}

这个 oQuoteEditorial 这里显示的混音器仅供核心品牌用户使用. 有关o-quote混音的完整列表,请参见 o-引文SassDoc 在登记册中。 。 。 .

移徙指南

状态主要版本最后一个小版本移徙指南
活动页:1不详迁移到 v5
维护页:14.1 国家迁移到 v4
伤了3个3.0 调用迁移到 v3
已贬值2个2.2 国家迁移到 v2
已贬值1个1.3 国家不详

联系人

如果您对本部分有任何问题或评论,或需要帮助使用本部分,请 提出问题访问 #origami - 支持 或电子邮件 折纸支持。 。 。 .

许可证

该软件在以下 麻省理工学院许可证。 。 。 .

版本与发布记录

@financial-times/o-quote 共发布 27 个版本,首次发布于 2019/02/13;过去 12 个月发布了 0 个版本。

版本发布日期距今
5.3.4latest2023/10/273 年前
5.3.32023/08/253 年前
5.3.22023/04/283 年前
5.3.12022/12/213 年前
5.3.02022/02/084 年前
5.2.12022/01/134 年前

其他发布通道:prerelease → 5.0.0-beta.0。

关于 @financial-times/o-quote 的常见问题

@financial-times/o-quote 是什么?

用于块引号、拉出引号和其他任何类型的引号的样式注意:该包已被作者标记为弃用——Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

如何安装 @financial-times/o-quote?

在项目目录运行 npm install @financial-times/o-quote,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@financial-times/o-icons(^7.0.0)、@financial-times/o-colors(^6.5.0)、@financial-times/o-spacing(^3.0.0)、@financial-times/o-typography(^7.4.1)、@financial-times/o-editorial-typography(^2.0.1)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@financial-times/o-quote 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/financial-times__o-quote 是否存在。

@financial-times/o-quote 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@financial-times/o-quote 可以商用吗?

@financial-times/o-quote 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@financial-times/o-quote 的下载量有多少?

根据 npm 官方下载统计,@financial-times/o-quote 在 2026/10/15 – 2026/11/13 这 30 天内被下载 11,782 次,日均约 393 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@financial-times/o-quote 还在维护吗?

最新版本 5.3.4 发布于 2023/10/27(3 年前);至今共发布 27 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/02/13。作者已将其标记为弃用,新项目建议寻找替代方案。