Improved layout for various screens sizes
This commit is contained in:
parent
9edc74f9a5
commit
5291d02b4c
5 changed files with 25 additions and 3 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue