qcast-front/src/styles/_modal.scss
2024-09-25 11:16:03 +09:00

326 lines
4.6 KiB
SCSS

@keyframes mountpop {
from {
opacity: 0;
scale: 0.95;
}
to {
opacity: 1;
scale: 1;
}
}
@keyframes unmountpop {
from {
opacity: 1;
scale: 1;
}
to {
opacity: 0;
scale: 0.95;
}
}
.modal-pop-wrap {
position: fixed;
top: 200px;
right: 100px;
width: 100%;
min-width: 300px;
max-width: fit-content;
height: -webkit-fit-content;
height: -moz-fit-content;
height: fit-content;
border: 1px solid #000;
border-radius: 4px;
background-color: #272727;
z-index: 9999999;
&.sm {
max-width: 580px;
}
&.ssm {
max-width: 380px;
}
&.xm {
max-width: 300px;
}
&.mount {
animation: mountpop .17s ease-in-out forwards;
}
&.unmount {
animation: unmountpop .17s ease-in-out forwards;
}
}
.modal-head {
display: flex;
align-items: center;
padding: 10px 24px;
background-color: #000;
cursor: pointer;
h1.title {
font-size: 13px;
color: #fff;
font-weight: 700;
}
.modal-close {
margin-left: auto;
color: #fff;
text-indent: -999999999px;
width: 10px;
height: 10px;
background: url(../../public/static/images/canvas/modal_close.svg) no-repeat center;
}
}
.modal-body {
padding: 15px;
.modal-btn-wrap {
display: flex;
align-items: center;
gap: 5px;
button {
flex: 1;
}
}
.modal-check-btn-wrap {
margin-top: 15px;
.check-wrap-title {
font-size: 12px;
color: #fff;
font-weight: 600;
&.light {
font-weight: 400;
}
}
.flex-check-box {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 15px;
&.for2 {
button {
width: calc(50% - 5px);
}
&.btn {
gap: 5px;
button {
width: calc(50% - 2.5px);
}
}
}
&.for-line {
button {
flex: 1;
}
}
}
}
.outer-line-wrap {
border-top: 1px solid #3C3C3C;
margin-top: 10px;
padding-top: 15px;
margin-bottom: 15px;
> div {
margin-bottom: 15px;
&:last-child {
margin-bottom: 0;
}
}
}
}
.adsorption-point {
display: flex;
align-items: center;
background-color: #3A3A3A;
border-radius: 3px;
padding-left: 11px;
overflow: hidden;
transition: all 0.17s ease-in-out;
span {
font-size: 12px;
color: #898989;
}
i {
display: flex;
align-items: center;
padding: 0 7px;
margin-left: auto;
height: 100%;
font-size: 13px;
color: #898989;
}
&.act {
i {
color: #fff;
background-color: #1083E3;
}
}
}
// grid-option
.grid-check-form {
display: flex;
align-items: center;
gap: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #3C3C3C;
}
.grid-option-wrap {
padding: 15px 0;
border-bottom: 1px solid #3C3C3C;
.grid-option-box {
display: flex;
align-items: center;
background-color: #3D3D3D;
border-radius: 2px;
padding: 10px;
gap: 20px;
margin-bottom: 5px;
.grid-input-form {
display: flex;
align-items: center;
span {
font-size: 12px;
color: #fff;
font-weight: 500;
}
.input-grid {
width: 63px;
input {
width: 100%;
}
}
}
&:last-child {
margin-bottom: 0;
}
}
}
.grid-select {
flex: 1;
.sort-select {
width: 100%;
background-color: #313131;
}
}
.grid-btn-wrap {
padding-top: 15px;
text-align: right;
button {
padding: 0 20px;
}
}
// grid copy
.grid-option-tit {
font-size: 12px;
color: #fff;
font-weight: 400;
padding-bottom: 15px;
border-bottom: 1px solid #3C3C3C;
}
.grid-direction {
display: flex;
align-items: center;
gap: 5px;
}
.direction {
width: 22px;
height: 22px;
background-color: #757575;
background-image: url(../../public/static/images/canvas/grid_option_arr.svg);
background-repeat: no-repeat;
background-position: center;
background-size: 16px 15px;
border-radius: 50%;
transition: all .15s ease-in-out;
&.down {
transform: rotate(180deg);
}
&.left {
transform: rotate(-90deg);
}
&.right {
transform: rotate(90deg);
}
&:hover,
&.act {
background-color: #1083E3;
}
}
// grid-move
.move-form {
p {
font-size: 12px;
color: #fff;
font-weight: 500;
}
}
.input-move-wrap {
display: flex;
align-items: center;
gap: 5px;
span {
color: #fff;
font-size: 12px;
}
.input-move {
width: 148px;
input {
width: 100%;
}
}
}
.direction-move-wrap {
flex: none;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}