diff options
author | Ugnich Anton | 2012-12-31 16:33:35 +0700 |
---|---|---|
committer | Ugnich Anton | 2012-12-31 16:33:35 +0700 |
commit | ed2f70f338bbed7b608fcc5b07f751d5b99d4f53 (patch) | |
tree | a498f07b87338faeb1ffb11eb81e433f2e7c2876 /web/style3.css | |
parent | 6b1dafc1cc3a610fc2aa5c4562fb19e3dd0798f8 (diff) |
Mobile CSS
Diffstat (limited to 'web/style3.css')
-rw-r--r-- | web/style3.css | 76 |
1 files changed, 53 insertions, 23 deletions
diff --git a/web/style3.css b/web/style3.css index 23a6d124..8e8e82e8 100644 --- a/web/style3.css +++ b/web/style3.css @@ -12,25 +12,23 @@ hr { height: 1px; background: #CCC; } /********/ -#hwrapper { width: 100%; background: #333; } -#header { height: 48px; } -#logo { float: left; margin: 3px 0 0 30px; } -#header a { font-size: 18px; } - -#search { float: left; margin: 10px 0 0 51px; } -#search .text { width: 285px; padding: 4px; border: none; background: #EEE; } - -#nav-right { float: right; } -#nav-right li { float: left; } -#nav-right a { display: block; line-height: 48px; padding: 0 15px; color: #AAA; } -#nav-right a:hover { background: #444; } -#nav-right .wide { padding: 0 20px; } -#nav-right img { max-width: 32px; max-height: 32px; vertical-align: middle; margin: 0 4px 0 0; } -#nav-right .ico24 { width: 24px; height: 24px; padding: 12px 0; background: url(//static.juick.com/icons24.png) no-repeat; } +#hwrapper { float: left; width: 100%; background: #333; padding-bottom: 2px; } +#header li { float: left; line-height: 48px; } +#header .text { margin-left: 15px; width: 285px; padding: 4px; border: none; background: #EEE; } +#header>.right { float: right; } +#header a { display: block; font-size: 18px; padding: 0 10px; color: #AAA; } +#header .wide { padding: 0 20px; } +#header img { max-width: 32px; max-height: 32px; vertical-align: middle; margin-right: 4px; } + +.head-ico { width: 32px; height: 32px; background: url(//static.juick.com/head-ico-24.png) no-repeat; display: inline-block; vertical-align: middle; margin-bottom: 2px; } +#hi-logo { width: 110px; margin: 0 28px; } +#hi-post { background-position: -142px 0; margin: 0 5px 0 -5px; } +#hi-settings { background-position: -174px 0; } +#hi-logout { background-position: -206px 0; } /********/ -#topwrapper { position: relative; } +#topwrapper { position: relative; clear: both; } #wrapper { width: 100%; float: left; } /********/ @@ -39,16 +37,16 @@ hr { height: 1px; background: #CCC; } .msg { padding: 15px; margin: 8px 0 16px 0; width: 570px; border: 1px solid #EEE; background: #FFF; } .msgthread { margin-bottom: 0; border-bottom-color: #CCC; } -.msg-avatar { float: left; } +.msg-avatar { float: left; height: 1px; overflow: visible; } .msg-avatar img { width: 48px; height: 48px; vertical-align: top; } .msg-ts { float: right; font-size: small; vertical-align: top; } .msg-ts, .msg-ts>a { color: #999; } .msg-menu { margin: 0 0 0 6px; padding: 2px 0; } .msg-menu img { vertical-align: top; } -.msg-header { margin-left: 58px; overflow: hidden; } -.msg-place { font-size: small; margin: 8px 0 8px 58px; } +.msg-header { float: left; margin: 0 0 8px 10px; overflow: hidden; } +.msg-place { clear: both; font-size: small; margin: 8px 0 8px 58px; } .msg-place>a { color: #999; } -.msg-txt { margin: 8px 0 8px 58px; overflow: hidden; } +.msg-txt { clear: both; margin: 8px 0 8px 58px; overflow: hidden; } .msg-media { text-align: center; margin: 8px 0 0px 58px; } .msg-links { font-size: small; margin: 8px 0 0 68px; color: #999; } .msg-comments { margin: 8px 0 0 58px; padding: 5px 0 0 10px; overflow: hidden; font-size: small; border-top: 1px solid #DDD; color: #AAA; } @@ -77,7 +75,7 @@ hr { height: 1px; background: #CCC; } /********/ -#column { width: 185px; position: absolute; top: 0; padding-top: 10px; overflow: hidden; } +#column { width: 185px; top: 0; padding-top: 10px; overflow: hidden; } #column ul, #column p, #column hr { margin: 10px 0; } #column li { margin: 6px 0; } #column p { font-size: small; line-height: 140%; } @@ -89,6 +87,8 @@ hr { height: 1px; background: #CCC; } #ctoolbar a { padding: 5px 10px;} #ctoolbar div { display: inline-block; width: 16px; height: 16px; background: url(//static.juick.com/toolbar-icons.png) no-repeat; vertical-align: middle; margin: 5px 0; } #ustats li { margin: 3px 0; font-size: smaller; } +.abs { position: absolute; } +.fix { position: fixed; } /********/ @@ -96,8 +96,8 @@ hr { height: 1px; background: #CCC; } /********/ -#dialogb { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.5; background: #000; } -#dialogw { display: none; position: fixed; top: 40%; left: 30%; width: 350px; padding: 20px; background: #EEEEE5; border: 1px solid #999; } +#dialogb { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.5; background: #000; z-index: 10; } +#dialogw { display: none; position: fixed; top: 40%; left: 30%; width: 350px; padding: 20px; background: #EEEEE5; border: 1px solid #999; z-index: 11; } #dialogl,#dialogn { padding: 5px; margin: 3px 0 20px; border: 1px solid #DDD; background: #F5F5E9; } #dialogw li { float: left; margin: 5px 10px 0 0; } #dialogw a { display: block; width: 32px; height: 32px; background-image: url(//static.juick.com/sharesocial.png); } @@ -109,3 +109,33 @@ hr { height: 1px; background: #CCC; } #footer { clear: both; font-size: small; padding: 10px 0; color: #999; } #footer-right { float: right; } + +/******************************************************************************/ + +@media screen and (max-width: 800px) { + #header,#topwrapper,#content,#footer,#mtoolbar { width: auto; min-width: 320px; } + + #hwrapper { position: fixed; top: 0; z-index: 1; } + #topwrapper { margin-top: 3em; } + + #header li { line-height: 42px; } + #search { position: absolute; left: 42px; right: 222px; min-width: 55px; } + #header a { padding: 0 7px; } + #header .text { width: 100%; } + #header label { display: none; } + #header img { margin: 0; } + #header .wide { padding: 0 10px; } + + #hi-logo { width: 32px; background-position: -110px 0; margin: 0; } + #hi-post { margin: 0; } + + .msg { width: auto; min-width: 280px; } + .msg-comment textarea { width: 100%; } + .msg-header { margin-bottom: 6px; } + .msg-ts { clear: both; float: none; margin: 0 0 4px 58px; } + .msg-txt { clear: both; margin: 8px 0 0 0; } + .msg-media,.msg-links,.msg-comment,.msg-comments,.msg-recomms { margin-left: 0px; } + + .fix,.abs { position: static; } + #column { clear: both; margin: 0 auto; width: 50%; } +}
\ No newline at end of file |