aboutsummaryrefslogtreecommitdiff
path: root/sass/include/_zola.scss
blob: 2dd0b705dc30cdc4c42d0375195c78d1fabd32d5 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/**
 * Zola Specific
 */
.sum, .sum p {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}
.si {
  font-size: 1.5em
}
pre code[data-lang]::before {
  color: var(--f1);
  text-transform: uppercase;
  content: ' [' attr(data-lang) '] ' "\a\a";
}
// code copy wrapper
.ccw {
  position: relative;
}
.ccw:hover {
  .cc {
    opacity: 1;
  }
}
// code copy button
.cc {
  opacity: 0;
  z-index: 9;
  position: absolute;
  right: 9px;
  top: 9px;
  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;
    margin: 0;
    // Highlighted text
    mark {
      display: block;
      background-color: var(--c2);
      color: unset;
      padding: 0;
    }
  }
  td, th, tr {
    padding: 0;
    border-bottom: none;
  }
  tbody td:first-child {
    text-align: center;
    user-select: none;
    min-width: 60px;
  }
  tbody tr:nth-child(even), thead tr {
    background-color: unset;
  }
}