mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Improved layout for various screens sizes
This commit is contained in:
@ -26,6 +26,16 @@ h2 {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
@media all and (max-width: 62.5em) {
|
||||||
|
#content {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media all and (min-width: 62.5em) {
|
||||||
|
#content {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #298;
|
color: #298;
|
||||||
|
@ -16,3 +16,7 @@
|
|||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#login-form .messages {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
.message {
|
.message {
|
||||||
margin-bottom: 0.2em;
|
margin: 0 auto 0.2em auto;
|
||||||
padding: 0.4em 0.5em;
|
padding: 0.4em 0.5em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
max-width: 40em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message.error {
|
.message.error {
|
||||||
|
@ -36,20 +36,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#post-view-wrapper #post-view {
|
#post-view-wrapper #post-view {
|
||||||
min-width: 40em;
|
|
||||||
flex: 5;
|
flex: 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (max-width: 62.5em) {
|
@media all and (max-width: 62.5em) {
|
||||||
#post-view-wrapper {
|
#post-view-wrapper {
|
||||||
display: block;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
#post-view-wrapper #sidebar {
|
#post-view-wrapper #sidebar {
|
||||||
order: 2;
|
order: 2;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
#post-view-wrapper #post-view {
|
#post-view-wrapper #post-view {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 100%;
|
||||||
order: 1;
|
order: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -128,4 +130,5 @@
|
|||||||
#post-view-wrapper .post-history-wrapper {
|
#post-view-wrapper .post-history-wrapper {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
display: none;
|
display: none;
|
||||||
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
|
@ -4,3 +4,7 @@
|
|||||||
#registration-form form {
|
#registration-form form {
|
||||||
width: 25em;
|
width: 25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#registration-form .messages {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user