Skip to content

Commit e55e277

Browse files
committed
fix: .section is now section in Sphinx 4.0
1 parent 91521ce commit e55e277

5 files changed

Lines changed: 82 additions & 84 deletions

File tree

poetry.lock

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

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/components/_content.scss

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
.layout {
2+
display: flex;
3+
}
4+
5+
.pre-content {
6+
display: flex;
7+
align-items: center;
8+
justify-content: space-between;
9+
margin-bottom: 20px;
10+
}
11+
112
.content {
213
overflow-wrap: break-word;
314
padding: 20px;
@@ -43,7 +54,7 @@
4354
margin-bottom: $gap;
4455
}
4556

46-
.section {
57+
section {
4758
margin-top: -$header-height;
4859
padding-top: $header-height;
4960
}
@@ -53,6 +64,41 @@
5364
}
5465
}
5566

67+
.layout--full-width .content {
68+
width: 100%;
69+
max-width: 100%;
70+
padding: 0;
71+
72+
.topics-grid {
73+
max-width: $max-full-width;
74+
}
75+
76+
.hero-wrapper {
77+
max-width: $max-full-width;
78+
}
79+
80+
&.content--collapsed {
81+
margin-left: 0;
82+
}
83+
}
84+
85+
.layout--full-width:not(.layout--sidebar) .content {
86+
margin-left: 0;
87+
}
88+
89+
.layout--has-banner .content {
90+
scroll-margin-top: $promo-banner-header-height;
91+
92+
section {
93+
margin-top: -$promo-banner-header-height;
94+
padding-top: $promo-banner-header-height;
95+
}
96+
}
97+
98+
.landing__content {
99+
padding: 0 16px;
100+
}
101+
56102
@media screen and (min-width: $large) {
57103
.content {
58104
min-height: calc(100vh - (#{$footer-height} + #{$header-height-large}));
@@ -62,7 +108,7 @@
62108
scroll-margin-top: $header-height-large;
63109
width: calc(100% - #{$secondary-side-nav-width});
64110

65-
.section {
111+
section {
66112
margin-top: -$header-height-large;
67113
padding-top: $header-height-large;
68114
}
@@ -83,4 +129,30 @@
83129
);
84130
}
85131
}
132+
133+
.pre-content {
134+
margin-bottom: 10px;
135+
}
136+
137+
.layout--has-banner .content {
138+
scroll-margin-top: $promo-banner-header-height-large;
139+
140+
section {
141+
margin-top: -$promo-banner-header-height-large;
142+
padding-top: $promo-banner-header-height-large;
143+
}
144+
}
145+
146+
.landing {
147+
&__content {
148+
padding: 0 60px;
149+
}
150+
151+
&--floating {
152+
.landing__content {
153+
position: relative;
154+
top: -70px;
155+
}
156+
}
157+
}
86158
}

src/css/components/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
@import "content";
1414
@import "toc-local";
1515
@import "footer";
16-
@import "layout";
1716

1817
/* Extensions */
1918
@import "admonitions";

src/css/components/_layout.scss

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)