summaryrefslogtreecommitdiffstats
path: root/public/css/markdown.less
blob: bebede58e5a77f07e5cbd88d3d496a7aa850a4e8 (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
71
72
73
74
75
76
77
78
79
80
.markdown {
  > p,
  > hr,
  > ul,
  > ol,
  > table,
  > pre,
  > blockquote,
  li > ul,
  li > ol {
    margin: 1em 0 1em 0;

    &:first-child {
      margin-top: 0;
    }
  }

  p {
    &:last-child {
      margin-bottom: 0;
    }
  }

  img {
    max-width: 100%;
    height: auto;
  }

  a {
    border-bottom: 1px dotted @text-color-light;

    &:hover, &:focus {
      border-bottom: 1px solid @text-color;
      text-decoration: none;
    }

    img {
      max-width: 32em;
    }

    &.with-thumbnail {
      img {
        padding: 1px;
      }

      &:hover, &:focus {
        img {
          padding: 0;
        }
      }
    }
  }

  table {
    border-collapse: collapse;

    th {
      text-align: left;
      background-color: @gray-lighter;
    }

    &, th, td {
      border: 1px solid;
      border-color: @gray-light;
    }
  }
}

.markdown.inline {
  img {
    max-height: 100%;
    vertical-align: middle;
  }

  a.with-thumbnail {
    &, &:hover, &:focus {
      border-bottom: none;
    }
  }
}