aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DiagramBox.scss
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-10-01 03:58:47 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-10-01 03:58:47 -0400
commit6d35629dd8f997208130981aac1daf36bc83b134 (patch)
tree7b7e3baac15e5f7b4fcb48d90372c48d4552ae4c /src/client/views/nodes/DiagramBox.scss
parentcf45abf8ada938caddb226c825166d4acdee3086 (diff)
parentba01c7376ed4a2b817a26a430faf4041524aef35 (diff)
Merge branch 'master' of https://github.com/brown-dash/Dash-Web into nathan-starter
Diffstat (limited to 'src/client/views/nodes/DiagramBox.scss')
-rw-r--r--src/client/views/nodes/DiagramBox.scss112
1 files changed, 53 insertions, 59 deletions
diff --git a/src/client/views/nodes/DiagramBox.scss b/src/client/views/nodes/DiagramBox.scss
index d2749f1ad..323638bff 100644
--- a/src/client/views/nodes/DiagramBox.scss
+++ b/src/client/views/nodes/DiagramBox.scss
@@ -1,3 +1,5 @@
+$searchbarHeight: 50px;
+
.DIYNodeBox {
width: 100%;
height: 100%;
@@ -6,83 +8,75 @@
align-items: center;
justify-content: center;
- .DIYNodeBox-wrapper {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- .DIYNodeBox {
- /* existing code */
-
- .DIYNodeBox-iframe {
- height: 100%;
- width: 100%;
- border: none;
+ .DIYNodeBox {
+ /* existing code */
- }
+ .DIYNodeBox-iframe {
+ height: 100%;
+ width: 100%;
+ border: none;
}
+ }
- .search-bar {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- padding: 10px;
+ .DIYNodeBox-searchbar {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
+ height: $searchbarHeight;
+ padding: 10px;
- input[type="text"] {
- flex: 1;
- margin-right: 10px;
- }
+ input[type='text'] {
+ flex: 1;
+ margin-right: 10px;
+ }
- button {
- padding: 5px 10px;
- }
+ button {
+ padding: 5px 10px;
}
+ }
- .content {
+ .DIYNodeBox-content {
+ flex: 1;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
+ height: calc(100% - $searchbarHeight);
+ .diagramBox {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
- width:100%;
- height:100%;
- .diagramBox{
+ width: 100%;
+ height: 100%;
+ svg {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
- width:100%;
- height:100%;
- svg{
- flex: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- width:100%;
- height:100%;
- }
+ width: 100%;
+ height: 100%;
}
}
+ }
- .loading-circle {
- position: relative;
- width: 50px;
- height: 50px;
- border-radius: 50%;
- border: 3px solid #ccc;
- border-top-color: #333;
- animation: spin 1s infinite linear;
- }
+ .loading-circle {
+ position: relative;
+ width: 50px;
+ height: 50px;
+ border-radius: 50%;
+ border: 3px solid #ccc;
+ border-top-color: #333;
+ animation: spin 1s infinite linear;
+ }
- @keyframes spin {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
+ @keyframes spin {
+ 0% {
+ transform: rotate(0deg);
+ }
+ 100% {
+ transform: rotate(360deg);
}
}
-} \ No newline at end of file
+}