I have an application that is written in the apex oracle environment, but I want to change the font in this application (for example on "Calibri". I downlad this font:
But I can't find how to do it.
I also tried to Theme Roller the css in the topic with the help of this code, but it did not help.
I will be grateful for the help.
Yes you can add your custom font to Oracle APEX by following the next steps (tried with .otf file not .ttf):
Add the .otf file to your application Static Application Files (for example: your-custom-font.otf)
Add an Application item called FONT
Create an Application process:
Process Point: On Load: Before Header (page template header)
Code
begin
:FONT := '<style type="text/css">
#font-face {
font-family: "DefaultFont";
src: url(#APP_IMAGES#your-custom-font.otf);
}
body {
font-family: "DefaultFont" !important;
}
.ui-widget {
font-family: "DefaultFont" !important;
}
</style> ';
end;
On every page where you want to use this custom font, on page level section HTML Header > HTML Header set the substitution string &FONT.
The described process is very helpful if you need different fonts for different users, but if all your users have the same font. Then you just need following Inline CSS to the page:
#font-face {
font-family: "DefaultFont";
src: url(#APP_IMAGES#your-custom-font.otf);
}
body {
font-family: "DefaultFont" !important;
}
.ui-widget {
font-family: "DefaultFont" !important;
}
Or for Calibri add this CSS:
body {
font-family: Calibri, sans-serif !important;
}
Also when choosing font consider this.
Related
Tried to follow this manual, but it doesn't work: https://www.jetbrains.com/help/webstorm/markdown.html#css
Is it possible at all? Did somebody succeed in this task?
Yes, it's possible.
Download one of the markdown css files from https://github.com/sindresorhus/github-markdown-css/.
In the Markdown prefs, set the custom css to point to that file (URLs don't work).
Paste this into the "Add CSS rules:" field:
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
#media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
At the top of your markdown file, insert this (the blank line is important):
<div class="markdown-body">
At the bottom of your markdown file, insert this:
</div>
That's it!
I need to change the style of the flowchart nodes.
I've managed to set the background color and the outline:
style s1 fill:#0000,stroke:#333,stroke-width:2px
However, I do not see how can I control the labels, e.g. set the font color, font family, bold, underline, etc.
In your HTML page, add custom styles that target div.mermaid. For example:
div.mermaid {
font-family: 'trebuchet ms', verdana, arial;
font-size: 30px;
}
Building icCube dashboards for different devices is handled via lay-outs. This works nice. But when it comes to desktop dashboards, there is a wide range of screen-sizes and resolutions and you can make only one desktop lay-out.
For example, I've a 15" laptop for on the read that is connected to a 27" monitor on my workbench if I'm in the office. On my monitor I've far more space to have more widgets then on my laptop screen. It would be nice to create separate lay-out for different screen-sizes / screen-resolutions or make a responsive dashboard.
I'm curious if there is a solutions to handle different screen-sizes / screen-resolutions.
We have not yet found a responsive layout that resolved our questions. We are open to ideas, but it's not simple to have a same dashboard that 'works' on both a 10'' and 27'' monitor.
For now you have a few options in icCube :
Create a fixed layout (it's one of the options we prefer)
Create a layout that scales with the size of the screen
Create a report with multiple layouts (this is for tablets, phones, printing). Not yet for different screen sizes.
And indeed you might create a set of different reports.
_hope it helps.
Simple dashboard grid layout
<div class="grid-container">
<header class="header"></header>
<aside class="sidenav"></aside>
<main class="main"></main>
<footer class="footer"></footer>
</div>
Need to apply CSS
/* Simple dashboard grid CSS */
/* Assign grid instructions to our parent grid container */
.grid-container {
display: grid;
grid-template-columns: 240px 1fr;
grid-template-rows: 50px 1fr 50px;
grid-template-areas:
"sidenav header"
"sidenav main"
"sidenav footer";
height: 100vh;
}
/* Give every child element its grid name */
.header {
grid-area: header;
background-color: #648ca6;
}
.sidenav {
grid-area: sidenav;
background-color: #394263;
}
.main {
grid-area: main;
background-color: #8fd4d9;
}
.footer {
grid-area: footer;
background-color: #648ca6;
}
Create the styles and structure for our header and footer elements; grid-area declared previously
<style>
.header, .footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
background-color: #648ca6;
}
</style>
<header class="header">
<div class="header__search">Search...</div>
<div class="header__avatar">Your face</div>
</header>
<footer class="footer">
<div class="footer__copyright">© 2019</div>
<div class="footer__signature">Sample</div>
</footer>
When using the metropolis theme in xaringan (RStudio 1.2.1070)
output:
xaringan::moon_reader:
css: [default, metropolis, metropolis-fonts]
I wish to have a smaller font for the title of each slide. If I use h1 for a slide title i.e.
---
# The title of this slide
content
it works as expected, but if I try to use h2 i.e.
---
## The title of this slide
content
the text appears in the body of the slide and not the banner.
Suggestions?
Update
Thanks for the prompt answer Martin. I modified your suggestion slightly.
Including:
.remark-slide-content.hljs-default {
border-top: 40px solid #23373B;
}
adds the border to the title slide (which I didn't want).
For me, just adding this works fine:
<style>
.remark-slide-content > h1 { font-size: 35px; margin-top: -88px; }
</style>
Nevertheless, I must say my original question about using ## was prompted by the entry on xaringan Presentations in R Markdown: The Definitive Guide https://bookdown.org/yihui/rmarkdown/xaringan-format.html where it states:
7.3.1 Slides and properties
Every new slide is created under a horizontal rule (---). The content
of the slide can be arbitrary, e.g., it does not have to have a slide
title, and if it does, the title can be of any level you prefer (#,
##, or ###).
Try the following:
---
title: Test
output:
xaringan::moon_reader:
css: [default, metropolis, metropolis-fonts]
---
<style>
.remark-slide-content.hljs-default {
border-top: 40px solid #23373B;
}
.remark-slide-content > h1 {
font-size: 20px;
margin-top: -55px;
}
</style>
---
# The title of this slide
content
I guess you have to play around with the settings to achieve exactly the layout you want.
Using django 1.8 how do I change the blue navigation bar on the admin interface. I don't want to change anything else, just change the nav bar color.
Thanks
Well, you will have to do a little bit of work.
OPTION 1
Create an admin folder in your static folder in your app. Inside that static folder, create a css and an img folders.
In your site-packages/contrib/admin/static/css folder, copy the base.css file. You can modify any and all the attributes you want in here.
You will also need to copy the img files you want to modify from site-packages/django/admin/static/img - see the css snippet below
Line 498:
.module h2, .module caption, .inline-group h2 {
margin: 0;
padding: 2px 5px 3px 5px;
font-size: 11px;
text-align: left;
font-weight: bold;
background: #7CA0C7 url(../img/default-bg.gif) top left repeat-x;
color: #fff;
}
Line 784:
#header {
width: 100%;
background: #417690;
color: #ffc;
overflow: hidden;
}
seem to hold the values you want to modify. You have to copy the entire file and change the values you want changed. This file will replace the one you have when you run:
./manage.py collectstatic
This will collect all the static files from every app folder and place them in the top level static folder.
OPTION 2
You can copy the base.html template from the django/contrib/admin/templates folder to yourapp/templates/admin folder and keep the same name. At the top of the file, you can add your own css file to load after:
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" />
It will load this template instead of the base.html in the site package and you will have a similar effect.