Giter VIP home page Giter VIP logo

blacklight_rtl's Introduction

Blacklight RTL

Gem Version

Right to Left Layout for Blacklight 5.x.

Preview

Installation

Add Blacklight RTL to your Gemfile:

gem "blacklight_rtl"

Run bundle install to download the latest version:

bundle install

Change the default import statment in blacklight.css.scss to:

@import 'blacklight_rtl/blacklight_rtl';

Localization

You can change the default language to Hebrew, just add config.i18n.default_locale = :heb to application.rb.

Affected Files

This gem overwrite few base view files to change the overall layout to RTL.

Here is the affected files:

  • /app/views/bookmarks/index.html.erb
  • /app/views/search_history/index.html.erb
  • /app/views/_user_util_links.html.erb
  • /app/views/catalog/_constraints.html.erb
  • /app/views/catalog/_facet_pagination.html.erb
  • /app/views/catalog/_index_header_default.html.erb
  • /app/views/catalog/_previous_next_doc.html.erb
  • /app/views/catalog/_sort_and_per_page.html.erb

TODO

  • Translate tools and login sections.
  • Create variables for CSS configuration and expose them to the root appplication.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.