summaryrefslogtreecommitdiff
path: root/app/views/pages/technology/infosec/table-style.haml
blob: c9a3495aab3466266abf985c8f65b14a86e15e43 (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
%style
  :sass
    table.properties
      td
        vertical-align: top
        padding-bottom: 0.75em
      th
        vertical-align: top
        padding-right: 1em
        text-align: right
        font-weight: normal
        font-style: italic

    table.infosec
      width: 100%
      border-collapse: collapse
      tbody
        border-top: 1px solid black
        border-bottom: 1px solid black
      th span.normal
        font-weight: normal
      th.first, th.second, th.cell
        width: 14.285714286%
      th.spacer, td.spacer
        width: 1px !important
        padding: 0 !important
        background: black
        // border: 1px dotted black
        //border: 0 !important
      //th.second
      //  width: 0%
      //th.cell
      //  width: 20%
      td.cell
        border-top: 1px solid black
        border-bottom: 1px solid black
        //border-right: 1px dotted rgba(0,0,0,.1)
        border-left: 1px dotted rgba(0,0,0,.1)
        text-align: center
        padding: 4px
        &.none
          //background-color: #ccc
          background: #888
        &.low, &.lower, &.worse
          //background-color: #FFCCCC
          background: #aaa
        &.medium, &.higher
          //background-color: #FFFFCC
          background: #ccc
        &.high, &.better
          //background-color: #CCFFCC
          background: #e6e6e6
        &.better, &.worse
          font-weight: bold
      tr.footer td
        border-left: 1px dotted rgba(0,0,0,.1)
        text-align: center
        font-size: 0.8em