Skip to content

Commit cf567e0

Browse files
committed
nasty hack for CSS
1 parent a54a4e8 commit cf567e0

File tree

2 files changed

+111
-1
lines changed

2 files changed

+111
-1
lines changed

_layouts/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
1212
<title>{% if page.title != "code52" %}{{ page.title }} - code52{% else %}{{ page.title }}{% endif %}</title>
13-
<link rel="stylesheet" type="text/css" href="/css/style.css" />
13+
<link rel="stylesheet" type="text/css" href="/css/style_2.css" />
1414
<link rel="shortcut icon" href="/img/favicon.ico" />
1515
</head>
1616
<body>

css/style_2.css

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
body
2+
{
3+
font-family: Segoe UI, sans-serif;
4+
margin-left:auto;
5+
margin-right: auto;
6+
width:1100px;
7+
}
8+
h1,h2,h3,h4,h5,h6
9+
{
10+
font-family: Segoe UI Light, Segoe WP Light, Segoe UI, Helvetica, sans-serif;
11+
font-weight: lighter;
12+
margin-bottom:0px;
13+
}
14+
h1
15+
{
16+
font-size: 4em;
17+
}
18+
h2
19+
{
20+
font-size: 2.5em;
21+
}
22+
a, a:visited
23+
{
24+
text-decoration: none;
25+
color:#13678b;
26+
}
27+
a:hover
28+
{
29+
color:white;
30+
background: #13678b
31+
}
32+
ul
33+
{
34+
margin:0;
35+
padding:0;
36+
}
37+
li
38+
{
39+
margin:0;
40+
padding:0;
41+
list-style-type:none;
42+
}
43+
.entry ul, .idea ul
44+
{
45+
margin-left:10px;
46+
}
47+
.entry li, .idea li
48+
{
49+
margin-left:10px;
50+
list-style-type:circle;
51+
}
52+
#hometext a { font-size: 2em; margin-left: 5px; margin-right:10px; display: none; color: #41B1E1; font-weight: normal; }
53+
#home:hover
54+
{
55+
background:none;
56+
}
57+
#side
58+
{
59+
float:right;
60+
color: #41b1e1;
61+
margin-left:50px;
62+
}
63+
#side .section
64+
{
65+
margin-top:50px;
66+
margin-bottom: 50px;
67+
padding:0;
68+
}
69+
#side .section ul
70+
{
71+
font-size:2em;
72+
}
73+
#content
74+
{
75+
width:auto;
76+
}
77+
img
78+
{
79+
width: auto !important;
80+
height: auto !important;
81+
max-width: 100%;
82+
border: none;
83+
}
84+
.postdate
85+
{
86+
font-size: 0.8em;
87+
font-weight: bold;
88+
}
89+
.idea h1, .entry h1
90+
{
91+
margin-bottom: 5px;
92+
}
93+
94+
/* min-device-width: 800px instead? */
95+
@media screen and (max-width:900px)
96+
{
97+
body { width:auto; margin:10px; }
98+
#content { width : 100%; }
99+
#side { float:none; width:100%; margin-left:0px; }
100+
#side .section { margin-top:0; margin-right: 30px; }
101+
#side .section ul { font-size:1.2em; padding:0px; margin:5px; }
102+
#side li { display: inline; margin-left:3px; margin-right: 3px; font-weight: normal; }
103+
#home { display: none; }
104+
#hometext a { display: inline; }
105+
h1 { margin-top: -0px;}
106+
}
107+
108+
#suggest { color: orange; }
109+
#suggest:hover { color:white;
110+
background: orange }

0 commit comments

Comments
 (0)