diff options
author | Adrien Dorsaz <adrien@adorsaz.ch> | 2013-08-08 18:49:28 +0200 |
---|---|---|
committer | Adrien Dorsaz <adrien@adorsaz.ch> | 2013-08-08 18:49:28 +0200 |
commit | ea9c3f5b669bfbf0a7be6ac5e8004e54ee9de0e6 (patch) | |
tree | b231f5400aae0c4fbc5ad6350b48f79d21f2e591 | |
parent | 1872b814dbfd935182d3e0b8166fbb67053d85ee (diff) | |
download | Papillon-ea9c3f5b669bfbf0a7be6ac5e8004e54ee9de0e6.tar.bz2 Papillon-ea9c3f5b669bfbf0a7be6ac5e8004e54ee9de0e6.zip |
Make design responsive
-rw-r--r-- | papillon/static/styles.css | 58 |
1 files changed, 54 insertions, 4 deletions
diff --git a/papillon/static/styles.css b/papillon/static/styles.css index c918596..e337060 100644 --- a/papillon/static/styles.css +++ b/papillon/static/styles.css @@ -17,6 +17,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. See the file COPYING for details. */ +@media only screen and (max-width: 600px){ + #main{ + width:100% !important; + background:white !important; + border:0px !important; + } + + .new_poll{ + width:100% !important; + } + .new_poll *{ + padding:0 !important; + margin:0!important; + } +} + /* colors */ body, #poll th, .highlight{ @@ -123,10 +139,11 @@ border:0; #main{ background-color:white; border:1px solid; -margin:20px; +margin:auto; background-image: url(bg.jpg); background-repeat:no-repeat; background-position:95% 10%; +width: 80%; } #header{ @@ -158,10 +175,43 @@ color:blue; } .new_poll{ -width:600px; + width:200px; + margin:auto; + padding:0; +} + +.help_button{ + float:right; + color:white; + background:green; + width:15px; + height:15px; + border-radius:25px; + text-align:center; } -.new_poll input{ +.new_poll .field_label{ + clear:both; + font-size:1.5em; + width:100%; + float:none; + margin-top:10px; +} + +.new_poll div, .new_poll input, .new_poll textarea{ + width:100%; +} + +.new_poll div { + float:left; +} + +.errorlist{ + color:red; + background-color:rgb(255,200,200); +} + +/*.new_poll input{ width:160px; } @@ -176,7 +226,7 @@ width:20px; .new_poll textarea{ width:160px; height:100px; -} +}*/ .datetime a img{ border:0; |