Permalink
Browse files

Share CSS among both screens

  • Loading branch information...
1 parent db4b3d8 commit 0d4ee810390502a0ec7993354f10a21dbf9976d2 @l90r committed May 13, 2011
Showing with 17 additions and 11 deletions.
  1. +1 −0 Admin.php
  2. +9 −9 style.css
  3. +6 −1 tpl/admin.php
  4. +1 −1 tpl/main.php
View
@@ -17,6 +17,7 @@ private function display() {
public function header() {
echo '<script type="text/javascript" src="' . plugins_url( 'js/admin.js', __FILE__ ) . '"></script>';
+ echo '<link rel="stylesheet" href="' . plugins_url( 'style.css', __FILE__ ) . '" type="text/css">';
}
}
View
@@ -1,17 +1,17 @@
-#thcfg_settings .inside {
+.thcfg .inside {
padding: 15px;
}
-#thcfg_settings fieldset {
+.thcfg fieldset {
overflow:auto;
- margin: 10px 0 20px 0;
+ margin: 10px 0 10px 0;
background: white;
border: 1px solid rgb(223, 223, 223);
border-radius: 8px;
display: block;
}
-#thcfg_settings h3 {
+.thcfg h3 {
display: block;
background: rgb(223, 223, 223) url("../../../../wp-admin/images/gray-grad.png") repeat-x left top;
text-shadow: white 0 1px 0;
@@ -24,7 +24,7 @@
border-spacing: 0px;
}
-#thcfg_settings .credits {
+.thcfg .credits {
margin: 20px 0;
}
@@ -52,19 +52,19 @@
display:block;
}
-#thcfg_settings li {
+.thcfg li {
overflow: auto;
}
-#thcfg_settings label {
+.thcfg label {
font-family: "Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif;
display: block;
float: left;
width: 200px;
clear: left;
}
-#thcfg_tags, #thcfg_pages, #thcfg_settings li input {
+#thcfg_tags, #thcfg_pages, .thcfg li input {
border-width: 1px;
border-style: solid;
-moz-border-radius: 4px;
@@ -95,4 +95,4 @@
background-color: #666;
clear: none;
margin-right: 10px;
-}
+}
View
@@ -4,27 +4,32 @@
<form method="post">
<fieldset class="colors">
<h3>Colors</h3>
- <ul class="selector">
+ <ul class="inside">
</ul>
</fieldset>
+ <a href="#" id="add-color" class="button">Add Color</a>
<fieldset class="contents">
<h3>Contents</h3>
<ul class="inside">
</ul>
</fieldset>
+ <a href="#" id="add-contents" class="button">Add Content Links</a>
<fieldset class="images">
<h3>Images</h3>
<ul class="inside">
</ul>
</fieldset>
+ <a href="#" id="add-image" class="button">Add Image</a>
<fieldset class="phrases">
<h3>Text Phrases</h3>
<ul class="inside">
</ul>
</fieldset>
+ <a href="#" id="add-phrase" class="button">Add Phrase</a>
+
<input type="submit" name="submit" id="submit" class="button-primary" value="Save Changes">
</form>
View
@@ -1,4 +1,4 @@
-<div id="thcfg_settings" class="wrap">
+<div id="thcfg_settings" class="wrap thcfg">
<h2>Theme Settings</h2>
<form method="post">

0 comments on commit 0d4ee81

Please sign in to comment.