8000 Fix responsive around sidebar on blog (#8610) · ArduinoBot/website@3c1c581 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c1c581

Browse files
tnirk8s-ci-robot
authored andcommitted
Fix responsive around sidebar on blog (kubernetes#8610)
1 parent 474cf80 commit 3c1c581

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

layouts/blog/baseof.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<h1>Kubernetes Blog</h1>
1313
</section>
1414
<div class="container-fluid" style="padding-top: 2em">
15-
<div class="row blog-content">
16-
<div class="col-xs-10 col-sm-9 col-lg-9 text">
15+
<div class="row">
16+
<div class="col-xs-12 col-md-9 text blog-content">
1717
{{ block "main" . }}{{ end }}
1818
</div>
19-
<div class="col-xs-1 col-sm-1 col-sm-3 col-lg-3 text">
19+
<div class="col-xs-12 col-md-3 text">
2020
<div class="widget-content">
2121
{{ with .Site.Home.OutputFormats.Get "rss" -}}
2222
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}" title="{{ $.Site.Title }}">

static/css/blog.css

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55

66
/* Content
77
----------------------------------------------- */
8-
.container-fluid {
9-
padding: 0px;
10-
margin: 0px;
11-
padding-left: .01 em;
12-
}
138
body {
149
font: normal normal 16px 'Trebuchet MS', Trebuchet, Verdana, sans-serif;
1510
color: #666666;
@@ -147,9 +142,6 @@ div.header-try a {
147142
position: relative;
148143
left: 30%;
149144
}
150-
.pagination a {
151-
margin-right: 30%;
152-
}
153145
}
154146

155147
@media (min-width: 450px) {
@@ -164,13 +156,13 @@ div.header-try a {
164156
.main-outer {
165157
border-top: 0 solid transparent;
166158
}
167-
@media (min-width: 500px) {
159+
@media (min-width: 992px) {
168160
.blog-content {
169-
padding-left: 100px;
161+
padding-left: 50px;
170162
}
171163
}
172164

173-
@media (max-width: 499px) {
165+
@media (max-width: 991px) {
174166
.blog-content {
175167
padding-left: 20px;
176168
}
@@ -282,7 +274,7 @@ h3.post-title{
282274
position: relative;
283275
display: block;
284276
box-sizing: border-box;
285-
padding: 0 0 0 55px;
277+
padding: 0 0 0 15px;
286278
margin: 10px 0;
287279
line-height: 40px;
288280
white-space: nowrap;
@@ -384,6 +376,10 @@ body {
384376
margin-left: 1em;
385377
}
386378

379+
.blog-content .PageNavigation > ul.navigation, .blog-content .PageNavigation > ul.navigation > li {
380+
margin-left: auto;
381+
}
382+
387383
/* .blog-content .pagination {
388384
width: inherit;
389385
} */
@@ -488,6 +484,14 @@ img.big-img {
488484
width: 100%;
489485
}
490486

487+
.blog-content img {
488+
max-width: 100%;
489+
}
490+
491+
.blog-content .content {
492+
overflow-x: scroll;
493+
}
494+
491495
/* .content img {
492496
max-width: 100%;
493497
} */

0 commit comments

Comments
 (0)
0