Skip to content
프로젝트

소개

A no-nonsense CSS typography reset for styling user-generated content like blog posts, comments, and forum content.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Typeset.css

A no-nonsense CSS typography reset for styling user-generated content like blog posts, comments, and forum content.

What this is

Typeset.css is a CSS file (typeset.css) that includes all the styles you need to ensure content on your site is styled. Styles are only applied to areas that have a parent element with the class typeset, so it can be target content-specific markup.

And what this is not

Typeset.css is not a CSS framework for styling the layout and design of your website - just specific blocks of content (e.g., blog posts, comments, forum content) that includes paragraphs, lists, code snippets, and so on.

When to use this

Any time you have stripped a browser’s default styles or haven’t specified styles for content elements, use Typeset.css. It’s great for:

  • Blog posts
  • Articles
  • Comments
  • Helper text in web apps
  • and any other content blocks on a page

Never again add content to your web page just to find that you don’t have a consistent style for it™.

Why this was made

Typeset was originally created for user-generated content on UserVoice feedback forums and then expanded to work with content generated by UserVoice-powered knowledge base articles. Because users create these articles using a WYSIWYG editor with HTML-editing capabilities, we needed to make sure we had a base set of styles for any content-related markup.

How to use this

  1. Download and add the typeset.css file to your page.
  2. Add the typeset class to the parent element that wraps the content you want styled with Typeset.css.

Example:

<div class="typeset">
  <p>Like the generations of leaves, the lives of mortal men. Now the wind scatters the old leaves across the earth, now the living timber bursts with the new buds and spring comes round again. And so with men: as one generation comes to life, another dies away.</p>
</div>

Also, check out https://joshuarudd.com/typeset.css/ for examples of all the HTML elements styled with Typeset.css.

관련 프로젝트 살펴보기

불러오는 중…