Skip to content

Commit c4a10dc

Browse files
committed
Responsive title
1 parent 2d5b4f3 commit c4a10dc

2 files changed

Lines changed: 31 additions & 13 deletions

File tree

content/site.css

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,35 @@ a:focus {
5353
}
5454

5555
.site-header {
56-
margin-bottom: 4rem;
56+
margin-bottom: 4rem;
5757
}
5858

5959
.site-header::after {
60-
content: "";
61-
display: block;
62-
height: 200px;
63-
margin: 3rem auto 0 auto;
64-
background-image: url('/images/czech-python-user-group.png');
65-
background-image: url('/images/czech-python-user-group.svg');
66-
background-repeat: no-repeat;
67-
background-position: center;
68-
background-size: contain;
60+
content: "";
61+
display: block;
62+
height: 200px;
63+
margin: 3rem auto 0 auto;
64+
background-image: url('/images/czech-python-user-group.png');
65+
background-image: url('/images/czech-python-user-group.svg');
66+
background-repeat: no-repeat;
67+
background-position: center;
68+
background-size: contain;
69+
}
70+
71+
.site-header-title {
72+
max-width: 35rem;
73+
margin-left: auto;
74+
margin-right: auto;
75+
}
76+
77+
@media only screen and (max-width: 600px) {
78+
.site-header-title {
79+
font-size: 3rem;
80+
}
81+
}
82+
83+
@media only screen and (max-width: 400px) {
84+
.site-header-title {
85+
font-size: 2.5rem;
86+
}
6987
}

settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66

77
# Authors
8-
AUTHOR = 'Python v ČR'
9-
SITENAME = 'Python v ČR bloguje'
10-
SITESUBTITLE = 'Zprávy z české Python komunity'
8+
AUTHOR = 'Python\u00A0v\u00A0ČR'
9+
SITENAME = 'Python\u00A0v\u00A0ČR bloguje'
10+
SITESUBTITLE = 'Zprávy z\u00A0české Python komunity'
1111

1212
ABOUT = '''
1313
Tento blog píše [česká komunita kolem programovacího jazyka Python](http://python.cz/).

0 commit comments

Comments
 (0)