Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
www.hackthewater.co.za
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hackthewater
www.hackthewater.co.za
Commits
fb6b5196
Commit
fb6b5196
authored
Jan 20, 2018
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make CapeTown widget working also on mobile
parent
cc420b1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
cpt.html
layouts/partials/cpt.html
+5
-5
htw.css
static/css/htw.css
+16
-2
No files found.
layouts/partials/cpt.html
View file @
fb6b5196
<div
id=
"capetown"
>
<div
id=
"capetown"
>
<div
><b>
Cape Town crisis
</b></div>
<div
class=
"cpthead"
><b>
Cape Town crisis:
</b></div>
<div><span
class=
"cpttitle"
>
0 day is:
</span><span
id=
"cpt0day"
class=
"cptvalue"
></span></div>
<div
class=
"cptrow"
><span
class=
"cpttitle"
>
0 day is:
</span><span
id=
"cpt0day"
class=
"cptvalue"
></span></div>
<div><span
class=
"cpttitle"
>
days before 0:
</span><span
id=
"cptdays"
class=
"cptvalue"
></span>
</div>
<div
class=
"cptrow"
><span
class=
"cpttitle"
>
days before 0:
</span><span
id=
"cptdays"
class=
"cptvalue"
></span>
</div>
<div><span
class=
"cpttitle"
>
citizen saving water:
</span><span
id=
"cptcitizen"
class=
"cptvalue"
></span></div>
<div
class=
"cptrow"
><span
class=
"cpttitle"
>
citizen saving water:
</span><span
id=
"cptcitizen"
class=
"cptvalue"
></span></div>
<div><span
class=
"cpttitle"
>
Dams level:
</span><span
id=
"cptdams"
class=
"cptvalue"
></span></div>
<div
class=
"cptrow"
><span
class=
"cpttitle"
>
Dams level:
</span><span
id=
"cptdams"
class=
"cptvalue"
></span></div>
</div>
</div>
static/css/htw.css
View file @
fb6b5196
#capetown
{
#capetown
{
background-color
:
white
;
background-color
:
white
;
width
:
180px
;
width
:
180px
;
height
:
100px
;
max-
height
:
100px
;
position
:
fixed
;
position
:
fixed
;
top
:
30px
;
top
:
30px
;
left
:
30px
;
left
:
30px
;
...
@@ -16,7 +16,21 @@
...
@@ -16,7 +16,21 @@
@media
(
max-width
:
900px
)
{
@media
(
max-width
:
900px
)
{
#capetown
{
#capetown
{
display
:
none
;
/* display: none */
;
width
:
100%
;
top
:
0px
;
left
:
0px
;
border-radius
:
0px
;
}
.cptrow
{
display
:
table
;
float
:
left
;
padding-left
:
5px
;
}
.cpthead
{
float
:
left
;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment