changeset 389:433bc70e1781

Style up Pastes#show a bit.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 13:05:31 +0900
parents 797e351b2e2b
children 91dabc034389
files app/assets/stylesheets/_layout.scss app/assets/stylesheets/_show-paste.scss app/assets/stylesheets/application.scss
diffstat 3 files changed, 44 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/assets/stylesheets/_layout.scss	Sun Jun 07 10:33:17 2015 +0900
+++ b/app/assets/stylesheets/_layout.scss	Sun Jun 07 13:05:31 2015 +0900
@@ -28,7 +28,7 @@
 }
 
 main {
-  flex: 1 0 auto;
+  flex: 1;
   width: 100%;
 
   display: flex;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/stylesheets/_show-paste.scss	Sun Jun 07 13:05:31 2015 +0900
@@ -0,0 +1,42 @@
+#paste-show {
+  flex: 1;
+  display: flex;
+  flex-direction: column;
+
+  .nav {
+    flex: none;
+    display: flex;
+    list-style: none;
+    justify-content: space-between;
+    padding: 0px;
+    margin: (-$spacing) (-$spacing) $spacing;
+
+    li {
+      flex: 1;
+
+      a {
+        display: block;
+        padding: $spacing;
+        text-align: center;
+        &:hover {
+          background-color: #ccc;
+        }
+      }
+    }
+  }
+
+  pre {
+    white-space: pre-wrap;
+  }
+}
+
+#paste {
+  flex: 1;
+  overflow: auto;
+}
+
+#paste-show-nav {
+  flex: none;
+  display: flex;
+  flex-direction: column;
+}
--- a/app/assets/stylesheets/application.scss	Sun Jun 07 10:33:17 2015 +0900
+++ b/app/assets/stylesheets/application.scss	Sun Jun 07 13:05:31 2015 +0900
@@ -3,3 +3,4 @@
 @import "layout";
 
 @import "new-paste";
+@import "show-paste";