Display fixes: shelf tags, search results.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Fri, 19 Sep 2014 14:26:01 +0000 (16:26 +0200)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Fri, 19 Sep 2014 14:26:01 +0000 (16:26 +0200)
apps/wolnelektury_core/static/css/social/shelf_tags.css [deleted file]
apps/wolnelektury_core/static/scss/main.scss
apps/wolnelektury_core/static/scss/main/search.scss
apps/wolnelektury_core/static/scss/main/tag.scss
apps/wolnelektury_core/static/scss/social/shelf_tags.scss [new file with mode: 0644]
wolnelektury/settings/static.py

diff --git a/apps/wolnelektury_core/static/css/social/shelf_tags.css b/apps/wolnelektury_core/static/css/social/shelf_tags.css
deleted file mode 100755 (executable)
index 8843af6..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-.social-shelf-tags {
-    list-style: none;
-    padding: 0;
-    margin: 1em 0;
-    width: 30em;
-    overflow: hidden;
-    text-overflow: ellipsis;
-    white-space: nowrap;
-    position:absolute;
-    margin-left: 15.4em;
-    top: 13.5em;
-    padding: .5em 0;
-    background: #fff;
-}
-
-.social-shelf-tags li {
-    display: inline-block;
-    margin-right:1em;
-    margin-bottom: .5em;
-}
-
-.social-shelf-tags a {
-    display: block;
-    padding: .3em 1em;
-    background: #ABDADE;
-    color: #08646b;
-    border-radius: 1em;
-}
-
-
-.social-shelf-tags:hover {
-    overflow: visible;
-    text-overflow: ellipsis;
-    white-space: normal;
-    z-index: 1000;
-}
index 5a48007..467e607 100644 (file)
@@ -23,3 +23,5 @@
 @import "funding/funding";
 
 @import "polls/polls";
 @import "funding/funding";
 
 @import "polls/polls";
+
+@import "social/shelf_tags";
index 2dac56a..d8a1e06 100755 (executable)
 
 
 .search-result {
 
 
 .search-result {
-    @include size(width, 975px);
+    @include size(border, 1px solid #ddd);
+    @include size(box-shadow, 2px 2px 2px #ddd);
+    @include size(margin, 1px);
+    background: white;
 
 
-    .book-box-body {
-        @include size(width, 310px);
+    @include min-screen($S_BOOK_SHORT_FULL) {
+        @include size(width, $W_BOOK_SHORT_FULL -4px);
+    }
+
+    @media screen and (min-width: 62.5em) {
+        @include size(width, 965px);
+        @include size(padding-right, 8px);
+    }
+
+    .book-box {
+        display: inline-block;
+
+        @include min-screen($S_BOOK_SHORT_FULL) {
+            @include size(width, $W_BOOK_SHORT_FULL - 4px);
+        }
+
+        .book-box-inner {
+            border: none;
+            box-shadow: none;
+            margin: 0;
+        }
     }
 }
 
 
 
 .book-list-header {
     }
 }
 
 
 
 .book-list-header {
-    @include size(width, 975px);
+    @media screen and (min-width: 62.5em) {
+        @include size(width, 975px);
+    }
     padding: 0em;
     @include size(margin-left, -1px);
 
     padding: 0em;
     @include size(margin-left, -1px);
 
 }
 
 .snippets {
 }
 
 .snippets {
-    @include size(width, 440px);
-    float: right;
-    @include size(margin-top, -200px);
+    @media screen and (min-width: 62.5em) {
+        @include size(width, 440px);
+        float: right;
+    }
 
     .snippet-text {
         @include size(font-size, 12px);
 
     .snippet-text {
         @include size(font-size, 12px);
index 844d3da..d120a3f 100755 (executable)
@@ -86,7 +86,7 @@
         display: inline-block;
         vertical-align: top;
         @include size(margin-bottom, 5.5px);
         display: inline-block;
         vertical-align: top;
         @include size(margin-bottom, 5.5px);
-        @include size(width, 385px);
+        @include size(max-width, 385px);
 
         ul {
             list-style: none;
 
         ul {
             list-style: none;
diff --git a/apps/wolnelektury_core/static/scss/social/shelf_tags.scss b/apps/wolnelektury_core/static/scss/social/shelf_tags.scss
new file mode 100644 (file)
index 0000000..f20fba8
--- /dev/null
@@ -0,0 +1,40 @@
+.social-shelf-tags {
+    list-style: none;
+    padding: 0;
+    margin: 10px 0;
+
+    @include min-screen($S_BOOK_SHORT_FULL) {
+        position: absolute;
+        top: 134px;
+        left: 152px;
+        padding: 10px 10px 5px 10px;
+        margin: 10px 0;
+        width: 310px;
+        overflow: hidden;
+        text-overflow: ellipsis;
+        white-space: nowrap;
+
+        &:hover {
+            overflow: visible;
+            text-overflow: ellipsis;
+            white-space: normal;
+            z-index: 1000;
+            background: #fff;
+            box-shadow: 0 0 2px #ddd;
+        }
+    }
+
+    li {
+        display: inline-block;
+        margin-right: .5em;
+        margin-bottom: .5em;
+
+        a {
+            display: block;
+            padding: .2em .9em;
+            background: #ABDADE;
+            color: #08646b;
+            border-radius: 1em;
+        }
+    }
+}
index 7ea3d70..306e718 100644 (file)
@@ -20,10 +20,9 @@ PIPELINE_CSS = {
     'main': {
         # styles both for mobile and for big screen
         'source_filenames': [
     'main': {
         # styles both for mobile and for big screen
         'source_filenames': [
-            'css/jquery.countdown.css', 
+            'css/jquery.countdown.css',
 
             'sponsors/css/sponsors.css',
 
             'sponsors/css/sponsors.css',
-            'css/social/shelf_tags.css',
 
             'uni_form/uni-form.css',
             'uni_form/default.uni-form.css',
 
             'uni_form/uni-form.css',
             'uni_form/default.uni-form.css',
@@ -58,8 +57,8 @@ PIPELINE_CSS = {
     },
     'player': {
         'source_filenames': [
     },
     'player': {
         'source_filenames': [
-            'jplayer/jplayer.blue.monday.css', 
-            'player/player.css', 
+            'jplayer/jplayer.blue.monday.css',
+            'player/player.css',
         ],
         'output_filename': 'css/compressed/player.css',
     },
         ],
         'output_filename': 'css/compressed/player.css',
     },
@@ -90,16 +89,16 @@ PIPELINE_JS = {
             'player/openplayer.js',
             'js/search.js',
             'funding/funding.js',
             'player/openplayer.js',
             'js/search.js',
             'funding/funding.js',
-            
+
             'uni_form/uni-form.js',
             ),
         'output_filename': 'js/base.min.js',
     },
     'player': {
         'source_filenames': [
             'uni_form/uni-form.js',
             ),
         'output_filename': 'js/base.min.js',
     },
     'player': {
         'source_filenames': [
-            'jplayer/jquery.jplayer.min.js', 
-            'jplayer/jplayer.playlist.min.js', 
-            'player/player.js', 
+            'jplayer/jquery.jplayer.min.js',
+            'jplayer/jplayer.playlist.min.js',
+            'player/player.js',
         ],
         'output_filename': 'js/player.min.js',
     },
         ],
         'output_filename': 'js/player.min.js',
     },