_examples.scss 835 字节
Newer Older
C
chomik 已提交
1
.example {
C
codecalm 已提交
2
  padding: 2rem;
C
codecalm 已提交
3
  margin: 2rem 0;
C
chomik 已提交
4 5
  border: 1px solid $border-color;
  border-radius: 3px 3px 0 0;
C
codecalm 已提交
6 7 8 9 10 11

  min-height: 12rem;
  display: flex;
  align-items: center;
}

C
codecalm 已提交
12 13 14 15 16 17 18 19
.example-centered {
  justify-content: center;

  .example-content {
    flex: 0 auto;
  }
}

C
codecalm 已提交
20 21 22
.example-content {
  font-size: $font-size-base;
  flex: 1;
C
codecalm 已提交
23
  max-width: 100%;
C
chomik 已提交
24 25 26
}

.example-bg {
C
codecalm 已提交
27
  background: $body-bg;
C
chomik 已提交
28 29
}

C
codecalm 已提交
30
.example-code {
C
codecalm 已提交
31
  margin: 2rem 0;
C
chomik 已提交
32
  border-top: none;
C
codecalm 已提交
33 34 35 36 37

  pre {
    margin: 0;
    border-radius: 0 0 3px 3px;
  }
C
codecalm 已提交
38 39 40 41

  .example + & {
    margin-top: -2rem;
  }
C
chomik 已提交
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
}

.example-column {
  margin: 0 auto;

  > .card:last-of-type {
    margin-bottom: 0;
  }
}

.example-column-1 {
  max-width: 20rem;
}

.example-column-2 {
  max-width: 40rem;
}
C
codecalm 已提交
59 60 61 62 63 64 65

@include dark-mode {
  .example-code {
    border: 1px solid $border-color;
    border-top: none;
  }
}