I am building my first Template and I have a problem with ui-dialog
Permalink
I made two layers that have following css
This css seems to move the ui-dialog dialog out of the screen when i try f.e. editing a image. has someone an idea how to solve this ?
hope this was understandable
greetings
Tobi
background-attachment: fixed; background-image: url("../images/homepagebackground.jpg"); background-repeat: no-repeat; background-size: cover; width:100%; height:90%; height:calc(100vh - 150px);
This css seems to move the ui-dialog dialog out of the screen when i try f.e. editing a image. has someone an idea how to solve this ?
hope this was understandable
greetings
Tobi
Hi MrKDilkington,
thanks for your fast answer!
I'am using
# concrete5 Version
Core Version - 5.7.4.1
Version Installed - 5.7.4.1
Database Version - 20150504000000
I tried now scoping my CSS but it does not have any effect on that problem.
I have two of those layers on the page these layers divide one content from another. and both have the same css and use only different background images.
When I remove one of the layers the ui-dialog went down a little bit but in still visibe Viewport area.
Here some more info about those layers:
that layer contains nothing but a but a background image which looks in the end like this
the css looks like this ("#metzger" is now scope i defined):
Somehow the height of that elements moves ui-dialog from the center of the sceen to an area under the visible screen.
thanks for your fast answer!
I'am using
# concrete5 Version
Core Version - 5.7.4.1
Version Installed - 5.7.4.1
Database Version - 20150504000000
I tried now scoping my CSS but it does not have any effect on that problem.
I have two of those layers on the page these layers divide one content from another. and both have the same css and use only different background images.
When I remove one of the layers the ui-dialog went down a little bit but in still visibe Viewport area.
Here some more info about those layers:
<div id="shopimage"> <?php $shopImage = new Area('shopImage'); $shopImage->display($c); ?> </div>
that layer contains nothing but a but a background image which looks in the end like this
<div id="shopimage"> <div class="ccm-custom-style-shopimage"></div> </div>
the css looks like this ("#metzger" is now scope i defined):
#metzger #shopimage { width: 100%; height: 100%; } #metzger #shopimage .ccm-custom-style-shopimage {width:100%;height:100%;background-size: cover;background-attachment: fixed; }
Somehow the height of that elements moves ui-dialog from the center of the sceen to an area under the visible screen.
Can you take some screenshots of the problem?
What is the address of your website?
What is the address of your website?
Ok just found that it helps to set
now the ui-dialog is in the right place again.
I wonder if the might cause other problems...
but so far it works for me.
html {height:100%;}
now the ui-dialog is in the right place again.
I wonder if the might cause other problems...
but so far it works for me.
What version of concrete5 are you using?
In your code example, you have only included the CSS declarations. What is the selector that you are using with it?
If your theme CSS is affecting your concrete5 UI, then you are writing global CSS styles that target not just your theme, but everything else on the page.
Scoping your CSS is a method that lets you target just your theme. Commonly a div wrapper with the class of .ccm-page is used to scope themes.
This How-To explains scoping using a preprocessor, but it can also be done manually.
https://www.concrete5.org/documentation/how-tos/designers/easily-sco...