This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 681
/
structure.styl
77 lines (63 loc) · 1.61 KB
/
structure.styl
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
/* wiki structure */
.wiki-main-content {
background: #fff;
min-height: 300px;
.center {
remove-center-spacing();
}
}
/* the subnav and quick link column of the layout */
#wiki-left {
position: relative;
}
/* set minimum heights on main columns */
#wiki-right, #wiki-left, #wiki-content {
min-height: 1px; /* ensures that when TOC becomes fixed, the column has width */
}
/* adjustments to columns based on show/hide and media query */
#wiki-column-container.wiki-right-closed #wiki-content,
#wiki-column-container.wiki-left-closed #wiki-content {
@extend $column-9;
}
#wiki-column-container.wiki-right-closed.wiki-left-closed {
#wiki-content {
@extend $column-all;
float: none;
width: auto;
}
.column-container-reverse {
margin-left: 0;
}
}
@media $media-query-small-desktop {
/* when there's a left sidebar, we need to adjust the layout to look like: |= */
.wiki-left-present:not(.wiki-left-closed) {
#wiki-right, #wiki-content {
width: $grid-width-column-main;
margin-right: 0;
}
#wiki-right {
enable-toc-toggle();
padding-bottom: ($grid-spacing * 2);
}
#wiki-left {
float: none;
}
}
}
@media $media-query-tablet {
make-wiki-blocks-flat();
#wiki-right {
enable-toc-toggle();
}
#wiki-column-container, #wiki-content {
width: auto !important;
}
}
/* print styling */
@media print {
/* hide sections not important to the article */
#wiki-left, #wiki-right {
display: none;
}
}