史太君破陈腐旧套
这些书都是一个套子,左不过是些佳人才子,最没趣儿。把人家女儿说的那样坏, 还说是佳人,编的连影儿也没有了……
prospect garden css components(a.k.a.
@pgd/css
) is the css implementation of the
prospect garden design system.
It's a responsive css framework built to make switching themes easy, heavily based on css variables(a.k.a. css custom properties).
@pgd/components
is generated using
style-dictionary, it seems possible to generate raw style values directly, and
then use the raw values for IE or even other platforms.
3-tier theming system
general html elements can be used in simple use cases.
for complex use cases like high interactivity and flexible styling, it's better to build your own components with css here and custom js.
.code
and
.kbd
are designed to style inline
elements.
.some-class
to the
element to format it.
10 + 5 = 15
f = ma
.
.ul
.
.ol
.
.ul
):
.ul.no-bullet
.
html <table>
can be styled with just
one class table
# | First | Last | Handle |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry the Bird |
# | First | Last | Handle |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry the Bird |
forms provide common user input elements.
.form-control
can be used to style
<input>
,
<select>
and
<textarea>
elements consistently.
.form-group
can be used to add
margin-bottom.
.form-text
can be used to style muted text
below form inputs as descriptive information.
form-control is designed for consistency.
it provides consistent sizing/spacing/states/... among form inputs.
<input>
elements can be styled with
.form-control
.
.form-control
will take up the full width
of the parent container and have no margins by default.
utilities classes can be used to help to position form input controls.
.required
can be added to
<label>
to show a tiny red asterisk
* as a reminder.
allow users to input multi-line plain text.
note: not working on firefox
note: js required. live on codepen
Current value:
.collapse-panel > details
.collapse-header > summary
.collapse-content > contents below summary
note: <details>
and
<summary>
elements are not supported
in IE 11.
card is one of the most popular components for displaying brief and attractive contents.
.content
can be used to provide a nice
margin around the content inside.
.card
can be used to provide a visual box
with nice padding, border and margin.
.card
and
.content
can be nested inside one another
in any combination to help to organize the content better.
the margin around .content
is equal to the
padding inside .card
. This makes nested
content and cards have proper alignment.
By default, .content
and
.card
will fit the full width of its
parent element.
However, it's easy to change their parent element's width with
utility classes like .w-0/25/50/75
.
这些书都是一个套子,左不过是些佳人才子,最没趣儿。把人家女儿说的那样坏, 还说是佳人,编的连影儿也没有了。开口都是书香门第,父亲不是尚书就是宰相, 生一个小姐必是爱如珍宝。这小姐必是通文知礼,无所不晓,竟是个绝代佳人。 只一见了一个清俊的男人,不管是亲是友,便想起终身大事来,父母也忘了,书礼也忘了, 鬼不成鬼,贼不成贼,那一点儿是佳人?便是满腹文章,做出这些事来,也算不得是佳人了……
In some cases it’s because the writer is envious of people so much better off than himself, or disappointed because he has tried to obtain their patronage and failed, and deliberately portrays them in this unfavourable light as a means of getting his own back on them...
the margin around .content
is equal to the
padding inside .card
.
This makes nested content and cards have proper alignment
Elements and containers can also be given the same padding as cards
using .p-card
,
.px-card
,
.py-card
We will notify you whenever we make a new post. No spam, no marketing, we promise.
by default, dropdown is toggled by clicking, not by hovering.
dropdown toggling requires js.
compared to popover, dropdown in open state has no arrow indicator.
.dropdown-header can be used to style title for the dropdown menu.
.dropdown-item can be used for the main links.
.dropdown-divider can be used to style div as divider.
.dropdown-content can provide spacing for content to match with headers and dividers.
toggle by click.
toggle by hover.
.modal
makes use of
:target
pseudo selector, open whenever the
url hash matches the id
of the modal.
tooltip can be created by adding the data-toggle="tooltip" and data-title="..." attributes to an element, and requires no JavaScript.
containers can be used to center the content horizontally.
3 types of containers are provided:
.container
is responsive at all
breakpoints with prefined max-width
.
.container-fluid
is full width at all
breakpoints with width: 100%;
.
.container-sm/md/lg/xl/xxl
is
width: 100%;
before the specified
breakpoints, then responsive at the specified breakpoint width and
greater width.
.container
has no padding and margin by
default.
.content
is recommended to add margin
for contents of containers and cards.
this site use .container
, responsive for
all screen sizes.
<body>
只有2个直接子元素,<nav class="nav-header" >
是顶部导航条,<main class="docs-outmost-block" >
是文档内容
<aside class="docs-toc" >
代表左侧目录,<div class="docs-content" >
代表右侧长文档,由多个小节多个部分的内容组成
<section class="docs-content-section" >