Skip to content

Commit

Permalink
Merge pull request #426 from fahad-aot/bugfix/fwf-4118-expression-bui…
Browse files Browse the repository at this point in the history
…lder-style-changes

bugfix/fwf-4118:Added style changes for expression builder
  • Loading branch information
arun-s-aot authored Jan 20, 2025
2 parents 24da906 + 8cd2248 commit f693700
Showing 1 changed file with 44 additions and 24 deletions.
68 changes: 44 additions & 24 deletions forms-flow-theme/scss/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ $secondary: var(--ff-secondary);
opacity: 0;
}

// for modals with size="sm" . 50% given to make it 750px as per figma size
// for modals with size="sm" . 63.5% given to make it 960px as per figma size
&.modal-sm {
width: 50% !important;
max-width: 50% !important;
width: 63.5% !important;
max-width: 63.5% !important;
}

// for modals with size="lg" . 95% given to make it 1432px as per figma size
// for modals with size="lg" . 95% given to make it 1440px as per figma size
&.modal-lg {
width: 95% !important;
max-width: 95% !important;
width: 95.2% !important;
max-width: 95.2% !important;
}


Expand Down Expand Up @@ -631,10 +631,23 @@ $secondary: var(--ff-secondary);


//expression-builder-modal
.expression-builder{
.expression-list-group {
width: 100%;
.expression-builder-modal {
.modal-content{
margin-top: var(--spacer-100);
margin-bottom: var(--spacer-100);
max-height: calc(100vh - 2rem);
}

.expression-section{
border-bottom: 1px solid var(--ff-gray-100);
padding: var(--spacer-200) var(--spacer-225) !important;
gap: var(--spacer-050);
}
}
.expression-builder{
.expression-list-group {
width: 100%;
}

.expression-list-group .form-variable {
display: flex;
Expand Down Expand Up @@ -684,8 +697,7 @@ $secondary: var(--ff-secondary);
flex-wrap: wrap;
}

.expression-section,
.variable-section {
.expression-section{
display: flex;
padding: var(--spacer-200) var(--spacer-250);
flex-direction: column;
Expand All @@ -694,45 +706,54 @@ $secondary: var(--ff-secondary);
}

.variable-section {
display: flex;
flex-direction: column;
align-items: flex-start;
align-self: stretch;
gap: var(--spacer-150);
max-height: calc(100vh - 35.875rem);
overflow-y: scroll;
}

.tab-label {
font-size: var(--font-size-md);
}

.tab-variable-section{
display: flex;
flex-direction: column;
padding: var(--spacer-200);
gap: var(--spacer-150);
}
.tab-section {
display: flex;
align-items: center;
gap: var(--spacer-150);
padding-left: var(--spacer-250);
padding-top: var(--spacer-200);
border-bottom: 1px solid var(--ff-gray-000);
}

.variable-tab {
gap: var(--spacer-150);
}

.custom-value {
padding: 42px 24px 40px 40px;
}


.save-value {
display: inline-flex;
justify-content: center;
align-items: center;
gap: var(--spacer-050);
padding-left: var(--spacer-250);
padding-bottom: var(--spacer-250);
}

.pick-operator {
padding: var(--spacer-200) var(--spacer-250) var(--spacer-150) var(--spacer-250);
display: flex;
flex-direction: column;
padding: var(--spacer-200);
gap: var(--spacer-050);
max-height: calc(100vh - 26.375rem);
overflow-y: scroll;
}

.operator-list {
width: 100%;
padding: var(--spacer-050) var(--spacer-100);
}

.operator-list:hover {
Expand Down Expand Up @@ -808,7 +829,6 @@ $secondary: var(--ff-secondary);
margin: 0;
align-items: center;
width: 100%;
padding-block: 1rem;
gap: var(--spacer-050);
.badge-pill {
background-color: $primary !important;
Expand All @@ -821,9 +841,9 @@ $secondary: var(--ff-secondary);
.badge-pill {
background-color: $primary !important;
color: var(--ff-white) !important;
}
}
}
}



Expand Down

0 comments on commit f693700

Please sign in to comment.