amis2/scss/components/_portlet.scss
ucasliyuan d47f229745
feat: 添加 Portlet 渲染器 (#2908)
* [ADD] Portlet component

* [ADD] Portlet component

* 添加Portlet渲染器

* 添加Portlet渲染器

* 添加Portlet渲染器

* 添加Portlet渲染器

Co-authored-by: liyuan14 <liyuan14@baidu.com>
2021-11-11 19:30:52 +08:00

51 lines
1.1 KiB
SCSS

.#{$ns}Portlet {
border: var(--Portlet-borderWidth) var(--Portlet-borderStyle) var(--Portlet-borderColor);
border-radius: var(--Portlet-borderRadius);
padding: var(--gap-base);
&-tab.unactive-select {
.is-active {
a:first-child,
&:hover > a:first-child,
> a:first-child:focus {
border: none !important;
color: inherit !important;
cursor: auto !important;
}
}
}
&-tab.no-divider {
.#{$ns}Tabs-links {
border-bottom: none;
}
}
.#{$ns}Tabs-pane {
padding: unset;
}
&-toolbar {
display: inline-flex;
float: right;
justify-content: flex-end;
.#{$ns}Button {
margin-left: calc(var(--gap-xs));
}
}
&-header-desc {
height: 100%;
overflow: hidden;
position: relative;
margin-left: var(--gap-base);
}
}
.#{$ns}Portlet.no-header {
.#{$ns}Portlet-tab .#{$ns}Tabs-links {
display: none;
}
}