How can I manage to use Bootstrap 3 glyphicons in APEX? I uploaded all Bootstrap files in the Share Components (Cascading Style Sheets) but when I try to display a glyphicon, it seems like it cannot find the font.
This is the code to display the gryphicon:
<span class="glyphicon glyphicon-star"></span>
The problem is the link to the font files in the bootstrap.css file.
Edit the bootstrap.css file. Search for #font-face in the file and fix the font file location references for the src attributes:
#font-face {
font-family: 'Glyphicons Halflings';
src: url('#WORKSPACE_IMAGES#glyphicons-halflings-regular.eot');
...
}
Please note that you can’t use substitution strings in workspace or application files. If you want to do so, move the CSS rule to your page template(s) (or in the page attributes) as inline CSS.
Related
In my laravel 5.6 / vue.js 2.5.7/ Bootstrap4.1.0 application I want to set different color themes and I found this collection https://github.com/thomaspark/bootswatch
But how correctly to set them to my project? I tried to replace files
node_modules/bootstrap/dist/css/bootstrap.css
node_modules/bootstrap/dist/css/bootstrap.min.css
and cleared cache and rerun
npm run watch-poll
But no effect... Which is the right way?
Are there some tools to change color themes programmatically, say depending on logged user options ?
Adding a link of one bootswatch file in my layout file resources/views/layouts/app.blade.php, like:
<link href="{{ asset('css/darkly/bootstrap.min.css') }}" rel="stylesheet">
I see that colors of my layout of my pages is different, but I mean that in this case I ADD this css/darkly/bootstrap.min.css file to the EXISTING(ORIGINAL) bootstrap.min.css
and now I have 2 bootstrap.min.css files in my system.
Is it good decision?
I supposed that creators of bootswatch meant to REPLACE the original bootstrap.min.css file. How do you think?
And that is the question where original Bootstrap css(and bootstrap.js to) are attached to the project ?
in my layout file resources/views/layouts/app.blade.php a line:
that is a ref to my custom css file, the styles I add to the project.
I did not find how to skip attaching of the original Bootstrap CSS file...
Thanks!
Bootswatch is not meant to REPLACE the existing bootstrap CSS file. It is meant to work and OVERRIDE the styling rules from the default one, which means, load bootswatch css after you load the bootstrap css.
It would also be advisable to rename your downloaded bootswatch CSS file.
my documents are looking good in the CKeditor's textarea field. But when using the so generated HTML-files it doesn't look good. No wonder: there are no CSS styles saved in the HTML.
Which css files do I have to include to display ckeditor's HTML files looking similar to those within the editor? Or can I make Ckeditor include it's styles information in the HTML?
Use contents.css, located in your ckeditor root folder.
So I have this #fontFace rule
#font-face {
font-family: 'myriadPro-Black';
src: url("fonts/myriadPro-BlackCond.otf") format("opentype");
}
It works in Chrome and Safari, but not Firefox. I understand that Firefox has different rules for fontface than other browsers, but I am having a hard time understanding. Getting used to cross browser optimization.
Any ideas on what I'm doing wrong?
Multiple extention's for wider support:
How i generate my fontface rule's is by using a online generator.
It save's a lot of time as it write's everything in the good order.
Plus it make's sure you support a wide variety of different extentions.
An example of such a generator can be found here: http://www.fontsquirrel.com/tools/webfont-generator
Security problem with firefox:
FireFox has secured the #font-face. Firefox for example might throw a 301 error, saying you don't have permission of access to the font file and therefor not load it, while other browsers don't.
You could give the right permissions using .htaccess or whatever config file for the webserver you working on but since i use a variety of webservers this is annoying. What works best for me is placing the font file's in the same directory as the .css file.
So i have one external fonts.css file containing all the css font line's within the font directory. Then i can include this .css file on the page i would like to use this font. Make sure you don't make additional directory's so you can call the font without anny directory. In your example, placing the font file in your css directory and change the code to:
#font-face {
font-family: 'myriadPro-Black';
src: url("myriadPro-BlackCond.otf") format("opentype"); }
more info: https://developer.mozilla.org/en-US/docs/Web/CSS/#font-face
i'm trying to use Font Awesome but instead of any icons it just displays any asian signs. I downloaded font awsome to by webserver for that. I tried this in 3 different browsers (firefox, opera and chromium) but it is always the same.
A testpage can be seen here: http://2weitweitweg.de/test.html
And here is a screenshot of it: http://postimg.org/image/9yh5p0p97/
Does it show the signs in your browser? Is the problem browser- or server-related? How can i fix it?
bye
I had this problem and it was because I was using old html with a new fontawesome version.
I fixed it by changing:
<i class="fa-bitbucket"></i>
to:
<i class="fa fa-bitbucket"></i>
I.e. I just had to add the default fa class to the element.
The latest version uses the fa prefix but for you, I guess it might be icon instead.
Hope this helps someone out at some stage :-)
Most likely the actual font files are not being found. If you look in the font awesome CSS file you will probably see something like:
#font-face {
font-family: 'FontAwesome';
src: url('../font/fontawesome-webfont.eot');
src: url('../font/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
[...etc]
This expects to find the font files in a folder called font at the same level that the CSS file is in. For example:
myproject / css
/ font-awesome.css
[...etc]
/ font
/ fontawesome-webfont.eot
[...etc]
If the files are in the correct place it is possible that they are not being loaded because of some problem with permissions or even that you have are using a strange browser that does not properly support #font-face. Of course you can rule out the latter by browsing to the font awesome examples page to see if it displays the icons properly.
Hope I'm not too late, something on your server isn't configured properly, solution is to allow *.woff and *.tff to be requested like static resources just like you do with *.css and *.js, this is done differently depending on platform:
What I did to make it work:
Replaced your stylesheet with (since we can't get to resources):
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
And replaced your old icon-* classes, for example:
<i class="fa-umbrella fa text-error"></i>
And now it works:
If you using 4.0 or later, they've changed the icon classes to fa classes
So your code should say
<i class="fa fa-camera-retro fa-large"></i>
instead of
<i class="icon icon-camera-retro icon-large"></i>
You can find icon, specific code examples by visiting http://fontawesome.io/icons/ and clicking/tapping the icon you need.
I had this same issue when upgrading from 3.2 to 4.0.3
Run the below command
npx react-native link react-native-vector-icons
Using fontawesone 5.15.1 I had to do this to get the Linux icon to show up:
<i class="fab fa-linux icon"></i>
IMPORTANT: using "fab" instead of "fa" as Linux is considered a "brand".
I am developing an application which runs within Microsoft Dynamics CRM (MSCRM). Essentially in this environment web resources including HTML, JavaScript, CSS and image files are stored within the system the can be referenced on pages. I've got SlickGrid running but have an issue where the pager buttons each occupy a whole line. The key part of the HTML is:
<div id="SPLocation" style="width:100%; height:80%">Grid</div>
<DIV id="SPPager" style="width:100%;height:20px;">Pager</DIV
but it looks like this:
!http://www.clew-consulting.com/Temp/SGIssue.png
(hope this image works). Note each icon occupies a whole row. I've checked all the styles and images and they seem fine. The icons are functional.
The cause is probably that display:inline-block is not being picked up but it is there in the style sheets. It could be something special to do with the environment within MSCRM but the other markups all look fine.
Unfortunately I cannot run IE developer and show this part of the screen where I could inspect the CSS.
Anyone any ideas? I know I have not posted all information.
Paul
The pager styles are defined in slick.pager.css file.
Place this file in your css folder and add the following line to your html file
(do not forget to replace [path to your file] with your real path):
<link href="[path to your file]/slick.pager.css" rel="stylesheet">