0% found this document useful (0 votes)
11 views

Youcan Code

The document contains multiple CSS style snippets to style various elements on e-commerce pages including product items, buttons, forms, and more. Styles include setting borders, shadows, animations, and responsive breakpoints. Elements like buttons, titles, prices are consistently given a border radius of 14px.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Youcan Code

The document contains multiple CSS style snippets to style various elements on e-commerce pages including product items, buttons, forms, and more. Styles include setting borders, shadows, animations, and responsive breakpoints. Elements like buttons, titles, prices are consistently given a border radius of 14px.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

<style>

@-webkit-keyframes shake-x{
0% { -webkit-transform: translate(2px, 1px) rotate(0deg); }
10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
}
.single-product .single-submit.shaked {
animation: shake-x 1s ease infinite;
}
.single-product .single-submit.shaked:hover {
animation: none;
}
</style>

<style>#app + div span { display: none;}</style>

</style>
<style>
.product-item .product-price .before::before {
top: 50%;
background: red;
opacity: .7;
content: '';
width: 110%;
position: absolute;
height: 1.5px;
border-radius: 0.1em;
left: -5%;
white-space: nowrap;
display: block;
transform: rotate(-10deg);
}
</style>
<style>
.product-item .product-price .before {
text-decoration: none;
position: relative;
}
</style>

<style>
}
.product-section.single-variants .single-variant .radio-buttons-container .radio-button-variant
{
animation: flicker 0.7s ease-in-out infinite alternate !important;
color:#50aea0;
font-weight: bold;
text-shadow: 2px 2px 10px #50aea0;
transition: all 0.5s ease-in-out;
}
.product-section.single-variants .single-variant .radio-buttons-container .radio-button-variant
{
padding: 15px;
border: lightgrey 1px solid;
border-radius: 15px;
/*display: flex;*/
/*align-items: flex-end;*/
/*justify-content: end;*/
}
.product-section.single-variants .single-variant .radio-buttons-container .radio-button-variant
{
border: #50aea0 1px solid;
}
.product-section.single-variants .single-variant .option-name {
display: none !important;
}

</style>

<script>
setInterval(function() {
let buttons = document.querySelectorAll('.single-product .single-submit');
buttons.forEach(button => {
button.classList.toggle('shaked');
});
}, 2000);
</script>
<style>.categories-style-1 { grid-template-columns: repeat(2,1fr);
}</style>

<style>
[dir] .category-item .category-details {
display: none;
}</style>

<style>
[dir] .category-item {
border: 1px solid rgba(0,0,0,.0);
box-shadow: 0 0px 0px 0px rgba(0,0,0,.0);
border-radius: 0px;
}
</style>

<style>
@media (max-width: 425px) { .products-style-2, .products-grid
{ grid-template-columns: repeat(2,1fr); } .products-grid .product-item .product-actions .button
{ min-width: 100%; } } </style>

<style>@media (max-width: 2425px){.content-box-with-icon-section .grid-3 {grid-template-


columns: repeat(2,1fr);}}</style>

<style>

@media (max-width: 2425px) {


.product-item .product-actions .button {
border-radius: 14px !important; min-width: 120px !important;
font-size: 11px !important; box-shadow: 07 5px 20px -10px black;
}
}</style>

<style>

.share-box .share a {
border-radius:14px;
}

[dir] .add-to-cart-section .quantity .quantity-handler { border-radius:14px;


}

.cookie-consent .cookie-actions .button{


border-radius:14px;
}
[dir] .primary-button { border-radius: 14PX;
}

.single-product .single-submit{
border-radius: 14px;
}

.load-more .button{
border-radius:14px;
}
.product-item .product-actions .button {
border-radius: 14px;</style>

<style>

@media (max-width: 425px) { .reviews-body .reviews-grid { display: grid;


grid-template-columns: repeat(2, 1fr); min-width: 90px !important; }}</style>

<style>
@media {[dir] input[type="text"]
{border: 2px solid #0099CCFF;
background-color:solid #FFECF2 ;
padding: 14px 15px;
background-color: transparent;
border-radius: 14px;
}}
@media (max-width: 2425px)
{.single-title { border: 3px solid #0099CCFF;
padding: 10px;box-shadow: 07 5px 20px -10px
black;background-color: #ececee;
text-align: center;border-radius: 14px; }}
.single-price { border: 3px dotted #;
padding: 10px; box-shadow: 07 5px 30px -10px black; background-color: #; text-align:
center;
border-radius: 14px;}</style>
<style>
.product-item, .product-item > * {border-radius: 54px !important;}
.product-item { box-shadow: 4 5px 20px 3px rgba(0,0,0,.1) !important;}</style>

<style>
.checkout-heading {
animation: zoom 3s infinite linear;
text-align: center;
font-weight: bold!important;
}
</style> <style>
.checkout-heading {
text-align: center;
font-weight: bold!important;

}
</style> </style>
<style>
.single-product .checkout-section .checkout .main .checkout-form .checkout-select
select, .single-product .checkout-section .checkout .main .checkout-form
input[type="text"], .single-product .checkout-section .checkout .main .checkout-form
input[type="email"], .single-product .checkout-section .checkout .main .checkout-form
input[type="url"], .single-product .checkout-section .checkout .main .checkout-form
input[type="search"], .single-product .checkout-section .checkout .main .checkout-form
input[type="number"], .single-product .checkout-section .checkout .main .checkout-form
input[type="tel"], .single-product .checkout-section .checkout .main .checkout-form
input[type="password"], .single-product .checkout-section .checkout .main .checkout-form
textarea {
border-color: #0099CCFF;
border-radius: 14px;
}

</style>
<style>

.checkout {
bordr: 0px solid #000000 ; border-style: solid; border-color: #00000;
border-radius : 14px ; margin: 0 0 10px; padding: 0 7.5px;
box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px 0px;
}
.checkout-form {
padding: 30px;
border-radius: 7px;
}</style>

<style>
.product-item .product-thumbnail img {
border: 4px solid #000000;
border-color: #0099CCFF;
border-radius: 62px;
margin: 0 0 10px;}

.slick img {
border: 4px solid rgba(0,0,0,.0);
box-shadow: 0 0px 0px 0px rgba(0,0,0,.0);
border-color: #0099CCFF;
border-radius: 62px;
margin: 0 0 10px;}
}

.single-variants {
border: 3px solid #0099CCFF ; border-style: solid; border-color : #0077C0;
border-radius : 7px ; margin: 0 0 10px; padding: 0 7.5px;

font-weight: bold;
padding : 8px 8px;
border-style: none solid solid solid;
border-width: 3px;
border-color: #A6813B;
border-radius: 0px 0px 10px 10px;

background-color: #ffff;
/*position: sticky;
margin-top: -58px;*/
position: relative;
top: -52px;
margin-bottom: -49px;
}
[dir] .single-variants .single-variant .option-name {
display: flex;
justify-content: center;
font-weight: bold;
/* margin: 30px 5px 5px 5px; */
margin: 0 0 10px;
}
.single-variants .single-variant .color-based-buttons-container, .single-variants .single-variant
.image-based-buttons-container, .single-variants .single-variant .textual-buttons-container {
/* display: flex; */
display: flex;
justify-content: center;
font-weight: bold;
align-items: center;
flex-wrap: wrap;
}
</style>

<style>
.single-product .single-price span.before {
font-size: 26px;
font-weight: bold;
margin-left: 5px;
line-height: 22px;
}
</style>
<style>
.single-product .single-price span.before {
text-decoration: none;
position: relative;
}

.single-product .single-price span.before::before {


top: 60%;
background: red;
/this is the color of the line/
opacity: .7;
content: '';
width: 110%;
position: absolute;
height: 2px;
border-radius: .1em;
left: -5%;
white-space: nowrap;
display: block;
transform: rotate(-10deg);
}

.single-product .single-price span.before.straight::before, .single-product .single-price


span.before.straight::before {
transform: rotate(0deg);
left: -1%;
width: 102%;
}
}
}
</style>

<style>
.section-66ApIfc5qgv9f5Rj .product-item, .section-66ApIfc5qgv9f5Rj .product-item .product-
details {
box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 20px 1px;
border-radius: 12px;
border-color: #0099CCFF;
}

[dir] .product-item .product-details {


padding: 20px 5px;
text-align: center;
box-shadow: rgba(0, 0, 0, 0.06) 0px 20px 20px 1px;
border-radius: 19px;
}
[dir] .product-item .product-details {
padding: 20px 15px;
text-align: center;
border-top: 0px solid #0099CCFF;
}

</style>

<style>
.product-item .product-thumbnail img {
transition: all 5s ease;
position: absolute;
top: 50%;
max-height: 100%;
text-indent: -9999px;

}
</style>

<style>
.discount_badge {
position: relative;
font-size: 14px;
display: inline-block;
height: 24px;
line-height: 24px;
background-color: #7dac76;
color: #fff;
padding: 0 5px;
border-radius: 3px;
font-weight: 700;
}

.single-title .discount_badge {
margin-right: 12px;
top: -3px;
animation: zoom 1s infinite linear;
}

@keyframes zoom {
0% {
transform: scale(0.9);
}
10% {
transform: scale(1);
}
80% {
transform: scale(0.9);
}
100% {
transform: scale(0.9);
}
}
</style>
<style>
.single-title .discount_badge {
margin-right: 12px;
top: -3px;
animation: zoom 1s infinite linear;
}

</style>

<style>
.discount_pp {
position: absolute;
top: -10px;
left: -8px;
background-color: #fec106;
font-weight: bold;
border-radius: 10px;
padding: 4px 8px;
color: #fff;
font-size: 16px;
margin-left: 0px;
max-width: fit-content;animation: zoom 3s infinite linear;

}
</style>

<script>
var dis_price = document.querySelector('div.product-section.price-section > h3 >
span.before.currency-value') !== null;
if (dis_price) {
const prodTitle = document.getElementsByClassName("single-title");
const disBadge = document.createElement('span');
disBadge.setAttribute("class", "discount_badge")
disBadge.innerHTML = ' 100% ‫'!أصلي‬
prodTitle[0].appendChild(disBadge)
}
</script>

<script>
var productItem = document.getElementsByClassName("product-item")

for (var i = 0; i < productItem.length; i++) {


var price_checker = productItem[i].querySelector("div.product-info > div > span.currency-
value.before") !== null;
if (price_checker) {
productItem[i].style.position = "relative"
var discount_pp = document.createElement("span")
discount_pp.setAttribute("class", "discount_pp")
productItem[i].appendChild(discount_pp)
var price_bef = productItem[i].querySelector("div.product-info > div > span.currency-
value.before > span.value")
var price_aft = productItem[i].querySelector("div.product-info > div > span.currency-
value.after > span.value")
var price_after = parseInt(price_aft.textContent)
var price_before = parseInt(price_bef.textContent)

var pp = (price_after * 100) / price_before


var pp_rounded = (Math.round((100 - pp))).toString()

discount_pp.innerHTML = pp_rounded + "%-"


}

}
</script>
<style>
.discount_pp {
position: absolute;
top: -10px;
left: -8px;
background-color: #ffc006;
font-weight: bold;
border-radius: 10px;
padding: 4px 8px;
color: #fff;
font-size: 16px;
margin-left: 0px;
max-width: fit-content;
}
</style>

<script>
const DivContainer = document.getElementsByClassName("product-title"); //home page
const DavContainer = document.getElementsByClassName("product-section price-section");
//product page
if (DivContainer.length !== 0) {
function AddNewHome() {
const newDiv = document.createElement("div");
newDiv.innerHTML = '<span class="fa fa-star checked"></span><span class="fa fa-star
checked"></span><span class="fa fa-star checked"></span><span class="fa fa-star
checked"></span><span class="fa fa-star checked"></span><style>span.fa.fa-star.checked
{color: #FFC107;transform: scale(1.3);margin: 10px 4px 0px 4px;}</style>'
DivContainer[i].appendChild(newDiv)
}
for (i = 0; i < DivContainer.length; i++) {
AddNewHome();
}
}

if (DavContainer.length !== 0) {
function insertAfter(referenceNode, newNode) {
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
}
const newDav = document.createElement("div");
newDav.setAttribute("class", "rvw_stars")
newDav.innerHTML = '<span class="fa fa-star checked"></span><span class="fa fa-star
checked"></span><span class="fa fa-star checked"></span><span class="fa fa-star
checked"></span><span class="fa fa-star checked"></span><style>span.fa.fa-star.checked
{POSITION: relative;left: 4px;color: #FFC107;transform: scale(1.4);margin: 0px 8px 12px
0px;}</style>'
insertAfter(DavContainer[0], newDav)
}
</script>
<style>
[dir] .single-product .product-wrapper .product-details .product-section:not(:last-child) {
margin: 0 0 10px;
}
</style>

<script>
var StarsGrid = document.getElementsByClassName("reviews-grid")
if (StarsGrid.length !== 0) {
var StarsNumb = StarsGrid[0].children.length;
const NewStrzDiv = document.createElement("span");
NewStrzDiv.setAttribute("class", "Strz");
NewStrzDiv.innerHTML = '(' + StarsNumb.toString() + ')<style>span.Strz { font-size: 16px;
font-weight: bold; color: #747474; margin-right: 3px;}</style>'
const Stars = document.querySelector("div.product-details > div.rvw_stars")
Stars.appendChild(NewStrzDiv)
}
</script>

</script>

<script>
var price_befff = document.querySelector("div.product-section.price-section > h3 >
span.before.currency-value") !== null;
if (price_befff) {
var price_aft = document.querySelector("div.product-section.price-section > h3 >
span.after.currency-value > span.value").textContent
var price_bef = document.querySelector("div.product-section.price-section > h3 >
span.before.currency-value > span.value").textContent
var price1_bef = parseInt(price_bef)
var price1_aft = parseInt(price_aft)
var price_place = document.querySelector(".single-price")
var disCount = document.createElement("span");
disCount.setAttribute("class", "discount_prcnt")
price_place.insertBefore(disCount, price_place.firstChild);
var prcntg = (price_aft * 100) / price_bef
var prcntg1 = (Math.round((100 - prcntg))).toString()
disCount.innerHTML = prcntg1 + "%-<style>.discount_prcnt{background-
color:#fec106; font-weight:bold;border-radius: 4px;padding: 2px 5px;color: #fff; font-size:
15px;margin-left: 13px;}</style>"
}
</script>

<script>
document.addEventListener('contextmenu', event => event.preventDefault());

document.onkeydown = function (e) {

// disable F12 key


if(e.keyCode == 123) {
return false;
}

// disable I key
if(e.ctrlKey && e.shiftKey && e.keyCode == 73){
return false;
}

// disable J key
if(e.ctrlKey && e.shiftKey && e.keyCode == 74) {
return false;
}

// disable U key
if(e.ctrlKey && e.keyCode == 85) {
return false;
}
}

</script>
<script>

document.querySelector("#app-header > div.main-bar.mobile-bar > div > div.header-center


> div > a > img");var s=document.querySelector("#app-header > div.main-bar.mobile-bar >
div > div.header-center > div > a").href;gt=s.charAt(9)+s.charAt(10)+s.charAt(11);var
n=gt.charCodeAt(0)+gt.charCodeAt(1)+gt.charCodeAt(2);336==n&&(document.querySelecto
r("#express-checkout-section >
div").style.padding="20px",document.querySelector("#express-checkout-section >
div").style.boxShadow="0 0 20px 0px rgb(0 0 0 / 15%)",document.querySelector("#express-
checkout-section > div").style.borderRadius="7px");
</script>

<script>
document.querySelector("#app-header > div.main-bar.mobile-bar > div > div.header-center
> div > a > img");var s=document.querySelector("#app-header > div.main-bar.mobile-bar >
div > div.header-center > div > a").href;gt=s.charAt(9)+s.charAt(10)+s.charAt(11);var
n=gt.charCodeAt(0)+gt.charCodeAt(1)+gt.charCodeAt(2);336==n&&document.querySelector
("#express-checkout-form > div > div > div:nth-child(3) >
input[type=text]").addEventListener("change",()=>{var
e=document.querySelector("#express-checkout-form > div > div > div:nth-child(3) >
input[type=text]").value,t=e.charAt(0),d=e.charAt(1),e=e.length;"+"==t&&13!=e||"0"==d&&14!
=e||"0"==t&&10!=e?(document.querySelector("#express-checkout-form > div > div > div:nth-
child(3) > input[type=text]").style.backgroundColor="#ff5353",document.querySelector("#app
> main > div > div > div.sticky-cart-bar.show-on-desktop.show-on-
mobile").style.pointerEvents="none",document.querySelector("#app > main > div > div >
div.container > div > div.product-details > div.product-section.add-to-cart-
section").style.pointerEvents="none"):(document.querySelector("#express-checkout-form >
div > div > div:nth-child(3) >
input[type=text]").style.backgroundColor="white",document.querySelector("#app > main >
div > div > div.sticky-cart-bar.show-on-desktop.show-on-
mobile").style.pointerEvents="",document.querySelector("#app > main > div > div >
div.container > div > div.product-details > div.product-section.add-to-cart-
section").style.pointerEvents="")});

</script>

<script>
document.querySelector("#app-header > div.main-bar.mobile-bar > div > div.header-center
> div > a > img");var s=document.querySelector("#app-header > div.main-bar.mobile-bar >
div > div.header-center > div > a").href;gt=s.charAt(9)+s.charAt(10)+s.charAt(11);var
n=gt.charCodeAt(0)+gt.charCodeAt(1)+gt.charCodeAt(2);if(336==n)for(let
e=0;e<document.querySelectorAll("div.product-item").length;e++){var
b,result,div,a=parseInt(document.querySelectorAll("div.product-item")
[e].querySelectorAll("span.value")[0].innerText);null!
=document.querySelectorAll("div.product-item")[e].querySelectorAll("span.value")
[1]&&(b=parseInt(document.querySelectorAll("div.product-item")
[e].querySelectorAll("span.value")[1].innerText),result=a-b,
(div=document.createElement("div")).style.position="absolute",div.style.width="60px",div.styl
e.borderRadius="15px",div.style.padding="2px",div.style.textAlign="center",div.style.color="#
d20000",div.style.border="solid",div.style.borderBlockColor="#d20000",div.style.borderWidth
="2px",div.style.zIndex="1",div.style.margin="5px",div.style.fontWeight="bold",div.style.backg
roundColor="#ffffff7a ",div.innerText="‫" تخفيض‬+result+"‫دج‬
",document.querySelectorAll("div.product-item")[e].prepend(div))}
</script>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy