]> git.quilime.com - clmpr.git/commitdiff
Updated style
authorGabriel Dunne <gdunne@quilime.com>
Sun, 18 Dec 2011 08:36:26 +0000 (00:36 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Sun, 18 Dec 2011 08:36:26 +0000 (00:36 -0800)
get.php
style.css

diff --git a/get.php b/get.php
index 579bd996f8455a173a27f727798d44b445e82ff6..1836133513ea09c33e19f4231e0c5b0a79856b98 100644 (file)
--- a/get.php
+++ b/get.php
@@ -59,28 +59,37 @@ case 'xml' :
 
 </script>
 
-<ul>
+<ul class="links">
 <?php for($i = 0; $row = $q->fetch(); $i++ ): ?>
     
     <li>
-    <?php echo date("Y-m-d", strtotime($row['date'])) ?>
-
-    <a class="uname" href="/?user=<?php echo $row['user'] ?>">
-        <?php echo $row['user'] ?>
-    </a>
-    <a href="<?php echo $row['url'] ?>">
-        <?php echo $row['title'] ? $row['title'] : "&lt;title&gt;" ?>
-    </a>
-    <span class="tags">
+        <span class="url">
+        <a href="<?php echo $row['url'] ?>">
+            <?php echo $row['title'] ? $row['title'] : "&lt;title&gt;" ?>
+        </a>
+        </span>
+
+        <span class="meta">
+
+        <span>
+            <?php echo date("Y-m-d", strtotime($row['date'])) ?> by 
+            <a class="uname" href="/?user=<?php echo $row['user'] ?>"><?php echo $row['user'] ?></a>
+        </span>
+    
+
+        <span class="tags">
         <?php echo $row['tags'] ?>
-    </span>
-    <?php if ($user = get_user()):
-            if ($user['user'] == $row['user']): ?>
-            <!-- &nbsp; 
-            <a href="" class="edit">&#x270F;</a> -->
-            <a href="#" onClick="return deleteClump(<?php echo $row['clump_id']; ?>, this.parentNode);" class="delete">&times;</a>
-    <?php   endif;
-          endif; ?>
+        </span>
+
+        <?php if ($user = get_user()):
+                if ($user['user'] == $row['user']): ?>
+                <!-- &nbsp; 
+                <a href="" class="edit">&#x270F;</a> -->
+                <a href="#" title="Delete" onClick="return deleteClump(<?php echo $row['clump_id']; ?>, this.parentNode);" class="delete">&times;</a>
+        <?php   endif;
+        endif; ?>
+        </span>
+
     </li>
 
 <?php endfor; ?>
index 9f7754c79139f6928c1f432b287c3a7c3a017c70..39b70a79d11f85641f9563f00b43fb326e9c4a79 100644 (file)
--- a/style.css
+++ b/style.css
@@ -1,12 +1,12 @@
 body {
      color: #444444;
-     font-family: Monaco,monospace;
+     font-family: Monaco, monospace;
      font-size: 12px;
      line-height: 1.3em;
 }
 
 a {
-     text-decoration: none;
+    text-decoration:none;
 }
 
 a:hover {
@@ -39,14 +39,24 @@ li {
      display: inline-block;
 }
 
-.uname {
-     color: #888888;
-     text-decoration: none;
+ul.links li {
+    margin-bottom:1.2em;
+}
+ul.links li span.url {
+    display:block;
+}
+ul.links li span.meta {
+    color:#bbb;
+}
+ul.links li span.meta a {
+    color:#bbb;
 }
-
 .delete {
-    color: #DD0000;
     font-weight:bold;
+    padding:0 3px; 
+    line-height:1em;
+    background:#eee;
+    text-decoration:none;
 }
 
 .delete:hover {