1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

ui: convert mailbox.css to mobile-first

This commit is contained in:
James Hillyerd
2019-02-09 10:22:15 -08:00
parent 99df27ee34
commit 645feeaf85

View File

@@ -2,11 +2,11 @@
.mailbox {
display: grid;
grid-gap: 1px 20px;
grid:
"ctrl mesg" auto
"list mesg" 1fr / minmax(200px, 300px) minmax(650px, 1000px);
height: 100%;
"ctrl" auto
"list" auto
"mesg" auto / 1fr;
justify-self: center;
}
.message-list-controls {
@@ -21,21 +21,27 @@
.message-list {
grid-area: list;
overflow-y: scroll;
}
@media (max-width: 999px) {
.message {
grid-area: mesg;
}
@media screen and (min-width: 1000px) {
.mailbox {
grid-gap: 1px 20px;
grid:
"ctrl" auto
"list" auto
"mesg" auto / 1fr;
justify-self: center;
width: 100%;
"ctrl mesg" auto
"list mesg" 1fr / minmax(200px, 300px) minmax(650px, 1000px);
height: 100%;
}
.message-list {
overflow-y: visible;
overflow-y: scroll;
}
.message {
overflow: auto;
}
}
@@ -69,14 +75,6 @@
font-size: 85%;
}
/** MESSAGE */
.message {
grid-area: mesg;
overflow: auto;
}
.message-header {
border: 1px solid var(--border-color);
border-radius: 4px;
@@ -95,7 +93,7 @@
padding-left: 10px;
}
@media (min-width: 1000px) {
@media screen and (min-width: 1000px) {
.message-header {
display: grid;
grid-template: auto / 5em 1fr;
@@ -124,7 +122,6 @@
font-weight: 700;
}
nav.tab-bar {
border-bottom: 1px solid var(--border-color);
display: flex;