Skip to content

Commit ec0f776

Browse files
kwiatodgarcia360
andauthored
Menu indent fix (#1441)
Co-authored-by: David Garcia <david@techdocs.studio>
1 parent 8a55c4f commit ec0f776

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed

sphinx_scylladb_theme/static/css/main.css

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

src/css/base/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $danger: #CE291F;
3737
$link-color: #3C4FE0;
3838
$text-muted: $gray-500;
3939
$text-color: $black;
40-
$border-color: #F1F1F1;
40+
$border-color: $gray-300;
4141
$header-border: #4458A3;
4242
$bg-color: #FEFEFE;
4343
$well-bg: #F7F8F9;

src/css/components/_side-nav.scss

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
}
2727

2828
&__title {
29-
box-shadow: 0 0 $spacer-md 0 var(--brand-product);
3029
position: sticky;
3130
top: 0;
3231
z-index: 100;
@@ -63,8 +62,14 @@
6362
.toctree-l1 {
6463

6564
&:not(.has-children) {
66-
&>a{
67-
margin-left: $spacer;
65+
display: flex;
66+
67+
&::before {
68+
content: '';
69+
width: $spacer;
70+
text-align: center;
71+
align-self: center;
72+
opacity: .4;
6873
}
6974
}
7075

@@ -92,6 +97,17 @@
9297
padding-left: math.div($spacer-sm, 2);
9398
border-left-color: var(--border-color);
9499
}
100+
101+
&:not(.has-children) {
102+
display: flex;
103+
&::before {
104+
content: '';
105+
width: $spacer-sm;
106+
text-align: center;
107+
align-self: center;
108+
opacity: .3;
109+
}
110+
}
95111
}
96112

97113
.toctree-l3 {
@@ -111,6 +127,8 @@
111127
ul {
112128
order: 3;
113129
}
130+
131+
114132
}
115133

116134
/* Override icons extension */
@@ -225,7 +243,7 @@
225243
width: 100%;
226244
border-left: 1px solid var(--link-color);
227245
margin-left: math.div($spacer, 2);
228-
padding-left: math.div($spacer, 2);
246+
padding-left: math.div($spacer-sm, 2);
229247
gap: $spacer-3xs;
230248

231249
li {
@@ -324,6 +342,10 @@
324342
}
325343
}
326344

345+
.side-nav-content {
346+
background: radial-gradient(100% 100px at top center, var(--brand-product) 0px, transparent 100%);
347+
}
348+
327349
@media screen and (min-width: $xlarge) {
328350
.side-nav {
329351
width: $side-nav-width;

0 commit comments

Comments
 (0)