{"id":3414,"date":"2010-01-27T00:00:00","date_gmt":"2010-01-26T22:00:00","guid":{"rendered":"http:\/\/www.theill.com\/blog\/2010\/01\/27\/facebook-css-for-will_paginate-gem\/"},"modified":"2019-04-14T20:46:59","modified_gmt":"2019-04-14T18:46:59","slug":"facebook-css-for-will_paginate-gem","status":"publish","type":"post","link":"https:\/\/www.theill.com\/blog\/2010\/01\/27\/facebook-css-for-will_paginate-gem\/","title":{"rendered":"Facebook CSS for will_paginate gem"},"content":{"rendered":"
Today I needed to add pagination to my Danish beta application for handling your accounting called Hurtigmoms<\/a>. Since I’m developing in Rails it was a logically choice to use \u201cwill_paginate\u201d to support pagination.<\/p>\n Our prototype layout is using a Facebook header and so I wanted my pagination control to mimic their style. If you need something similar you might want to take a look at my CSS styles which are using the default class names used by will_paginate.<\/p>\n Just copy and paste it into your application css file and you\u2019re done.<\/p>\n This is how it looks:<\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" Today I needed to add pagination to my Danish beta application for handling your accounting called Hurtigmoms. Since I’m developing in Rails it was a logically choice to use \u201cwill_paginate\u201d to support pagination. Our prototype layout is using a Facebook header and so I wanted my pagination control to mimic their style. If you need … Continue reading Facebook CSS for will_paginate gem<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[98],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"yoast_head":"\n .pagination {\n font-size: 11px;\n float: right;\n margin: 0;\n padding: 3px 0 4px;\n }\n .pagination a,\n .pagination span {\n padding: 3px 3px 2px;\n }\n .pagination .disabled {\n background:none repeat scroll 0 0 transparent;\n border:medium none;\n color:#999999;\n cursor:default;\n }\n .pagination a {\n color:#3B5998;\n cursor:pointer;\n text-decoration:none;\n }\n .pagination a:hover {\n background-color:#3B5998;\n border-bottom:1px solid #3B5998;\n border-color:#D8DFEA #D8DFEA #3B5998;\n color:#FFFFFF;\n text-decoration:none;\n }\n .pagination .current {}\n .pagination .current {\n border-bottom:2px solid #3B5998;\n border-color:#3B5998;\n color:#3B5998;\n font-weight:bold;\n padding-left:2px;\n padding-right:2px;\n }\n .pagination .current a:hover {\n background-color:#3B5998;\n color:#FFFFFF;\n }\n\n .pagination .prev_page {\n\n }\n .pagination .next_page {\n\n }\n<\/code><\/pre>\n