ant-design/site/common/styles/markdown.less
2016-04-11 11:55:44 +08:00

255 lines
5.1 KiB
Plaintext

.markdown {
color: #666;
font-size: 14px;
line-height: 1.8;
}
.highlight {
line-height: 1.5;
}
.markdown img {
vertical-align: middle;
max-width: 100%;
}
.markdown h1 {
color: #404040;
font-weight: 500;
line-height: 40px;
margin-bottom: 24px;
.subtitle {
font-size: 80%;
font-weight: normal;
font-family: "Helvetica Neue",Helvetica;
}
}
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
color: #404040;
margin: 1.6em 0 0.6em 0;
font-weight: 500;
clear: both;
}
.markdown h1 { font-size: 28px; }
.markdown h2 { font-size: 22px; }
.markdown h3 { font-size: 18px; }
.markdown h4 { font-size: 16px; }
.markdown h5 { font-size: 14px; }
.markdown h6 { font-size: 12px; }
.markdown hr {
height: 1px;
border: 0;
background: #e9e9e9;
margin: 16px 0;
clear: both;
}
.markdown p,
.markdown pre {
margin: 1em 0;
}
.markdown > p,
.markdown > blockquote,
.markdown > .highlight,
.markdown > ol,
.markdown > ul {
width: 80%;
}
.markdown ul > li {
list-style: circle;
}
.markdown > ul li,
.markdown blockquote ul > li {
margin-left: 20px;
padding-left: 4px;
}
.markdown > ul li p,
.markdown > ol li p {
margin: 0.6em 0;
}
.markdown ol > li {
list-style: decimal;
}
.markdown > ol li,
.markdown blockquote ol > li {
margin-left: 20px;
padding-left: 4px;
}
.markdown code {
margin: 0 3px;
}
.markdown pre {
border-radius: 6px;
background: #f7f7f7;
}
.markdown pre code {
border: none;
padding: 1em 2em;
background: #f7f7f7;
margin: 0;
}
.markdown strong,
.markdown b {
font-weight: 600;
}
.markdown > table {
border-collapse: collapse;
border-spacing: 0px;
empty-cells: show;
border: 1px solid #e9e9e9;
width: 80%;
margin-bottom: 24px;
}
.markdown > table th {
white-space: nowrap;
color: #5C6B77;
font-weight: 600;
}
.markdown > table th,
.markdown > table td {
border: 1px solid #e9e9e9;
padding: 8px 16px;
text-align: left;
}
.markdown > table th {
background: #F7F7F7;
}
.markdown blockquote {
font-size: 90%;
color: #999;
border-left: 4px solid #e9e9e9;
padding-left: 0.8em;
margin: 1em 0;
font-style: italic;
}
.markdown blockquote p {
margin: 0;
}
.markdown .anchor {
opacity: 0;
transition: opacity 0.3s ease;
margin-left: 8px;
}
.markdown .waiting {
color: #ccc;
}
.markdown h1:hover .anchor,
.markdown h2:hover .anchor,
.markdown h3:hover .anchor,
.markdown h4:hover .anchor,
.markdown h5:hover .anchor,
.markdown h6:hover .anchor {
opacity: 1;
display: inline-block;
}
.markdown > br,
.markdown > p > br {
clear: both;
}
.markdown.api-container table {
font-family: consolas;
font-size: 13px;
}
.layout-demo,
[id^="components-layout-demo-"] {
.demo-row,
.code-box-demo .demo-row {
background-image: linear-gradient(90deg, #F5F5F5 4.16666667%, transparent 4.16666667%, transparent 8.33333333%, #F5F5F5 8.33333333%, #F5F5F5 12.5%, transparent 12.5%, transparent 16.66666667%, #F5F5F5 16.66666667%, #F5F5F5 20.83333333%, transparent 20.83333333%, transparent 25%, #F5F5F5 25%, #F5F5F5 29.16666667%, transparent 29.16666667%, transparent 33.33333333%, #F5F5F5 33.33333333%, #F5F5F5 37.5%, transparent 37.5%, transparent 41.66666667%, #F5F5F5 41.66666667%, #F5F5F5 45.83333333%, transparent 45.83333333%, transparent 50%, #F5F5F5 50%, #F5F5F5 54.16666667%, transparent 54.16666667%, transparent 58.33333333%, #F5F5F5 58.33333333%, #F5F5F5 62.5%, transparent 62.5%, transparent 66.66666667%, #F5F5F5 66.66666667%, #F5F5F5 70.83333333%, transparent 70.83333333%, transparent 75%, #F5F5F5 75%, #F5F5F5 79.16666667%, transparent 79.16666667%, transparent 83.33333333%, #F5F5F5 83.33333333%, #F5F5F5 87.5%, transparent 87.5%, transparent 91.66666667%, #F5F5F5 91.66666667%, #F5F5F5 95.83333333%, transparent 95.83333333%);
overflow: hidden;
}
.row-flex,
.code-box-demo .row-flex {
background: #F5F5F5;
}
.row > div,
.code-box-demo .row > div,
.row-flex > div,
.code-box-demo .row-flex > div {
padding: 5px 0;
text-align: center;
border-radius: 6px;
min-height: 30px;
margin-top: 10px;
margin-bottom: 10px;
color: #fff;
}
.code-box-demo .row > div:not(.gutter-row) {
background: #6AC2F5;
border: 1px solid rgba(0, 0, 0, 0.1);
}
.row .demo-col,
.code-box-demo .row .demo-col {
text-align: center;
padding: 40px 0;
color: #fff;
font-size: 18px;
border: none;
margin-top: 0;
margin-bottom: 0;
}
.row .demo-col-1,
.row .demo-col-1 {
background: rgba(29, 128, 211, 0.7);
}
.row .demo-col-2,
.code-box-demo .row .demo-col-2 {
background: rgba(29, 128, 211, 0.5);
}
.row .demo-col-3,
.code-box-demo .row .demo-col-3{
background: rgba(255, 255, 255, 0.2);
color: #999;
}
.row .demo-col-4,
.code-box-demo .row .demo-col-4 {
background: rgba(29, 128, 211, 0.6);
}
.row .demo-col-5,
.code-box-demo .row .demo-col-5 {
background: rgba(255, 255, 255, 0.5);
color: #999;
}
.code-box-demo .height-100 {
height: 100px;
}
.code-box-demo .height-50 {
height: 50px;
}
.code-box-demo .height-120 {
height: 120px;
}
.code-box-demo .height-80 {
height: 80px;
}
}