Welcome to LegendCS – With grace, in your face !

 
Last Updated: 04-06-2025, 01:28 PM
Name: Steam Discounts
Category: Plugins
by: Berserk
Downloads: 0
Views: 12
MD5: 465839ed08cbc003f33206f1961d05aa
Your rating: N/A
Average rating: N/A
 
Description:
Description : Show discounts for games on steam, it uses the cheapshark.com API

https://www.cheapshark.com/api/1.0/deals...ageSize=60


It can be placed by using the variable : {$steamdiscount}


Author : Berserk

Configuration:
You can add your own CSS for it by going to :
ACP -> Teplates&Styles -> Themes -> Your theme ->  Add Stylesheet


Name the file steamdiscounts.css

Attached to:  Globally
Check the box Write my own content

My Example of steamdiscounts.css :

PHP Code: 
.steam-slider {
    positionrelative;
    overflowhidden;
    width100%;
    max-width100%;
    height210px;
    text-aligncenter;
}

.
steam-slide {
    displaynone;
    padding10px;
    color#fff;
}

.
steam-slide.active {
    displayblock;
    animationfade 0.5s ease-in-out;
}

.
steam-slide a img {
    width100%;
    height90px;
    object-fitcontain;
    border-radius4px;
    margin-bottom5px;
    transitiontransform 0.3s ease;
    background#000;
}

.
steam-slide a img:hover {
    transformscale(1.05);
}

.
steam-slide h4 {
    margin5px 0;
    font-size14px;
    color#fff;
}

.
steam-slide .price {
    font-size13px;
    color#ccc;
}

.
steam-slide .discount {
    color#4caf50;
    font-weightbold;
}

.
view-link {
    displayinline-block;
    margin-top6px;
    padding4px 10px;
    background#1760bb;
    colorwhite;
    font-size12px;
    text-decorationnone;
    border-radius4px;
    transitionbackground 0.3s;
}

.
view-link:hover {
    background#114a91;
}

.
steam-slider-controls {
    positionabsolute;
    top40%;
    width100%;
    displayflex;
    justify-contentspace-between;
    transformtranslateY(-50%);
    pointer-eventsnone;
}

.
steam-slider-controls button {
    backgroundrgba(0,0,0,0.5);
    colorwhite;
    bordernone;
    font-size18px;
    padding4px 10px;
    cursorpointer;
    border-radius4px;
    pointer-eventsall;
}

.
steam-slider-controls button:hover {
    backgroundrgba(23961870.7);
}

@
keyframes fade {
    from opacity0; }
    to opacity1; }


[-]
Leave a comment
To leave a comment you must log in.