~sirn/fanboi2

ref: 5b482cfc1bfb0bb1e89715cb57c7bac864391768 fanboi2/assets/app/stylesheets/api.scss -rw-r--r-- 2.6 KiB
5b482cfcKridsada Thanabulpong 0.30.0 3 years ago
                                                                                
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
@import "variables";
@import "mixins";

/* API section
 * ------------------------------------------------------------------------ */

.api-section {
}

.api-request {
    padding: $spacing-vertical-large 0;
}

.api-request-title {
    font-size: $font-size-large;
    line-height: $font-size-large;
    margin: 0 0 $spacing-vertical;
}

.api-request-name {
    font-size: $font-size-small;
    line-height: $font-size-small;
}

.api-request-endpoint {
    border-bottom: 1px solid;
    margin: 0 0 $spacing-vertical;
    padding: 0 0 $spacing-vertical-large;
}

.api-request-verb {
    font-size: $font-size-small;
    line-height: $font-size-small;
    padding: $spacing-vertical-small $spacing-horizontal-small;

    &.get {
    }

    &.post {
    }
}

.api-request-body {
    margin: 0 0 (-$spacing-vertical);

    p {
        line-height: $line-height-content;
        margin: 0 0 $spacing-vertical;
    }

    table {
        margin: 0 0 $spacing-vertical;
    }
}

.api-response {
    border-bottom: 1px solid;
    padding: $spacing-vertical-large 0;
}

.api-response-title {
    font-size: $font-size;
    line-height: $font-size;
    margin: 0 0 $spacing-vertical-small;
}

.api-response-body {
    @extend .api-request-body;
}

/* API table
 * ------------------------------------------------------------------------ */

.api-table {
    border: 1px solid;
    border-bottom: none;
    display: block;
    font-size: $font-size-small;
    line-height: $font-size-small;
    margin: 0 0 $spacing-vertical;
    max-width: 100%;
    width: 100%;

    @media (min-width: $bound-tablet) {
        display: table;
        table-layout: fixed;
    }
}

.api-table-header {
    display: none;

    @media (min-width: $bound-tablet) {
        display: table-row-group;

        .lead { width: 120px; }
        .sublead { width: 80px; }
    }
}

.api-table-body {
    display: block;

    @media (min-width: $bound-tablet) {
        display: table-row-group;
    }
}

.api-table-row {
    display: block;
    margin: 0;
    width: 100%;

    @media (min-width: $bound-tablet) {
        display: table-row;
        width: auto;
    }
}

.api-table-item {
    border-bottom: 1px solid;
    box-sizing: border-box;
    display: block;
    line-height: $line-height-content;
    overflow-x: auto;
    padding: $spacing-vertical-small $spacing-horizontal-small;

    ul,
    p {
        margin: 0 0 $spacing-vertical-small;
    }

    &.title {
        line-height: $line-height-content;
        text-align: left;
    }

    @media (min-width: $bound-tablet) {
        display: table-cell;
        vertical-align: top;
    }
}