Skip to content

Commit 3077014

Browse files
committed
Working on the responsiveness of the homepage, mainly the right panel and download section. Very minute UI changes
1 parent 5e26a4e commit 3077014

File tree

3 files changed

+70
-5
lines changed

3 files changed

+70
-5
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
$intro .= "<ul>\n";
9999
foreach ($RELEASES[5] as $version => $release) {
100100
$intro .= "
101-
<li><a class='download-link' href='/downloads.php#v$version'>$version</a> &middot; <a class='notes' href='/ChangeLog-5.php#$version'>Release Notes</a></li>\n";
101+
<li><a class='download-link' href='/downloads.php#v$version'>$version</a><span class='dot'>&middot;</span><a class='notes' href='/ChangeLog-5.php#$version'>Release Notes</a></li>\n";
102102
}
103103
$intro .= "</ul>\n";
104104
}

styles/home.css

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@
99
text-shadow:0 1px 2px rgba(0,0,0,.5);
1010
font-size:1.125rem;
1111
}
12+
13+
#intro ul a {
14+
word-spacing: 0;
15+
}
16+
1217
#intro .row .blurb p:first-child {
1318
margin-top:1.5rem;
1419
}
1520
#intro .row .blurb,
1621
#intro .row .download {
1722
display:table-cell;
1823
float:none;
19-
vertical-align: middle;
2024
padding:0 1.5rem;
2125
}
2226

@@ -38,8 +42,14 @@
3842
word-spacing:.25rem;
3943
margin-left:0;
4044
}
45+
46+
#intro .dot {
47+
display: inline-block;
48+
width: 5px;
49+
padding: 0 5px;
50+
}
51+
4152
#intro .download {
42-
text-align:center;
4353
}
4454
#intro .download a.notes {
4555
font-size:.75em;
@@ -56,6 +66,8 @@
5666

5767
#intro .download a.download-link {
5868
color:#fff;
69+
width: 50px;
70+
display: inline-block;
5971
}
6072

6173
#layout-content {
@@ -69,3 +81,43 @@
6981
p.archive {
7082
text-align: right;
7183
}
84+
85+
@media (min-width: 480px) and (max-width: 768px) {
86+
#intro .download {
87+
width: 35%;
88+
}
89+
90+
#intro .blurb {
91+
width: 65%;
92+
}
93+
}
94+
95+
@media (min-width: 768px) {
96+
.navbar-search,
97+
#intro .download,
98+
#intro .background,
99+
aside.tips,
100+
.layout-menu {
101+
width: 25%;
102+
}
103+
104+
#intro .blurb, #layout-content {
105+
width: 75%;
106+
}
107+
}
108+
109+
@media (min-width: 480px) and (max-width: 590px) {
110+
#intro .dot {
111+
display: none;
112+
}
113+
}
114+
115+
@media (min-width: 768px) and (max-width: 784px) {
116+
#intro .download, aside.tips, .navbar-search {
117+
width: 30%;
118+
}
119+
120+
#intro .blurb, #layout-content {
121+
width:70%;
122+
}
123+
}

styles/theme-base.css

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ textarea {
253253
.hidden-tablet {
254254
display: none !important;
255255
}
256+
256257
}
257258
@media (max-width: 767px) {
258259
.hidden-desktop {
@@ -268,6 +269,8 @@ textarea {
268269
display: none !important;
269270
}
270271
}
272+
273+
271274
@media (max-width: 979px) {
272275
}
273276
@media (min-width: 980px) {
@@ -1514,8 +1517,7 @@ div.soft-deprecation-notice blockquote.sidebar {
15141517
float: left;
15151518
}
15161519

1517-
#intro .blurb,
1518-
#layout-content {
1520+
#intro .blurb, #layout-content {
15191521
float:left;
15201522
width:75%;
15211523
}
@@ -1527,7 +1529,18 @@ div.soft-deprecation-notice blockquote.sidebar {
15271529
margin-bottom: 0;
15281530
}
15291531
}
1532+
1533+
1534+
1535+
15301536
@media (min-width: 768px) and (max-width: 979px) {
1537+
#intro .download, aside.tips, .navbar-search {
1538+
width: 30% !important;
1539+
}
1540+
1541+
#intro .blurb, #layout-content {
1542+
width: 70% !important;
1543+
}
15311544
}
15321545
@media (min-width: 1200px) {
15331546
#intro .container,

0 commit comments

Comments
 (0)