DivBucket / src / utils / Resizable / resizable.module.css
resizable.module.css
Raw
.awrap {
  width: auto;
  height: auto;
}
.root {
  flex: 1;
  display: flex;
  margin: 25px 33px 20px 40px;
  justify-content: center;
}

.a {
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}
.a::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.a {
  position: relative !important;
  width: 100%;
  height: 100%;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

.layer::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 21;
}

.resizable {
  position: absolute;
  z-index: 1;
}
.hov {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.hov:hover {
  border: 1px solid var(--resizeblue);
}

.top {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  border-top: 2px solid var(--resizeblue);
  cursor: ns-resize;
}
.bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  border-bottom: 2px solid var(--resizeblue);
  cursor: ns-resize;
}
.left {
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  border-left: 2px solid var(--resizeblue);
  cursor: ew-resize;
}
.right {
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  border-right: 2px solid var(--resizeblue);
  cursor: ew-resize;
}

.circle {
  position: absolute;
  background-color: white;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 1px solid blue;
  border-radius: 50%;
}

.ctop {
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}
.cbottom {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}
.cleft {
  top: 50%;
  left: -4px;
  transform: translateY(-50%);
  cursor: ew-resize;
}
.cright {
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.resizable::before {
  content: "";
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: -5px;
  right: -5px;
  cursor: inherit;
}
.infobar {
  background: #ff0099;
  background: linear-gradient(to right, #493240, #ff0099);
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  color: white;
  display: flex;
  border-radius: 3px;

  z-index: 2;
  font-weight: normal;
}
.root > .a > .infobar {
  transform: none;
  left: 50%;
  transform: translate(-50%,-110%);
}

.ib0 {
  font-size: 12px;
  display: flex;
  gap: 5px;
}
.infobar > div {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.285);
  padding: 5px 7px;
}
.infomore {
  background-color: red;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateY(100%);
}

.resizablebar {
  z-index: 2;
  background-color: rgb(41, 41, 41);
  width: 10px;
  transition: background-color 150ms;
  cursor: ew-resize;
  display: flex;
  justify-content: center;
  align-items: center;
}
.resizablebar:hover {
  background-color: rgb(75, 75, 75);
}
.leftbar {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.rightbar {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.lines {
  color: darkgray;
  transform: scale(2, 10);
}
.draghelper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--hoverblue);
}

.dborder {
  border: 2px solid var(--hoverblue);
}
.dborder::before {
  content: "";
  z-index: 1;
  opacity: 0.5;
  position: absolute;
  background-color: blue;
  border-radius: 10px;
}
.dinside::before {
  top: 20%;
  left: 20%;
  right: 20%;
  bottom: 20%;
}
.unit.dinside::before {
  display: none;
}
.dtop::before {
  transform: translateY(-50%);
  top: 0;
  left: 0;
  right: 0;
  height: 20%;
}
.dbottom::before {
  transform: translateY(50%);
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
}
.dright::before {
  transform: translateX(50%);
  top: 0;
  bottom: 0;
  width: 20%;
  right: 0;
}
.dleft::before {
  transform: translateX(-50%);
  bottom: 0;
  width: 20%;
  left: 0;
  top: 0;
  animation: none;
}
.dragwrapper {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-100%);
}
.dragimage {
  background-color: var(--hoverblue);
  padding: 3px 10px;
  border-radius: 10px;
  color: white;
  font-size: 12px;
}
.fixinfobar {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-y: scroll;
}
.fixinfobar::-webkit-scrollbar {
  width: 7px;
  background-color: var(--pg_bg);
}
.fixinfobar::-webkit-scrollbar-thumb {
  background-color: var(--bg_gray0);
}