[Koha-patches] [PATCH] Bug 10865 [Follow-up] Add style to warning
Owen Leonard
oleonard at myacpl.org
Tue Feb 25 19:35:44 CET 2014
This patch adds a new "hint" class for displaying information relating
to a form field. On the list edit screen the hint also has an alert
class to highlight it.
---
koha-tmpl/opac-tmpl/bootstrap/css/opac.css | 7 +++++++
.../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 2 +-
koha-tmpl/opac-tmpl/bootstrap/less/opac.less | 4 ++++
koha-tmpl/opac-tmpl/bootstrap/less/responsive.less | 3 +++
4 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/opac.css b/koha-tmpl/opac-tmpl/bootstrap/css/opac.css
index 99719d5..542ecd2 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/css/opac.css
+++ b/koha-tmpl/opac-tmpl/bootstrap/css/opac.css
@@ -744,6 +744,10 @@ fieldset.rows li.lradio label {
width: auto;
margin: 0 0 0 1em;
}
+fieldset.rows .hint {
+ display: block;
+ margin-left: 11em;
+}
fieldset.action {
clear: both;
float: none;
@@ -2357,6 +2361,9 @@ a.reviewlink:visited {
fieldset.rows ol {
margin-left: 0;
}
+ fieldset.rows .hint {
+ margin-left: 0;
+ }
body {
padding: 0;
}
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
index 39159cc..7d77432 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt
@@ -559,7 +559,7 @@
[% END %]
</select>
[% IF ( category2 && !OpacAllowPublicListCreation ) %]
- The library has disabled the ability for patrons to create new public lists. If you make your list private, you will not be able to make it public again.
+ <span class="hint alert alert-info">The library has disabled the ability for patrons to create new public lists. If you make your list private, you will not be able to make it public again.</span>
[% END %]
</li>
[% INCLUDE list_permissions %]
diff --git a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less b/koha-tmpl/opac-tmpl/bootstrap/less/opac.less
index 4e1e422..0737cfa 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less
+++ b/koha-tmpl/opac-tmpl/bootstrap/less/opac.less
@@ -733,6 +733,10 @@ fieldset {
}
}
}
+ .hint {
+ display: block;
+ margin-left : 11em;
+ }
}
&.action {
clear : both;
diff --git a/koha-tmpl/opac-tmpl/bootstrap/less/responsive.less b/koha-tmpl/opac-tmpl/bootstrap/less/responsive.less
index 4714ee7..5b4ed29 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/less/responsive.less
+++ b/koha-tmpl/opac-tmpl/bootstrap/less/responsive.less
@@ -81,6 +81,9 @@
ol {
margin-left : 0;
}
+ .hint {
+ margin-left: 0;
+ }
}
}
body {
--
1.7.9.5
More information about the Koha-patches
mailing list