Koha/koha-tmpl/opac-tmpl/bootstrap/less/right-to-left.less
Owen Leonard 48298fe494 Bug 11411 - Bootstrap theme (enhancement) for (right to left)
This patch improves Koha's layout when a right-to-left language is being
displayed by correcting a float set by the right-to-left version of
Bootstrap CSS.

The patch modifies the right-to-left Less file and includes a
now-minified version of the compiled CSS.

To test, install a right-to-left language like ar-Arab. Apply the patch
and view the OPAC under the Bootstrap theme. When logged in, the log out
link is now aligned to the left.

Signed-off-by: Holger Meißner <h.meissner.82@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2014-02-19 21:32:07 +00:00

561 lines
No EOL
8.3 KiB
Text

.popup {
padding-right : 0;
padding-left: 0;
}
a {
&.cancel {
padding-right : 1em;
}
}
h1 {
&#libraryname {
float: right !important;
}
}
caption {
text-align: right;
}
#basketcount {
span {
margin : 0 .9em 0 0;
}
}
#koha_url p {
float : left;
}
.actions {
a {
&.hold {
margin-left : 1em;
padding-right : 21px;
}
&.addtocart {
margin-left : 1em;
padding-right : 20px;
}
&.addtoshelf {
margin-left : 1em;
padding-right : 20px;
}
&.addtolist {
margin-left : 1em;
padding-right : 20px;
}
&.tag_add {
margin-left : 1em;
padding-right : 20px;
}
/* List contents remove from list link */
&.removefromlist {
margin-left : 1em;
padding-right : 15px;
}
}
}
.ui-tabs .ui-tabs-nav li {
margin-left : .4em;
}
.statictabs {
li {
float: right;
margin-left: 0.4em;
a {
float: right;
}
}
}
#bookcover .no-image {
margin-left : 10px;
}
th.sum {
text-align: left;
}
th[scope=row] {
text-align : left;
}
fieldset {
&.rows {
float : right;
clear : right;
label,
.label {
float: right;
margin-left: 1em;
text-align: left;
}
ol {
&.lradio {
label {
margin-left : 0;
&.lradio {
float : right;
margin-left : 1em;
}
}
}
}
li {
float : right;
clear : right;
&.lradio {
padding-right: 8.5em;
label {
margin : 0 1em 0 0;
}
}
}
}
}
div.rows {
float : right;
clear : right;
span.label {
float: right;
margin-left: 1em;
text-align: right;
}
ol {
margin-right : 0;
padding: .5em 0 0 1em;
}
li {
float : right;
clear : right;
}
ul {
li {
margin-right : 7.3em;
&:first-child {
margin-right: 0;
}
}
}
}
.toolbar {
padding:3px 5px 5px 3px;
label {
margin-right : .5em;
}
.hold,
#tagsel_tag {
padding-right: 28px;
}
li {
a {
border-right : 1px solid #e8e8e8;
}
&:first-child {
a {
border-right : 0;
}
}
}
ul {
padding-right : 0;
}
}
#basket .toolbar {
padding: 7px 9px 9px 5px;
}
#selections-toolbar {
padding-right : 10px;
}
#tagsel_span input.submit,
#tagsel_tag {
padding-right : 25px;
}
#tagsel_span input.disabled,
#tagsel_span input.disabled:hover,
#tagsel_span input.hold.disabled,
#tagsel_span input.hold.disabled:hover,
#selections-toolbar input.hold.disabled,
#selections-toolbar input.hold.disabled:hover,
#selections-toolbar a.disabled,
#selections-toolbar a.disabled:hover {
padding-right : 23px;
}
#views {
padding : 0 0.2em 0.2em 2em;
}
#bibliodescriptions,
#isbdcontents {
clear : right;
}
#bookcover {
float : right;
.no-image {
margin-left : 10px;
}
img {
margin : 0 0 1em 1em;
}
}
/* pagination */
.results-pagination {
right: -1px;
}
.back {
float:left;
}
.pagination_list {
ul {
padding-right:0px;
}
li {
a {
padding-right:0px;
}
}
.li_pag_index {
float: right;
padding-left: 10px;
text-align: left;
}
}
.pg_menu {
li {
&.back_results {
a {
border-right: 1px solid #D0D0D0;
border-left: 1px solid #D0D0D0;
}
}
a,
span {
float:right;
}
}
}
#listResults{
li {
margin-left:1px;
}
}
/* nav */
.nav_pages {
.close_pagination {
padding-left: 10px;
left: 3px;
}
li {
float:right;
ul {
float:right;
}
}
}
#format,
#furthersearches {
padding-right : 35px;
}
.highlight_controls {
float: right;
}
a.addtocart {
padding-right : 35px;
}
a.addtoshelf {
padding-right : 35px;
}
a.brief {
padding-right : 27px;
}
a.detail {
padding-right : 27px;
}
a.download {
padding-right : 20px;
}
a.editshelf {
padding-right : 26px;
}
a.empty {
padding-right : 30px;
}
a.hide {
padding-right : 26px;
}
a.highlight_toggle {
padding-right : 35px;
}
a.hold,
input.hold {
padding-right : 23px;
}
a.incart {
padding-right : 35px;
}
a.new {
padding-right : 23px;
}
a.print-small {
padding-right : 30px;
}
a.print-large {
padding-right : 35px;
}
a.removeitems,
a.deleteshelf {
padding-right : 25px;
}
a.reserve {
padding-right : 35px;
}
a.send {
padding-right : 28px;
}
a.tag_add {
padding-right : 27px;
}
input.editshelf {
padding-right : 29px;
}
.newshelf {
padding-right : 28px;
}
.deleteshelf {
padding-right : 25px;
}
#login4tags {
padding-right : 20px;
}
.tag_results_input {
margin-right: 1em;
}
#social_networks {
span {
float : right;
margin : .5em .5em .5em 0 !important;
}
div {
float : right !important;
margin : .5em .2em .5em 0 !important;
}
}
#marc {
td,
th {
text-align : right;
}
.results_summary {
clear : right;
}
}
#plainmarc th {
text-align:right;
}
#renewcontrols {
float: left;
}
.authstanza li {
margin-right: 0.5em;
}
#didyoumean {
text-align: right;
}
.authlink {
padding-right: 0.25em;
}
#search-facets,
#menu {
h4 {
a {
border-radius: 8px 0 0 8px;
}
}
}
#menu {
border : 0 solid #D8D8D8;
border-left-width: 1px;
li {
a {
border-radius: 0 5px 5px 0;
margin-left: -1px;
}
&.active {
a {
border-left-width: 0;
border-right-width: 1px;
}
}
}
}
/* Search results add to cart (lists disabled) */
.addto a.addtocart {
padding-right : 33px;
}
.searchresults {
a {
&.highlight_toggle {
padding : 0 21px 0 10px;
}
}
}
.commentline .avatar {
float : left;
padding-right : .5em;
}
span.sep {
padding: 0 .5em 0 .2em;
}
/* style for PM-generated pagination bar */
.pages span:first-child,
.pages a:first-child {
border-bottom-right-radius: 3px;
border-top-right-radius: 3px;
}
.pages span:last-child,
.pages a:last-child {
border-width: 1px 0 1px 1px;
border-bottom-left-radius: 3px;
border-top-left-radius: 3px;
}
.pages .inactive,
.pages .currentPage,
.pages a {
border-width: 1px 0 1px 1px;
float: right;
}
.pages a[rel='last'] {
border-bottom-left-radius: 3px;
border-top-left-radius: 3px;
}
.close {
left : auto;
}
/* Redefine a new style for Bootstrap's class "close" since we use that already */
/* Use <a class="closebtn" href="#">&times;</a> */
.alert .closebtn {
left:-21px;
}
.closebtn {
float:left;
}
#logo {
float : right !important;
}
/* Class to be added to toolbar when it starts being fixed at the top of the screen*/
.floating {
-webkit-box-shadow: 0px 0px 2px 3px rgba(0, 0, 0, .4);
box-shadow: 0px 0px 2px 3px rgba(0, 0, 0, .4);
}
.table {
.sorting_asc {
padding-left: 19px;
background: url("../images/asc.gif") no-repeat scroll left center #ECEDE6;
}
.sorting_desc {
padding-left: 19px;
background: url("../images/desc.gif") no-repeat scroll left center #ECEDE6;
}
.sorting {
padding-left: 19px;
background: url("../images/ascdesc.gif") no-repeat scroll left center #ECEDE6;
}
.nosort,
.nosort.sorting_asc,
.nosort.sorting_desc,
.nosort.sorting {
padding-left: 19px;
}
}
.tags {
ul {
margin-right : 0;
}
}
.coverimages {
float : left;
}
#i18nMenu {
margin-right : 1em;
}
#overdrive-results {
padding-right: 1em;
}
.navbar {
.pull-right {
float : left;
}
}