Browse Source

Fix mobile scaling/padding

pull/40/head
kaernyk 10 years ago
parent
commit
a3c03932c3
  1. 357
      stylesheets/style.css

357
stylesheets/style.css

@ -1,25 +1,24 @@
body { body {
background: #EEF2FF url(img/fade-blue.png) repeat-x 50% 0; background: #EEF2FF url('img/fade-blue.png') repeat-x 50% 0%;
color: #000; color: black;
font-family: arial,helvetica,sans-serif; font-family: arial, helvetica, sans-serif;
font-size: 10pt; font-size: 11pt;
min-width: 200px; margin: 0 4px;
max-width: 100%; padding-left: 4px;
margin: 4px!important; padding-right: 4px;
padding: 4px!important;
} }
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: red; color: #ff0000;
} }
a.post_no { a.post_no {
@ -28,42 +27,42 @@ a.post_no {
padding: 0; padding: 0;
} }
p.intro a.post_no,p.intro a.email,p.intro a.post_anchor {
margin: 0;
}
p.intro a.post_no { p.intro a.post_no {
color: inherit; color: inherit;
} }
p.intro a.post_no,
p.intro a.email,
p.intro a.post_anchor {
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: red; 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;
} }
header { h2 {
margin: 1em 0;
}
header div.subtitle,h1 {
color: #AF0A0F; color: #AF0A0F;
text-align: center; font-size: 11pt;
margin: 0;
padding: 0;
} }
header div.subtitle { header {
font-size: 8pt; margin: 1em 0;
} }
h1 { h1 {
@ -73,11 +72,13 @@ h1 {
margin: 0; margin: 0;
} }
h2 { header div.subtitle, h1 {
color: #AF0A0F; color: #AF0A0F;
font-size: 11pt; text-align: center;
margin: 0; }
padding: 0;
header div.subtitle {
font-size: 8pt;
} }
form { form {
@ -90,12 +91,15 @@ form table {
form table input { form table input {
height: auto; height: auto;
width: 100%;
} }
input[type="text"],input[type="password"],textarea { input[type="text"], input[type="password"], textarea {
height: auto; border: 1px solid #a9a9a9;
width: 100%; text-indent: 0;
text-shadow: none;
text-transform: none;
word-spacing: normal;
max-width: 75%;
} }
form table tr td { form table tr td {
@ -111,6 +115,9 @@ form table.mod tr td {
form table tr th { form table tr th {
text-align: left; text-align: left;
padding: 4px; padding: 4px;
}
form table tr th {
background: #98E; background: #98E;
} }
@ -122,14 +129,14 @@ form table tr td div.center {
form table tr td div input { form table tr td div input {
display: block; display: block;
margin: 2px auto 0; 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;
} }
@ -158,13 +165,13 @@ div.post p.fileinfo {
div.banner { div.banner {
background-color: #E04000; background-color: #E04000;
font-size: 12pt; font-size: 12pt;
font-weight: 700; font-weight: bold;
text-align: center; text-align: center;
margin: 1em 0; margin: 1em 0;
} }
div.banner,div.banner a { div.banner, div.banner a {
color: #fff; color: white;
} }
div.banner a:hover { div.banner a:hover {
@ -172,22 +179,22 @@ div.banner a:hover {
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; margin: 12px auto 0 auto;
} }
.post-image { .post-image {
display: block; display: block;
float: left; float: left;
margin: 4px 16px 8px; margin: 5px 20px 10px 20px;
border: none; border: none;
} }
div.post .post-image { div.post .post-image {
padding: 1px; padding: 5px;
margin: 4px 20px 4px 4px; margin: 0 20px 0 0;
} }
div.post img.icon { div.post img.icon {
@ -211,8 +218,9 @@ div.post.op hr {
} }
p.intro { p.intro {
margin: .5em 0; margin: 0.5em 0;
padding: 0 0 .2em; padding: 0;
padding-bottom: 0.2em;
clear: both; clear: both;
} }
@ -223,15 +231,15 @@ input.delete {
p.intro span.subject { p.intro span.subject {
color: #0F0C5D; color: #0F0C5D;
font-weight: 700; font-weight: bold;
} }
p.intro span.name { p.intro span.name {
color: #117743; color: #117743;
font-weight: 700; 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;
} }
@ -244,19 +252,15 @@ div.delete {
float: right; float: right;
} }
div.post.reply {
max-width: 85%;
}
div.post.reply p { div.post.reply p {
margin: .3em 0 0; margin: 0.3em 0 0 0;
} }
div.post.reply div.body { div.post.reply div.body {
margin-left: 1em; margin-left: 1.8em;
margin-top: 1em; margin-top: 0.8em;
padding-right: 2em; padding-right: 3em;
padding-bottom: .3em; padding-bottom: 0.3em;
} }
div.post.reply.highlighted { div.post.reply.highlighted {
@ -275,17 +279,17 @@ div.post {
div.post div.body { div.post div.body {
word-wrap: break-word; word-wrap: break-word;
white-space: pre-wrap; white-space: pre-wrap;
clear: both;
} }
div.post.reply { div.post.reply {
background: #D6DAF0; background: #D6DAF0;
margin: .2em 16px; margin: 0.2em 4px;
padding: .2em .3em .5em .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 {
@ -328,19 +332,19 @@ div#wrap {
} }
div.ban { div.ban {
background: #fff; 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: #000; color: black;
font-size: 12pt; font-size: 12pt;
} }
@ -350,27 +354,27 @@ div.ban p {
} }
div.ban p.reason { div.ban p.reason {
font-weight: 700; font-weight: bold;
} }
span.heading { span.heading {
color: #AF0A0F; color: #AF0A0F;
font-size: 11pt; font-size: 11pt;
font-weight: 700; font-weight: bold;
} }
span.spoiler { span.spoiler {
background: #000; background: black;
color: #000; 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: #000; 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: #fff; color: white;
} }
div.styles { div.styles {
@ -390,7 +394,7 @@ 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;
} }
@ -423,17 +427,17 @@ div.pages.top {
position: fixed; position: fixed;
top: 0; top: 0;
right: 0; right: 0;
opacity: .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: #000; color: black;
font-weight: bolder; font-weight: bolder;
} }
@ -492,10 +496,13 @@ 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 {
background: #98E; background: #98E;
} }
td.minimal,th.minimal { td.minimal, th.minimal {
width: 1%; width: 1%;
white-space: nowrap; white-space: nowrap;
} }
@ -508,7 +515,7 @@ div.top_notice {
span.public_ban { span.public_ban {
display: block; display: block;
color: red; color: red;
font-weight: 700; font-weight: bold;
margin-top: 15px; margin-top: 15px;
} }
@ -519,7 +526,7 @@ span.toolong {
div.blotter { div.blotter {
color: red; color: red;
font-weight: 700; font-weight: bold;
text-align: center; text-align: center;
} }
@ -543,12 +550,13 @@ table.mod.config-editor input[type="text"] {
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
/*text-shadow: white 1px 0 6px, white 1px 0 6px, black 1px 0 3px;*/
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);
} }
.desktop-style body { .desktop-style body {
@ -563,10 +571,10 @@ table.mod.config-editor input[type="text"] {
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;
background: inherit; background: inherit;
@ -595,7 +603,7 @@ table.mod.config-editor input[type="text"] {
} }
#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 {
@ -611,32 +619,31 @@ form.ban-appeal textarea {
display: block; display: block;
} }
ul#Grid {
padding: 2px;
margin: 2px 0 2px .5em;
}
.theme-catalog div.thread img { .theme-catalog div.thread img {
float: none!important; float: none!important;
margin: auto; margin: auto;
max-height: 150px; max-height: 150px;
max-width: 200px; max-width: 200px;
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;
position: relative;
overflow: hidden;
vertical-align: top; vertical-align: top;
text-align: center; text-align: center;
font-weight: 400; font-weight: normal;
margin: 2px 0; margin-top: 2px;
margin-bottom: 2px;
padding: 2px; padding: 2px;
height: 300px;
width: 205px;
overflow: hidden;
position: relative;
font-size: 11px; font-size: 11px;
background: rgba(182,182,182,0.12); max-height: 300px;
border: 2px solid rgba(111,111,111,0.34); background: rgba(182, 182, 182, 0.12);
border: 2px solid rgba(111, 111, 111, 0.34);
} }
.theme-catalog div.thread strong { .theme-catalog div.thread strong {
@ -653,38 +660,37 @@ div.thread:hover {
border-color: #B7C5D9; border-color: #B7C5D9;
} }
div.thread.grid-li {
padding: 0;
}
.theme-catalog div.grid-size-vsmall img { .theme-catalog div.grid-size-vsmall img {
max-height: 50%; max-height: 64px;
max-width: 99%; max-width: 100px;
} }
.theme-catalog div.grid-size-vsmall { .theme-catalog div.grid-size-vsmall {
width:128px; width: 100px;
height: 160px; max-width: 100px;
max-height: 150px;
} }
.theme-catalog div.grid-size-small img { .theme-catalog div.grid-size-small img {
max-height: 50%; max-height: 128px;
max-width: 99%; max-width: 225px;
} }
.theme-catalog div.grid-size-small { .theme-catalog div.grid-size-small {
width: 144px; width: 200px;
height:256px; max-width: 225px;
max-height: 300px;
} }
.theme-catalog div.grid-size-large img { .theme-catalog div.grid-size-large img {
max-height: 50%; max-height: 148px;
max-width: 99%; max-width: 300px;
} }
.theme-catalog div.grid-size-large { .theme-catalog div.grid-size-large {
width: 225px; width: 300px;
height: 384px; max-width: 300px;
max-height: 450px;
} }
.theme-catalog img.thread-image { .theme-catalog img.thread-image {
@ -692,6 +698,22 @@ div.thread.grid-li {
max-width: 100%; max-width: 100%;
} }
@media (max-width: 420px) {
.theme-catalog ul#Grid {
padding-left: 18px;
}
.theme-catalog div.thread {
width: auto;
margin-left: 0;
margin-right: 0;
}
.theme-catalog div.threads {
overflow: hidden;
}
}
.compact-boardlist { .compact-boardlist {
padding: 3px; padding: 3px;
padding-bottom: 0; padding-bottom: 0;
@ -713,9 +735,10 @@ div.thread.grid-li {
} }
.compact-boardlist .cb-cat { .compact-boardlist .cb-cat {
padding: 5px 6px 8px; padding: 5px 6px 8px 6px;
} }
/* styles also used by watch.js */
.cb-menuitem { .cb-menuitem {
display: table-row; display: table-row;
} }
@ -724,7 +747,7 @@ div.thread.grid-li {
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 {
@ -748,7 +771,7 @@ div.thread.grid-li {
} }
.boardlist:not(.compact-boardlist) #watch-pinned a:first-child { .boardlist:not(.compact-boardlist) #watch-pinned a:first-child {
margin-left: 0; margin-left: 0pt;
} }
.compact-boardlist #watch-pinned { .compact-boardlist #watch-pinned {
@ -756,8 +779,9 @@ div.thread.grid-li {
vertical-align: middle; vertical-align: middle;
} }
/* live-index.js */
.new-posts { .new-posts {
opacity: .6; opacity: 0.6;
margin-top: 1em; margin-top: 1em;
} }
@ -765,19 +789,13 @@ div.thread.grid-li {
text-align: center; text-align: center;
} }
.mobile-style #options_div { /* options.js */
display: block;
width: 100%;
height: 100%;
margin-top: 0;
}
#options_handler { #options_handler {
position: fixed; position: fixed;
top: 0; top: 0px;
left: 0; left: 0px;
right: 0; right: 0px;
bottom: 0; bottom: 0px;
width: 100%; width: 100%;
height: 100%; height: 100%;
text-align: center; text-align: center;
@ -785,13 +803,13 @@ div.thread.grid-li {
} }
#options_background { #options_background {
background: #000; background: black;
opacity: .5; opacity: 0.5;
position: absolute; position: absolute;
top: 0; top: 0px;
left: 0; left: 0px;
right: 0; right: 0px;
bottom: 0; bottom: 0px;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: -1; z-index: -1;
@ -799,7 +817,7 @@ div.thread.grid-li {
#options_div { #options_div {
background-color: #d6daf0; background-color: #d6daf0;
border: 1px solid #000; border: 1px solid black;
display: inline-block; display: inline-block;
position: relative; position: relative;
margin-top: 20px; margin-top: 20px;
@ -808,8 +826,8 @@ div.thread.grid-li {
} }
#options_close { #options_close {
top: 0; top: 0px;
right: 0; right: 0px;
position: absolute; position: absolute;
margin-right: 3px; margin-right: 3px;
font-size: 20px; font-size: 20px;
@ -817,34 +835,18 @@ div.thread.grid-li {
} }
#options_tablist { #options_tablist {
border-right: 1px solid #000; padding: 0px 5px;
padding: 0 5px; left: 0px;
top: 0;
bottom: 0;
left: 0;
height: 100%;
width: 70px; width: 70px;
} top: 0px;
bottom: 0px;
.options_tab { height: 100%;
position: absolute; border-right: 1px solid black;
top: 0;
bottom: 0;
left: 81px;
right: 0;
padding: 10px;
text-align: left;
font-size: 12px;
}
.options_tab h2 {
text-align: center;
margin-bottom: 5px;
} }
.options_tab_icon { .options_tab_icon {
padding: 5px; padding: 5px;
color: #000; color: black;
cursor: pointer; cursor: pointer;
} }
@ -860,21 +862,44 @@ div.thread.grid-li {
font-size: 11px; font-size: 11px;
} }
code > pre { .options_tab {
background: #000; padding: 10px;
max-width: 80%; position: absolute;
top: 0px;
bottom: 0px;
left: 81px;
right: 0px;
text-align: left;
font-size: 12px;
}
.options_tab h2 {
text-align: center;
margin-bottom: 5px;
}
.mobile-style #options_div {
display: block;
width: 100%;
height: 100%;
margin-top: 0px;
}
.mentioned {
word-wrap: break-word;
}
pre {
width: 99%;
padding: 0; padding: 0;
margin: 0; margin: 0;
overflow: auto; overflow:auto;
} }
code > pre > span.pln { code > pre > span.pln {
color: grey; color: grey;
} }
.mentioned {
word-wrap: break-word;
}
@media screen and (min-width: 768px) { @media screen and (min-width: 768px) {
p.intro { p.intro {

Loading…
Cancel
Save