amis2/examples/doc.css

66 lines
1.0 KiB
CSS
Raw Permalink Normal View History

2019-04-30 11:11:25 +08:00
.markdown-body {
2020-08-06 15:18:45 +08:00
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
min-height: unset;
2019-04-30 11:11:25 +08:00
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
2020-08-06 15:18:45 +08:00
}
2019-04-30 11:11:25 +08:00
}
.markdown {
padding: 25px 45px 0;
2019-04-30 11:11:25 +08:00
}
.doc-play-ground {
2020-12-09 00:35:24 +08:00
height: auto;
2020-08-06 15:18:45 +08:00
position: relative;
width: 100%;
2020-12-09 00:35:24 +08:00
margin: 20px 0;
--affix-offset-top: 70px;
2020-12-09 00:35:24 +08:00
}
.doc-play-ground > .visibility-sensor {
position: relative;
width: 100%;
height: 100%;
2019-04-30 11:11:25 +08:00
}
.doc-play-ground .nav-tabs {
2020-08-06 15:18:45 +08:00
margin-bottom: 0;
2019-04-30 11:11:25 +08:00
}
2020-08-06 15:18:45 +08:00
.markdown-body > .amis-preview {
margin-bottom: 15px;
2019-04-30 11:11:25 +08:00
}
2020-12-09 00:35:24 +08:00
.amis-doc {
margin: 20px 0;
}
2020-11-30 14:50:04 +08:00
.amis-doc > .preview {
padding-top: 3rem;
padding-bottom: 3rem;
padding-left: 1.5rem;
padding-right: 1.5rem;
overflow: hidden;
border-top-left-radius: 0.75rem;
border-top-right-radius: 0.75rem;
background-color: #dbeafe;
}
2020-12-01 11:43:30 +08:00
body.dark .amis-doc > .preview {
background: #191c22;
color: #fff;
}
2020-11-30 14:50:04 +08:00
.amis-doc > pre {
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 0.75rem;
border-bottom-right-radius: 0.75rem;
2020-08-06 15:18:45 +08:00
}