ant-design-vue/site/index.less

216 lines
3.6 KiB
Plaintext
Raw Normal View History

2018-04-04 18:39:21 +08:00
@import './theme/static/index.less';
.site {
display: flex;
flex-direction: column;
.nav {
width: 200px;
}
.content {
flex: 1;
}
.main-wrapper {
display: flex;
flex: 1;
}
}
.api-container table {
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
border: 1px solid @site-border-color-split;
width: 100%;
margin: 8px 0 16px;
}
.api-container table th {
white-space: nowrap;
color: #5c6b77;
font-weight: 500;
background: rgba(0, 0, 0, 0.02);
}
.api-container pre code {
padding: 12px 20px;
overflow: auto;
}
.api-container table th,
.api-container table td {
border: 1px solid @site-border-color-split;
padding: 16px 24px;
text-align: left;
}
.code-box .highlight-wrapper {
display: block;
}
.code-box-meta > h4 {
position: absolute;
top: -14px;
padding: 1px 8px;
margin-left: -8px;
color: #777;
border-radius: 2px 2px 0 0;
background: #fff;
font-size: 14px;
width: auto;
}
.code-box-code-copy {
opacity: 1;
position: absolute;
right: 15px;
top: 10px;
}
2018-04-11 13:32:18 +08:00
#search-box {
.ant-select-focused,
.ant-select-selection,
.ant-select-selection:focus,
.ant-select-selection:active {
border: none;
box-shadow: none;
}
}
2018-04-20 16:58:40 +08:00
#iframe-page {
.code-box {
border: none;
margin: 0;
}
.code-box > * {
display: none;
}
.code-box > .code-box-demo {
display: block;
padding: 0;
border: none;
}
}
2018-07-14 17:10:50 +08:00
.toc-affix .ant-affix {
overflow: visible;
}
2018-08-05 22:25:51 +08:00
.main-wrapper {
margin-top: 64px;
}
.demo-anchor {
.ant-anchor-link-title {
font-size: 12px;
}
}
2019-01-12 11:33:27 +08:00
.site-sidebar {
z-index: 1;
2018-08-11 10:54:00 +08:00
}
2018-08-05 23:19:36 +08:00
@media only screen and (max-width: 767.99px) {
2018-09-06 20:11:10 +08:00
.sponsorsWrap {
display: none;
}
2019-01-12 11:33:27 +08:00
.site-sidebar {
2018-08-10 14:52:26 +08:00
position: fixed;
2018-12-17 21:38:56 +08:00
z-index: 2;
2018-08-10 14:52:26 +08:00
overflow-y: scroll;
2018-08-05 22:25:51 +08:00
width: 100%;
top: 0;
left: 0;
2018-08-10 14:52:26 +08:00
bottom: 0;
2019-01-12 11:33:27 +08:00
.aside-container {
2018-08-05 22:25:51 +08:00
width: 80%;
z-index: 1;
position: relative;
2018-08-05 23:19:36 +08:00
min-height: 100%;
2018-08-11 10:54:00 +08:00
border-right: 1px solid #e8e8e8;
2018-08-05 22:25:51 +08:00
}
}
2018-08-11 10:54:00 +08:00
.main-wrapper {
z-index: 11;
margin-top: 0px;
}
2019-01-12 11:33:27 +08:00
.drawer-mask {
2018-08-05 22:25:51 +08:00
background: #000;
opacity: 0;
width: 100%;
height: 100%;
position: fixed;
top: 0;
opacity: 0.3;
}
2019-01-12 11:33:27 +08:00
.close-drawer {
2018-08-05 22:25:51 +08:00
position: absolute;
top: 72px;
width: 41px;
height: 40px;
cursor: pointer;
pointer-events: auto;
z-index: 0;
text-align: center;
line-height: 40px;
font-size: 16px;
left: 80%;
align-items: center;
background: #fff;
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
border-radius: 0 4px 4px 0;
}
2019-01-12 11:33:27 +08:00
.open-drawer {
2018-08-05 23:19:36 +08:00
position: fixed;
2018-08-05 22:25:51 +08:00
top: 72px;
width: 41px;
height: 40px;
cursor: pointer;
pointer-events: auto;
z-index: 1;
text-align: center;
line-height: 40px;
font-size: 16px;
left: 0;
align-items: center;
background: #fff;
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
border-radius: 0 4px 4px 0;
}
.toc-affix {
display: none !important;
}
2019-01-12 11:33:27 +08:00
.header-left .header-lang-button {
2018-08-05 23:19:36 +08:00
margin-right: 10px;
position: absolute;
right: 10px;
top: 0px;
}
#header {
position: relative;
}
2018-08-05 22:25:51 +08:00
}
@media (min-width: 768px) {
.site-sidebar {
display: block !important;
}
2019-01-12 11:33:27 +08:00
.header-left .header-lang-button {
2018-08-05 22:25:51 +08:00
display: none;
}
2019-01-12 11:33:27 +08:00
.drawer-mask {
2018-08-05 22:25:51 +08:00
display: none !important;
}
2019-01-12 11:33:27 +08:00
.close-drawer {
2018-08-05 22:25:51 +08:00
display: none !important;
}
2019-01-12 11:33:27 +08:00
.open-drawer {
2018-08-05 22:25:51 +08:00
display: none !important;
}
2018-08-10 14:52:26 +08:00
}
2018-09-06 20:11:10 +08:00
.sponsorsWrap {
padding-left: 40px;
position: relative;
top: -15px;
2019-01-12 11:33:27 +08:00
.sponsorsTitle {
2018-09-06 20:11:10 +08:00
color: #777;
font-weight: 300;
font-size: 14px;
}
ul {
overflow: hidden;
margin-top: 5px;
}
.sponsorsItem {
display: inline-block;
margin-right: 8px;
}
}