mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
dd91d9660c
* Select Options等组件样式对齐4.0 * 更新测试快照 * 修改部分测试用例 * feat:4.0样式修改 * 修改checkboxes hover问题 * Feat image 4.0 (#4242) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * fix: textarea组件对齐4.0标准 (#4149) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: inputTree组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: textarea组件对齐4.0标准 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * fix: inputTree 组价对齐4.0标准 (#4148) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: inputTree组件对齐4.0标准 * fix: inputtree组件图标颜色修改 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * feat: 部分组件样式问题修复 (#4154) * feat: input-text 样式 * feat: input-range 样式 * feat: table 样式 1 * feat: search-box * feat: curd icon * feat: table 空状态 * feat: input-text 多选,最大宽度设置 * feat: search-box 搜索图标颜色 * feat: crud 编辑、过滤、搜索、排序 图标样式修改 * feat: 更新快照 * feat: 更新快照 2 * feat: curd fix * feat: curd edit icon fix * feat: input-password 不可见 icon 修改 * feat: input-password snapshot update * docs:完善对话框size参数说明 * feat: Log 组件支持虚拟渲染及限制最大行数 * 修复不支持 loading 问题 * 换一下名字 Co-authored-by: liuzedong02 <liuzedong02@baidu.com> Co-authored-by: liweijian <liweijian@hkmtl.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> * fix:修复删除图标颜色问题 (#4245) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 * fix: 修复conditionbuilder组价图标颜色问题 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * form表单对齐云社4.0 (#4248) * feat: form增加表单项 label文本对齐方式选项 * fix: remark 支持在表单内配置 * style: form 间距对齐云社4.0 Co-authored-by: sarding <hongfuquan@baidu.com> * Fix chart radios name (#4251) * fix: Chart 单选框 修改为 ChartRadios 图表单选框 * fix: input-password 修改 可见 图标 Co-authored-by: liuzedong02 <liuzedong02@baidu.com> * feat: checkboxes内边距&nestedSelect箭头修改 (#4254) Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * Feature style 4.0 cxd (#4261) * feat: 日期&折叠面板&提示样式对齐 * fix:测试用例修复 * feat: timeRange开始和结束分开&日期样式优化 * styles: 日历样式修复 Co-authored-by: hongyang03 <hongyang03@baidu.com> * 整体字体大小调整 (#4264) * feat: form增加表单项 label文本对齐方式选项 * fix: remark 支持在表单内配置 * style: form 间距对齐云社4.0 * 修改表单的字体 Co-authored-by: sarding <hongfuquan@baidu.com> * inputfile 和 drawer对齐云社4.0 (#4249) * fix: drawer 和 inputfile 关闭图标对齐云社4.0 * fix:修改 drawer的图标大小 和边框圆角 * drawer 样式调整 Co-authored-by: sarding <hongfuquan@baidu.com> * Fix style (#4265) * fix: input-password icon 高度 * fix: input-password icon 换行问题 Co-authored-by: liuzedong02 <liuzedong02@baidu.com> * fix: curd 图标垂直居中 (#4271) Co-authored-by: liuzedong02 <liuzedong02@baidu.com> * fix:修复nestedSelect无法动态调整位置及溢出问题 (#4292) Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * style: 优化switch组件动效 (#4302) * style:优化date组件最小宽度 (#4303) * style:cxd主题移动端基础字号调整为16px (#4305) * style:switch调整动效速度 * chore:更新快照 * chore:更新快照 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> Co-authored-by: qiaogg <43558337+qiaogg@users.noreply.github.com> Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> Co-authored-by: sansiro <sansiro@sansiro.me> Co-authored-by: liuzedong02 <liuzedong02@baidu.com> Co-authored-by: liweijian <liweijian@hkmtl.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> Co-authored-by: sarding <37691952+sarding@users.noreply.github.com> Co-authored-by: sarding <hongfuquan@baidu.com> Co-authored-by: 徐佳豪 <53201551+blue-squirrel@users.noreply.github.com> Co-authored-by: HongYang <33488114+hy993658052@users.noreply.github.com> Co-authored-by: hongyang03 <hongyang03@baidu.com>
315 lines
6.3 KiB
SCSS
315 lines
6.3 KiB
SCSS
.#{$ns}Drawer {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: $zindex-modal;
|
|
overflow: hidden;
|
|
outline: 0;
|
|
|
|
&-content {
|
|
position: absolute;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: auto;
|
|
background: var(--Drawer-bg);
|
|
background-clip: padding-box;
|
|
outline: 0;
|
|
z-index: 2;
|
|
border-radius: var(--Drawer-content-borderRadius);
|
|
transition: transform ease-in-out var(--animation-duration);
|
|
}
|
|
|
|
&-overlay {
|
|
transition: ease-out opacity var(--animation-duration);
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
background: var(--Drawer-overlay-bg);
|
|
opacity: 0;
|
|
|
|
&.in {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&-header {
|
|
padding: var(--Drawer-header-padding);
|
|
background: var(--Drawer-header-bg);
|
|
@include clearfix();
|
|
border-bottom: var(--Drawer-content-borderWidth) solid
|
|
var(--Drawer-header-borderColor);
|
|
border-top-left-radius: var(--Drawer-content-borderRadius);
|
|
border-top-right-radius: var(--Drawer-content-borderRadius);
|
|
}
|
|
|
|
&-title {
|
|
font-size: var(--Drawer-title-fontSize);
|
|
color: var(--Drawer-title-fontColor);
|
|
}
|
|
|
|
&-close {
|
|
position: absolute;
|
|
color: var(--Drawer-close-color);
|
|
line-height: 1;
|
|
text-decoration: none;
|
|
|
|
svg {
|
|
margin-top: px2rem(2px);
|
|
width: var(--Drawer-close-size);
|
|
height: var(--Drawer-close-size);
|
|
fill: var(--Drawer-close-color);
|
|
}
|
|
|
|
&:not(.is-disabled) {
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
color: var(--Drawer-close-onHover-color);
|
|
|
|
svg {
|
|
fill: var(--Drawer-close-onHover-color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&-body {
|
|
padding: var(--Drawer-body-padding);
|
|
flex-basis: 0;
|
|
flex-grow: 1;
|
|
overflow: auto;
|
|
}
|
|
|
|
&-footer {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: flex-end;
|
|
padding: var(--Drawer-footer-padding);
|
|
border-top: var(--Drawer-content-borderWidth) solid
|
|
var(--Drawer-footer-borderColor);
|
|
border-bottom-left-radius: var(--Drawer-content-borderRadius);
|
|
border-bottom-right-radius: var(--Drawer-content-borderRadius);
|
|
|
|
.#{$ns}Button {
|
|
margin-left: var(--gap-xs);
|
|
}
|
|
|
|
.#{$ns}Drawer-info {
|
|
flex-basis: 0;
|
|
flex-grow: 1;
|
|
text-align: left;
|
|
align-self: center;
|
|
}
|
|
|
|
.#{$ns}Drawer-error {
|
|
color: var(--danger);
|
|
white-space: pre-wrap;
|
|
}
|
|
}
|
|
|
|
&.#{$ns}Drawer--noOverlay {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.#{$ns}Drawer-resizeCtrl {
|
|
position: absolute;
|
|
border: var(--borderWidth) solid var(--borderColor);
|
|
background: var(--white);
|
|
border-radius: var(--borderRadius);
|
|
font-size: var(--fontSizeSm);
|
|
line-height: px2rem(10px);
|
|
text-align: center;
|
|
user-select: none;
|
|
}
|
|
}
|
|
|
|
// size
|
|
@include media-breakpoint-up(sm) {
|
|
.#{$ns}Drawer .#{$ns}Drawer-content {
|
|
width: var(--Drawer-widthBase);
|
|
height: var(--Drawer-widthBase);
|
|
}
|
|
|
|
.#{$ns}Drawer--xs .#{$ns}Drawer-content {
|
|
width: var(--Drawer-widthXs);
|
|
height: var(--Drawer-widthXs);
|
|
}
|
|
|
|
.#{$ns}Drawer--sm .#{$ns}Drawer-content {
|
|
width: var(--Drawer-widthSm);
|
|
height: var(--Drawer-widthSm);
|
|
}
|
|
|
|
.#{$ns}Drawer--md .#{$ns}Drawer-content {
|
|
width: var(--Drawer-widthMd);
|
|
height: var(--Drawer-widthMd);
|
|
}
|
|
|
|
.#{$ns}Drawer--lg .#{$ns}Drawer-content {
|
|
width: var(--Drawer-widthLg);
|
|
height: var(--Drawer-widthLg);
|
|
}
|
|
|
|
.#{$ns}Drawer--xl .#{$ns}Drawer-content {
|
|
width: var(--Drawer-widthXl);
|
|
height: var(--Drawer-widthXl);
|
|
}
|
|
}
|
|
|
|
// positons
|
|
.#{$ns}Drawer--top .#{$ns}Drawer-content.in,
|
|
.#{$ns}Drawer--right .#{$ns}Drawer-content.in,
|
|
.#{$ns}Drawer--bottom .#{$ns}Drawer-content.in,
|
|
.#{$ns}Drawer--left .#{$ns}Drawer-content.in {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
|
|
.#{$ns}Drawer--top {
|
|
|
|
.#{$ns}Drawer-close {
|
|
top: var(--gap-base);
|
|
right: var(--gap-base);
|
|
left: auto;
|
|
margin-top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.#{$ns}Drawer-content {
|
|
top: 0;
|
|
bottom: auto;
|
|
left: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
transform: translate3d(0, -100%, 0);
|
|
box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.2);
|
|
min-height: 120px;
|
|
}
|
|
|
|
.#{$ns}Drawer-resizeCtrl {
|
|
bottom: px2rem(-6px);
|
|
left: 50%;
|
|
cursor: ns-resize;
|
|
width: px2rem(24px);
|
|
height: px2rem(12px);
|
|
}
|
|
}
|
|
|
|
.#{$ns}Drawer--right {
|
|
.#{$ns}Drawer-close {
|
|
top: var(--gap-md);
|
|
right: var(--gap-md);
|
|
margin-right: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.#{$ns}Drawer-content {
|
|
top: 0;
|
|
bottom: 0;
|
|
left: auto;
|
|
right: 0;
|
|
height: 100%;
|
|
transform: translate3d(100%, 0, 0);
|
|
box-shadow: -10px 0 10px -10px rgba(0, 0, 0, 0.2);
|
|
min-width: 120px;
|
|
}
|
|
|
|
.#{$ns}Drawer-footer {
|
|
justify-content: flex-start;
|
|
|
|
.#{$ns}Button {
|
|
margin-left: 0;
|
|
margin-right: var(--gap-xs);
|
|
}
|
|
|
|
.#{$ns}Drawer-info {
|
|
flex-basis: 0;
|
|
flex-grow: 1;
|
|
order: 10;
|
|
align-self: center;
|
|
text-align: right;
|
|
}
|
|
|
|
.#{$ns}Drawer-error {
|
|
color: var(--danger);
|
|
}
|
|
}
|
|
|
|
.#{$ns}Drawer-resizeCtrl {
|
|
left: px2rem(-6px);
|
|
top: 50%;
|
|
cursor: ew-resize;
|
|
writing-mode: vertical-lr;
|
|
width: px2rem(12px);
|
|
height: px2rem(24px);
|
|
}
|
|
}
|
|
|
|
.#{$ns}Drawer--bottom {
|
|
|
|
.#{$ns}Drawer-close {
|
|
top: var(--gap-base);
|
|
right: var(--gap-base);
|
|
left: auto;
|
|
margin-bottom: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.#{$ns}Drawer-content {
|
|
top: auto;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
transform: translate3d(0, 100%, 0);
|
|
box-shadow: 0 -10px 10px -10px rgba(0, 0, 0, 0.2);
|
|
min-height: 120px;
|
|
}
|
|
|
|
.#{$ns}Drawer-resizeCtrl {
|
|
top: px2rem(-6px);
|
|
left: 50%;
|
|
cursor: ns-resize;
|
|
width: px2rem(24px);
|
|
height: px2rem(12px);
|
|
}
|
|
}
|
|
|
|
.#{$ns}Drawer--left {
|
|
|
|
.#{$ns}Drawer-close {
|
|
left: auto;
|
|
right: var(--gap-base);
|
|
top: var(--gap-base);
|
|
z-index: 10;
|
|
}
|
|
|
|
.#{$ns}Drawer-content {
|
|
top: 0;
|
|
bottom: 0;
|
|
right: auto;
|
|
left: 0;
|
|
height: 100%;
|
|
transform: translate3d(-100%, 0, 0);
|
|
box-shadow: 10px 0 10px -10px rgba(0, 0, 0, 0.2);
|
|
border-width: 0 var(--Drawer-content-borderWidth) 0 0;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.#{$ns}Drawer-resizeCtrl {
|
|
right: px2rem(-6px);
|
|
top: 50%;
|
|
cursor: ew-resize;
|
|
writing-mode: vertical-lr;
|
|
width: px2rem(12px);
|
|
height: px2rem(24px);
|
|
}
|
|
}
|