12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- .example {
- padding: 2rem;
- margin: 1rem 0 2rem;
- border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color);
- border-radius: 3px 3px 0 0;
- position: relative;
- min-height: 12rem;
- display: flex;
- align-items: center;
- overflow-x: auto;
- }
- .example-centered {
- justify-content: center;
- .example-content {
- flex: 0 auto;
- }
- }
- .example-content {
- font-size: $font-size-base;
- line-height: $line-height-base;
- color: var(--#{$prefix}body-color);
- flex: 1;
- max-width: 100%;
- .page-header {
- margin-bottom: 0;
- }
- }
- .example-bg {
- background: $body-bg;
- }
- .example-code {
- margin: 2rem 0;
- border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color);
- border-top: none;
- pre {
- margin: 0;
- border: 0;
- border-radius: 0 0 3px 3px;
- }
- .example + & {
- margin-top: -2rem;
- }
- }
- .example-column {
- margin: 0 auto;
- > .card:last-of-type {
- margin-bottom: 0;
- }
- }
- .example-column-1 {
- max-width: 26rem;
- }
- .example-column-2 {
- max-width: 52rem;
- }
- .example-modal-backdrop {
- background: $modal-backdrop-bg;
- opacity: $modal-backdrop-opacity;
- position: absolute;
- width: 100%;
- left: 0;
- top: 0;
- height: 100%;
- border-radius: 2px 2px 0 0;
- }
|