Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Bootstrap 2 framework; ReAdd simple_form and convert search form …
…to use it; Refactor Items search into query object; Fix Book#page_urls URL generation; Add preferences model and UI
- Loading branch information
1 parent
3f92137
commit 2590057
Showing
27 changed files
with
551 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
//= require jquery | ||
//= require jquery_ujs | ||
//= require bootstrap | ||
//= require utils | ||
//= require lib/URI.js | ||
//= require lib/featherlight.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$baseFontSize: 16px; | ||
$baseLineHeight: 22px; | ||
$textColor: #000000; | ||
|
||
@import "bootstrap"; | ||
@import "style"; | ||
@import "lib/featherlight.min"; | ||
@import "index"; | ||
@import "show"; | ||
@import "thumbnail_sizes"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
#items-index { | ||
ul { margin: 0; } | ||
|
||
#header { padding: 10px; } | ||
#search_form { | ||
margin-bottom: 0; | ||
} | ||
#actions { float: right; } | ||
|
||
#wrapper { position: relative; background-color: #000000; } | ||
|
||
#tag_cloud, #header { background-color: #ffffff; } | ||
#tag_cloud { position: absolute; top: 0; right: 0; z-index: 1000; width: 500px; background-color: #ffffff; padding: 15px; } | ||
#tag_cloud .size_1 { font-size: 1.0em; } | ||
#tag_cloud .size_2 { font-size: 1.2em; } | ||
#tag_cloud .size_3 { font-size: 1.4em; } | ||
#tag_cloud .size_4 { font-size: 1.6em; } | ||
|
||
.title { } | ||
#items { | ||
padding: 2px 0 0 2px; | ||
|
||
li { | ||
margin: 0 2px 2px 0; | ||
float: left; | ||
list-style-type: none; | ||
position: relative; | ||
overflow: hidden; | ||
|
||
.emblems, .actions { | ||
display: block; | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
padding: 1px; | ||
line-height: 0; | ||
background-color: #ffffff; | ||
} | ||
|
||
.actions { | ||
display: none; | ||
right: auto; | ||
left: 0; | ||
width: 32px; | ||
} | ||
|
||
.wrapper { | ||
position: relative; | ||
} | ||
|
||
.info-wrapper { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
background-color: #ffffff; | ||
} | ||
|
||
.info { | ||
padding: 2px; | ||
img { | ||
vertical-align: middle; | ||
} | ||
} | ||
|
||
&.no_results { | ||
color: #ffffff; | ||
width: auto; | ||
float: none; | ||
text-align: center; | ||
padding: 40px 0; | ||
} | ||
|
||
&:hover { | ||
.actions { | ||
display: block; | ||
} | ||
} | ||
} | ||
|
||
.tag_list { | ||
min-height: 1.2em; | ||
|
||
&:hover { | ||
background-color: #ffffaa; | ||
} | ||
} | ||
|
||
input { | ||
width: 100%; | ||
} | ||
|
||
.title_image { | ||
float: left; | ||
margin-right: 15px; | ||
} | ||
|
||
#info { | ||
float: left; | ||
width: 315px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,14 @@ | ||
* { margin: 0; padding: 0; font: 16px/1.3em 'Open Sans', Helvetica, Arial, sans-serif; } | ||
body { color: #000000; padding: 2px; } | ||
* { font-family: 'Open Sans', Helvetica, Arial, sans-serif; } | ||
body { color: #000000; } | ||
img { border: none; vertical-align: middle; } | ||
li { margin-left: 30px; } | ||
p, ul { margin-bottom: 1.3em; } | ||
|
||
.clear { clear: both; } | ||
|
||
#header { padding: 10px; } | ||
#search { width: 300px; border: 1px solid #a0a0a0; } | ||
#actions { float: right; } | ||
|
||
input[type="text"], select { padding: 1px; } | ||
.selector { display: inline; margin-right: 20px; } | ||
.selector li { display: inline; margin-left: 0; margin-right: 5px; } | ||
.selector li:last-child { margin-right: 0; } | ||
.selector li.selected a { font-weight: bold; text-decoration: none; color: #000000; } | ||
|
||
#wrapper { position: relative; background-color: #000000; } | ||
|
||
#tag_cloud, #header { background-color: #ffffff; } | ||
#tag_cloud { position: absolute; top: 0; right: 0; z-index: 1000; width: 500px; background-color: #ffffff; padding: 15px; } | ||
#tag_cloud .size_1 { font-size: 1.0em; } | ||
#tag_cloud .size_2 { font-size: 1.2em; } | ||
#tag_cloud .size_3 { font-size: 1.4em; } | ||
#tag_cloud .size_4 { font-size: 1.6em; } | ||
|
||
.title { } | ||
#items { padding: 2px 0 0 2px; } | ||
#items li { margin: 0 2px 2px 0; float: left; list-style-type: none; position: relative; overflow: hidden; } | ||
#items li .emblems, #items li .actions { display: block; position: absolute; top: 0; right: 0; padding: 1px; line-height: 0; background-color: #ffffff; } | ||
#items li .actions { display: none; right: auto; left: 0; width: 32px; } | ||
#items li .wrapper { position: relative; } | ||
#items li .info-wrapper { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
background-color: #ffffff; | ||
} | ||
#items li .info { padding: 2px; } | ||
#items li .info img { vertical-align: middle; } | ||
#items .tag_list { min-height: 1.2em; } | ||
#items .tag_list:hover { background-color: #ffffaa; } | ||
#items input { width: 100%; } | ||
|
||
#items li.no_results { color: #ffffff; width: auto; float: none; text-align: center; padding: 40px 0; } | ||
/*#items .tags form { display: none; }*/ | ||
|
||
#items li:hover .actions { display: block; } | ||
|
||
#item .title_image { float: left; margin-right: 15px; } | ||
#item #info { float: left; width: 315px; } | ||
|
||
/* | ||
#items-index body { | ||
background-image: -webkit-gradient( | ||
linear, | ||
left top, | ||
right bottom, | ||
color-stop(0.39, rgb(0,0,0)), | ||
color-stop(0.73, rgb(46,46,46)) | ||
); | ||
background-image: -moz-linear-gradient( | ||
left top, | ||
rgb(0,0,0) 39%, | ||
rgb(46,46,46) 73% | ||
); | ||
}*/ | ||
|
||
@media screen and (max-width: 844px) { | ||
.desktop-only { display: none; } | ||
} | ||
|
||
.table { | ||
width: auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.