index.styl 2.6 KB
Newer Older
芊里 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
$edge-border-width = 6rpx
.flex-auto
	flex auto
.bg-transparent
	background-color rgba(0, 0, 0, 0.9)
	transition-duration 0.35s
.l-clipper
	width 100vw
	height calc( 100vh - var(--window-top))
	background-color rgba(0, 0, 0, 0.9)
	position fixed
	top var(--window-top)
	left 0
	z-index 1
	&-mask
		position relative
		z-index 2
		pointer-events: none
	&__content
		pointer-events: none;
		position absolute
		border 1rpx solid rgba(255,255,255,.3)
		box-sizing border-box
		box-shadow: rgba(0, 0, 0, 0.5) 0 0 0 80vh;
		background: transparent;	
		&::before,&::after
			content ''
			position absolute
			border 1rpx dashed rgba(255,255,255,.3)
		&::before
			width 100%
			top 33.33%
			height 33.33%
			border-left none
			border-right none
		&::after
			width 33.33%
			left 33.33%
			height 100%
			border-top none
			border-bottom none
	&__edge
		position absolute
		// left 6rpx
		width 34rpx
		height 34rpx
		border $edge-border-width solid #ffffff
		pointer-events auto
		&::before
			content ''
			position absolute
			width 40rpx
			height 40rpx
			background-color transparent
		&:nth-child(1)
			left: - $edge-border-width
			top: - $edge-border-width
			border-bottom-width 0 !important
			border-right-width 0 !important
			&:before
				top -50%
				left -50%
		&:nth-child(2)
			right: - $edge-border-width
			top: - $edge-border-width
			border-bottom-width 0 !important
			border-left-width 0 !important
			&:before
				top -50%
				left 50%
		&:nth-child(3)
			left: - $edge-border-width
			bottom: - $edge-border-width
			border-top-width 0 !important
			border-right-width 0 !important
			&:before
				bottom -50%
				left -50%
		&:nth-child(4)
			right: - $edge-border-width
			bottom: - $edge-border-width
			border-top-width 0 !important
			border-left-width 0 !important	
			&:before
				bottom -50%
				left 50%
	&-image
		width 100%
		border-style none
		position absolute
		top 0
		left 0
		z-index 1
		-webkit-backface-visibility hidden
		backface-visibility hidden
		transform-origin center
	&-canvas
		position fixed
		z-index 10
		left -200vw
		top -200vw
		pointer-events none
	&-tools
		position fixed
		left 0
		bottom 10px
		width 100%
		z-index 99
		color #fff
		&__btns
			font-weight bold
			display flex
			align-items center
			justify-content space-between
			width 100%
			padding 20rpx 40rpx
			box-sizing border-box
			.cancel
				width 112rpx
				height 60rpx
				text-align center
				line-height 60rpx
			.confirm
				width 112rpx
				height 60rpx
				line-height 60rpx
				background-color #07c160
				border-radius 6rpx
				text-align center
			image
				display block
				width 60rpx
				height 60rpx