Summary Files Commits Branches @commit @diff @stats
path: root / src / codes.less
blob: 048ceb32289821e744cc58e6a3142082bdeb0d2d (plain) (blame)
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
// Codes
code {
  background: @bg-color;
  color: @code-color;
  .label-base();
}

.code {
  border-radius: @border-radius;
  color: @gray-color-dark;
  line-height: 2rem;
  position: relative;

  &::before {
    content: attr(data-lang);
    color: @gray-color-light;
    font-size: @font-size-sm;
    position: absolute;
    right: 1rem;
    top: .2rem;
  }

  code {
    color: inherit;
    display: block;
    line-height: inherit;
    overflow-x: auto;
    padding: 2rem;
    width: 100%;
  }
}