ant-design-vue/site/index.less

198 lines
3.4 KiB
Plaintext
Raw Normal View History

2018-04-04 10:39:21 +00:00
@import './theme/static/index.less';
2019-01-12 09:19:57 +00:00
@import '../components/vc-drawer/assets/index.less';
2018-04-04 10:39:21 +00:00
.site {
display: flex;
flex-direction: column;
.nav {
width: 200px;
}
.content {
flex: 1;
}
.main-wrapper {
display: flex;
flex: 1;
}
}
2019-01-12 09:19:57 +00:00
@media only screen and (max-width: 1200px) {
#search-box {
display: none;
}
}
2018-04-04 10:39:21 +00:00
.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 05:32:18 +00: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 08:58:40 +00: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 09:10:50 +00:00
.toc-affix .ant-affix {
overflow: visible;
}
2018-08-05 14:25:51 +00:00
.demo-anchor {
.ant-anchor-link-title {
font-size: 12px;
}
}
2019-01-12 03:33:27 +00:00
.site-sidebar {
z-index: 1;
2018-08-11 02:54:00 +00:00
}
2018-08-05 15:19:36 +00:00
@media only screen and (max-width: 767.99px) {
2019-01-12 03:33:27 +00:00
.header-left .header-lang-button {
2018-08-05 15:19:36 +00:00
margin-right: 10px;
position: absolute;
right: 10px;
top: 0px;
}
#header {
position: relative;
}
2018-08-05 14:25:51 +00:00
}
@media (min-width: 768px) {
.site-sidebar {
display: block !important;
}
2019-01-12 03:33:27 +00:00
.header-left .header-lang-button {
2018-08-05 14:25:51 +00:00
display: none;
}
2018-08-10 06:52:26 +00:00
}
2019-03-15 14:56:22 +00:00
.snd-ad {
2019-03-11 02:06:33 +00:00
padding-bottom: 10px;
}
2018-09-06 12:11:10 +00:00
.sponsorsWrap {
padding-left: 40px;
position: relative;
2019-01-12 03:33:27 +00:00
.sponsorsTitle {
2018-09-06 12:11:10 +00:00
color: #777;
font-weight: 300;
font-size: 14px;
}
ul {
overflow: hidden;
2019-03-11 02:06:33 +00:00
margin-top: 15px;
li {
position: relative;
}
2018-09-06 12:11:10 +00:00
}
.sponsorsItem {
display: inline-block;
2019-03-11 02:06:33 +00:00
margin-right: 10px;
height: 51px;
2018-09-06 12:11:10 +00:00
}
}
2019-01-12 09:19:57 +00:00
#nav {
border: 0;
float: right;
font-size: 14px;
font-family: Avenir, @font-family;
font-variant: tabular-nums;
&.ant-menu-horizontal {
border-bottom: none;
& > .ant-menu-submenu {
height: @header-height;
line-height: @header-height - @menu-item-border - 2px;
min-width: 72px;
border-top: @menu-item-border solid transparent;
&:hover {
border-top: @menu-item-border solid @primary-color;
border-bottom: @menu-item-border solid transparent;
}
}
& > .ant-menu-item-selected {
border-top: @menu-item-border solid @primary-color;
border-bottom: @menu-item-border solid transparent;
a {
color: @primary-color;
}
}
}
& > .ant-menu-submenu {
text-align: center;
}
2019-01-12 10:01:02 +00:00
}
2019-01-16 03:26:56 +00:00
.toc-affix {
2019-03-19 07:35:51 +00:00
width: 150px;
2019-01-16 03:26:56 +00:00
position: fixed;
top: 100px;
right: 10px;
bottom: 250px;
}
.toc-affix .ant-anchor-wrapper {
2019-03-19 07:35:51 +00:00
max-height: calc(~'100vh - 400px') !important;
2019-01-16 03:26:56 +00:00
}
2019-02-16 06:32:46 +00:00
.drawer-wrapper .drawer-content {
-webkit-overflow-scrolling: touch;
}
2019-02-16 13:20:12 +00:00
.pic-plus img {
max-width: calc(50% - 40px);
}