From 756ee5b117347d73c711ec7af2be63e2c1aaa1c3 Mon Sep 17 00:00:00 2001 From: Michele Bini Date: Sun, 21 Sep 2014 02:40:04 +0200 Subject: Improved centering code (it had a problem when the screen is too narrow); improved text diff --git a/index.html b/index.html index 15526c1..8388035 100644 --- a/index.html +++ b/index.html @@ -55,16 +55,13 @@ a:hover { margin:0.3em; } .centering { - text-align:center; -} -.centering:before { - content: ''; - display: inline-block; + display: table; + padding: 0; + width: 100%; height: 100%; - vertical-align: middle; - margin-right: -0.25em; } .centered { - display:inline-block; - vertical-align:middle; -}

Please don't kill this baby!

Vaquitas are the smallest marine cetacean.

Their population has decreased from an estimated 576 in 1997 to 97 individuals in 2014, which means that could be extinct as early as 2017

A really protected marine sactuary is Vaquitas' only chance of survival; each year literally tens of them die in fishing nets and cages; according to recent research, this is because of the illegal fishing of Totoaba

Vaquitas only live in a small stretch in the Gulf of California and share their habitat with the Totoaba

Petition you can sign: Protected Reserves for Critically Endangered Vaquita Porpoises

Commemorative video of a baby Vaquita

\ No newline at end of file + display: table-cell; + vertical-align: middle; + text-align: center; +}

Please don't kill this baby!

Vaquitas are the smallest and rarest marine cetacean; they are mammalians like us.

Their population has decreased from an estimated 576 in 1997 to 97 individuals in 2014, which means that could be extinct as early as 2017

A really protected marine sactuary is Vaquitas' only chance of survival; each year literally tens of them die in fishing nets and cages; according to recent research, this is because of the illegal fishing of Totoaba

Vaquitas only live in a small stretch in the Gulf of California and share their habitat with the Totoaba

Petition you can sign: Protected Reserves for Critically Endangered Vaquita Porpoises

Commemorative video of a baby Vaquita

\ No newline at end of file diff --git a/index.html.coffee b/index.html.coffee index 336df46..772b8cf 100644 --- a/index.html.coffee +++ b/index.html.coffee @@ -83,6 +83,19 @@ htmlcup.html5Page -> margin:0.3em; } .centering { + display: table; + padding: 0; + width: 100%; + height: 100%; + } + .centered { + display: table-cell; + vertical-align: middle; + text-align: center; + } + do-> + '''' + .centering { text-align:center; } .centering:before { @@ -104,7 +117,7 @@ htmlcup.html5Page -> @img class:"banner", src:"vaquita1.jpg", title:"This vaquita was set free by a mysterious artist who prefers to stay anonymous ☺" @div style:"display:inline-block", -> @p "Please don't kill this baby!" - @p "Vaquitas are the smallest marine cetacean." + @p "Vaquitas are the smallest and rarest marine cetacean; they are mammalians like us." @p -> @span "Their population has decreased from an estimated 576 in 1997 to 97 individuals in 2014, which means that could be extinct as early as 2017" @p "A really protected marine sactuary is Vaquitas' only chance of survival; each year literally tens of them die in fishing nets and cages; according to recent research, this is because of the illegal fishing of Totoaba" -- cgit v0.10.2