@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); @import url("./menu.css"); * { font-family: "Montserrat", sans-serif; font-weight: 500; margin: 0; padding: 0; color: #eee; outline: none; --bg: #222; --bg-dark: #111; --blue: #177e89; --red: #db3a34; --yellow: #ffc857; --green: #35ce8d; } body, html { height: 100%; overflow: hidden; } body { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; --zoom: 1; } #canvas { position: absolute; width: 100%; height: 100%; top: 0; left: 0; background-image: url("icons/background.svg"); background-size: 80px 80px; z-index: 0; zoom: var(--zoom); } #playground { z-index: 1; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; overflow: none; transform: scale(var(--zoom)); transform-origin: top left; /* font-size: calc(1em * var(--zoom));*/ } .box { position: absolute; display: flex; flex-direction: column; gap: 0px; padding: 0px; border: solid 1px #111; box-shadow: 0px 0px 20px 0px black; background-color: #2227; backdrop-filter: blur(4px); --topBarHeight: 20px; } .boxTopBar { background-color: var(--bg-dark); width: 100%; height: var(--topBarHeight); cursor: grab; } .boxDeleteButton { display: block; float: right; cursor: pointer; width: var(--topBarHeight); height: var(--topBarHeight); border-radius: var(--topBarHeight); background-image: url("icons/x.svg"); background-size: contain; background-repeat: no-repeat; background-position: 50% 50%; } .boxContent { display: flex; flex-direction: column; gap: 20px; padding: 10px; } .box.dragging { box-shadow: 0px 0px 20px 0px rgba(255,255,255,0.3); cursor: grabbing; } .box.dragging .boxTopBar { cursor: grabbing; } .boxTitle { font-size: 1.3em; font-weight: bold; } input, textarea, select, button { background-color: #25252577; padding: 5px; border: 1px solid #111; font-size: inherit; } button:hover, select:hover { filter: brightness(1.1); } button:active { filter: brightness(1.3); } textarea { width: 300px; height: 150px; font-family: Monospace; min-width: 200px; } .boxConnectorContainer { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; margin-left: -20px; margin-right: -20px; gap: 20px; } .connector { display: flex; align-items: center; gap: 10px; --connectorCircleSize: 25px; cursor: pointer; } .connectorCircle { display: block; width: var(--connectorCircleSize); height: var(--connectorCircleSize); box-sizing: border-box; border: 3px solid var(--bg); border-radius: var(--connectorCircleSize); background-color: var(--connectorCircleColor); transition: scale 0.05s linear; } .connector.connectorInput { flex-direction: row; --connectorCircleColor: var(--blue); } .connector.connectorOutput { flex-direction: row-reverse; --connectorCircleColor: var(--yellow); } .connector:hover .connectorCircle { scale: 1.2; } .connector.connecting { --connectorCircleColor: white; } .connector.connected .connectorCircle { border-color: white; }