Skip to content

Commit 028b2c6

Browse files
author
Peter Kuma
committed
Tweak style to better support small screens.
1 parent a6f83a0 commit 028b2c6

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

fileshack/static/fileshack/css/base.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ body {
1212

1313
h1 {
1414
font-size: 30pt;
15-
margin-top: 80px;
16-
margin-bottom: 40px;
15+
margin-top: 40px;
16+
margin-bottom: 5%;
1717
}
1818

1919
h1 span {

fileshack/static/fileshack/css/fileshack.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
body {
88
text-align: center;
9-
margin: 50px;
9+
margin: 5% 0;
1010
}
1111

1212
button {
@@ -41,13 +41,13 @@ button::-moz-focus-inner {
4141
#container {
4242
margin: 0 auto;
4343
text-align: left;
44-
width: 850px;
44+
width: 820px;
45+
padding: 0 20px;
4546
}
4647

4748
#controls {
48-
position: absolute;
49-
right: 50px;
50-
top: 30px;
49+
float: right;
50+
margin: 12px 0;
5151
}
5252

5353
.logout:hover,.logout:focus {

fileshack/templates/fileshack/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
</head>
2828
<body>
2929
<div id="container">
30+
<div id="controls">
31+
<form action="logout/">
32+
<button type="submit" class="logout">{% trans "Logout" %}</button>
33+
</form>
34+
</div>
3035
<h1>{%trans "Welcome to fileshack" %}, <span>{% trans "drop your items" %}</span></h1>
3136
<div id="subcontainer">
3237
<iframe src="iframe/" id="iframe" style="display: none"></iframe>
@@ -78,11 +83,6 @@ <h1>{%trans "Welcome to fileshack" %}, <span>{% trans "drop your items" %}</span
7883
</div>
7984
</div>
8085
</div>
81-
<div id="controls">
82-
<form action="logout/">
83-
<button type="submit" class="logout">{% trans "Logout" %}</button>
84-
</form>
85-
</div>
8686
<div id="preload-1"></div>
8787
<div id="preload-2"></div>
8888
<div id="preload-3"></div>

0 commit comments

Comments
 (0)