simpilify style on mobile

This commit is contained in:
sentriz
2019-06-27 22:54:40 +01:00
parent c9ca5b01b7
commit 111ca565c8
4 changed files with 42 additions and 29 deletions

View File

@@ -1,3 +1,28 @@
body {
max-width: 780px;
margin: 0 auto;
padding: 20px;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
line-height: 1rem;
}
@media only screen and (max-width: 780px) {
.no-small {
display: none;
}
}
@media only screen and (min-width: 780px) {
table#stats td:first-child::after,
table#recent-folders td:first-child::after {
content: " ";
white-space: pre;
}
}
form input[type],
form select,
form textarea {
@@ -13,10 +38,16 @@ form {
align-items: flex-end;
}
form>* {
form > * {
width: 100%;
}
form input {
padding: 3px;
border: 1px solid #ccc;
box-sizing: border-box;
}
form input[type=password],
form input[type=text] {
margin-bottom: 0.25rem;
@@ -24,6 +55,8 @@ form input[type=text] {
form input[type=submit] {
width: 8rem;
background-color: white;
cursor: pointer;
}
div {
@@ -31,16 +64,6 @@ div {
padding: 0;
}
body {
max-width: 800px;
margin: 0 auto;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
line-height: 1rem;
}
table td,
table th {
border: none;
@@ -52,12 +75,6 @@ table {
white-space: nowrap;
}
table#stats td:first-child,
table#recent-folders td:first-child {
display: inline-block;
margin-right: 10px;
}
a,
a:visited {
color: #0064c1;
@@ -69,7 +86,7 @@ a:hover {
}
#content>* {
#content > * {
margin: 2rem 0;
}
@@ -85,10 +102,6 @@ a:hover {
height: auto;
}
#footer {
text-align: right;
}
#flashes {
background-color: #fd1b1b1c;
border-right: 2px solid #fd1b1b1c;
@@ -99,7 +112,7 @@ a:hover {
text-align: right;
}
.block-right>* {
.block-right > * {
margin-left: auto;
}