xref: /template/sprintdoc/css/area_nav-metabox.less (revision 2d623f4b2e20ce31c0d368a026d4d38885e0fb66)
1#spr__meta-box {
2    .display-flex();
3    .flex-direction();
4    .justify-content(flex-end);
5
6    position: relative;
7    z-index: 10;
8    float: right;
9    max-width: 40%;
10    margin-top: -(@page_padding-top); // reverse padding-top of .page container
11    margin-right: -1px;
12
13    // >= 1024
14    @media @screen_min-md {
15        height: @page-header_height;
16        border: 1px solid transparent;
17    }
18
19    // < 1024
20    @media @screen_max-md {
21        position: relative;
22        top: .2rem;
23        right: auto;
24        float: none;
25        display: block;
26        max-width: 100%;
27        min-height: @page-header_height;
28        height: auto;
29        border: 0 none;
30    }
31
32    .tab-container {
33        display: table;
34
35        @media @screen_max-md {
36            display: block;
37            width: 100%;
38        }
39    }
40
41    .box-content {
42        position: relative;
43        height: 0;
44        overflow-y: visible;
45    }
46
47    ul.meta-tabs {
48        list-style: none;
49        line-height: 160%;
50        margin: 0;
51        padding: 0;
52
53        @media @screen_min-md {
54            white-space: nowrap;
55            text-align: right;
56        }
57
58        &::before,
59        &::after {
60            content: '';
61            clear: both;
62            display: table;
63            box-sizing: border-box;
64        }
65
66        > li:first-child {
67            > a {
68                margin-left: 0;
69            }
70        }
71
72        > li {
73            position: relative;
74            display: inline-block;
75            vertical-align: bottom;
76            margin: 0;
77
78            @media @screen_min-md {
79                margin-left: .3rem;
80            }
81
82            @media @screen_max-md {
83                margin-right: .4rem;
84                margin-bottom: .2rem;
85            }
86
87            > a {
88                cursor: pointer;
89                position: relative;
90                display: block;
91                font-size: @font-size-small;
92                line-height: 1.42857143;
93                transition: @transition background-color, @transition border-color, @transition color;
94
95                @media @screen_min-md {
96                    background-color: @ini_background;
97                    border: 1px solid @noopentasks-border;
98                    border-radius: @ini_default_border_radius @ini_default_border_radius 0 0; // @ini_default_border_radius vs. @fix_border-radius
99                    color: @ini_nav_menu_color;
100                    margin-left: 4px;
101                    padding: .3em 1rem .1em;
102                }
103
104                @media @screen_max-md {
105                    top: 0;
106                    border: 1px solid @ini_existing;
107                    color: @ini_existing;
108                    margin-top: .2rem;
109                    margin-left: 0;
110                    padding: .2em .3rem;
111                }
112
113                * {
114                    cursor: pointer;
115                    color: inherit;
116                }
117
118                .prefix {
119                    position: relative;
120                    color: inherit;
121                    font-size: @font-size-small;
122                }
123
124                &:hover,
125                &:focus,
126                &:active {
127                    text-decoration: none;
128
129                    @media @screen_min-md {
130                        background-color: @ini_background_content;
131                        border-color: @ini_existing;
132                        color: @ini_existing;
133                    }
134
135                    @media @screen_max-md {
136                        background-color: @ini_existing;
137                        border-color: @ini_background_content;
138                        color: @ini_background_content;
139                    }
140                }
141            }
142
143            &.active {
144                z-index: 1;
145
146                > a {
147                    cursor: default;
148                    background-color: @ini_background_content;
149                    border-color: @ini_existing;
150                    border-bottom-color: @ini_background_content;
151                    color: @ini_existing;
152
153                    @media @screen_max-md {
154                        background-color: @ini_existing;
155                        border-bottom-color: @ini_existing;
156                        border-radius: 0;
157                        color: @ini_background_content;
158                    }
159                }
160            }
161        }
162    }
163
164    .meta-content {
165        margin-top: -1px;
166
167        @media @screen_max-md {
168            clear: both;
169            margin-top: 2px;
170        }
171
172        .tab-pane {
173            position: absolute;
174            top: 0;
175            right: 0;
176            display: none;
177            width: 100%;
178            background-color: @ini_background_content;
179            border: 1px solid @ini_existing;
180
181            @media @screen_min-xs {
182                min-width: 20em;
183            }
184
185            @media @screen_min-md {
186                border-radius: 0 0 @fix_border-radius @fix_border-radius; // @ini_default_border_radius vs. @fix_border-radius
187            }
188
189            &.active {
190                display: block;
191                overflow: hidden;
192            }
193
194            a {
195                color: @ini_existing;
196            }
197
198            > div {
199                font-size: @font-size-small;
200                padding: .8rem .5rem .5rem;
201
202                * {
203                    font-size: inherit;
204                }
205
206                p {
207                    padding-left: 1em;
208                }
209
210                ul {
211                    list-style: none;
212                    padding-left: 0;
213
214                    li {
215                        margin-left: 0;
216                        padding-left: 1em;
217                    }
218                }
219            }
220
221            &#spr__tab-tags {
222                > div {
223                    ul {
224                        li {
225                            padding-left: 0;
226                        }
227                    }
228                }
229            }
230
231            #dw__toc {
232                width: auto;
233                float: none;
234                margin: 0;
235                padding: .6rem .5rem .5rem .8rem;
236                background: transparent;
237                border: 0 none;
238
239                h3 {
240                    display: none;
241                }
242
243                > div {
244                    padding: 0;
245                }
246
247                > div ul.toc {
248                    font-size: @font-size-small;
249                    padding-left: .5em;
250
251                    a {
252                        font-size: @font-size-small;
253                        display: inline-block;
254                        padding-left: 10px;
255                        position: relative;
256                    }
257
258                    div.li {
259                        position: relative;
260                        padding: .15em 0;
261
262                        &::before {
263                            content: '';
264                            position: absolute;
265                            top: .6em;
266                            left: 0;
267                            display: inline-block;
268                            width: 4px;
269                            height: 4px;
270                            overflow: hidden;
271                            background-color: @ini_existing;
272                        }
273                    }
274                }
275
276                > div > ul.toc {
277                    padding: 0;
278                }
279            }
280        }
281    }
282
283    + .msg-area + a {
284        clear: right;
285        margin-top: 20px;
286    }
287}
288