Merge pull request #514 from 0ip/cssfix

CSS improvements
pull/518/head
0ip 2012-02-27 13:47:05 -08:00
commit 16f1b53044
3 changed files with 10 additions and 12 deletions

View File

@ -75,11 +75,13 @@ a img
#editbar ul li:hover { #editbar ul li:hover {
background: #fff; background: #fff;
background: linear-gradient(#f4f4f4, #e4e4e4);
} }
#editbar ul li:active { #editbar ul li:active {
background: #eee; background: #eee;
background: linear-gradient(#ddd, #fff); background: linear-gradient(#ddd, #fff);
box-shadow: 0 0 8px rgba(0,0,0,.1) inset;
} }
#editbar ul li.separator #editbar ul li.separator
@ -1157,12 +1159,7 @@ label {
margin: 5px 0; margin: 5px 0;
} }
.left_popup { .column {
float: left;
width: 50%;
}
.right_popup {
float: left; float: left;
width: 50%; width: 50%;
} }

View File

@ -4,7 +4,7 @@
<title>Etherpad Lite</title> <title>Etherpad Lite</title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<style> <style>
body { body {
@ -84,6 +84,7 @@
box-sizing: border-box; box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
padding: 0 45px 0 10px; padding: 0 45px 0 10px;
*padding: 0; /* IE7 hack */
width: 100%; width: 100%;
height: 100%; height: 100%;
outline: none; outline: none;

View File

@ -5,7 +5,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="robots" content="noindex, nofollow"> <meta name="robots" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, user-scalable=0"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<link href="../static/css/pad.css" rel="stylesheet"> <link href="../static/css/pad.css" rel="stylesheet">
<link href="../static/custom/pad.css" rel="stylesheet"> <link href="../static/custom/pad.css" rel="stylesheet">
@ -133,7 +133,7 @@
<div id="settingsmenu" class="popup"> <div id="settingsmenu" class="popup">
<h1>Pad settings</h1> <h1>Pad settings</h1>
<div class="left_popup"> <div class="column">
<h2>My view</h2> <h2>My view</h2>
<p> <p>
<input type="checkbox" id="options-stickychat" onClick="chat.stickToScreen();"> <input type="checkbox" id="options-stickychat" onClick="chat.stickToScreen();">
@ -155,7 +155,7 @@
</select> </select>
</p> </p>
</div> </div>
<div class="right_popup"> <div class="column">
<h2>Global view</h2> <h2>Global view</h2>
<p>Currently nothing.</p> <p>Currently nothing.</p>
<p class="note">These options affect everyone viewing this pad.</p> <p class="note">These options affect everyone viewing this pad.</p>
@ -163,7 +163,7 @@
</div> </div>
<div id="importexport" class="popup"> <div id="importexport" class="popup">
<div class="left_popup"> <div class="column">
<h2>Import from text file, HTML, PDF, Word, ODT or RTF</h2><br> <h2>Import from text file, HTML, PDF, Word, ODT or RTF</h2><br>
<form id="importform" method="post" action="" target="importiframe" enctype="multipart/form-data"> <form id="importform" method="post" action="" target="importiframe" enctype="multipart/form-data">
<div class="importformdiv" id="importformfilediv"> <div class="importformdiv" id="importformfilediv">
@ -182,7 +182,7 @@
</div> </div>
</form> </form>
</div> </div>
<div class="right_popup"> <div class="column">
<h2>Export current pad as</h2> <h2>Export current pad as</h2>
<a id="exporthtmla" target="_blank" class="exportlink"><div class="exporttype" id="exporthtml">HTML</div></a> <a id="exporthtmla" target="_blank" class="exportlink"><div class="exporttype" id="exporthtml">HTML</div></a>
<a id="exportplaina" target="_blank" class="exportlink"><div class="exporttype" id="exportplain">Plain text</div></a> <a id="exportplaina" target="_blank" class="exportlink"><div class="exporttype" id="exportplain">Plain text</div></a>