ant-design-blazor/site/AntDesign.Docs/style/patch.less
James Yeung c5c3711c26 docs: Update the style to be compatible with antd 4.16 style. (#1893)
* docs: fix style

* fix logo font

* fix the color less
2021-08-29 22:48:10 +08:00

218 lines
6.9 KiB
Plaintext

// copy from https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/scripts/site/_site/doc/style/patch.less
@media screen and (max-width:767px){
.pic-plus img {
width: 120px;
height: auto;
}
}
.pic-plus > * {
display: inline-block !important;
vertical-align: middle;
}
.pic-plus span {
font-size: 30px;
color: #aaa;
margin: 0 20px;
}
.top-menu-additional {
position: relative;
right: 80px;
width: 190px;
}
.theme-color-content .ant-popover-inner-content {
width: 200px;
padding: 0;
}
#ng-content {
height: 100%;
transition: transform 0.3s @ease-in-out-circ;
}
.toc-affix {
.ant-anchor {
font-size: 12px;
.ant-anchor-ink::before {
width: 1px;
border-left: 1px solid @site-border-color-split;
}
.ant-anchor-link-active {
border-left: 2px solid @primary-color;
margin-left: -2px;
position: relative;
z-index: 2;
}
.ant-anchor-ink-ball.visible {
display: none;
}
.ant-anchor-link {
padding: 0 0 4px 16px;
line-height: 1.5;
&.ant-anchor-link-active {
.ant-anchor-link-title {
color: @primary-color;
}
}
.ant-anchor-link-title {
color: @site-text-color;
white-space: nowrap;
text-overflow: ellipsis;
width: 110px;
}
}
}
}
.site-page-header {
border: 1px solid rgb(235, 237, 240);
}
.site-page-header-ghost-wrapper {
background-color: #f5f5f5;
padding: 24px;
}
body[data-theme='dark'], [data-theme='dark'] * {
scrollbar-color: #434343 #262626;
&::-webkit-scrollbar {
width: 14px;
}
&::-webkit-scrollbar-track {
background: #262626;
}
&::-webkit-scrollbar-thumb {
background-color: #434343;
border-radius: 6px;
border: 2px solid #262626;
:hover {
background-color: #262626;
}
}
}
label {
&.api-type-label {
padding: 1px 10px;
font-size: 12px;
border-radius: @border-radius-base;
line-height: 18px;
display: inline;
vertical-align: middle;
color: @text-color-dark;
margin-left: 8px;
font-weight: normal;
text-transform: uppercase;
&.directive {
color: @magenta-6;
border: 2px solid @magenta-6;
}
&.component {
color: @blue-6;
border: 2px solid @blue-6;
}
&.service {
color: @green-6;
border: 2px solid @green-6;
}
}
}
.home-card-logo {
.home-banner-mini,
.home-banner-normal {
font-weight: 600;
font-family: PuHuiTi, @font-family, sans-serif;
letter-spacing: -0.18px;
}
}
[data-theme='dark'] {
.site-badge-count-4 .ant-badge-count {
background-color: @component-background !important;
box-shadow: 0 0 0 1px #434343 inset !important;
}
.head-example {
background: rgba(255,255,255,.12) !important;
}
.popover-menu .ant-popover-inner-content #nav a {
color: @text-color;
}
.gh-ico {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzlFQkFER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bDmLVwCLgnr0AhvnUp/0eJp0k9m6HO4fUp2nGZODgUY5PzUJVlHkxg1TEfnjxqY8I6yb12SSjqLm7T9/Ax4TaW/+JxuIx862KcL4toBk1QFT1omXZLRHQHaL3Npl/r8jH3QjiGsbJ3kGd/fDo6WBWi31KG9a9xXMgzfw35tVfCR9l52dk8Ibe7htnq57YowfY7i4+lYWUL9z+1fAQYACqstE4NCc18AAAAASUVORK5CYII=')
}
.site-page-header {
border: 1px solid #303030;
}
.site-page-header-ghost-wrapper {
background-color: rgba(255,255,255,0.08);
}
.drawer-content-wrapper {
background-color: @component-background;
}
}
.resource-cards {
.resource-card {
display: flex;
flex-direction: column;
height: 100%;
color: inherit;
list-style: none;
border: 1px solid #e6e6e6;
border-radius: 2px;
cursor: pointer;
transition: box-shadow 0.3s;
&:hover {
box-shadow: @shadow-2;
}
.resource-card-image {
width: calc(100% + 2px);
max-width: none;
height: 184px;
margin: -1px -1px 0 -1px;
object-fit: cover;
}
.resource-card-title {
margin: 16px 20px 8px 20px;
color: #0d1a26;
font-size: 20px;
line-height: 28px;
}
.resource-card-description {
margin: 0 20px 20px 20px;
color: #697b8c;
font-size: 14px;
line-height: 22px;
}
}
}