Inline code ?

More
5 years 6 months ago #74920 by lipatovroman
Inline code ? was created by lipatovroman
Hello!
I found that main page of my site have big part of FC inline code:
Code:
 /* This is via voting field parameter, please edit field configuration to override them */ .voting-row div.fcvote.fcvote-box-main { line-height:16px!important; } .voting-row div.fcvote.fcvote-box-main > ul.fcvote_list { height:16px!important; width:80px!important; } .voting-row div.fcvote.fcvote-box-main > ul.fcvote_list > li.voting-links a, .voting-row div.fcvote.fcvote-box-main > ul.fcvote_list > li.current-rating { height:16px!important; line-height:16px!important; } .voting-row div.fcvote.fcvote-box-main > ul.fcvote_list, .voting-row div.fcvote.fcvote-box-main > ul.fcvote_list > li.voting-links a:hover, .voting-row div.fcvote.fcvote-box-main > ul.fcvote_list > li.current-rating { background-image:url(/components/com_flexicontent/assets/images/star-small.png)!important; } /* This is via voting field parameter, please edit field configuration to override them */ .voting-row div.fcvote > ul.fcvote_list { height:24px!important; width:120px!important; } .voting-row div.fcvote > ul.fcvote_list > li.voting-links a, .voting-row div.fcvote > ul.fcvote_list > li.current-rating { height:24px!important; line-height:24px!important; } .voting-row div.fcvote > ul.fcvote_list, .voting-row div.fcvote > ul.fcvote_list > li.voting-links a:hover, .voting-row div.fcvote > ul.fcvote_list > li.current-rating { background-image:url(/components/com_flexicontent/assets/images/star-medium.png)!important; } .voting-row div.fcvote ul.fcvote_list > .voting-links a.star1 { width: 20%!important; z-index: 6; } .voting-row div.fcvote ul.fcvote_list > .voting-links a.star2 { width: 40%!important; z-index: 5; } .voting-row div.fcvote ul.fcvote_list > .voting-links a.star3 { width: 60%!important; z-index: 4; } .voting-row div.fcvote ul.fcvote_list > .voting-links a.star4 { width: 80%!important; z-index: 3; } .voting-row div.fcvote ul.fcvote_list > .voting-links a.star5 { width: 100%!important; z-index: 2; } #mod_fcitems_box_featured_122 { } #mod_fcitems_box_featured_122 div.mod_flexicontent_standard_wrapper { } #mod_fcitems_box_featured_122 div.mod_flexicontent_standard_wrapper_innerbox { } #mod_fcitems_box_standard_122 { } #mod_fcitems_box_standard_122 div.mod_flexicontent_standard_wrapper { } #mod_fcitems_box_standard_122 div.mod_flexicontent_standard_wrapper_innerbox { } #mod_fcitems_box_featured_124 { } #mod_fcitems_box_featured_124 div.mod_flexicontent_standard_wrapper { } #mod_fcitems_box_featured_124 div.mod_flexicontent_standard_wrapper_innerbox { } #mod_fcitems_box_standard_124 { } #mod_fcitems_box_standard_124 div.mod_flexicontent_standard_wrapper { } #mod_fcitems_box_standard_124 div.mod_flexicontent_standard_wrapper_innerbox { } #mod_fcitems_box_featured_120 { } #mod_fcitems_box_featured_120 div.mod_flexicontent_standard_wrapper { } #mod_fcitems_box_featured_120 div.mod_flexicontent_standard_wrapper_innerbox { } #mod_fcitems_box_standard_120 { } #mod_fcitems_box_standard_120 div.mod_flexicontent_standard_wrapper { } #mod_fcitems_box_standard_120 div.mod_flexicontent_standard_wrapper_innerbox { } #mod_fcitems_box_featured_123 { } #mod_fcitems_box_featured_123 div.mod_flexicontent_standard_wrapper { } #mod_fcitems_box_featured_123 div.mod_flexicontent_standard_wrapper_innerbox { } #mod_fcitems_box_standard_123 { } #mod_fcitems_box_standard_123 div.mod_flexicontent_standard_wrapper { } #mod_fcitems_box_standard_123 div.mod_flexicontent_standard_wrapper_innerbox { } </style> <script type="application/json" class="joomla-script-options new">{"csrf.token":"b06c0c4ca895731db6f7ea8245487bcc","system.paths":{"root":"","base":""},"joomla.jtext":{"FLEXI_FORM_IS_BEING_SUBMITTED":"Form is being submitted ...","FLEXI_APPLYING_FILTERING":"Applying Filtering","FLEXI_TYPE_TO_LIST":"... type to list","FLEXI_TYPE_TO_FILTER":" ... type to filter","FLEXI_UPDATING_CONTENTS":"Updating contents ...","FLEXI_NOT_AN_IMAGE_FILE":"FLEXI_NOT_AN_IMAGE_FILE","FLEXI_LOADING_IMAGES":"FLEXI_LOADING_IMAGES","FLEXI_THUMBNAILS":"FLEXI_THUMBNAILS","FLEXI_NO_ITEMS_SELECTED":"FLEXI_NO_ITEMS_SELECTED"}}</script>

Is it possible to avoid it?
Why this styles not placed in CSS files?
Thanks.

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #74922 by ggppdk
Replied by ggppdk on topic Inline code ?
Hello

This code is created because of configuration parameters

other inline code that could be removed
has been removed already


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #74923 by ggppdk
Replied by ggppdk on topic Inline code ?
Hello

maybe all of these parameters
can be replaced with "less" parameter (which act as LESS variables)
... thus they create a CSS file

a thing to look for a future version


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #74925 by lipatovroman
Replied by lipatovroman on topic Inline code ?
Ok, I see style for rating stars - propably from Rating field.
But what about 
Code:
#mod_fcitems_box_featured_122 { } #mod_fcitems_box_featured_122 div.mod_flexicontent_standard_wrapper { } #mod_fcitems_box_featured_122 div.mod_flexicontent_standard_wrapper_innerbox { }
It's absolutely empty classes with no styles... 
May be I enabled some setting in content module?

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #75001 by lipatovroman
Replied by lipatovroman on topic Inline code ?
So? How to fix that?

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago - 5 years 6 months ago #75004 by ggppdk
Replied by ggppdk on topic Inline code ?
Hello

create a new custom layout for the module in you Joomla template,
create the new one by copying the one you are using with a new name

- and then select the new layout in module parameters

and remove the CSS that you do not want from it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 5 years 6 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.810 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline