Skip to content

Commit d31cf3f

Browse files
committed
Improve CSS for the content
1 parent a469d52 commit d31cf3f

File tree

2 files changed

+44
-43
lines changed

2 files changed

+44
-43
lines changed

_includes/themes/zeppelin/sideMenu.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<div class="row">
22
{% if page.menu %}
3-
<div class="sideMenu col-md-3">
3+
<div class="sideMenu col-sm-3">
44
{% assign pages_list = site.pages %}
55
{% assign group = page.menu %}
66
{% include JB/pages_list %}
77
</div>
8-
<div class="col-md-9">
8+
<div class="col-sm-9">
99
{{ content }}
1010
</div>
1111
{% else %}
12-
<div class="col-md-12">
12+
<div class="col-sm-12">
1313
{{ content }}
1414
</div>
1515
{% endif %}

assets/themes/zeppelin/css/style.css

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -142,19 +142,6 @@ body {
142142
background: #3071a9;
143143
}
144144

145-
@media (max-width: 768px) {
146-
.navbar-collapse.in {
147-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4);
148-
}
149-
150-
.bigFingerButton {
151-
margin-top: 12px;
152-
display: block;
153-
margin-right: auto;
154-
margin-left: auto;
155-
}
156-
}
157-
158145
.bigFingerButton {
159146
margin-right: 10px;
160147
}
@@ -233,15 +220,6 @@ body {
233220
margin-bottom: 0;
234221
}
235222

236-
@media screen and (min-width: 768px) {
237-
.carousel-indicators {
238-
margin-bottom: -60px;
239-
}
240-
.carousel-caption {
241-
padding-bottom: 60px;
242-
}
243-
}
244-
245223
/* screenshot img inside of doc */
246224
.screenshot {
247225
width: 800px;
@@ -260,29 +238,14 @@ body {
260238
/* Custom container */
261239
.content {
262240
word-wrap: break-word;
241+
max-width: 1024px;
242+
padding: 2rem 2rem;
243+
margin: 0 auto;
263244
}
264245
.content :first-child {
265246
margin-top: 0;
266247
}
267248

268-
@media screen and (min-width: 64em) {
269-
.content {
270-
max-width: 64em;
271-
padding: 2rem 6rem;
272-
margin: 0 auto;
273-
}
274-
}
275-
@media screen and (min-width: 42em) and (max-width: 64em) {
276-
.content {
277-
padding: 2rem 4rem;
278-
}
279-
}
280-
@media screen and (max-width: 42em) {
281-
.content {
282-
padding: 2rem 1rem;
283-
}
284-
}
285-
286249
/* <a> */
287250
.content a {
288251
color: #4183C4;
@@ -613,3 +576,41 @@ and (max-width: 1024px) {
613576
padding: 3px 10px 10px 10px;
614577
font-size: 13px;
615578
}
579+
580+
/*
581+
** Media Queries CSS
582+
*/
583+
584+
585+
586+
@media (max-width: 991px) {
587+
.navbar-inverse .navbar-brand {
588+
font-size: 28px;
589+
}
590+
}
591+
592+
@media (max-width: 768px) {
593+
.navbar-collapse.in {
594+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4);
595+
}
596+
597+
.bigFingerButton {
598+
margin-top: 12px;
599+
display: block;
600+
margin-right: auto;
601+
margin-left: auto;
602+
}
603+
604+
.sideMenu {
605+
margin-bottom: 15px;
606+
}
607+
}
608+
609+
@media screen and (min-width: 768px) {
610+
.carousel-indicators {
611+
margin-bottom: -60px;
612+
}
613+
.carousel-caption {
614+
padding-bottom: 60px;
615+
}
616+
}

0 commit comments

Comments
 (0)