aboutsummaryrefslogtreecommitdiff
path: root/sass/include/_zola.scss
blob: 7ce0534ae814be8fe2e7a44f028a7d398563877f (plain)
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
.sum {margin: .2rem 0}
.s95 {font-size: .95em}
.s90 {font-size: .90em}
.s85 {font-size: .85em}
.s80 {font-size: .80em}
.s75 {font-size: .75em}
.s70 {font-size: .70em}
.hpad {padding: 0 .2rem}
.rpad {padding-right: .2rem}
pre code[data-lang]::before {
    content: ' ' attr(data-lang) ': ' "
";
	color: var(--a1);
}
// code copy wrapper
.ccw {
  position: relative;
}
// code copy button
.cc {
  z-index: 9;
  position: absolute;
  right: 0px;
  font-size: .8rem;
}

// Mark Override, this is used for Zola's linenos and hl_lines
:root:not(.light) code table {
  mark {
    filter: brightness(120%);
  }
}
// Table Override, this is used for Zola's linenos and hl_lines
code table {
  font-size: .8rem;
  td, th, tr {
    padding: 0;
    border-bottom: none;
  }
  tbody tr td:first-child {
    text-align: center;
    user-select: none;
    min-width: 60px;
  }
  tbody tr:nth-child(even), thead tr {
    background-color: unset;
  }
  // Highlighted text
  mark {
    display: block;
    background-color: var(--c2);
    color: unset;
    padding: 0;
  }
}