File size: 1,357 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
//Playground
.react-live {
.prism-code {
background: #000;
box-sizing: border-box;
color: #eaeaea;
font-size: $font-body;
line-height: 1.4;
margin: 0;
padding: 24px;
}
}
.design__playground {
margin: -24px;
@include breakpoint-deprecated( ">960px" ) {
margin: -32px;
}
}
.design__editor {
background: #000;
}
.design__error {
background: rgba(0, 0, 0, 0.5);
box-sizing: border-box;
color: var(--color-error);
position: sticky;
top: 0;
}
.react-live-error,
.design__preview {
padding: 24px;
@include breakpoint-deprecated( ">960px" ) {
padding: 32px;
}
}
.design__preview {
position: relative;
@include breakpoint-deprecated( ">960px" ) {
position: static;
}
}
@include breakpoint-deprecated( ">960px" ) {
.design__playground {
display: flex;
height: calc(100vh - 47px);
}
.design__editor,
.design__preview {
width: 50%;
overflow: scroll;
}
}
.design__component-playground-code {
max-height: 100px;
overflow: hidden;
position: relative;
&.show-code {
max-height: none;
}
}
.design__component-playground-clipboard {
padding: 0;
position: absolute;
right: 10px;
top: 10px;
}
.design__component-playground-show-code {
margin-top: 1em;
text-align: center;
}
.design__playground-examples {
margin-bottom: 1em;
text-align: right;
.select-dropdown__container {
text-align: left;
}
}
|