Skip to content

Commit 4755d79

Browse files
css should be more responsive now
1 parent c049c81 commit 4755d79

File tree

4 files changed

+44
-33
lines changed

4 files changed

+44
-33
lines changed

assets/main.css

+36-25
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ body {
1111
}
1212

1313
main {
14-
margin: 0 .5rem;
15-
font-size: 1.2rem;
14+
margin: 0 .5em;
15+
font-size: 1.2em;
1616
}
1717

1818
h1 {
1919
font-family: serif;
2020
font-style: italic;
2121
text-align:center;
22-
font-size: 3rem;
22+
font-size: 3em;
2323
margin-bottom: 0;
2424
}
2525

2626
h2 {
2727
font-family: serif;
2828
font-style: italic;
2929
text-align:center;
30-
font-size: 1.5rem;
30+
font-size: 1.5em;
3131
margin-left: 5%;
3232
margin-right: 5%;
3333
}
@@ -44,8 +44,6 @@ li {
4444
}
4545

4646
.code {
47-
margin-left: 1.5rem;
48-
font-size: 3vw;
4947
display: block;
5048
}
5149

@@ -65,23 +63,36 @@ pre code {
6563
}
6664

6765
@media (min-width: 850px) {
68-
main {
69-
max-width: 70%;
70-
margin: auto;
71-
}
72-
h1 {
73-
font-size: 5rem;
74-
}
75-
h2 {
76-
font-size: 2rem;
77-
}
78-
code {
79-
font-size: 1.2rem;
80-
}
81-
pre code {
82-
font-size: 1.6rem;
83-
}
84-
.code {
85-
margin-left: 5rem;
86-
}
66+
main {
67+
max-width: 850px;
68+
margin: auto;
69+
}
70+
h1 {
71+
font-size: 5em;
72+
}
73+
h2 {
74+
font-size: 2em;
75+
}
76+
code {
77+
font-size: 1.2em;
78+
}
79+
pre code {
80+
font-size: 1.2em;
81+
}
82+
.code {
83+
margin-left: 5em;
84+
}
85+
}
86+
87+
@media (max-width: 850px) {
88+
h1 {
89+
font-size: 3em;
90+
}
91+
h2 {
92+
font-size: 1.2em;
93+
}
94+
.code {
95+
font-size: 3.5vw;
96+
margin-left: 1.5em;
97+
}
8798
}

public/index.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
33
<channel>
44
<title>About on Cognate: Readable and concise concatenative programming</title>
5-
<link>https://cognate-lang.github.io/</link>
5+
<link>http://localhost:1313/</link>
66
<description>Recent content in About on Cognate: Readable and concise concatenative programming</description>
77
<generator>Hugo</generator>
88
<language>en-us</language>
9-
<atom:link href="https://cognate-lang.github.io/index.xml" rel="self" type="application/rss+xml" />
9+
<atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
1010
<item>
1111
<title>Learn Cognate</title>
12-
<link>https://cognate-lang.github.io/learn/</link>
12+
<link>http://localhost:1313/learn/</link>
1313
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
14-
<guid>https://cognate-lang.github.io/learn/</guid>
14+
<guid>http://localhost:1313/learn/</guid>
1515
<description>Learn Cognate A brief introduction to the language Install First install CognaC the Cognate Compiler from here using the provided instructions. Currently CognaC will run on recent Linux or Mac systems. Windows users can install it onto the Windows Subsystem for Linux &amp;ndash; native Windows support is planned.&#xA;Invoking CognaC is simple. If you have a file named foo.cog containing a Cognate program, it can be compiled into an executable named foo with the following command.</description>
1616
</item>
1717
<item>
1818
<title>Prelude</title>
19-
<link>https://cognate-lang.github.io/reference/prelude/</link>
19+
<link>http://localhost:1313/reference/prelude/</link>
2020
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
21-
<guid>https://cognate-lang.github.io/reference/prelude/</guid>
21+
<guid>http://localhost:1313/reference/prelude/</guid>
2222
<description>Prelude Drop Discard the top stack item.&#xA;Print Drop &#34;foo&#34; &#34;bar&#34;; Source Def Drop as ( Let X ); Swap Swaps the top two stack items.&#xA;Print Swap 1 2; Source Def Swap as ( Let X ; Let Y ; Y X ); Do Execute a block.&#xA;Do ( Print &#34;hello world!&#34; ); Source Def Do as ( Def F ; F ); Any? Takes a parameter of any type and returns True</description>
2323
</item>
2424
</channel>

public/main.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/reference/prelude/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
<!doctype html>
33
<html>
4-
<head>
4+
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link rel="stylesheet" href="/main.min.css" />

0 commit comments

Comments
 (0)