From c48a9510f422b535033d7af78e001a0feb8437d1 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Fri, 13 May 2016 15:21:09 -0400 Subject: [PATCH] Moved style.css to its correct directory. Copied colors.tt2 and fonts.tt2 to kcpl directory. --- .../src/kcpl_templates/opac/parts/css/colors.tt2 | 37 + .../src/kcpl_templates/opac/parts/css/fonts.tt2 | 12 + .../kcpl_templates/opac/parts/css/style.css.tt2 | 2142 -------------------- 3 files changed, 49 insertions(+), 2142 deletions(-) create mode 100644 Open-ILS/src/kcpl_templates/opac/parts/css/colors.tt2 create mode 100644 Open-ILS/src/kcpl_templates/opac/parts/css/fonts.tt2 delete mode 100644 Open-ILS/src/kcpl_templates/opac/parts/css/style.css.tt2 diff --git a/Open-ILS/src/kcpl_templates/opac/parts/css/colors.tt2 b/Open-ILS/src/kcpl_templates/opac/parts/css/colors.tt2 new file mode 100644 index 0000000000..85e00bdaf7 --- /dev/null +++ b/Open-ILS/src/kcpl_templates/opac/parts/css/colors.tt2 @@ -0,0 +1,37 @@ +[% + css_colors = { + + background = "#fff", # white + background_alert = "#ffcccc", # pink + background_invert = "#252525", # charcoal + text = "black", # black + text_alert = "red", # red + text_attention = "#ffcc33", # pumpkin orange + text_badnews = "#f41d36", # cherry red + text_goodnews = "#1dd93c", # lime green + text_greatnews = "green", # green + text_invert = "#fff", # white + text_match = "#c00", # deep red + primary = "#00593d", # dark green + primary_fade = "#007a54", # medium green + primary_offset = "#417860", # light_green + control = "#69A088", # lighter green + accent_light = "#ccc", # grey (light) + accent_lighter = "#ddd", # grey (lighter) + accent_lighter2 = "#d8d8d8", # grey (lighter again) + accent_lightest = "#eee", # grey (lightest) + accent_ultralight = "#f0f0f0", # ivory + accent_medium = "#999", # gun metal grey (medium) + accent_mediumdark = "#888", # gun metal grey (medium dark) + accent_dark = "#666", # gun metal grey (dark) + accent_darker = "#333", # gun metal grey (darker) + border_standard = "#e9ebf3", # light grey-blue + border_dark = "black", # black + border_alert = "red", # red + button_text = "#fbf9f9", # off-white + button_text_shadow = "#555555", # medium grey + table_heading = "#d8d8d8", # grey-blue + mobile_header_text = "#fff", # white + }; + +%] diff --git a/Open-ILS/src/kcpl_templates/opac/parts/css/fonts.tt2 b/Open-ILS/src/kcpl_templates/opac/parts/css/fonts.tt2 new file mode 100644 index 0000000000..bfc0b0d5d9 --- /dev/null +++ b/Open-ILS/src/kcpl_templates/opac/parts/css/fonts.tt2 @@ -0,0 +1,12 @@ +[%- + css_fonts = { + size_base = "14px", + size_small = "92%", + size_smaller = "83%", + size_smallest = "75%", + size_medium = "95%", + size_big = "110%", + size_bigger = "125%", + size_biggest = "150%" + } +%] diff --git a/Open-ILS/src/kcpl_templates/opac/parts/css/style.css.tt2 b/Open-ILS/src/kcpl_templates/opac/parts/css/style.css.tt2 deleted file mode 100644 index 166950f901..0000000000 --- a/Open-ILS/src/kcpl_templates/opac/parts/css/style.css.tt2 +++ /dev/null @@ -1,2142 +0,0 @@ -[%- - PROCESS "opac/parts/css/colors.tt2"; - PROCESS "opac/parts/css/fonts.tt2"; -%] - -body { - margin:0; - font-family: Arial, Helvetica, sans-serif; - font-size: [% css_fonts.size_base %]; - background: [% css_colors.primary %]; -} - -button, input { - font-family: Arial, Helvetica, sans-serif; - font-size: [% css_fonts.size_base %]; -} - -img { - border: none; -} - -#topnav_logo { - margin: 2em 0; -} - -#homesearch_main_logo { - padding-top: 60px; - margin: auto; - width: 50%; -} - -a { - color: [% css_colors.primary %]; -} - -#search-wrapper input[type=text] { - margin:0; - padding:0; -} - -#search-wrapper select, .results_header_lbl select { - border:1px solid [% css_colors.border_standard %]; - margin:0; - padding:0; - width: 12em; -} - -.searchbar { - font-weight: bold; - padding-top: 10px; - margin-left: 1em; -} - -/* -#search-wrapper select { - border:0px solid [% css_colors.border_dark %]; - filter:alpha(opacity=0); - -moz-opacity:0; - -khtml-opacity:0; - opacity:0; - padding:0; - margin:0; - height:18px; -} -*/ -h1 { - margin:0; - margin-bottom: 5px; - font-size: [% css_fonts.size_biggest %]; - font-weight:normal; -} - -h2 { - font-size: [% css_fonts.size_bigger %]; - font-weight:bold; -} - -h2.graphic880 { - font-size: [% css_fonts.size_bigger %]; - font-weight:normal; -} - -.hide_me, .hidden { - display: none; - visibility: hidden; -} - -div.select-box-wrapper { - position:absolute; - padding-top:2px; - padding-left:3px; - overflow:hidden; - text-align:left; -} - -#dash_wrapper { - margin-left: 0.5em; -} - -#dash_wrapper div { - background: [% css_colors.primary %]; - border-radius: 5px; - padding: 0em 1em; -} - -.dash_divider { - margin: 1em; - color: [% css_colors.primary_fade %]; - display:inline-block; -} - -#dashboard { - margin-top: 1em; - height: 3em; -} - -#dashboard span.dash-align a { - font-weight: bold; - text-decoration: none; -} - -#dash_user { - font-weight: bold; -} - -#logout_link { left: 1px; } - -#dash_checked { color: [% css_colors.text_attention %]; } -#dash_holds { color: [% css_colors.text_attention %]; } -#dash_pickup { color: [% css_colors.text_goodnews %]; } - -/* -#dash_fines { color: [% css_colors.text_badnews %]; } -the color contrast between "text_badnews" and "primary" -is too low for WCAG compliance. Use "text_attention" -for now until a better color is picked - if needed. -*/ -#dash_fines { color: [% css_colors.text_attention %]; } - -#dash_wrapper #dash_user_message_button_container { - display: inline; - padding: 0; -} -#dash_wrapper #unread_message_count_floater { - position: absolute; - background-color: [% css_colors.text_alert %]; - padding-left: 0.2em; - padding-right: 0.2em; - display: inline-block; - font-size: 95%; - border-radius: 0; - z-index: 2; - margin-top: 0.2em; - margin-left: -1.5em; -} - -#header-wrap { - background: linear-gradient([% css_colors.primary %], [% css_colors.primary_fade %]); - background: -moz-linear-gradient([% css_colors.primary %], [% css_colors.primary_fade %]); - background: -o-linear-gradient([% css_colors.primary %], [% css_colors.primary_fade %]); - background: -webkit-linear-gradient([% css_colors.primary %], [% css_colors.primary_fade %]); - background-color: [% css_colors.primary_fade %]; -} -#header { - color: [% css_colors.background %]; - margin-left: 1em; - margin-right: 1em; - font-size: [% css_fonts.size_small %]; -} - -#header a { - color: [% css_colors.background %]; -} - -#header a:hover { - color: [% css_colors.text_invert %]; - text-decoration: none; -} - -#header-links { - color: [% css_colors.text_invert %]; - font-size: [% css_fonts.size_small %]; - font-weight: bold; - position: relative; - top:4px; - -} - -#header-links a { - color: [% css_colors.text_invert %]; - display: block; - float:left; - margin-right:22px; - text-decoration: none; -} - -#header-links a:hover { - color: [% css_colors.text_invert %]; - text-shadow: 0 0 0.2em [% css_colors.primary %], 0 0 0.2em [% css_colors.primary %]; - text-decoration: none; -} - -#header #header-links2 { - position:relative; - top:-8px; - color: [% css_colors.text_invert %]; - padding-bottom: 15px; -} - -#header #header-links2 a { - color: [% css_colors.text_invert %]; -} - -#header #header-links2 a:hover { - text-decoration: underline; -} - -#your-acct-login { - padding-top:2em; -} - -#gold-links { - margin-left: 1em; - padding-left:0px; -} - -#gold-links-home { - margin:auto; - padding-left:0px; -} - -#gold-links-holder { - height: 24px; - background: [% css_colors.background_invert %]; -} - -#util-bar { - margin-left: 1em; - padding-left:0px; - height:0px; -} - -#search-wrapper { - border-bottom: 1px solid [% css_colors.border_standard %]; - padding-bottom: 5px; - background: [% css_colors.background %]; -} - -#search-wrapper #breadcrumb { - margin-top:0px; - font-size: [% css_fonts.size_smaller %]; - float:left; -} - -#search-wrapper #search-within { - margin-top:10px; - float:right; - position:relative; - left:-173px; -} - -#search-wrapper #breadcrumb a { - color: [% css_colors.text %]; -} - -#search-wrapper #search_frm label { - font-size: [% css_fonts.size_smaller %]; -} - -#search-wrapper #search-box { - margin-left: 1em; - padding-left: 0px; - padding-top: 10px; - padding-bottom: 10px; -} - -#adv_search_tabs, #acct_tabs, #acct_fines_tabs, #acct_checked_tabs, #acct_holds_tabs, #acct_prefs_tabs, #results_header_inner{ - margin-left: 2px; - overflow: auto; -} - -#adv_search_tabs a, #acct_tabs a, #acct_fines_tabs a, #acct_checked_tabs a, #acct_holds_tabs a, #acct_prefs_tabs a { - float: left; - text-align: center; - vertical-align: middle; - display: block; - margin: 10px 7px 0px 0px; - padding: 10px 0px 10px 0px; - -moz-border-radius: 10px 10px 0px 0px; - border-radius: 10px 10px 0px 0px; - font-weight: bold; - color: [% css_colors.text_invert %]; - background: [% css_colors.control %]; - font-weight: bold; - text-decoration: none; -} - -#adv_search_tabs a, #acct_tabs a, #acct_fines_tabs a { - padding: 1em 1em 0.5em; -} - -#adv_search_tabs a:hover, #acct_tabs a:hover, #acct_fines_tabs a:hover, #acct_checked_tabs a:hover, #acct_holds_tabs a:hover, #acct_prefs_tabs a:hover { - background: [% css_colors.primary %]; - color: [% css_colors.text_invert %]; - text-decoration: none; -} - -#adv_search_filters { - position: relative; -} -#adv_search_rows { - border-bottom: none; -} -.adv_filter_block { - padding: 15px; - float: left; - clear: both; -} -.adv_filter_block_item { - float: left; - padding: 5px; -} - -#adv_special_block { - float: left; - padding: 5px; - margin-top: 5px; -} - -#adv_search_submit { - position: relative; - margin-left: 10px; - -} - -.checkbox_col { - width: 1%; - padding-left: 10px !important; -} - -#adv_search.on, #num_search.on, #expert_search.on { - color: [% css_colors.accent_darker %]; - background: [% css_colors.background %]; - text-decoration: none; -} - -#adv_search_tabs a.acct-tab-on, #acct_tabs a.acct-tab-on, #acct_fines_tabs a.acct-tab-on { - color: [% css_colors.accent_darker %]; - background: [% css_colors.background %]; - text-decoration: none; -} - -.acct-tab-off { - background: [% css_colors.control %]; -} - -#acct_checked_tabs a, #acct_holds_tabs a, #acct_prefs_tabs a { - margin-top: 0px; - font-size: [% css_fonts.size_smaller %]; - color: [% css_colors.accent_darker %]; - padding: 10px 10px 10px 10px; -} - -#acct_checked_tabs div.selected a, #acct_holds_tabs div.selected a, #acct_prefs_tabs div.selected a { - background: [% css_colors.accent_lightest %]; - color: [% css_colors.accent_darker %]; -} - -#acct_checked_tabs, #acct_holds_tabs, #acct_prefs_tabs { - padding-bottom: 12px; - color: [% css_colors.accent_medium %]; -} - -#acct_select, #acct_prefs_select { - display: none; -} - -#mobile_acct_search_links { - background: [% css_colors.primary_fade %]; -} - -.rdetail_header { - padding: 5px 7px 6px 0px; - margin-left: 1em; - border-bottom: 1px dotted [% css_colors.accent_light %]; -} - -.rdetail_results a { - color:[% css_colors.primary_fade %]; - font-weight:bold; - font-size: [% css_fonts.size_bigger %]; -} - -.rdetail_result_count { - color: [% css_colors.text %]; - font-weight: normal; - padding-left: 1em; - display: inline-block; -} - -.rdetail_result_nav { - font-weight:normal; - padding-left: 1em; - display: inline-block; -} - -#rdetail_details_table { - margin-top: 15px; -} - -#rdetail_image { border: none; } -#rdetail_image_cell { - padding-top: 3px; - padding-right: 10px; -} - -h2.rdetail_uris { - margin-top: 1em; -} -div.rdetail_uris { - padding: 0.5em 1em 0.5em 1em; - background-color: [% css_colors.accent_lighter2 %]; -} -div.rdetail_uris ul li { - position: relative; - left: 1em; -} - -div.rdetail_show_copies { - margin-top: 1em; -} - -div#rdetail_actions_div { - float: right; - background: [% css_colors.background %]; -} - -span#rdetail_copy_counts { - display: inline-block; - border-right: thin; - vertical-align: top; - margin-right: 1em; - padding-right: 1em; -} - -span#rdetail_hold_counts { - display: inline-block; - vertical-align: top; -} -span#rdetail_hold_counts p { - padding-left: 2em; -} - -#rdetail_image_div { - float: left; - margin-right: 1em; -} - -.rdetail_aux_utils { - border-left:1px dotted [% css_colors.accent_light %]; - padding-left: 17px; - padding-bottom: 6px; - padding-right: 70px; -} - -div.place_hold { - border-bottom: 1px dotted [% css_colors.accent_light %]; - padding-top: 10px; -} - -div.toggle_list { padding-top: 6px; } - -div.share_record { - padding-top: 6px; - border-top: 1px dotted [% css_colors.accent_light %]; -} - -div.format_icon { - float: right; - margin-right: 17px; -} - -.result_util { - border-bottom: 1px dotted [% css_colors.accent_light %]; - padding-top: 6px; -} - -.results_aux_utils { - display: table-cell; -} - -.result_util { - padding-left: 1em; -} - -.results_reviews { - top: -5px; -} - -#rdetail_copies { - padding-top: 1.5em; -} - -#rdetails_status td { - padding: 7px 0px 3px 13px; - white-space: nowrap; -} - -#rdetails_status td[headers=copy_header_library], -#rdetails_status td[headers=copy_header_shelfloc] { - white-space: normal; -} - -#rdetails_status thead th { - background-color: [% css_colors.accent_lighter2 %]; - padding: 13px 0px 13px 13px; - font-size: [% css_fonts.size_smaller %]; - font-weight: bold; - text-align: left; -} - -#rdetails_status tbody td { - padding-left: 13px; - text-align: left; -} -#rdetails_status tbody td.copy_note { - color: [% css_colors.primary %]; - text-wrap:normal; - white-space:pre-wrap !important; - word-wrap:normal; -} - -.rdetail_extras { - background: [% css_colors.primary_fade %]; - border: 1px solid [% css_colors.primary %]; - padding-top:1px; - clear:both; -} - -#rdetail_extras_div { - margin: 1em 0; -} - -.rdetail_extras_hr { - height: 1px; - background: [% css_colors.accent_light %]; - margin-left: 1px; - margin-right: 1px; -} - -.rdetail_extras_link { - padding: 6px 12px; - font-size: [% css_fonts.size_smaller %]; - font-weight: bold; -} - -.rdetail_extras_lbl { - color: [% css_colors.text_invert %]; - text-decoration: none; -} - -##rdetail_extras_expand, #rdetail_extras_collapse, #rdetail_locs_collapse { - margin-left: 13px; -} - -#rdetail_locs_expand, #rdetail_locs_collapse { - padding-bottom:3px; - margin-top:15px; - margin-left:13px; -} - -#rdetail_anotes_div .biography { - margin:0; -} - -.almost-content-wrapper { - background: [% css_colors.background %]; -} - -#content-wrapper { - background: [% css_colors.background %]; - min-height: 260px; - border-bottom: 1px solid [% css_colors.border_dark %]; -} - -.content-wrapper-record-page { top: -15px; position: relative; } - -#main-content-home { - padding-left: 17px; - margin-left: 1em; -} -#main-content { - padding-left: 0px; - margin: 0 1em; - clear: both; -} - -#main-content-after-bar { - margin-left: 1em; - padding-left: 4px; -} - -#results-side-bar { float: left; width: 174px; margin-right: 5px; background: [% css_colors.background %]; } - -#main-content .login_boxes { - border: 1px solid [% css_colors.accent_lighter %]; - background: linear-gradient(bottom, [% css_colors.accent_ultralight %] 15%, [% css_colors.accent_lightest %] 55%, [% css_colors.accent_ultralight %] 85%); - background: -moz-linear-gradient(bottom, [% css_colors.accent_ultralight %] 15%, [% css_colors.accent_lightest %] 55%, [% css_colors.accent_ultralight %] 85%); - background: -ms-linear-gradient(bottom, [% css_colors.accent_ultralight %] 15%, [% css_colors.accent_lightest %] 55%, [% css_colors.accent_ultralight %] 85%); - background: -o-linear-gradient(bottom, [% css_colors.accent_ultralight %] 15%, [% css_colors.accent_lightest %] 55%, [% css_colors.accent_ultralight %] 85%); - background: -webkit-linear-gradient(bottom, [% css_colors.accent_ultralight %] 15%, [% css_colors.accent_lightest %] 55%, [% css_colors.accent_ultralight %] 85%); - - color: [% css_colors.accent_darker %]; -} - -#main-content .login_boxes h1 { - font-weight: normal; - font-size: [% css_fonts.size_biggest %]; - margin:0; -} - -#main-content .left_brain { - padding-left:28px; - padding-top:25px; -} - -#main-content .left_brain input[type=text], #main-content .left_brain input[type=password] { - width:167px; - margin:0; - padding:0; - background: [% css_colors.background %]; - font-size: [% css_fonts.size_bigger %]; - color: [% css_colors.text %]; -} - -#main-content .left_brain .input_bg { - padding:10px 10px 0px 13px; - width:167px; - height:29px; -} - -.login-help-box { - float: left; - width: 200px; - text-align: center; - margin-left: 2em; -} - -.login-help-button { - font-size: [% css_fonts.size_biggest %]; - padding: 1.5em; -} - -#login-failed-message { - font-size: [% css_fonts.size_bigger %]; - font-weight: bold; - color: [% css_colors.text_alert %]; - padding-top: 1em; -} - -#holds_temp_parent td { - border-bottom:1px solid [% css_colors.border_standard %]; -} - -#holds_temp_parent input, #holds_temp_parent select { - margin:0; -} - -#holds_temp_parent tr td div { - margin-top: 10px; - margin-bottom: 10px; -} - -#holds_temp_parent tr td div.format_icon { - margin-top: 6px; - margin-bottom: 6px; - float: none; -} - -#results_header_bar { - background: [% css_colors.accent_medium %]; - border-top:1px solid [% css_colors.accent_mediumdark %]; - border-bottom:1px solid [% css_colors.accent_mediumdark %]; -} - -.results_header_lbl { - font-weight: bold; - float: left; - color: [% css_colors.text %]; - /* this border is not visible, but it keeps these labels the same size - as the buttons */ - border: 1px solid [% css_colors.accent_medium %]; - background: [% css_colors.accent_medium %]; - margin: 0.5em 0.3em; - padding: 0.3em; -} -/* we need a negative margin on the select to allow the containing