aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/less/api-documentation.less
blob: d73a319aec8ca6a32218d9e79ffa2e34c6483b9e (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
@import (reference) "variables";
@import (reference) "mixins";
@import (reference) "navigator/config";

@apiDocumentationSidebarWidth: 230px;

.api-documentation-navigator {

  .navigator-side {
    display: table-cell;
    vertical-align: top;
    width: @apiDocumentationSidebarWidth + 2 * @navigatorPadding;
    min-width: 0;
  }

  .navigator-header {
    margin-left: 0;
    .spinner { margin-top: 9px; }
  }

  .navigator-actions {
    height: @navigatorHeaderHeight;
    width: @apiDocumentationSidebarWidth;
    margin: @navigatorPadding;
    padding: 0 @navigatorPadding;

    .navigator-header-title {
      color: @baseFontColor;
      font-size: 13px;
      font-weight: bold;
      text-transform: uppercase;
    }
  }

  .api-documentation-show-internals {
    margin: @navigatorPadding;
    padding: 0 @navigatorPadding;
  }

  .navigator-results {
    width: @apiDocumentationSidebarWidth;
    min-width: 0;
  }

  .navigator-details { margin-left: 0; }

  .internal {
    color: @navigatorBarBackground;
    background-color: rgb(127, 127, 127);
    border-radius: 2px;
    padding: 1px 5px;
  }
}


.api-documentation-nav {

  .navigator-results-list {

    & > li {
      border-color: transparent;

      &:hover:not(.active):not(.empty) {
        background-color: @navigatorBarBackground;
      }

      &.active {
        border-color: #4B9FD5;
      }

      &.empty {
        cursor: default;
      }

      .line {
        padding-top: 2px;
        padding-bottom: 2px;
      }
    }
  }
}

.api-documentation-actions {
  margin-top: 10px;
  margin-left: 5px;

  ol {
    li {
      list-style: decimal;
      margin-left: 2em;
    }
  }

  .api-documentation-action {
    margin-top: 30px;

    & > p, & > h3 {
      margin-top: 5px;
    }

    table {
      width: 100%;

      tr {
        border-top: 1px solid @navigatorBorderLightColor;

        td {
          padding: 10px 0 10px 5px;
          margin: 5px;
          vertical-align: top;

          ul {
            li {
              list-style: square;
              margin-left: 2em;
            }
          }

          ul.possible-values {
            display: inline;

            li {
              display: inline;
              margin: 0;

              &:before {
                content: ', '
              }

              &:first-child:before {
                content: ''
              }
            }
          }
        }
      }
    }

    .example-response {
      text-decoration: underline;
    }

    .example-response-content {
      margin: 10px 0;
      padding: 5px;
      background-color: @navigatorBarBackground;
      border: 1px solid @navigatorBorderLightColor;

      code {
        white-space: pre-wrap;
      }
    }
  }
}