diff --git a/assets/main.css b/assets/main.css index dea2475..29a0726 100644 --- a/assets/main.css +++ b/assets/main.css @@ -1,23 +1,46 @@ +html, body { + margin: 0; + padding: 0; + height: 100%; + width: 100%; +} + body { font-family: sans-serif; background-color: #eee; color: #222; - max-width: 768px; - margin: 0 auto; line-height: 1.5; + + display: flex; } -input, button { +a button { + color: #222; +} + +* { + box-sizing: border-box; +} + +input, button, textarea { font: inherit; color: inherit; + vertical-align: middle; + margin: 0; } button { + padding: 0 0.5em; cursor: pointer; + font-size: 90%; + font-variant: all-small-caps; + background-color: #fff; + border: 1px solid #aaa; } h1 { text-align: center; line-height: 1.2; + margin: 0; } h1 img { width: 1em; @@ -25,6 +48,117 @@ h1 img { vertical-align: middle; } +.sidebar, .main-area { + height: 100%; + overflow-y: hidden; + display: grid; +} +.sidebar { + width: 300px; + overflow: hidden; + grid-template-rows: auto 1fr; + border-right: 1px solid #aaa; +} +.main-area { + flex-grow: 1; + grid-template-rows: auto 1fr auto; + position: relative; +} + +.sidebar-head { + background-color: #e5e5e5; + padding: 0.5em; + border-bottom: 1px solid #aaa; +} + +#channel_list { + padding: 0; + height: 100%; + overflow-x: hidden; + overflow-y: scroll; +} +#channel_list a { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + width: 300px; + display: block; + padding: 2px 10px; + color: #333; + text-decoration: none; +} +#channel_list a:hover { + background-color: #e5e5e5; +} +#channel_list .active a { + background-color: #ddd; +} +#channel_list :first-child a { + padding-top: 5px; +} +#channel_list :last-child a { + padding-bottom: 5px; +} +#channel_list .team-name { + color: #888; +} +#channel_list .separator { + color: #888; + margin: 0 1px; +} + +ul#channel_list, ul#server_selection_list { + list-style: none; + margin: 0; +} +ul#server_selection_list { + padding-left: 0; + font-size: 90%; +} + +.centered { + width: 100%; + max-width: 700px; + margin: 0 auto; + position: relative; +} + +#channel_header { + box-sizing: content-box; + min-height: 1em; + padding: 10px; + border-bottom: 1px solid #aaa; + background-color: #e5e5e5; +} +#channel_header .team-name { + color: #888; +} +#channel_header .separator { + color: #888; + margin: 0 3px; +} + +.channel-contents-wrapper { + overflow-x: hidden; + overflow-y: scroll; + margin-left: 12px; + height: 100%; +} +#channel_contents { + text-rendering: optimizeLegibility; + width: 100%; + height: 100%; + padding: 0 10px; +} +.compose-wrapper { + padding: 0 5px 8px; +} +#compose { + width: 100%; + resize: none; + overflow: hidden; +} + #login { display: none; text-align: center; @@ -49,6 +183,12 @@ h1 img { grid-template-rows: auto auto; grid-template-columns: auto auto; } +.post:first-child { + margin-top: 8px; +} +.post:last-child { + margin-bottom: 8px; +} .post .author { grid-row: 1; diff --git a/index.html b/index.html index 9ba0a3c..ae632fa 100644 --- a/index.html +++ b/index.html @@ -11,39 +11,63 @@

This application cannot work without JavaScript, unfortunately. In order to proceed, please enable it for this website.

Feathermost is an alternative webclient for the Mattermost chat platform. It is not possible to provide a JavaScript-less experience without having to trust us with your user data.

- + -

Feathermost

+