Skip to content

Commit

Permalink
New page layout, font, background image. Replaced table tags with hea…
Browse files Browse the repository at this point in the history
…ders and paragraph tags as appropriate. Redesigned logo. Added stylesheet to specify layout more easily. Meta tag for mobile device friendliness.
  • Loading branch information
chr15m committed Oct 25, 2014
2 parents 3dfe38b + 08f7134 commit 52132f2
Show file tree
Hide file tree
Showing 12 changed files with 456 additions and 57 deletions.
10 changes: 8 additions & 2 deletions Makefile-web
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ modcheck:
clean-tree:
[ "$(WEBDEV)" ] || ! git status --porcelain | grep .

webpages: modcheck clean-tree $(WEB_SUBDIRS) $(WEBDIR)/index.html $(WEBDIR)/upload.html $(WEBDIR)/uploader.php $(WEBDIR)/example-config.h $(WEBDIR)/ccan.jpg $(DIRECT_TARBALLS) $(DEPEND_TARBALLS) $(WEBDIR)/ccan.tar.bz2 $(WEBDIR)/Makefile-ccan $(ALL_PAGES) junkpages
webpages: modcheck clean-tree $(WEB_SUBDIRS) $(WEBDIR)/index.html $(WEBDIR)/upload.html $(WEBDIR)/uploader.php $(WEBDIR)/example-config.h $(WEBDIR)/ccan.png $(WEBDIR)/ccan-bg.png $(WEBDIR)/ccan.css $(DIRECT_TARBALLS) $(DEPEND_TARBALLS) $(WEBDIR)/ccan.tar.bz2 $(WEBDIR)/Makefile-ccan $(ALL_PAGES) junkpages

junkpages: $(WEBDIR)/list.html $(WEBDIR)/junkcode $(JUNKPAGES) $(JUNKBALLS)
$(WEB_SUBDIRS): $(WEBDIR)
Expand Down Expand Up @@ -58,7 +58,13 @@ $(WEBDIR)/example-config.h: config.h
$(WEBDIR)/Makefile-ccan: Makefile-ccan
cp $< $@

$(WEBDIR)/ccan.jpg: web/ccan.jpg
$(WEBDIR)/ccan.png: web/ccan.png
cp $< $@

$(WEBDIR)/ccan-bg.png: web/ccan-bg.png
cp $< $@

$(WEBDIR)/ccan.css: web/ccan.css
cp $< $@

$(WEBDIR)/info/%.html: $(WEBDIR)/tarballs/%.tar.bz2 $(WEBDIR)/tarballs/with-deps/%.tar.bz2
Expand Down
Binary file added web/ccan-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
177 changes: 177 additions & 0 deletions web/ccan.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
* {
}

html {
border: 0px;
margin: 0px;
padding: 0px;
}

body {
background-color: transparent;
margin-left: auto;
margin-right: auto;
color: #333333;
}

.menulist {
border-radius: 5px;
margin-left: auto;
margin-right: auto;
background-image: url(ccan-bg.png);
background-position: initial initial;
background-repeat: initial initial;
font-family: FreeSans, Arial;
}

.menulist-inner {
max-width: 950px;
margin-left: auto;
margin-right: auto;
text-align: center;
}

ul.menu {
float: left;
margin-top: 0.75em;
margin-left: 0;
padding-left: 0;
}

.menu li {
list-style-type: none;
margin-left: auto;
display: inline-block !important;
}

/* On phones the menu should display stacked */
@media screen and (max-width:420px) {
.menu li {
display: block !important;
padding: 0.5em;
}
ul.menu {
float: none;
}
.search {
text-align: center !important;
}
}

.menu a {
font-weight: bold;
text-decoration: none;
color: darkblue !important;
margin-left: 0.5em;
margin-right: 0.5em;
}

.menu a:hover {
color: #222222 !important;
}

.search {
text-align: right;
padding-top: 0.5em;
padding-right: 0.5em;
}

.search input {
margin-bottom: 1em;
}

table {
background: none;
}

table a {
}

table a:hover {
}

table a:visited {
}

tbody {
}

tr {
}

td {
}

th {
}

hr {
display: none;
}

a {
}

a:hover {
color: #222222;
}

a:visited {
color: #0044aa;
}

p {
margin-left: 1em;
}

h1 {
}

h2 {
}

input {
padding: 0.25em;
border-radius: 2px;
border: 1px solid #555555;
padding-left: 1em;
padding-right: 1em;
font-weight: bold;
font-family: FreeSans, Arial;
}

img {
}

.content {
padding: 1em;
max-width: 950px;
margin-left: auto;
margin-right: auto;
font-family: FreeSans, Arial;
}

.logo {
padding: 1em;
padding-top: 0.5em;
margin-bottom: 1em;
padding-bottom: 1em;
background-color: white;
min-height: 63px;
font-family: 'Raleway', sans-serif;
}

.logo img {
width: 250px;
float: left;
margin-bottom: 1em;
margin-right: 1em;
}

.logo h1 {
font-size: 1.5em;
font-weight: 300;
width: 100%;
text-align: right;
margin-top: 0;
}
Binary file added web/ccan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 52132f2

Please sign in to comment.