Skip to content

Commit 2cc9435

Browse files
authored
Merge pull request cockroachdb#3404 from cockroachdb/refactor_no-toc_layouts
remove TOC column if no TOC
2 parents 29ac2f8 + b84570c commit 2cc9435

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

_layouts/default.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
<div class="content-col no-sidebar">
1616
{% else %}
1717
{% include sidebar.html %}
18-
<div class="content-col {% if page.url == '/' %}content-col--landing{% endif %}">
18+
<div class="content-col {% if page.url == '/' %}content-col--landing{% endif %} {% if page.toc != true %}no-toc{% endif %}">
1919
{% endif %}
2020
{{content}}
2121
</div>
22-
<div class="toc-col">
23-
{% if page.toc == true %}
22+
{% if page.toc == true %}
23+
<div class="toc-col">
2424
<div id="toc-right"></div>
25-
{% endif %}
26-
</div>
25+
</div>
26+
{% endif %}
2727
</div>
2828
</div>
2929
{% include footer.html %}

css/components/_filtertabs.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,10 @@
175175

176176
@media (min-width: 700px) {
177177
#os-tabs {
178+
178179
button {
179180
width: 140px;
181+
margin: 0 10px 15px 0;
180182

181183
&:before {
182184
font-family: 'FontAwesome';
@@ -187,29 +189,28 @@
187189
}
188190

189191
&#mac {
190-
margin: 0 2% 2% 0;
192+
191193
&:before {
192194
content: "\f179";
193-
}
195+
}
194196
}
195197

196198
&#linux {
197-
margin: 0 2% 2% 0;
198199

199200
&:before {
200201
content: "\f17c";
201-
}
202+
}
202203
}
203204

204205
&#windows {
205-
margin: 0 2% 0 0;
206+
206207
&:before {
207208
content: "\f17a";
208-
}
209+
}
209210
}
210211

211212
&#source {
212-
margin: 0 2% 0 0;
213+
213214
&:before {
214215
content: "\f1c6";
215216
}

css/customstyles.css

Lines changed: 13 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/customstyles.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/layouts/_content.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
&.no-sidebar {
3535
padding-left: 30px;
3636
}
37+
38+
&.no-toc {
39+
padding-right: 15px;
40+
}
3741
}
3842

3943
&--landing {

0 commit comments

Comments
 (0)