ant-design-vue/components/vc-drawer/assets/index.less

204 lines
3.8 KiB
Plaintext
Raw Normal View History

update to antd3.8.3 (#159) * refactor: align * feat: update align to 2.4.3 * feat: update trigger 2.5.4 * feat: update tooltip 3.7.2 * fix: align * feat: update vc-calendar to 9.6.2 * feat: update vc-checkbox to 2.1.5 * feat: update vc-dialog to 7.1.8 * feat: update vc-from to 2.2.1 * feat: update vc-notification to 3.1.1 * test: update snapshots * feat: update vc-tree to 1.12.6 * feat: update vc-table to 6.2.8 * feat: update vc-upload to 2.5.1 * feat: update vc-input-number to 4.0.12 * feat: update vc-tabs to 9.2.6 * refactor: vc-menu * refactor: update vc-menu to 7.0.5 * style: remove unused * feat: update pagination to 1.16.5 * feat: add vc-progress 2.2.5 tag * feat: add vc-rate 2.4.0 tag * feat: update vc-slider to 8.6.1 * fix: tooltip error * style: delete conosle * feat: update vc-steps to 3.1.1 * add vc-switch tag 1.6.0 * feat: update upload to 2.5.1 * fix: update vc-menu * fix: update store * fix: add ref dir * fix: trigger mock shouldComponentUpdate * fix: update vc-select * revert: trigger lazyrenderbox * fix: update vc-select * fix: update vc-select * fix: update vc-select * fix: update vc-menu * fix: update vc-slick ref * update style to 3.8.2 * test: update snapshots * update vc-select * update util & affix * feat: add drawer * fix: support title add slot mode * test: update affix test * update alert * update anchor * update snapshots * fix: doc and vc-drawer * update select & auto-complete * update back-top & grid * feractor: avatar * test: add drawer test * update badge * update button * update card * update divider * feat: update vc-tabs to 9.3.6 and tabs * add afterEnter callback * update form * fix: update drawer * test: update snapshots * update modal & notification * test: update snapshots * update message * update locale-provider * update dropdown * update layout popconfirm popover * update time-picker * update menu * update date-picker * docs: update input docs * update input * update snapshots * update table * update test snapshots * feat: update progress * update checkbox * feat: update spin * update radio * docs: slider steps timeline * update list * update transfer * update collapse * update cascader * update upload
2018-09-05 13:28:54 +00:00
@ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86);
@duration: 0.3s;
@drawer: drawer;
.@{drawer} {
position: fixed;
top: 0;
z-index: 9999;
>* {
transition: transform @duration @ease-in-out-circ, opacity @duration @ease-in-out-circ, box-shaow @duration @ease-in-out-circ;
}
& &-mask {
background: #000;
opacity: 0;
width: 0;
height: 0;
position: fixed;
top: 0;
transition: opacity @duration @ease-in-out-circ,
width 0s ease @duration,
height 0s ease @duration;
display: block !important;
}
&-content-wrapper {
position: fixed;
background: #fff;
}
&-content {
overflow: auto;
z-index: 1;
position: relative;
}
&-handle {
position: absolute;
top: 72px;
width: 41px;
height: 40px;
cursor: pointer;
z-index: 0;
text-align: center;
line-height: 40px;
font-size: 16px;
display: flex;
justify-content: center;
align-items: center;
background: #fff;
&-icon {
width: 14px;
height: 2px;
background: #333;
position: relative;
transition: background @duration @ease-in-out-circ;
&:before,
&:after {
content: '';
display: block;
position: absolute;
background: #333;
width: 100%;
height: 2px;
transition: transform @duration @ease-in-out-circ;
}
&:before {
top: -5px;
}
&:after {
top: 5px;
}
}
}
&-left,
&-right {
width: 0%;
height: 100%;
.@{drawer}-content-wrapper,
.@{drawer}-content {
height: 100%;
}
&.@{drawer}-open {
width: 100%;
}
}
&-left {
.@{drawer} {
&-handle {
right: -40px;
box-shadow: 2px 0 8px rgba(0, 0, 0, .15);
border-radius: 0 4px 4px 0;
}
}
&.@{drawer}-open {
.@{drawer} {
&-content-wrapper {
box-shadow: 2px 0 8px rgba(0, 0, 0, .15);
}
}
}
}
&-right {
.@{drawer} {
&-content-wrapper {
right: 0;
}
&-handle {
left: -40px;
box-shadow: -2px 0 8px rgba(0, 0, 0, .15);
border-radius: 4px 0 0 4px;
}
}
&.@{drawer}-open {
& .@{drawer} {
&-content-wrapper {
box-shadow: -2px 0 8px rgba(0, 0, 0, .15);
}
}
}
}
&-top,
&-bottom {
width: 100%;
height: 0%;
.@{drawer}-content-wrapper,
.@{drawer}-content {
width: 100%;
}
.@{drawer} {
&-handle {
left: 50%;
margin-left: -20px;
}
}
&.@{drawer}-open {
height: 100%;
}
}
&-top {
.@{drawer} {
&-handle {
top: auto;
bottom: -40px;
box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
border-radius: 0 0 4px 4px;
}
}
&.@{drawer}-open {
.@{drawer} {
&-wrapper {
box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
}
}
}
&-bottom {
.@{drawer} {
&-content-wrapper {
bottom: 0;
}
&-handle {
top: -40px;
box-shadow: 0 -2px 8px rgba(0, 0, 0, .15);
border-radius: 4px 4px 0 0;
}
}
&.@{drawer}-open {
.@{drawer} {
&-content-wrapper {
box-shadow: 0 -2px 8px rgba(0, 0, 0, .15);
}
}
}
}
&.@{drawer}-open {
.@{drawer} {
&-mask {
opacity: .3;
width: 100%;
height: 100%;
animation: fadeIn 0.3s @ease-in-out-circ;
transition: none;
}
&-handle {
&-icon {
background: transparent;
&:before {
transform: translateY(5px) rotate(45deg);
}
&:after {
transform: translateY(-5px) rotate(-45deg);
}
}
}
}
}
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 0.3;
}
}