From ea83c90cfabbfd6115fc1573d9d4635906079c95 Mon Sep 17 00:00:00 2001 From: Jan Kvetina Date: Fri, 18 Feb 2022 22:56:33 +0100 Subject: [PATCH] Style for monospace fields --- apex/f770/application/pages/page_00905.sql | 8 ++++---- apex/workspace_files/global.css | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apex/f770/application/pages/page_00905.sql b/apex/f770/application/pages/page_00905.sql index cacab15..638979b 100644 --- a/apex/f770/application/pages/page_00905.sql +++ b/apex/f770/application/pages/page_00905.sql @@ -27,7 +27,7 @@ wwv_flow_api.create_page( wwv_flow_api.create_page_plug( p_id=>wwv_flow_api.id(24352849275954702) ,p_plug_name=>'TABS' -,p_region_template_options=>'#DEFAULT#:t-TabsRegion-mod--simple' +,p_region_template_options=>'#DEFAULT#:js-useLocalStorage:t-TabsRegion-mod--simple' ,p_plug_template=>wwv_flow_api.id(9086964183569930) ,p_plug_display_sequence=>10 ,p_include_in_reg_disp_sel_yn=>'Y' @@ -2130,7 +2130,7 @@ wwv_flow_api.create_page_item( ,p_item_plug_id=>wwv_flow_api.id(11557935913084138) ,p_prompt=>'Interval' ,p_display_as=>'NATIVE_DISPLAY_ONLY' -,p_tag_attributes=>'style="font-family: monospace;"' +,p_tag_css_classes=>'SOURCE_CODE' ,p_begin_on_new_line=>'N' ,p_field_template=>wwv_flow_api.id(9142775823569991) ,p_item_template_options=>'#DEFAULT#:margin-top-none' @@ -2144,7 +2144,7 @@ wwv_flow_api.create_page_item( ,p_item_plug_id=>wwv_flow_api.id(11557935913084138) ,p_prompt=>'Source' ,p_display_as=>'NATIVE_DISPLAY_ONLY' -,p_tag_attributes=>'style="font-family: monospace;"' +,p_tag_css_classes=>'SOURCE_CODE' ,p_begin_on_new_line=>'N' ,p_field_template=>wwv_flow_api.id(9142775823569991) ,p_item_template_options=>'#DEFAULT#:margin-top-none' @@ -2158,7 +2158,7 @@ wwv_flow_api.create_page_item( ,p_item_plug_id=>wwv_flow_api.id(11557935913084138) ,p_prompt=>'Type' ,p_display_as=>'NATIVE_DISPLAY_ONLY' -,p_tag_attributes=>'style="font-family: monospace;"' +,p_tag_css_classes=>'SOURCE_CODE' ,p_field_template=>wwv_flow_api.id(9142775823569991) ,p_item_template_options=>'#DEFAULT#:margin-top-none' ,p_attribute_01=>'N' diff --git a/apex/workspace_files/global.css b/apex/workspace_files/global.css index 445f14d..0e364a3 100644 --- a/apex/workspace_files/global.css +++ b/apex/workspace_files/global.css @@ -237,8 +237,9 @@ ul.a-ListView li.a-ListView-divider.ui-bar-inherit { /* SHOW SOURCE CODE AS MONOSPACE */ .SOURCE_CODE div.t-Form-itemWrapper, -.SOURCE_CODE td.t-Report-cell { - font-family: monospace; +.SOURCE_CODE td.t-Report-cell, +span.SOURCE_CODE { + font-family: 'Roboto Mono', monospace; white-space: pre; } .SOURCE_CODE td.t-Report-cell {