I added a shadow to some of my buttons. With the :not selector i deselected some elements like link button and pickerfield button. My problem now is that there is also a shadow in my logout section. It didnt work with c-logout and c-login-button. Someone here who has an idea?
.v-button:not(.v-button-link):not(.v-button-c-pickerfield-button):not(.v-button-c-logout-button):not(.v-button-c-login-button) {
box-shadow: 1px 1px 4px darkgray;
}
Found the solution, added some missing stylenames in ext-main-screen.xml and this is my scss:
.v-button
:not(.v-button-link)
:not(.v-button-c-pickerfield-button)
:not(.v-button-c-sidemenu-collapse-button)
:not(.v-button-c-settings-button)
:not(.v-button-c-logout-button)
:not(.v-button-c-login-button) {
box-shadow: 1px 1px 4px darkgray;
}
Related
This seems to have the solution I need...
Border radius on Focus input field
Where I want the focus border to match the border radius used for the box itself. As it is right now, the box has curved corners but the focus does not so it looks odd.
I tried...
*:focus {
outline: none;
box-shadow: 0px 0px 2px blue;
}
and...
.field-box:focus {
outline: none;
box-shadow: 0px 0px 2px blue;
}
but neither work so I'm thinking something at a parent level is overriding it. When I check for the css in inspect, I don't see it show up so I can't confirm that is the case. I just know that I can make other changes to the form box but not the focus border itself. Anyone know how to address or if there is a way to identify what might be overriding it?
Hope somebody can help me. I've added custom css to a button but the shadow displayed is wider than the button itself:
This is how it looks:
This is the css:
.dip-button-dark-bg {
border-radius: 5px !important;
box-shadow: 2px 2px 2px #484848 !important;
}
Can someone tell me what I should add? I've been searching for a solution for 2 hours now and have become pretty desperate.
I am working on a website where a user can select an icon and send it as a request to one of my bots.
I've already got it sorted out. I'm mainly just working on improving the aesthetics.
What I want to happen is, when hovering over an icon (or even selecting it), it shows a light blue background colour to indicate that it's been selected, because right now there is nothing to indicate a chosen icon except for the div at the very top (which isn't always in sight when you scroll further down).
The code I have atm is:
.flair:hover, .selected{
background-color: #3498db;
border-radius: 2px;
}
I've tried adding some padding but since each image is in a spritesheet, it will overlap with other images.
I've also tried using a border instead to emulate the same effect, but hovering over an image would slightly move the other images due to the border being applied and it gets annoying.
Is there some way I can get my background-color to 'overflow' behind the images?
How about you add a transparent border add the begining as a placeholder and change your margins since borders gonna add some space
.flair {
border: 2px solid transparent;
background-clip : padding-box;
margin-right:6px;
margin-top:6px;
}
and then you color it with some additional glow when hovering
.flair:hover {
box-shadow: 0 0 10px #3498db;
border: 2px solid #3498db;
}
Please try this :
.flair:hover, .selected {
border: 1px solid #3498db;
border-radius: 2px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
I have a qtreewidget in my application. I have set the stylesheet like below for it.
setFrameShape(QFrame::NoFrame);
setStyleSheet("QTreeView { border: none; background: transparent; outline:none; }" "QTreeView::item:!selected:hover { border: 1px solid #AAAAAA}" "QTreeView::item:selected { border: 1px solid #0053A6}");
Now the problem is that there is no border around qtreewidget which is correct behaviour but when I click on any item of this widget a black border appears around the widget. Although I have mentioned the border for this widget to none then why it is appearing on clicking any item.
This is a focus rectangle. To completely disable it:
setFocusPolicy(Qt::NoFocus)
I have the following button
<h:commandButton id="user" action="user?faces-redirect=true" styleClass="rightlogo"/>
and in my css the class
.rightlogo{
margin: 5px;
padding: 10px 5px 5px 5px;
border: 0px;
}
I want to style it using CSS so that on click, there won't be any border. Currently there is a blue border (like the one from a href).
Thanks !
try using .rightlogo:focus{
CSS
.rightlogo:focus{
outline:none;
border:none;
}
REMEMBER: if you are giving :hover,then :focus must come after :hover inorder for :focus to work