Skip to content

Commit 75bd652

Browse files
committed
Add spacing for page navs
1 parent 149d975 commit 75bd652

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

addon/components/docs-viewer/x-main/styles.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1+
$bp: 1000px;
2+
13
.docs-viewer__main {
24
flex: 1;
35
overflow: scroll;
6+
7+
@media (min-width: $bp) {
8+
padding-left: 90px;
9+
padding-right: 90px;
10+
}
411
}
512

613
.docs-viewer__page-nav {
14+
@media (max-width: $bp - 1) {
15+
display: none;
16+
}
717
text-decoration: none;
818
position: absolute;
919
top: 0px;
1020
bottom: 0;
1121
margin: 0;
12-
max-width: 150px;
13-
min-width: 90px;
22+
width: 90px;
1423
display: flex;
1524
justify-content: center;
1625
align-items: center;
@@ -19,6 +28,7 @@
1928
color: #ccc;
2029
text-align: center;
2130
transition: all 0.15s;
31+
margin-left: -90px;
2232

2333
svg * {
2434
transition: all 0.15s;

tests/dummy/app/pods/docs/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{/viewer.nav}}
2020

2121
{{#viewer.main}}
22-
<div class="docs-container docs__center">
22+
<div class="docs-container">
2323
<div class="docs-section">
2424
{{outlet}}
2525
</div>

0 commit comments

Comments
 (0)