Skip to content

Commit

Permalink
Update Form.module.scss
Browse files Browse the repository at this point in the history
Josefina changes from carbon-design-system#977
  • Loading branch information
johnbister authored Nov 5, 2020
1 parent 35257e5 commit a041d63
Showing 1 changed file with 33 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,47 +1,39 @@
.dialog {
box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.2);
background-color: var(--cds-ui-background);
position: fixed;
bottom: 0px;
width: 100vw;
bottom: 10rem;
right: 2rem;
width: 0;
height: 0;
margin-top: 456px;
overflow: hidden;
white-space: nowrap;
z-index: 10000; /* old z('floating') #940 */
transform-origin: 100% 50%;
transition-property: opacity, transform;
transition-duration: $duration--moderate-02;
@include carbon--breakpoint('md') {
transform-origin: 100% bottom;
width: 320px;
right: 2rem;
bottom: 10rem;
transition-duration: $duration--fast-02;
}
}

.enter {
opacity: 0.01;
transform: scale(0.8);
transition-timing-function: motion(entrance, productive);
transition: width $duration--slow-01 motion(exit, productive),
height $duration--moderate-01 motion(exit, productive),
margin-top $duration--moderate-01 motion(exit, productive);
}

.enter.enterActive {
opacity: 1;
transform: scale(1);
.dialog-active {
height: 456px;
width: 320px;
margin-top: 0;
transition: width $duration--moderate-01 motion(entrance, productive),
height $duration--slow-01 motion(entrance, productive),
margin-top $duration--slow-01 motion(entrance, productive);
}

.exit {
opacity: 1;
transform: scale(1);
transition-timing-function: motion(entrance, productive);
}

.exit.exitActive {
opacity: 0.01;
transform: scale(0.8);
.dialog > div {
display: flex;
flex-direction: column;
height: 456px;
justify-content: space-between;
}

.form-container {
padding: $spacing-05;
padding-bottom: $spacing-08;
background-color: var(--cds-ui-background);
color: var(--cds-text-02);
width: 100%;
}
Expand All @@ -67,9 +59,16 @@
}

.buttonRow {
width: 100%;
display: flex;
flex-wrap: nowrap;
height: 0;
margin-top: 4rem; //used to transition height from bottom
overflow: hidden;
transition: all 300ms motion(entrance, productive);
transition-delay: 15ms;
}

.button-row-active {
height: 4rem;
margin-top: 0;
}

.button {
Expand Down

0 comments on commit a041d63

Please # to comment.