Merge pull request #92 from kaernyk/master

[WIP] Improvements to mobile display on boards/catalog
This commit is contained in:
Marcin Łabanowski 2014-09-27 10:47:21 +02:00
commit 9596b6ace3

View File

@ -2,23 +2,25 @@ body {
background: #EEF2FF url('img/fade-blue.png') repeat-x 50% 0%; background: #EEF2FF url('img/fade-blue.png') repeat-x 50% 0%;
color: black; color: black;
font-family: arial, helvetica, sans-serif; font-family: arial, helvetica, sans-serif;
font-size: 10pt; font-size: 11pt;
margin: 0 8px; margin: 0 4px;
padding-left: 5px; padding-left: 4px;
padding-right: 5px; padding-right: 4px;
} }
table * { table * {
margin: 0; margin: 1px;
} }
a, a:visited { a, a:visited {
text-decoration: underline; text-decoration: underline;
color: #34345C; color: #34345C;
} }
a:hover, p.intro a.post_no:hover { a:hover, p.intro a.post_no:hover {
color: #ff0000; color: #ff0000;
} }
a.post_no { a.post_no {
text-decoration: none; text-decoration: none;
margin: 0; margin: 0;
@ -28,20 +30,25 @@ a.post_no {
p.intro a.post_no { p.intro a.post_no {
color: inherit; color: inherit;
} }
p.intro a.post_no, p.intro a.post_no,
p.intro a.email, p.intro a.email,
p.intro a.post_anchor { p.intro a.post_anchor {
margin: 0; margin: 0;
} }
p.intro a.email span.name { p.intro a.email span.name {
color: #34345C; color: #34345C;
} }
p.intro a.email:hover span.name { p.intro a.email:hover span.name {
color: #ff0000; color: #ff0000;
} }
p.intro label { p.intro label {
display: inline; display: inline;
} }
p.intro time, p.intro a.ip-link, p.intro a.capcode { p.intro time, p.intro a.ip-link, p.intro a.capcode {
direction: ltr; direction: ltr;
unicode-bidi: embed; unicode-bidi: embed;
@ -53,85 +60,108 @@ h2 {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
header { header {
margin: 1em 0; margin: 1em 0;
} }
h1 { h1 {
font-family: tahoma; font-family: tahoma;
letter-spacing: -2px; letter-spacing: -2px;
font-size: 20pt; font-size: 20pt;
margin: 0; margin: 0;
} }
header div.subtitle, h1 { header div.subtitle, h1 {
color: #AF0A0F; color: #AF0A0F;
text-align: center; text-align: center;
} }
header div.subtitle { header div.subtitle {
font-size: 8pt; font-size: 8pt;
} }
form { form {
margin-bottom: 4em; margin-bottom: 4em;
} }
form table { form table {
margin: auto; margin: auto;
} }
form table input { form table input {
height: auto; height: auto;
} }
input[type="text"], input[type="password"], textarea { input[type="text"], input[type="password"], textarea {
border: 1px solid #a9a9a9; border: 1px solid #a9a9a9;
text-indent: 0; text-indent: 0;
text-shadow: none; text-shadow: none;
text-transform: none; text-transform: none;
word-spacing: normal; word-spacing: normal;
max-width: 75%;
} }
form table tr td { form table tr td {
text-align: left; text-align: left;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
form table.mod tr td { form table.mod tr td {
padding: 2px; padding: 2px;
} }
form table tr th { form table tr th {
text-align: left; text-align: left;
padding: 4px; padding: 4px;
} }
form table tr th { form table tr th {
background: #98E; background: #98E;
} }
form table tr td div.center { form table tr td div.center {
text-align: center; text-align: center;
float: left; float: left;
padding-left: 3px; padding-left: 3px;
} }
form table tr td div input { form table tr td div input {
display: block; display: block;
margin: 2px auto 0 auto; margin: 2px auto 0 auto;
} }
form table tr td div label { form table tr td div label {
font-size: 10px; font-size: 10px;
} }
.unimportant, .unimportant * { .unimportant, .unimportant * {
font-size: 10px; font-size: 10px;
} }
.file { .file {
float: left; float: left;
margin-right: 2px; margin-right: 2px;
} }
.file:not(.multifile) .post-image { .file:not(.multifile) .post-image {
float: left; float: left;
} }
.file:not(.multifile) { .file:not(.multifile) {
float: none; float: none;
} }
p.fileinfo { p.fileinfo {
display: block; display: block;
margin: 0 0 0 20px; margin: 0 0 0 20px;
} }
div.post p.fileinfo { div.post p.fileinfo {
padding-left: 5px; padding-left: 5px;
} }
div.banner { div.banner {
background-color: #E04000; background-color: #E04000;
font-size: 12pt; font-size: 12pt;
@ -139,198 +169,248 @@ div.banner {
text-align: center; text-align: center;
margin: 1em 0; margin: 1em 0;
} }
div.banner, div.banner a { div.banner, div.banner a {
color: white; color: white;
} }
div.banner a:hover { div.banner a:hover {
color: #EEF2FF; color: #EEF2FF;
text-decoration: none; text-decoration: none;
} }
img.banner, img.board_image { img.banner, img.board_image {
display: block; display: block;
border: 1px solid #a9a9a9; border: 1px solid #a9a9a9;
margin: 12px auto 0 auto; margin: 12px auto 0 auto;
} }
.post-image { .post-image {
display: block; display: block;
float: left; float: left;
margin: 5px 20px 10px 20px; margin: 5px 20px 10px 20px;
border: none; border: none;
} }
div.post .post-image { div.post .post-image {
padding: 5px; padding: 5px;
margin: 0 20px 0 0; margin: 0 20px 0 0;
} }
div.post img.icon { div.post img.icon {
display: inline; display: inline;
margin: 0 5px; margin: 0 5px;
padding: 0; padding: 0;
} }
div.post i.fa { div.post i.fa {
margin: 0 4px; margin: 0 4px;
font-size: 16px; font-size: 16px;
} }
div.post.op { div.post.op {
margin-right: 20px; margin-right: 20px;
margin-bottom: 5px; margin-bottom: 5px;
} }
div.post.op hr { div.post.op hr {
border-color: #D9BFB7; border-color: #D9BFB7;
} }
p.intro { p.intro {
margin: 0.5em 0; margin: 0.5em 0;
padding: 0; padding: 0;
padding-bottom: 0.2em; padding-bottom: 0.2em;
clear: both;
} }
input.delete { input.delete {
float: left; float: left;
margin: 1px 6px 0 0; margin: 1px 6px 0 0;
} }
p.intro span.subject { p.intro span.subject {
color: #0F0C5D; color: #0F0C5D;
font-weight: bold; font-weight: bold;
} }
p.intro span.name { p.intro span.name {
color: #117743; color: #117743;
font-weight: bold; font-weight: bold;
} }
p.intro span.capcode, p.intro a.capcode, p.intro a.nametag { p.intro span.capcode, p.intro a.capcode, p.intro a.nametag {
color: #F00000; color: #F00000;
margin-left: 0; margin-left: 0;
} }
p.intro a { p.intro a {
margin-left: 8px; margin-left: 8px;
} }
div.delete { div.delete {
float: right; float: right;
} }
div.post.reply p { div.post.reply p {
margin: 0.3em 0 0 0; margin: 0.3em 0 0 0;
} }
div.post.reply div.body { div.post.reply div.body {
margin-left: 1.8em; margin-left: 1.8em;
margin-top: 0.8em; margin-top: 0.8em;
padding-right: 3em; padding-right: 3em;
padding-bottom: 0.3em; padding-bottom: 0.3em;
} }
div.post.reply.highlighted { div.post.reply.highlighted {
background: #D6BAD0; background: #D6BAD0;
} }
div.post.reply div.body a { div.post.reply div.body a {
color: #D00; color: #D00;
} }
div.post { div.post {
max-width: 95%; max-width: 95%;
padding-left: 20px; padding-left: 20px;
} }
div.post div.body { div.post div.body {
word-wrap: break-word; word-wrap: break-word;
white-space: pre-wrap; white-space: pre-wrap;
} }
div.post.reply { div.post.reply {
background: #D6DAF0; background: #D6DAF0;
margin: 0.2em 16px; margin: 0.2em 4px;
padding: 0.2em 0.3em 0.5em 0.6em; padding: 0.2em 0.3em 0.5em 0.6em;
border-width: 1px; border-width: 1px;
border-style: none solid solid none; border-style: none solid solid none;
border-color: #B7C5D9; border-color: #B7C5D9;
display: inline-block; display: inline-block;
max-width: 95%;
} }
span.trip { span.trip {
color: #228854; color: #228854;
} }
span.quote { span.quote {
color: #789922; color: #789922;
} }
span.omitted { span.omitted {
display: block; display: block;
margin-top: 1em; margin-top: 1em;
} }
br.clear { br.clear {
clear: left; clear: left;
display: block; display: block;
} }
span.controls { span.controls {
float: right; float: right;
margin: 0; margin: 0;
padding: 0; padding: 0;
font-size: 80%; font-size: 80%;
} }
span.controls.op { span.controls.op {
float: none; float: none;
margin-left: 10px; margin-left: 10px;
} }
span.controls a { span.controls a {
margin: 0; margin: 0;
} }
div#wrap { div#wrap {
width: 900px; width: 900px;
margin: 0 auto; margin: 0 auto;
} }
div.ban { div.ban {
background: white; background: white;
border: 1px solid #98E; border: 1px solid #98E;
max-width: 700px; max-width: 700px;
margin: 30px auto; margin: 30px auto;
} }
div.ban p, div.ban h2 { div.ban p, div.ban h2 {
padding: 3px 7px; padding: 3px 7px;
} }
div.ban h2 { div.ban h2 {
background: #98E; background: #98E;
color: black; color: black;
font-size: 12pt; font-size: 12pt;
} }
div.ban p { div.ban p {
font-size: 12px; font-size: 12px;
margin-bottom: 12px; margin-bottom: 12px;
} }
div.ban p.reason { div.ban p.reason {
font-weight: bold; font-weight: bold;
} }
span.heading { span.heading {
color: #AF0A0F; color: #AF0A0F;
font-size: 11pt; font-size: 11pt;
font-weight: bold; font-weight: bold;
} }
span.spoiler { span.spoiler {
background: black; background: black;
color: black; color: black;
padding: 0 1px; padding: 0 1px;
} }
div.post.reply div.body span.spoiler a { div.post.reply div.body span.spoiler a {
color: black; color: black;
} }
span.spoiler:hover, div.post.reply div.body span.spoiler:hover a { span.spoiler:hover, div.post.reply div.body span.spoiler:hover a {
color: white; color: white;
} }
div.styles { div.styles {
float: right; float: right;
padding-bottom: 20px; padding-bottom: 20px;
} }
div.styles a { div.styles a {
margin: 0 10px; margin: 0 10px;
} }
div.styles a.selected { div.styles a.selected {
text-decoration: none; text-decoration: none;
} }
table.test { table.test {
width: 100%; width: 100%;
} }
table.test td, table.test th { table.test td, table.test th {
text-align: left; text-align: left;
padding: 5px; padding: 5px;
} }
table.test tr.h th { table.test tr.h th {
background: #98E; background: #98E;
} }
table.test td img { table.test td img {
margin: 0; margin: 0;
} }
fieldset label { fieldset label {
display: block; display: block;
} }
div.pages { div.pages {
color: #89A; color: #89A;
background: #D6DAF0; background: #D6DAF0;
@ -339,6 +419,7 @@ div.pages {
border-right: 1px solid #B7C5D9; border-right: 1px solid #B7C5D9;
border-bottom: 1px solid #B7C5D9; border-bottom: 1px solid #B7C5D9;
} }
div.pages.top { div.pages.top {
display: block; display: block;
padding: 5px 8px; padding: 5px 8px;
@ -348,99 +429,122 @@ div.pages.top {
right: 0; right: 0;
opacity: 0.9; opacity: 0.9;
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
div.pages.top { div.pages.top {
display: none !important; display: none !important;
} }
} }
div.pages a.selected { div.pages a.selected {
color: black; color: black;
font-weight: bolder; font-weight: bolder;
} }
div.pages a { div.pages a {
text-decoration: none; text-decoration: none;
} }
div.pages form { div.pages form {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;
} }
div.pages form input { div.pages form input {
margin: 0 5px; margin: 0 5px;
display: inline; display: inline;
} }
hr { hr {
border: none; border: none;
border-top: 1px solid #B7C5D9; border-top: 1px solid #B7C5D9;
height: 0; height: 0;
clear: left; clear: left;
} }
div.boardlist { div.boardlist {
color: #89A; color: #89A;
font-size: 9pt; font-size: 9pt;
margin-top: 3px; margin-top: 3px;
} }
div.boardlist.bottom { div.boardlist.bottom {
margin-top: 20px; margin-top: 20px;
} }
div.boardlist a { div.boardlist a {
text-decoration: none; text-decoration: none;
} }
div.report { div.report {
color: #333; color: #333;
} }
table.modlog { table.modlog {
margin: auto; margin: auto;
width: 100%; width: 100%;
} }
table.modlog tr td { table.modlog tr td {
text-align: left; text-align: left;
margin: 0; margin: 0;
padding: 4px 15px 0 0; padding: 4px 15px 0 0;
} }
table.modlog tr th { table.modlog tr th {
text-align: left; text-align: left;
padding: 4px 15px 5px 5px; padding: 4px 15px 5px 5px;
white-space: nowrap; white-space: nowrap;
} }
table.modlog tr th { table.modlog tr th {
background: #98E; background: #98E;
} }
td.minimal, th.minimal { td.minimal, th.minimal {
width: 1%; width: 1%;
white-space: nowrap; white-space: nowrap;
} }
div.top_notice { div.top_notice {
text-align: center; text-align: center;
margin: 5px auto; margin: 5px auto;
} }
span.public_ban { span.public_ban {
display: block; display: block;
color: red; color: red;
font-weight: bold; font-weight: bold;
margin-top: 15px; margin-top: 15px;
} }
span.toolong { span.toolong {
display: block; display: block;
margin-top: 15px; margin-top: 15px;
} }
div.blotter { div.blotter {
color: red; color: red;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
} }
table.mod.config-editor { table.mod.config-editor {
font-size: 9pt; font-size: 9pt;
width: 100%; width: 100%;
} }
table.mod.config-editor td { table.mod.config-editor td {
text-align: left; text-align: left;
padding: 5px; padding: 5px;
border-bottom: 1px solid #98e; border-bottom: 1px solid #98e;
} }
table.mod.config-editor input[type="text"] { table.mod.config-editor input[type="text"] {
width: 98%; width: 98%;
} }
.desktop-style div.boardlist:nth-child(1) { .desktop-style div.boardlist:nth-child(1) {
position: fixed; position: fixed;
top: 0; top: 0;
@ -450,6 +554,7 @@ table.mod.config-editor input[type="text"] {
margin-top: 0; margin-top: 0;
z-index: 30; z-index: 30;
} }
.desktop-style div.boardlist:nth-child(1):hover, .desktop-style div.boardlist:nth-child(1).cb-menu { .desktop-style div.boardlist:nth-child(1):hover, .desktop-style div.boardlist:nth-child(1).cb-menu {
background-color: rgba(90%, 90%, 90%, 0.6); background-color: rgba(90%, 90%, 90%, 0.6);
} }
@ -461,12 +566,14 @@ table.mod.config-editor input[type="text"] {
.desktop-style .sub { .desktop-style .sub {
background: inherit; background: inherit;
} }
.desktop-style .sub .sub { .desktop-style .sub .sub {
display: inline-block; display: inline-block;
text-indent: -9000px; text-indent: -9000px;
width: 7px; width: 7px;
background: url('img/arrow.png') right center no-repeat; background: url('img/arrow.png') right center no-repeat;
} }
.desktop-style .sub .sub:hover, .desktop-style .sub .sub.hover { .desktop-style .sub .sub:hover, .desktop-style .sub .sub.hover {
display: inline; display: inline;
text-indent: 0; text-indent: 0;
@ -481,20 +588,24 @@ table.mod.config-editor input[type="text"] {
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;
} }
#attention_bar_form { #attention_bar_form {
display: none; display: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
#attention_bar_input { #attention_bar_input {
width: 100%; width: 100%;
padding: 0; padding: 0;
margin: 0; margin: 0;
text-align: center; text-align: center;
} }
#attention_bar:hover { #attention_bar:hover {
background-color: rgba(100%, 100%, 100%, 0.2); background-color: rgba(100%, 100%, 100%, 0.2);
} }
p.intro.thread-hidden { p.intro.thread-hidden {
margin: 0; margin: 0;
padding: 0; padding: 0;
@ -503,9 +614,11 @@ p.intro.thread-hidden {
form.ban-appeal { form.ban-appeal {
margin: 9px 20px; margin: 9px 20px;
} }
form.ban-appeal textarea { form.ban-appeal textarea {
display: block; display: block;
} }
.theme-catalog div.thread img { .theme-catalog div.thread img {
float: none!important; float: none!important;
margin: auto; margin: auto;
@ -514,6 +627,7 @@ form.ban-appeal textarea {
box-shadow: 0 0 4px rgba(0, 0, 0, 0.55); box-shadow: 0 0 4px rgba(0, 0, 0, 0.55);
border: 2px solid rgba(153, 153, 153, 0); border: 2px solid rgba(153, 153, 153, 0);
} }
.theme-catalog div.thread { .theme-catalog div.thread {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
@ -531,9 +645,11 @@ form.ban-appeal textarea {
background: rgba(182, 182, 182, 0.12); background: rgba(182, 182, 182, 0.12);
border: 2px solid rgba(111, 111, 111, 0.34); border: 2px solid rgba(111, 111, 111, 0.34);
} }
.theme-catalog div.thread strong { .theme-catalog div.thread strong {
display: block; display: block;
} }
.theme-catalog div.threads { .theme-catalog div.threads {
text-align: center; text-align: center;
margin-left: -20px; margin-left: -20px;
@ -586,12 +702,13 @@ div.thread:hover {
.theme-catalog ul#Grid { .theme-catalog ul#Grid {
padding-left: 18px; padding-left: 18px;
} }
.theme-catalog div.thread { .theme-catalog div.thread {
width: auto; width: auto;
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }
.theme-catalog div.threads { .theme-catalog div.threads {
overflow: hidden; overflow: hidden;
} }
@ -601,18 +718,22 @@ div.thread:hover {
padding: 3px; padding: 3px;
padding-bottom: 0; padding-bottom: 0;
} }
.compact-boardlist .cb-item { .compact-boardlist .cb-item {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
} }
.compact-boardlist .cb-icon { .compact-boardlist .cb-icon {
padding-bottom: 1px; padding-bottom: 1px;
} }
.compact-boardlist .cb-fa { .compact-boardlist .cb-fa {
font-size: 21px; font-size: 21px;
padding: 2px; padding: 2px;
padding-top: 0; padding-top: 0;
} }
.compact-boardlist .cb-cat { .compact-boardlist .cb-cat {
padding: 5px 6px 8px 6px; padding: 5px 6px 8px 6px;
} }
@ -621,12 +742,14 @@ div.thread:hover {
.cb-menuitem { .cb-menuitem {
display: table-row; display: table-row;
} }
.cb-menuitem span { .cb-menuitem span {
padding: 5px; padding: 5px;
display: table-cell; display: table-cell;
text-align: left; text-align: left;
border-top: 1px solid rgba(0, 0, 0, 0.5); border-top: 1px solid rgba(0, 0, 0, 0.5);
} }
.cb-menuitem span.cb-uri { .cb-menuitem span.cb-uri {
text-align: right; text-align: right;
} }
@ -634,15 +757,19 @@ div.thread:hover {
.boardlist:not(.compact-boardlist) #watch-pinned::before { .boardlist:not(.compact-boardlist) #watch-pinned::before {
content: " [ "; content: " [ ";
} }
.boardlist:not(.compact-boardlist) #watch-pinned::after { .boardlist:not(.compact-boardlist) #watch-pinned::after {
content: " ] "; content: " ] ";
} }
.boardlist:not(.compact-boardlist) #watch-pinned { .boardlist:not(.compact-boardlist) #watch-pinned {
display: inline; display: inline;
} }
.boardlist:not(.compact-boardlist) #watch-pinned a { .boardlist:not(.compact-boardlist) #watch-pinned a {
margin-left: 3pt; margin-left: 3pt;
} }
.boardlist:not(.compact-boardlist) #watch-pinned a:first-child { .boardlist:not(.compact-boardlist) #watch-pinned a:first-child {
margin-left: 0pt; margin-left: 0pt;
} }
@ -657,6 +784,7 @@ div.thread:hover {
opacity: 0.6; opacity: 0.6;
margin-top: 1em; margin-top: 1em;
} }
.new-threads { .new-threads {
text-align: center; text-align: center;
} }
@ -664,19 +792,29 @@ div.thread:hover {
/* options.js */ /* options.js */
#options_handler { #options_handler {
position: fixed; position: fixed;
top: 0px; left: 0px; right: 0px; bottom: 0px; top: 0px;
width: 100%; height: 100%; left: 0px;
right: 0px;
bottom: 0px;
width: 100%;
height: 100%;
text-align: center; text-align: center;
z-index: 9900; z-index: 9900;
} }
#options_background { #options_background {
background: black; background: black;
opacity: 0.5; opacity: 0.5;
position: absolute; position: absolute;
top: 0px; left: 0px; right: 0px; bottom: 0px; top: 0px;
width: 100%; height: 100%; left: 0px;
right: 0px;
bottom: 0px;
width: 100%;
height: 100%;
z-index: -1; z-index: -1;
} }
#options_div { #options_div {
background-color: #d6daf0; background-color: #d6daf0;
border: 1px solid black; border: 1px solid black;
@ -686,12 +824,16 @@ div.thread:hover {
width: 600px; width: 600px;
height: 300px; height: 300px;
} }
#options_close { #options_close {
top: 0px; right: 0px; top: 0px;
right: 0px;
position: absolute; position: absolute;
margin-right: 3px; margin-right: 3px;
font-size: 20px; z-index: 100; font-size: 20px;
z-index: 100;
} }
#options_tablist { #options_tablist {
padding: 0px 5px; padding: 0px 5px;
left: 0px; left: 0px;
@ -701,28 +843,36 @@ div.thread:hover {
height: 100%; height: 100%;
border-right: 1px solid black; border-right: 1px solid black;
} }
.options_tab_icon { .options_tab_icon {
padding: 5px; padding: 5px;
color: black; color: black;
cursor: pointer; cursor: pointer;
} }
.options_tab_icon.active { .options_tab_icon.active {
color: red; color: red;
} }
.options_tab_icon i { .options_tab_icon i {
font-size: 20px; font-size: 20px;
} }
.options_tab_icon div { .options_tab_icon div {
font-size: 11px; font-size: 11px;
} }
.options_tab { .options_tab {
padding: 10px; padding: 10px;
position: absolute; position: absolute;
top: 0px; bottom: 0px; top: 0px;
left: 81px; right: 0px; bottom: 0px;
left: 81px;
right: 0px;
text-align: left; text-align: left;
font-size: 12px; font-size: 12px;
} }
.options_tab h2 { .options_tab h2 {
text-align: center; text-align: center;
margin-bottom: 5px; margin-bottom: 5px;
@ -734,17 +884,29 @@ div.thread:hover {
height: 100%; height: 100%;
margin-top: 0px; margin-top: 0px;
} }
.mentioned { .mentioned {
word-wrap: break-word; word-wrap: break-word;
} }
pre {
code > pre { width: 99%;
/* Better code tags */ padding: 0;
background:black; margin: 0;
max-width:inherit; overflow:auto;
} }
code > pre > span.pln { code > pre > span.pln {
color: grey; color: grey;
} }
@media screen and (min-width: 768px) {
p.intro {
clear: none;
}
div.post div.body {
clear: none;
}
}