You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

236 lines
3.8 KiB

/* flow.css */
body {
--grid-size: 50px;
background-color: white;
background-image:
linear-gradient(to right, rgba(0,0,0,0.2) 1px, transparent 1px),
linear-gradient(to bottom, rgba(0,0,0,0.2) 1px, transparent 1px);
background-size: var(--grid-size) var(--grid-size);
min-height: 100vh;
margin: 0;
}
.right_sidebar{
height: 100%;
width: 180px;
background: rgba(255,255,255,0.5);
position: absolute;
top: 0px;
right: 0;
padding: 0 10px;
z-index: 2;
border-left: 1px solid black;
}
.node {
height: 70px;
width: 180px;
font-size: 25px;
text-align: center;
display: inline-block;
align-content: center;
margin: 10px 0;
border-radius: 10px;
cursor: pointer;
z-index: 1;
}
#node1, [data-node-type="node1"] {
background-color: #92a5b9;
}
#node2, [data-node-type="node2"] {
background-color: #00BFA5;
}
#node3, [data-node-type="node3"] {
background-color: #DDDDDD;
}
#node4, [data-node-type="node4"] {
background: #1DE9B6;
}
.slice_node {
position: absolute;
width: 180px;
height: 70px;
border-radius: 10px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
user-select: none;
z-index: 0;
}
.port {
width: 10px;
height: 10px;
background-color: black;
border-radius: 50%;
position: absolute;
user-select: none;
}
.port-in {
top: 50%;
left: -10px;
transform: translateY(-50%);
}
.port-out {
top: 50%;
right: -10px;
transform: translateY(-50%);
}
.container_ {
position: relative;
width: 100%;
height: 100%;
}
canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
}
.content {
position: relative;
z-index: 0;
}
.input_node1 {
width: 300px;
height: 100px;
margin-top: 10px;
}
.div-a {
margin: auto 0;
}
.label_node1 {
color: white;
font-size: 20px;
}
.save_node1 {
border-radius: 5px;
border: none;
width: 70px;
height: 30px;
margin-top: 10px;
}
.div_node2 {
margin: 10% 0;
display: flex;
flex-direction: column;
gap: 15px;
}
.iname_node2, #nodeTitleInput{
width: 300px;
height: 50px;
border-radius: 10px;
border: none;
font-size: 20px;
border: 1px solid gray;
padding: 10px;
}
#nodeContentInput {
width: 300px;
height: 150px;
border-radius: 10px;
border: 1px solid gray;
padding: 10px;
}
.title_node1, .input_node1{
width: 300px;
height: 50px;
border-radius: 10px;
border: none;
font-size: 20px;
border: 1px solid gray;
}
/* Estilos para el menú contextual */
.context-menu {
position: absolute;
background-color: #ecf0f1;
border: 1px solid #bdc3c7;
border-radius: 3px;
box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
z-index: 1000;
width: 150px;
display: none; /* Oculto por defecto */
}
.context-menu.show {
display: block;
}
.context-menu-item {
padding: 10px;
cursor: pointer;
}
.context-menu-item:hover {
background-color: #bdc3c7;
}
.div_node4 {
margin: auto 0;
display: flex;
flex-direction: column;
padding: 10px;
gap: 15px;
align-items: center;
}
.extension, .area {
text-align: center;
color: black;
}
.areaInput, .extensionInput {
width: 100%;
height: 50px;
font-size: 20px;
border: 1px solid gray;
border-radius: 10px;
}
.saveButton {
width: 100px;
height: 35px;
border-radius: 5px;
border: none;
}
.footer {
display: flex;
align-content: center;
justify-content: center;
align-items: center;
bottom: 0;
position: absolute;
background: rgba(255,255,255,0.5);
width: 100%;
height: 60px;
font-size: 25px;
}