Jump to content
покупайте без комиссии
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign Up

Recommended Posts

Здравствуйте!

Не как не могу прописать стили для checkbox.

Вкладка собрать

https://doorbravo.ru/mezhkomnatnye-dveri/pvh/skinny/mezhkomnatnaya-dver-s-pvh-plenkoy-skinni-20-belaya.html

Прописано так:

#product .complect-popup-products input[type="checkbox"],
#product .complect-popup-products input[type="radio"] {
    margin: 4px 0 0;
    margin-right: 0px;
    margin-top: 1px \9;
    line-height: normal;
    margin-right: 4px;
}
#product .complect-popup-products input[type="checkbox"]:before,
#product .complect-popup-products input[type="radio"]:before {
    height: 8px;
    width: 8px;
    position: absolute;
    content: '';
    display: inline-block;
    font-size: 9px;
    text-align: center;
    line-height: 14px;
    background: #000;
    top: 3px;
    left: 3px;
    border-radius: 50%;
}
#product .complect-popup-products input[type="checkbox"]:after,
#product .complect-popup-products input[type="radio"]:after {
    -webkit-animation: click-wave 0.65s;
    -moz-animation: click-wave 0.65s;
    animation: click-wave 0.65s;
    background: #444;
    content: '';
    display: block;
    position: relative;
    z-index: 100;
}

Стили видит но нужного результата нет

 

f91b2b95-a315-47ef-829d-36f5abc61aa6.png

Link to post
Share on other sites

где эта вкладка?

Link to post
Share on other sites

33 минуты назад, NDemidov сказал:

где эта вкладка?

это квест для покупателя, а я нашел :cool:

 

https://www.w3schools.com/howto/howto_css_custom_checkbox.asp

 

Link to post
Share on other sites

нашел)

в каком виде они должны быть? (сss какой-то странный)

Link to post
Share on other sites

15 минут назад, helen2014 сказал:

Как в фильтре только темный

https://doorbravo.ru/mezhkomnatnye-dveri/

 

тогда вроде так:

#product .complect-popup-products input[type="checkbox"], 
#product .complect-popup-products input[type="radio"] {
    vertical-align: middle;
    border-radius: 50%;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    bottom: 2px;
    height: 16px;
    width: 16px;
    -webkit-transition: all 0.15s ease-out 0s;
    -moz-transition: all 0.15s ease-out 0s;
    transition: all 0.15s ease-out 0s;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    outline: none;
    z-index: 5;
    border: 1px solid #000;
    line-height: normal;
    box-sizing: border-box;
    padding: 0;
}

#product .complect-popup-products input[type="checkbox"]:before, 
#product .complect-popup-products input[type="radio"]:before {
    height: 8px;
    width: 8px;
    position: absolute;
    content: '';
    display: inline-block;
    font-size: 9px;
    text-align: center;
    line-height: 14px;
    background: #000;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

::after можно удалить

  • +1 1
Link to post
Share on other sites

4 минуты назад, NDemidov сказал:

 

тогда вроде так:


#product .complect-popup-products input[type="checkbox"], 
#product .complect-popup-products input[type="radio"] {
    vertical-align: middle;
    border-radius: 50%;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    bottom: 2px;
    height: 16px;
    width: 16px;
    -webkit-transition: all 0.15s ease-out 0s;
    -moz-transition: all 0.15s ease-out 0s;
    transition: all 0.15s ease-out 0s;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    outline: none;
    z-index: 5;
    border: 1px solid #000;
    line-height: normal;
    box-sizing: border-box;
    padding: 0;
}

#product .complect-popup-products input[type="checkbox"]:before, 
#product .complect-popup-products input[type="radio"]:before {
    height: 8px;
    width: 8px;
    position: absolute;
    content: '';
    display: inline-block;
    font-size: 9px;
    text-align: center;
    line-height: 14px;
    background: #000;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

::after можно удалить

Получилось что они все включены!

Посмотрите в карточки.

Нужно чтобы переключались

Link to post
Share on other sites

#product .complect-popup-products input[type="checkbox"]:checked:before, 
#product .complect-popup-products input[type="radio"]:checked:before

Link to post
Share on other sites

ну и наведение еще:

#product .complect-popup-products input[type="checkbox"]:hover, 
#product .complect-popup-products input[type="radio"]:hover {
    border: 1px solid #9c2e03;
}
#product .complect-popup-products input[type="checkbox"]:checked:hover:before, 
#product .complect-popup-products input[type="radio"]:checked:hover:before {
    background: #9c2e03;
}

 

Link to post
Share on other sites

8 минут назад, NDemidov сказал:

#product .complect-popup-products input[type="checkbox"]:checked:before, 
#product .complect-popup-products input[type="radio"]:checked:before

В роди все получилось.

Большое спасибо!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.