pyside2 - remove border of Qbutton - pyside2

i have a error that when i touch my touch screen then the buttons will have border.
I added "border-radius" in qss file.But this don't help.
-video video https://www.youtube.com/watch?v=h3e5ArF6GIk
remove yellow
screen capture
how can i remove it?
Button QSS
QPushButton{
background-color:transparent;
border: 3px solid black;
border-radius: 30px;
font: bold italic;
font-size: 20pt;
}
QPushButton#btn_checkout{
text-align: right;
}
QPushButton:checked,
QPushButton:pressed {
border-color: 3px blue;
background-color: #d0d67c;
color: #0000FF;
}
QPushButton:hover {
border: 2px solid blue;
}
QPushButton:disabled{
color: gray;
}

Related

Changing the button color after it is clicked

I would like to change the background colour of "After" to blue upon clicking, but no matter what it just doesn't show. I'm not sure what is wrong here in SCSS. Would really appreciate any advice!
Here's the JS Fiddle: https://jsfiddle.net/u1h9fe6v/
.grid-list {
--color: #f6f8ff;
--background: #2b3044;
--background-hover: green;
--background-active: blue;
padding: 6px 12px 6px 8px;
margin: 0;
display: flex;
outline: none;
position: relative;
border: none;
border-radius: 9px;
background: var(--b, var(--background));
cursor: pointer;
-webkit-appearence: none;
-webkit-tap-highlight-color: transparent;
transform: scale(var(--scale, 1)) translateZ(0);
}
.grid-list:active {
--scale: 0.95;
--background-active: blue;
}
.grid-list:hover {
--b: var(--background-hover);
}
It looks like you can set the background color in the
".grid-list.animation.active {" style. Like this ...
.grid-list.animation.active {
--span-name: text-active;
--dots-name: move;
--lines-name: scale;
--lines-duration: 0.15s;
--lines-delay: 0.3s;
background: blue;
}

Sass BEM modifiers and children

I have the following BEM setup:
.mytable {
font-size: 16px;
margin: 30px 0;
&--standard {
border: 1px solid red;
&__row {
border: 1px solid blue;
}
}
What I am trying to do is apply the row styles only to the modified table class.
This outputs the following
.mytable--standard__row {
border: 1px solid blue;
}
Which is obviously not what I am trying to achieve.
Is there a neat/standard way to solve this problem?
You can add another ampersand after the modifier to get the desired output:
.mytable {
font-size: 16px;
margin: 30px 0;
&--standard {
border: 1px solid red;
}
&--standard & { //<--
&__row{
border: 1px solid blue;
}
&__some-other-element{}
}
}
We use:
.mytable {
font-size: 16px;
margin: 30px 0;
&--standard {
border: 1px solid red;
}
&--standard &__row {
border: 1px solid blue;
}
}
Its not ideal (a && grandparent selector would be nice), but its the best we could come up with so far

In SASS, How to refer tag select?

In SASS's class selecter, I want to select parent's sibling.
.bw-textarea {
height: 150px;
padding: 10px;
overflow-y: auto;
background: white;
text-align: left;
width: 100%;
border: 1px solid #eeeeee;
font-size: 12px !important;
color: #666666;
// textarea:disabled & {
// background: #efefef;
// }
}
Compiled above sass code,
.bw-textarea textarea:disabled {
background: #efefef;
}
But I want to show result like this css code...
How to select like this in sass?
textarea.bw-textarea:disabled {
background: #efefef;
}
You gotta use #root in this case. It's pretty simple
This link will give a clear idea about this selector
.bw-textarea {
#at-root textarea#{&}:disabled{
background: cyan;
}
}
This will compile to
textarea.bw-textarea:disabled {
background: cyan;
}
See this PEN
This is what your looking for:
.bw-textarea {
height: 150px;
padding: 10px;
overflow-y: auto;
background: white;
text-align: left;
width: 100%;
border: 1px solid #eeeeee;
font-size: 12px !important;
color: #666666;
&:disabled {
background: #efefef;
}
}
Check out this SO answer for a lil more idea on the nested pseudo selectors
Sass parent selector and hover?
And of course check the sass docs
https://sass-lang.com/documentation/file.SASS_REFERENCE.html

Fancybox and Chrome / Firefox

i got a "little" bug on my website. Here is the code im using:
product.tpl
{else}
href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html':'UTF-8'}"
data-fancybox-group="other-views"
class="fancybox{if $image.id_image == $cover.id_image} shown{/if}"
global.css
.fancybox-skin {
background: #f4f5f7 !important; }
.fancybox-skin .fancybox-close {
width: 28px;
height: 28px;
background: none;
font-size: 28px;
line-height: 28px;
color: #333333;
text-align: center;
background: #f4f5f7!important;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px; }
.fancybox-skin .fancybox-close:hover {
color: #515151; }
.fancybox-skin .fancybox-close:after {
content: "\f057";
font-family: "FontAwesome"; }
Here is a Link to a product.
If you enlarge the picture by clicking on it, and hover to one of the sites and than jump to one of the other pictures you can see that the background is moving. In Internet Explorer it is working fine.
Now:
/* 1920x1200 ----------- */
#media only screen
and (min-width : 1681px) {
/* Styles */
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
line-height: 1.42857;
background: #f4f5f7 url('http://evoxity.net/themes/default-bootstrap/img/background/1920x1200.jpg');
margin: 0 ;
background-repeat: no-repeat scroll;
-moz-background-size:cover;
overflow: auto;
background-position:center 0;
}
}

Recreating the look and feel of WP7 Metro UI using CSS3, HTML5 and Javascript

Are there any examples out there that can create/recreate the common Metro UI controls using CSS/javascript/HTML5 for Windows Phone 7?
Shameless plug: https://github.com/ace-subido/css3-microsoft-metro-buttons try using this CSS/JS library for metro-buttons :)
Yes, there are some simple examples here:
Developing Windows Phone 7 HTML5 apps with PhoneGap
Try the following to get you started:
body, input, div, span
{
font-size: 20px;
color: white;
font-family: Segoe WP, Sans-Serif;
}
body
{
background:black;
margin:0;
padding:0;
}
h2
{
font-weight: normal;
font-size: 32px; /* PhoneFontSizeLarge */
}
h1
{
font-weight: normal;
font-size: 42.667px; /* PhoneFontSizeExtraLarge */
}
button
{
background: black;
color: white;
border: 3px solid white; /* PhoneBorderThickness */
padding: 6px 10px;
font-size: 25.333px; /* PhoneFontSizeMediumLarge */
position: relative;
top: -4px;
}
button:active
{
background: white;
color: black;
}
button:disabled
{
opacity: 0.7;
}
input[type="text"]
{
font-size: 25.333px; /* PhoneFontSizeMediumLarge */
width: 200px;
padding: 6px;
height: 31px;
border: 3px solid white;
color: black;
}
input[type="checkbox"]
{
width: 32px;
height: 32px;
vertical-align: middle;
}

Resources