feat: sync mixly root files and common folder
This commit is contained in:
98
mixly/common/css/drag.css
Normal file
98
mixly/common/css/drag.css
Normal file
@@ -0,0 +1,98 @@
|
||||
.horizontal-line {
|
||||
opacity: 0;
|
||||
height: 4px;
|
||||
width: 100%;
|
||||
cursor: s-resize;
|
||||
z-index: 100;
|
||||
transition: opacity 0.2s ease;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
.vertical-line {
|
||||
opacity: 0;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
cursor: w-resize;
|
||||
z-index: 100;
|
||||
transition: opacity 0.2s ease;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
@-webkit-keyframes drag-fadein {
|
||||
0% { opacity: 0; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes drag-fadein {
|
||||
0% { opacity: 0; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
.horizontal-line:hover,
|
||||
.vertical-line:hover {
|
||||
-webkit-animation-name: drag-fadein;
|
||||
animation-name: drag-fadein;
|
||||
animation-duration: 0.2s;
|
||||
animation-delay: .2s;
|
||||
animation-fill-mode: forwards;
|
||||
}
|
||||
|
||||
.horizontal-line:active,
|
||||
.vertical-line:active,
|
||||
.drag-s-container.dragging > .horizontal-line,
|
||||
.drag-w-container.dragging > .vertical-line {
|
||||
opacity: 1;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.drag-s-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.drag-w-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.drag-elem {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
.drag-s-elem {
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
cursor: s-resize;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.drag-w-elem {
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
cursor: w-resize;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
html[data-bs-theme=light] .horizontal-line,
|
||||
html[data-bs-theme=light] .vertical-line,
|
||||
html[data-bs-theme=light] .drag-s-elem,
|
||||
html[data-bs-theme=light] .drag-w-elem {
|
||||
background-color: rgb(5 214 195);
|
||||
}
|
||||
|
||||
html[data-bs-theme=dark] .horizontal-line,
|
||||
html[data-bs-theme=dark] .vertical-line,
|
||||
html[data-bs-theme=dark] .drag-s-elem,
|
||||
html[data-bs-theme=dark] .drag-w-elem {
|
||||
background-color: rgb(8 105 170);
|
||||
}
|
||||
Reference in New Issue
Block a user