Skip to content

Commit 164e7e5

Browse files
author
aeoth
committed
mobile friendly
1 parent cdcc842 commit 164e7e5

File tree

6 files changed

+44
-7
lines changed

6 files changed

+44
-7
lines changed

_layouts/layout.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<body>
1010
<div id="container">
1111
<div id="side">
12-
code
1312
<h1>52</h1>
1413
<h2>a new coding project every week</h2>
1514

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1> {{page.title}} </h1>
99
<li><a href="/tag/{{ tag }}">{{ tag }}</a></li>
1010
{% endfor %}
1111

12-
<a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-via="aeoth">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
12+
<a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-via="code52org">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
1313
</span>
1414
{{ content }}
1515
</div>

_site/css/style.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
11
body{ font-family: Segoe UI, sans-serif; margin-left:auto; margin-right: auto; width:1100px; }
22
h1,h2,h3,h4,h5,h6{ font-weight:lighter; }
33
a, a:visited { text-decoration: none; color:#13678b;}
4+
a:hover { color:white; background: #13678b}
45
ul { margin:0; padding:0;}
56
li { margin:0; padding:0; list-style-type:none;}
67

78
#side { float:right;color: #41b1e1; width:40%;}
89
#side h1 { margin-left:0; font-size:25em; margin-left:-40px; margin-top:-70px; margin-bottom:0px; line-height:1em;}
910
#side h2 { margin-left:0; margin-left:-15px; margin-top:-20px; margin-bottom:0px; line-height:1em; font-size:3em;}
1011
#side ul { margin-left:-10px; margin-top:50px; font-size:2em; padding:0;}
11-
#content { width:50%;}
12+
#content { width:50%;}
13+
img
14+
{
15+
width: auto !important;
16+
height: auto !important;
17+
max-width: 100%;
18+
border: none;
19+
}
20+
21+
/* mostly phones that are under 600px, so these should be safe */
22+
@media screen and (max-width:600px)
23+
{
24+
body { width:100%; margin:10px; }
25+
#content { width : 100%; }
26+
#side { float:none; width:100%;}
27+
#side h1 { font-size:4em; margin:0;}
28+
#side h2 { font-size:1.5em; margin:0;}
29+
#side ul { font-size:1em; padding:0px; margin:0px; margin-top:20px;}
30+
#side li { display:inline; }
31+
}

_site/idea1.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<body>
1010
<div id="container">
1111
<div id="side">
12-
code
1312
<h1>52</h1>
1413
<h2>a new coding project every week</h2>
1514

@@ -26,7 +25,7 @@ <h1> Idea 1: Cupcake ipsum dolor sit amet marshmallow. </h1>
2625
<span class="postdate">14 December, 2011
2726

2827

29-
<a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-via="aeoth">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
28+
<a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-via="code52org">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
3029
</span>
3130
<p>Chocolate bear claw I love. Cotton candy sesame snaps gingerbread chocolate. Candy toffee sweet gummi bears cheesecake chocolate bar cotton candy tart danish. I love I love I love I love sweet I love lollipop I love. Pudding ice cream halvah muffin chupa chups powder. Pie chocolate cake donut ice cream jelly ice cream macaroon topping sesame snaps. Ice cream I love jujubes applicake sweet roll liquorice. Pastry icing biscuit faworki. Chocolate bar cupcake cupcake soufflé I love. Macaroon chupa chups I love chocolate bar candy canes wafer jelly sweet tiramisu. Sesame snaps fruitcake chocolate donut sweet tiramisu. Jelly beans pastry applicake powder marzipan I love.</p>
3231

_site/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<body>
1010
<div id="container">
1111
<div id="side">
12-
code
1312
<h1>52</h1>
1413
<h2>a new coding project every week</h2>
1514

css/style.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
11
body{ font-family: Segoe UI, sans-serif; margin-left:auto; margin-right: auto; width:1100px; }
22
h1,h2,h3,h4,h5,h6{ font-weight:lighter; }
33
a, a:visited { text-decoration: none; color:#13678b;}
4+
a:hover { color:white; background: #13678b}
45
ul { margin:0; padding:0;}
56
li { margin:0; padding:0; list-style-type:none;}
67

78
#side { float:right;color: #41b1e1; width:40%;}
89
#side h1 { margin-left:0; font-size:25em; margin-left:-40px; margin-top:-70px; margin-bottom:0px; line-height:1em;}
910
#side h2 { margin-left:0; margin-left:-15px; margin-top:-20px; margin-bottom:0px; line-height:1em; font-size:3em;}
1011
#side ul { margin-left:-10px; margin-top:50px; font-size:2em; padding:0;}
11-
#content { width:50%;}
12+
#content { width:50%;}
13+
img
14+
{
15+
width: auto !important;
16+
height: auto !important;
17+
max-width: 100%;
18+
border: none;
19+
}
20+
21+
/* mostly phones that are under 600px, so these should be safe */
22+
@media screen and (max-width:600px)
23+
{
24+
body { width:100%; margin:10px; }
25+
#content { width : 100%; }
26+
#side { float:none; width:100%;}
27+
#side h1 { font-size:4em; margin:0;}
28+
#side h2 { font-size:1.5em; margin:0;}
29+
#side ul { font-size:1em; padding:0px; margin:0px; margin-top:20px;}
30+
#side li { display:inline; }
31+
}

0 commit comments

Comments
 (0)