blacklight_rtl 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. data/app/assets/stylesheets/blacklight_rtl/_blacklight_rtl_base.css.scss +16 -47
  2. data/app/assets/stylesheets/blacklight_rtl/_bookmark.css.scss +13 -38
  3. data/app/assets/stylesheets/blacklight_rtl/_bootstrap_rtl.css.scss +87 -0
  4. data/app/assets/stylesheets/blacklight_rtl/_catalog.css.scss +11 -250
  5. data/app/assets/stylesheets/blacklight_rtl/_facets.css.scss +19 -191
  6. data/app/assets/stylesheets/blacklight_rtl/_header.css.scss +14 -53
  7. data/app/assets/stylesheets/blacklight_rtl/_patches.css.scss +3 -0
  8. data/app/assets/stylesheets/blacklight_rtl/_search_history.css.scss +11 -42
  9. data/app/assets/stylesheets/blacklight_rtl/blacklight_rtl.css.scss +4 -5
  10. data/app/views/_user_util_links.html.erb +38 -0
  11. data/app/views/bookmarks/index.html.erb +20 -0
  12. data/app/views/catalog/_constraints.html.erb +10 -0
  13. data/app/views/catalog/_facet_pagination.html.erb +19 -0
  14. data/app/views/catalog/_index_header_default.html.erb +21 -0
  15. data/app/views/catalog/_previous_next_doc.html.erb +11 -9
  16. data/app/views/catalog/_sort_and_per_page.html.erb +8 -0
  17. data/app/views/search_history/index.html.erb +25 -0
  18. data/config/locales/blacklight.heb.yml +25 -28
  19. data/lib/blacklight_rtl/version.rb +1 -1
  20. metadata +27 -39
  21. data/app/assets/stylesheets/blacklight_rtl/_dropdown.css.scss +0 -57
  22. data/app/assets/stylesheets/blacklight_rtl/_footer.css.scss +0 -0
  23. data/app/assets/stylesheets/blacklight_rtl/_layout.css.scss +0 -11
  24. data/app/assets/stylesheets/blacklight_rtl/_mixins.css.scss +0 -0
  25. data/app/assets/stylesheets/blacklight_rtl/_modal.css.scss +0 -27
  26. data/app/assets/stylesheets/blacklight_rtl/_print.css.scss +0 -0
  27. data/app/assets/stylesheets/blacklight_rtl/_responsive.css.scss +0 -3
  28. data/app/assets/stylesheets/blacklight_rtl/application.css +0 -13
  29. data/app/assets/stylesheets/blacklight_rtl/blacklight_defaults.css.scss +0 -48
  30. data/app/assets/stylesheets/blacklight_rtl/responsive_partials/_catalog.css.scss +0 -5
  31. data/app/assets/stylesheets/blacklight_rtl/responsive_partials/_facets.css.scss +0 -37
  32. data/app/assets/stylesheets/blacklight_rtl/responsive_partials/_header.css.scss +0 -30
  33. data/app/assets/stylesheets/bootstrap_rtl/_bootstrap_rtl_base.css.scss +0 -51
  34. data/app/assets/stylesheets/bootstrap_rtl/bootstrap_rtl.css.scss +0 -5
  35. data/app/assets/stylesheets/improved-modal/bootstrap-modal.css +0 -217
  36. data/app/views/catalog/_per_page_widget.html.erb +0 -15
  37. data/app/views/catalog/_search_form.html.erb +0 -21
  38. data/app/views/catalog/_sort_widget.html.erb +0 -14
  39. data/app/views/catalog/index.html.erb +0 -29
  40. data/app/views/layouts/blacklight_rtl/application.html.erb +0 -14
  41. data/app/views/shared/_header_navbar.html.erb +0 -27
@@ -1,5 +0,0 @@
1
- @media (max-width: 767px) {
2
- #documents .documentFunctions {
3
- margin-top: 0;
4
- }
5
- }
@@ -1,37 +0,0 @@
1
- @media (max-width: 767px) {
2
- #facets .btn-navbar {
3
- display: block;
4
- }
5
- .facets-collapse {
6
- clear: both;
7
-
8
- &.in {
9
-
10
- }
11
-
12
- &, &.collapse {
13
- overflow: hidden;
14
- height: 0;
15
- }
16
-
17
- &.collapse.in {
18
- height: auto !important;
19
- }
20
- }
21
-
22
- .no-js .facets-collapse, .no-js .facets-collapse.collapse {
23
- height: auto !important;
24
- overflow: visible !important;
25
- }
26
- }
27
-
28
- @media (min-width: 768px) {
29
- .facets-collapse.collapse {
30
- height: auto !important;
31
- overflow: visible !important;
32
- }
33
-
34
- .facet-collapse-toggle {
35
- display: none;
36
- }
37
- }
@@ -1,30 +0,0 @@
1
- @media (max-width: 979px) {
2
- body {
3
- padding-top: 0;
4
- }
5
-
6
- }
7
- @media (max-width: 979px) {
8
- .submit-search-text {
9
- display: none;
10
- }
11
-
12
-
13
- .navbar .brand {
14
- width: 120px;
15
- }
16
-
17
- #search_field {
18
- width: 50px;
19
- }
20
- }
21
-
22
- @media (max-width: 480px) {
23
- #search_field {
24
- display: none;
25
- }
26
-
27
- .navbar .brand {
28
- width: 35px;
29
- }
30
- }
@@ -1,51 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- /* TODO: split this file into the correct partials inside the bootstrap folder */
4
-
5
- /* Button input with a left rounded corner */
6
- .input-append .btn:last-child {
7
- @include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
8
- }
9
-
10
- /* Input text with a right rounded corner */
11
- .input-append input {
12
- @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
13
- }
14
-
15
- /* Close button used by the lightbox */
16
- .close {
17
- float: left;
18
- }
19
-
20
- /* First and last button inside a button group */
21
- .btn-group > .btn:first-child {
22
- @include border-top-left-radius(0);
23
- @include border-bottom-left-radius(0);
24
- @include border-top-right-radius($baseBorderRadius);
25
- @include border-bottom-right-radius($baseBorderRadius);
26
- }
27
-
28
- .btn-group > .btn:last-child {
29
- @include border-top-right-radius(0);
30
- @include border-bottom-right-radius(0);
31
- @include border-top-left-radius($baseBorderRadius);
32
- @include border-bottom-left-radius($baseBorderRadius);
33
- }
34
-
35
- /* RTL each preview inside the documents div */
36
- .dl-horizontal {
37
- dt {
38
- float: right;
39
- text-align: left;
40
- }
41
- dd {
42
- margin-left: 0;
43
- margin-right: $horizontalComponentOffset;
44
- }
45
- }
46
-
47
- .form-inline .checkbox input[type="checkbox"] {
48
- float: right;
49
- margin-left: 3px;
50
- margin-right: 0;
51
- }
@@ -1,5 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- /* This is the customized right to left bootstrap theme. */
4
-
5
- @import 'bootstrap_rtl/bootstrap_rtl_base';
@@ -1,217 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- /*!
4
- * Bootstrap Modal
5
- *
6
- * Copyleft Jordan Schroter
7
- * Licensed under the Apache License v2.0
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- */
11
-
12
- .modal-open {
13
- position: relative; /* safari */
14
- overflow: hidden;
15
- }
16
-
17
-
18
- /* add a scroll bar to stop page from jerking around */
19
- .modal-open.page-overflow .page-container,
20
- .modal-open.page-overflow .page-container .navbar-fixed-top,
21
- .modal-open.page-overflow .page-container .navbar-fixed-bottom,
22
- .modal-open.page-overflow .modal-scrollable {
23
- overflow-y: scroll;
24
- }
25
-
26
- @media (max-width: 979px) {
27
- .modal-open.page-overflow .page-container .navbar-fixed-top,
28
- .modal-open.page-overflow .page-container .navbar-fixed-bottom {
29
- overflow-y: visible;
30
- }
31
- }
32
-
33
-
34
- .modal-scrollable {
35
- position: fixed;
36
- top: 0;
37
- bottom: 0;
38
- right: 0;
39
- left: 0;
40
- overflow: auto;
41
- }
42
-
43
- .modal {
44
- outline: none;
45
- position: absolute;
46
- margin-top: 0;
47
- top: 50%;
48
- overflow: visible; /* allow content to popup out (i.e tooltips) */
49
- }
50
-
51
- .modal.fade {
52
- top: -100%;
53
- -webkit-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
54
- -moz-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
55
- -o-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
56
- transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
57
- }
58
-
59
- .modal.fade.in {
60
- top: 50%;
61
- }
62
-
63
- .modal-body {
64
- max-height: none;
65
- overflow: visible;
66
- }
67
-
68
- .modal.modal-absolute {
69
- position: absolute;
70
- z-index: 950;
71
- }
72
-
73
- .modal .loading-mask {
74
- position: absolute;
75
- top: 0;
76
- bottom: 0;
77
- right: 0;
78
- left: 0;
79
- background: #fff;
80
- border-radius: 6px;
81
- }
82
-
83
- .modal-backdrop.modal-absolute{
84
- position: absolute;
85
- z-index: 940;
86
- }
87
-
88
- .modal-backdrop,
89
- .modal-backdrop.fade.in{
90
- opacity: 0.7;
91
- filter: alpha(opacity=70);
92
- background: #fff;
93
- }
94
-
95
- .modal.container {
96
- width: 940px;
97
- margin-right: -470px;
98
- }
99
-
100
- /* Modal Overflow */
101
-
102
- .modal-overflow.modal {
103
- top: 1%;
104
- }
105
-
106
- .modal-overflow.modal.fade {
107
- top: -100%;
108
- }
109
-
110
- .modal-overflow.modal.fade.in {
111
- top: 1%;
112
- }
113
-
114
- .modal-overflow .modal-body {
115
- overflow: auto;
116
- -webkit-overflow-scrolling: touch;
117
- }
118
-
119
- /* Responsive */
120
-
121
- @media (min-width: 1200px) {
122
- .modal.container {
123
- width: 1170px;
124
- margin-right: -585px;
125
- }
126
- }
127
-
128
- @media (max-width: 979px) {
129
- .modal,
130
- .modal.container,
131
- .modal.modal-overflow {
132
- top: 1%;
133
- left: 1%;
134
- right: 1%;
135
- bottom: auto;
136
- width: auto !important;
137
- height: auto !important;
138
- margin: 0 !important;
139
- padding: 0 !important;
140
- }
141
-
142
- .modal.fade.in,
143
- .modal.container.fade.in,
144
- .modal.modal-overflow.fade.in {
145
- top: 1%;
146
- bottom: auto;
147
- }
148
-
149
- .modal-body,
150
- .modal-overflow .modal-body {
151
- position: static;
152
- margin: 0;
153
- height: auto !important;
154
- max-height: none !important;
155
- overflow: visible !important;
156
- }
157
-
158
- .modal-footer,
159
- .modal-overflow .modal-footer {
160
- position: static;
161
- }
162
- }
163
-
164
- .loading-spinner {
165
- position: absolute;
166
- top: 50%;
167
- right: 50%;
168
- margin: -12px 0 0 -12px;
169
- }
170
-
171
- /*
172
- Animate.css - http://daneden.me/animate
173
- Licensed under the ☺ license (http://licence.visualidiot.com/)
174
-
175
- Copyleft (c) 2012 Dan Eden*/
176
-
177
- .animated {
178
- -webkit-animation-duration: 1s;
179
- -moz-animation-duration: 1s;
180
- -o-animation-duration: 1s;
181
- animation-duration: 1s;
182
- -webkit-animation-fill-mode: both;
183
- -moz-animation-fill-mode: both;
184
- -o-animation-fill-mode: both;
185
- animation-fill-mode: both;
186
- }
187
-
188
- @-webkit-keyframes shake {
189
- 0%, 100% {-webkit-transform: translateX(0);}
190
- 10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-10px);}
191
- 20%, 40%, 60%, 80% {-webkit-transform: translateX(10px);}
192
- }
193
-
194
- @-moz-keyframes shake {
195
- 0%, 100% {-moz-transform: translateX(0);}
196
- 10%, 30%, 50%, 70%, 90% {-moz-transform: translateX(-10px);}
197
- 20%, 40%, 60%, 80% {-moz-transform: translateX(10px);}
198
- }
199
-
200
- @-o-keyframes shake {
201
- 0%, 100% {-o-transform: translateX(0);}
202
- 10%, 30%, 50%, 70%, 90% {-o-transform: translateX(-10px);}
203
- 20%, 40%, 60%, 80% {-o-transform: translateX(10px);}
204
- }
205
-
206
- @keyframes shake {
207
- 0%, 100% {transform: translateX(0);}
208
- 10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
209
- 20%, 40%, 60%, 80% {transform: translateX(10px);}
210
- }
211
-
212
- .shake {
213
- -webkit-animation-name: shake;
214
- -moz-animation-name: shake;
215
- -o-animation-name: shake;
216
- animation-name: shake;
217
- }
@@ -1,15 +0,0 @@
1
- <% if show_sort_and_per_page? and !blacklight_config.per_page.blank? %>
2
- <div id="per_page-dropdown" class="dropdown pull-left hidden-phone">
3
- <span class="hide-text"><%= t('blacklight.search.per_page.title') %></span>
4
- <ul class="css-dropdown">
5
- <li class="btn">
6
- <%= link_to(t(:'blacklight.search.per_page.button_label', :count => current_per_page), "#") %> <span class="caret"></span>
7
- <ul>
8
- <%- blacklight_config.per_page.each do |count| %>
9
- <li><%= link_to(t(:'blacklight.search.per_page.label', :count => count).html_safe, url_for(params_for_search(:per_page => count))) %></li>
10
- <%- end -%>
11
- </ul>
12
- </li>
13
- </ul>
14
- </div>
15
- <% end %>
@@ -1,21 +0,0 @@
1
- <%= form_tag search_action_url, :method => :get, :class => 'search-query-form form-inline clearfix' do %>
2
- <%= search_as_hidden_fields(:omit_keys => [:q, :search_field, :qt, :page]).html_safe %>
3
-
4
- <% unless search_fields.empty? %>
5
- <div class="pull-right">
6
- <label for="search_field" class="hide-text"><%= t('blacklight.search.form.search_field.label') %></label>
7
- <%= select_tag(:search_field, options_for_select(search_fields, h(params[:search_field])), :title => t('blacklight.search.form.search_field.title'), :class=>"search_field input-small") %>
8
- <span class="hide-text"><%= t('blacklight.search.form.search_field.post_label') %></span>
9
- </div>
10
- <% end %>
11
- <div class="input-append pull-right">
12
- <label for="q" class="hide-text"><%= t('blacklight.search.form.q') %></label>
13
- <%= text_field_tag :q, params[:q], :placeholder => t('blacklight.search.form.q'), :class => "search_q q", :id => "q"%>
14
- <button type="submit" class="btn btn-primary search-btn" id="search">
15
- <span class="submit-search-text"><%= t('blacklight.search.form.submit')%></span>
16
- <i class="icon-search icon-white"></i>
17
- </button>
18
-
19
- </div>
20
-
21
- <% end %>
@@ -1,14 +0,0 @@
1
- <% if show_sort_and_per_page? and !blacklight_config.sort_fields.blank? %>
2
- <div id="sort-dropdown" class="dropdown pull-left hidden-phone">
3
- <ul class="css-dropdown">
4
- <li class="btn">
5
- <%= link_to(t('blacklight.search.sort.label', :field =>current_sort_field.label), "#") %> <span class="caret"></span>
6
- <ul>
7
- <%- blacklight_config.sort_fields.each do |sort_key, field| %>
8
- <li><%= link_to(field.label, url_for(params_for_search(:sort => sort_key))) %></li>
9
- <%- end -%>
10
- </ul>
11
- </li>
12
- </ul>
13
- </div>
14
- <% end %>
@@ -1,29 +0,0 @@
1
- <div id="sidebar" class="span9">
2
- <% unless has_search_parameters? %>
3
- <%# if there are no input/search related params, display the "home" partial -%>
4
- <%= render 'home' %>
5
- <% else %>
6
-
7
- <h2 class="hide-text top-content-title"><%= t('blacklight.search.search_results_header') %></h2>
8
-
9
- <% @page_title = t('blacklight.search.title', :application_name => application_name) %>
10
-
11
- <% extra_head_content << render_opensearch_response_metadata.html_safe %>
12
-
13
- <%= render :partial => 'did_you_mean' %>
14
-
15
- <%= render :partial => 'constraints' %>
16
-
17
- <%= render 'sort_and_per_page' %>
18
-
19
- <h2 class="hide-text"><%= t('blacklight.search.search_results') %></h2>
20
- <%= render_document_index %>
21
-
22
- <%= render 'results_pagination' %>
23
-
24
- <% end %>
25
- </div><!--/well -->
26
-
27
- <div id="content" class="span3">
28
- <%= render :partial=>'facets' %>
29
- </div>
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>BlacklightRtl</title>
5
- <%= stylesheet_link_tag "blacklight_rtl/application", media: "all" %>
6
- <%= javascript_include_tag "blacklight_rtl/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>