Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="../../ImportScripts/LSClientelingMainScript.js"></script>
- <!-- <p class="ls-skin-_CO_CANCEL ls-font-_CO_CANCEL" data-ls-pos-tag="terminal_description"></p> -->
- <!-- <p data-bind="text: time"></p> -->
- <div id="LSBrickView" style="display: none;" data-bind="visible: true">
- <div class="container-fluid">
- <div class="col-12">
- <div class="row">
- <nav id="ls-breadcrumbs"></nav>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-12 nodes" data-bind="css: { 'col-md-9': ($root.attributes().length > 0)}">
- <div class="row" data-bind="foreach: { data: $root.filteredNodes('Node'), as: 'Node' }">
- <!-- <div class="card text-center col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2">
- <img class="card-img-top" data-bind="attr: {src: LS.isPOS ? Node.Image : LOREM_IMG_URL, alt: Node.Description}">
- <div class="card-body">
- <h2 class="card-title" data-bind="text: Node.Description"></h2>
- </div>
- </div> -->
- <div class="ls-brick-node">
- <div class="ls-brick-img" data-bind="style: { backgroundImage: 'url(\'' + (LS.isPOS ? Node.Image : LOREM_IMG_URL) + '\')' }"></div>
- <p class="ls-brick-desc" data-bind="text: Node.Description"></p>
- <a href="javascript:;" class="fix" data-bind="click: $root.openNode"></a>
- </div>
- </div>
- <div class="row" data-bind="foreach: { data: $root.filteredNodes('Item'), as: 'Item' }">
- <div class="col-md-4 col-sm-6 col-12 ls-brick-item">
- <div class="ls-brick-item-inner">
- <div class="col-md-4 col-sm-4 col-12 ls-brick-item-img" data-bind="style: { backgroundImage: 'url(\'' + (LS.isPOS ? Item.Image : LOREM_IMG_URL) + '\')' }, click: $parent.openNode"></div>
- <div class="ls-brick-item-card">
- <a href="javascript:;" class="fix" data-bind="click: $root.openNode"></a>
- <p class="ls-brick-item-desc" data-bind="text: Item.Description"></p>
- <p class="ls-brick-item-no">Item No. <span data-bind="text: Item.ItemNo"></span></p>
- <p class="ls-brick-item-price" data-bind="text: Item.Price"></p>
- </div>
- <div class="buttons">
- <a href="javascript:;" type="button" class="btn ls-btn-open rounded-circle" data-toggle="tooltip" title="View details" data-bind="click: $root.openNode">
- <i class="fa fa-eye"></i>
- </a>
- <a href="javascript:;" type="button" class="btn ls-btn-compare rounded-circle" data-toggle="tooltip" title="Compare" data-bind="click: $root.addToCompare">
- <i class="fa fa-adjust"></i>
- </a>
- <a href="javascript:;" type="button" class="btn ls-btn-addtocart rounded-circle" data-toggle="tooltip" title="Add to cart" data-bind="click: $root.addToCart, clickBubble: false">
- <i class="fa fa-shopping-cart"></i>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-12" data-bind="css: { 'col-md-3': ($root.attributes().length > 0) }">
- <div data-bind="foreach: { data: attributes, as: 'Attribute' }" class="ls-filter">
- <span class="ls-filter-title" data-bind="text: Attribute.Code, visible: Attribute.Options.length > 0"></span>
- <ul data-bind="foreach: { data: Attribute.Options, as: 'Option' }">
- <li data-bind="click: $root.checkboxFix">
- <input type="checkbox" data-bind="checked: Option.Value, click: $root.setfilter.bind($data, Attribute.Code), clickBubble: false" />
- <a class="ls-filter-label" href="javascript:;" data-bind="text: Option.Attr"></a>
- </li>
- </ul>
- </div>
- <button class="ls-button" data-bind="click: $root.clearFilter, visible: $root.attributes().length > 0">Clear Filter</button>
- </div>
- </div>
- </div>
- </div>
- <div id="LSCompareItems" style="display: none;" data-bind="visible: true">
- <div class="container-fluid h-100">
- <div class="row h-100">
- <div class="col-8">
- <div class="row h-100" data-bind="foreach: {data: $root.compareItems, as: 'CompareItem' }">
- <div class="col-6 d-flex align-items-center h-100">
- <div class="ls-brick-compare-card d-flex align-items-center w-100">
- <div class="ls-brick-item-img" data-bind="style: { backgroundImage: 'url(\'' + (LS.isPOS ? CompareItem.Image : LOREM_IMG_URL) + '\')' }"></div>
- <p class="ls-brick-compare-desc" data-bind="text: CompareItem.Description"></p>
- <div class="close-button">
- <a href="javascript:;" class="fix" data-bind="click: $root.removeFromCompare" data-toggle="tooltip" title="Remove item"></a>
- <i class="fa fa-times-circle"></i>
- </a>
- </div>
- </div>
- </div>
- <div class="col-6" data-bind="visible: $root.compareItems().length === 1">
- <div class="ls-brick-compare-card-empty"></div>
- </div>
- </div>
- </div>
- <div class="col-4 ls-compare-buttons">
- <div class="row h-100">
- <div class="col-6 text-center d-flex justify-content-center align-items-center h-100">
- <a href="javascript:;" class="fix" data-bind="click: $root.openCompare, css: $root.compareItems().length < 2 ? 'button disabled' : 'button'" data-toggle="tooltip" title="Open compare">
- <div>
- <i class="fa fa-adjust"></i>
- <div class="button-text">
- Compare
- </div>
- </div>
- </a>
- </div>
- <div class="col-6 text-center d-flex justify-content-center align-items-center h-100">
- <a href="javascript:;" class="fix button" data-bind="click: $root.clearCompare" data-toggle="tooltip" title="Clear all items">
- <div>
- <i class="fa fa-times-circle"></i>
- <div class="button-text">
- Clear
- </div>
- </div>
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <hr style="display: none;" data-bind="visible: !LS.isPOS">
- <pre style="display: none;" data-bind="visible: !LS.isPOS, text: ko.toJSON($root, null, 2)"></pre>
- // console.log('BrickView');
- var LOREM_IMG_URL = 'http://loremflickr.com/300/300';
- var WEBAPI_URL = 'lstmpl://#BRICKVIEW/RetailWebAPI/RetailHierarchyGet/';
- var WEBAPI_URL_DETAILS = 'lstmpl://#ITEMDETAILS/RetailWebAPI/ItemGet/';
- var WEBAPI_URL_COMPARE = 'lstmpl://#PRODUCTCOMPARE/RetailWebAPI/ItemGet/';
- var INITIAL_HIERARCHY_CODE = 'SPA';
- var filter = {};
- var vm;
- var lsBreadCrumbs;
- window.onTemplateReady = function () {
- lsBreadCrumbs = new LSBreadCrumbsClass($('#ls-breadcrumbs'), INITIAL_HIERARCHY_CODE);
- vm = new LSBrickViewVMClass();
- ko.applyBindings(vm);
- LS.Navigate(WEBAPI_URL + '?hierarchyCode=' + INITIAL_HIERARCHY_CODE + '&init=true');
- // setInterval(() => { vm.time(vm.time() + 1); }, 1000);
- };
- window.onTemplateUpdatePOSTags = function (tags) {
- // console.log(tags);
- };
- window.onPOSTransactionFinished = function () {
- LS.Navigate(WEBAPI_URL + '?hierarchyCode=SPA&init=true'); // Refresh control
- };
- window.onTemplateData = function (data) {
- var _a = data.methodName, methodName = _a === void 0 ? '' : _a, _b = data.result, result = _b === void 0 ? {} : _b, _c = data.serviceName, serviceName = _c === void 0 ? '' : _c;
- switch (methodName) {
- case 'RetailHierarchyGet':
- vm.setNodes(result);
- lsBreadCrumbs.update();
- break;
- default:
- console.log("onTemplateData:\n [" + methodName + "]\n finished on service: [" + serviceName + "] and was not handled specifically.");
- break;
- }
- };
- var onTemplateError = function (msg) {
- LS.ShowAlert(msg, 'error', 5000);
- };
- var onTemplateNavigation = function (url, requestParams) {
- vm.url(url);
- vm.codePath(requestParams.hierarchyCode);
- if (typeof requestParams.init !== 'undefined' && requestParams.init === 'true')
- vm.clearCompare();
- if (typeof requestParams.filter !== 'undefined' && requestParams.filter.length === 0)
- filter = {};
- };
- var LSBrickViewVMClass = /** @class */ (function () {
- function LSBrickViewVMClass() {
- var _this = this;
- this.codePath = ko.observable('');
- this.descPath = ko.observable('');
- this.compareItems = ko.observableArray();
- this.url = ko.observable('');
- this.nodes = ko.observableArray();
- this.attributes = ko.observableArray();
- this.time = ko.observable(0);
- this.appendNodes = function (jsonData) {
- var js = JSON.parse(jsonData);
- for (var _i = 0, _a = js.Nodes; _i < _a.length; _i++) {
- var n = _a[_i];
- _this.nodes.push(n);
- }
- for (var _b = 0, _c = js.Attributes; _b < _c.length; _b++) {
- var n = _c[_b];
- _this.attributes.push(n);
- }
- };
- this.setNodes = function (js) {
- _this.descPath(js.DescriptionPath);
- _this.nodes(js.Nodes);
- if (typeof js.Attributes !== 'undefined')
- _this.attributes(_this.setFilterAttributes(js.Attributes));
- };
- this.openNode = function (node) {
- var url;
- var codePath = _this.codePath();
- var newCodePath = (codePath ? codePath + '/' + node.NodeID : node.NodeID);
- switch (node.NodeType) {
- case 'Node':
- url = WEBAPI_URL + '?hierarchyCode=' + newCodePath;
- LS.Navigate(url);
- break;
- case 'Item':
- url = '[#ITEMDETAILS]' + WEBAPI_URL_DETAILS + '?itemNo=' + node.ItemNo;
- LS.SendPosCommand(_this, 'NAVIGATE', url);
- setTimeout(function () { LS.SendPosCommand(_this, 'SHOWPANELMODAL', '#ITEMDETAILS'); }, 100);
- break;
- default:
- LS.ShowAlert('Node type not valid!', 'info', 1000);
- }
- };
- this.addToCart = function (node) {
- LS.SendPosCommand(null, 'PLU_K', node.ItemNo);
- LS.ShowAlert(node.Description + ' added to cart.', 'info', 1000);
- };
- this.openCompare = function () {
- if (_this.compareItems().length < 2) {
- return;
- }
- LS.SendPosCommand(_this, 'SHOWPANELMODAL', '#PRODUCTCOMPARE');
- };
- this.updateCompare = function () {
- if (typeof $ !== 'undefined') {
- var $tooltips = $('.tooltip');
- if ($tooltips && $tooltips.length > 0) {
- $tooltips.tooltip('hide'); // tooltips don't seem to get hidden on removed elements
- }
- }
- var url = '[#PRODUCTCOMPARE]' + WEBAPI_URL_COMPARE + '?init=true';
- LS.SendPosCommand(_this, 'NAVIGATE', url);
- for (var _i = 0, _a = vm.compareItems(); _i < _a.length; _i++) {
- var item = _a[_i];
- url = '[#PRODUCTCOMPARE]' + WEBAPI_URL_COMPARE + '?itemNo=' + item.ItemNo;
- LS.SendPosCommand(_this, 'NAVIGATE', url);
- }
- };
- this.addToCompare = function (node) {
- var match = ko.utils.arrayFirst(_this.compareItems(), function (item) {
- return node.ItemNo === item.ItemNo;
- });
- if (!match) {
- if (_this.compareItems() && _this.compareItems().length === 2) {
- _this.compareItems.shift();
- _this.compareItems.push(node);
- }
- else {
- _this.compareItems.push(node);
- }
- _this.updateCompare();
- }
- if (_this.compareItems().length > 0) {
- var $el = $('#LSCompareItems');
- if (!$el.hasClass('open')) {
- $el.removeClass('closed');
- $el.addClass('open');
- $('body').addClass('compareActive');
- }
- }
- };
- this.removeFromCompare = function (node) {
- _this.compareItems.remove(function (n) {
- return node.ItemNo === n.ItemNo;
- });
- _this.updateCompare();
- if (_this.compareItems().length === 0) {
- var $el = $('#LSCompareItems');
- if (!$el.hasClass('closed')) {
- $el.removeClass('open');
- $el.addClass('closed');
- $('body').removeClass('compareActive');
- }
- }
- };
- this.clearCompare = function () {
- _this.compareItems.removeAll();
- _this.updateCompare();
- var $el = $('#LSCompareItems');
- if (!$el.hasClass('closed')) {
- $el.removeClass('open');
- $el.addClass('closed');
- $('body').removeClass('compareActive');
- }
- };
- this.filteredNodes = function (type) {
- return ko.utils.arrayFilter(_this.nodes(), function (node) {
- if (!node) {
- return false;
- }
- return (node.NodeType === type);
- });
- };
- this.setfilter = function (code, item) {
- code = code.toUpperCase();
- item.Attr = item.Attr;
- if (item.Value === true) {
- if (filter.hasOwnProperty(code) === true) {
- if (filter[code].indexOf(item.Attr) < 0)
- filter[code].push(item.Attr);
- }
- else {
- filter[code] = [item.Attr];
- }
- }
- else {
- if (filter.hasOwnProperty(code) === false)
- return true;
- var index = filter[code].indexOf(item.Attr);
- if (index > -1)
- filter[code].splice(index, 1);
- if (filter[code].length < 1)
- delete filter[code];
- }
- LS.Navigate(WEBAPI_URL + '?hierarchyCode=' + _this.codePath() + _this.createFilterUrl());
- return true;
- };
- this.clearFilter = function () {
- LS.Navigate(WEBAPI_URL + '?hierarchyCode=' + _this.codePath());
- };
- this.checkboxFix = function (obj, evt) {
- var $cb = $(evt.currentTarget).find(':checkbox');
- var cb = $cb[0];
- cb.checked = !cb.checked; // manually change checked status
- $cb.triggerHandler('click'); // run all event handlers bound to 'click' event
- };
- /*
- Filter functions
- */
- this.createFilterUrl = function () {
- var query = '&filter=';
- var keys = Object.keys(filter);
- keys.forEach(function (code, idx) {
- query += code + ';';
- query += filter[code].join(',');
- if (idx !== keys.length - 1)
- query += '|';
- });
- return query;
- };
- this.setFilterAttributes = function (attr) {
- if (Object.keys(filter).length === 0)
- return attr;
- for (var _i = 0, attr_1 = attr; _i < attr_1.length; _i++) {
- var a = attr_1[_i];
- var code = a.Code.toUpperCase();
- if (filter.hasOwnProperty(code)) {
- for (var _a = 0, _b = a.Options; _a < _b.length; _a++) {
- var o = _b[_a];
- for (var _c = 0, _d = filter[code]; _c < _d.length; _c++) {
- var f = _d[_c];
- if (f === o.Attr)
- o.Value = true;
- }
- }
- }
- }
- return attr;
- };
- }
- return LSBrickViewVMClass;
- }());
- // For simplicity we'll allow multiple classes in one file.
- // Modules could be placed in ts/modules/LSBreadCrumbs.ts as exports
- // and then they could be imported using e.g.:
- // import { LSBreadCrumbs } from '../../ts/modules/LSBreadcrumbs';
- // the local tsconfig then needs to have --outfile=LSBrickView.js and --module="AMD" to concat the files.
- var LSBreadCrumbsClass = /** @class */ (function () {
- function LSBreadCrumbsClass($anchor, defaultCodePath) {
- if (defaultCodePath === void 0) { defaultCodePath = ''; }
- this.BASE_DESC = 'Home';
- this.$anchor = $anchor;
- this.defaultCodePath = defaultCodePath;
- this.$anchor.empty();
- this.$ol = $('<ol>');
- this.$ol.addClass('breadcrumb');
- this.$ol.append($('<li>').text(this.BASE_DESC).addClass('breadcrumb-item active')); // Placeholder
- this.$anchor.append(this.$ol);
- }
- LSBreadCrumbsClass.prototype.update = function () {
- var url = vm.url();
- var codePath = vm.codePath().split('/');
- var descsArr = vm.descPath().split('|||'); // Unique description separator in LS Nav
- var baseUrl = this.getBaseUrl(url);
- var defaultCodePathLength = this.defaultCodePath.split('/').length;
- // Render
- this.$ol.empty();
- var _loop_1 = function (i) {
- var $node = $('<li>').text(descsArr[i]).addClass('breadcrumb-item');
- this_1.$ol.append($node);
- if (i === descsArr.length - 1) {
- $node.addClass('active');
- }
- else {
- $node.contents().wrap($('<a>').prop('href', 'javascript:;'));
- $node.on('click', function () {
- var u = baseUrl + (codePath ? codePath.slice(0, i).join('/') : '');
- LS.Navigate(u);
- });
- }
- };
- var this_1 = this;
- for (var i = defaultCodePathLength; i < descsArr.length; i++) {
- _loop_1(i);
- }
- };
- LSBreadCrumbsClass.prototype.getBaseUrl = function (url) {
- var tag = 'hierarchyCode=';
- return url.substr(0, url.search(tag) + tag.length);
- };
- return LSBreadCrumbsClass;
- }());
- //# sourceMappingURL=BRICKVIEW.js.map
- html {
- font-size: 14px;
- line-height: 1.2;
- }
- body {
- -webkit-user-drag: none;
- -moz-user-drag: none;
- -ms-user-drag: none;
- user-drag: none;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- font-size: 1rem;
- }
- body.compareActive {
- margin-bottom: 6.875rem;
- }
- a,
- a:hover,
- a:focus,
- label,
- input[type="checkbox"] {
- color: rgb(196, 10, 60);
- cursor: pointer;
- }
- a:hover {
- text-decoration: underline;
- }
- a.fix, a.fix:hover{
- text-decoration: none;
- color:inherit;
- position: absolute;
- top: 0;
- left: 0;
- height: 100%;
- width: 100%;
- }
- label {
- font-weight: inherit;
- }
- .ls-brick-node {
- width: 100%;
- min-height: calc(100vw - 2rem);
- position: relative;
- float: left;
- margin-bottom: 0.5rem;
- padding: 0px;
- }
- .ls-brick-img {
- background-color: transparent;
- background-size: cover;
- background-repeat: no-repeat;
- background-position: center center;
- display: block;
- position: absolute;
- height: 100%;
- width: 100%;
- }
- .ls-brick-desc {
- position: absolute;
- bottom: 0px;
- font-size: 1.6rem;
- width: 100%;
- margin: auto;
- left: 0px;
- right: 0px;
- padding: 0.6rem;
- background: rgba(196, 10, 60, 0.85);
- color: white;
- }
- .ls-brick-item {
- padding: 0.5rem;
- position: relative;
- margin-bottom: 7px;
- font-size: 1.2rem;
- }
- .ls-brick-item-inner {
- border: 1px solid rgb(196, 10, 60);
- overflow: hidden;
- padding: 0.5rem;
- }
- .ls-brick-item-inner .buttons .btn {
- float: left;
- width: 2rem;
- height: 2rem;
- border-radius: 50%;
- margin-right: 0.5rem;
- position: relative;
- text-align: center;
- padding: 0.3rem 0;
- color: #fff;
- }
- .ls-brick-item-inner .buttons .btn ::before {
- font-size: 1.3rem;
- }
- .ls-btn-open {
- background: rgb(251, 90, 60);
- }
- .ls-btn-addtocart {
- background: rgb(196, 10, 60);
- }
- .ls-btn-compare {
- background: rgb(82, 24, 59);
- }
- .ls-brick-item-inner .buttons {
- position: absolute;
- right: 0;
- bottom: -0.5rem;
- }
- .ls-brick-item-inner>div {
- padding: 0;
- }
- .ls-brick-item p {
- color: black;
- padding: 0;
- margin: 0;
- margin-left: 2rem;
- }
- .ls-brick-item-img {
- height: 21.85vw;
- min-height: 5.625rem;
- width: 25%;
- background-color: transparent;
- background-size: contain;
- background-repeat: no-repeat;
- background-position: center center;
- position: relative;
- float: left;
- }
- .ls-brick-item-card {
- position: relative;
- float: left;
- width: 75%;
- cursor: pointer;
- }
- .ls-brick-desc,
- .ls-brick-item-card p {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .ls-brick-item-desc {
- font-weight: bold;
- }
- .ls-button {
- background-color: rgb(196, 10, 60);
- border: none;
- color: #fff;
- padding: 1.25rem 2rem;
- font-size: 1.4rem;
- width: 100%;
- margin-bottom: 20px;
- }
- @media only screen and (min-width: 320px) {
- .ls-brick-node {
- width: 50%;
- min-height: 47.9vw;
- border: 7px solid white;
- margin-bottom: 0px;
- }
- }
- @media only screen and (min-width: 480px) {
- .ls-brick-node {
- width: 33.333%;
- min-height: 33.3vw;
- }
- }
- @media only screen and (min-width: 768px) {
- .ls-brick-node {
- width: 25%;
- min-height: 24.2vw;
- }
- .ls-brick-item-img {
- height: 5.625rem;
- width: 4.6875rem;
- }
- .ls-brick-item-card {
- width: calc(100% - 4.6875rem);
- }
- }
- @media only screen and (min-width: 992px) {
- .ls-brick-node {
- min-height: 16.55vw;
- }
- .ls-brick-node {
- min-height: 16.55vw;
- }
- }
- .breadcrumb {
- font-size: 1.6rem;
- background-color: transparent;
- padding: 0.5rem 0px;
- margin: 0.65rem 0px;
- }
- .breadcrumb-item + .breadcrumb-item::before {
- color: rgba(196, 10, 60, 0.7);
- }
- .ls-filter {
- color: rgb(196, 10, 60);
- font-size: 1.4rem;
- margin-bottom: 1.25rem;
- }
- .ls-filter-title {
- font-weight: bold;
- text-transform: capitalize;
- }
- .ls-filter ul {
- list-style: none;
- padding-left: 0;
- }
- .ls-filter ul li {
- margin-top: 0.25rem;
- }
- .ls-filter input {
- appearance: none;
- -webkit-appearance: none;
- background-color: #fafafa;
- border: 1px solid rgb(196, 10, 60);
- padding: 0.3rem;
- position: relative;
- margin: 0 0.5rem;
- }
- .ls-filter input:checked::after {
- content: '\2715';
- font-size: 1rem;
- top: -0.33rem;
- position: absolute;
- left: -1px;
- }
- .ls-filter-label, .ls-filter-label:active, .ls-filter-label:visited, .ls-filter-label:focus {
- text-decoration:none;
- }
- /*
- Bootstrap Alert overloads
- */
- .alert {
- color: #fff;
- border: none;
- border-radius: 0;
- }
- .alert a {
- color: #fff;
- opacity: 1;
- text-shadow: none;
- }
- .alert-info {
- background-color: rgba(87, 24, 67, 0.85);
- }
- .alert-success {
- background-color: rgba(9, 197, 139, 0.85);
- }
- .alert-warning {
- background-color: rgba(251, 90, 61, 0.85);
- }
- .alert-danger {
- background-color: rgba(196, 10, 60, 0.85);
- }
- .ls-alert {
- width: 70% !important;
- left: 15%;
- top: 0.3333rem;
- }
- .row.no-gutters {
- margin-right: 0;
- margin-left: 0;
- }
- .row.no-gutters > [class^="col-"],
- .row.no-gutters > [class*=" col-"] {
- padding-right: 0;
- padding-left: 0;
- }
- /*
- LS Compare
- */
- #LSCompareItems {
- position: fixed;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 0;
- background: rgb(82, 24, 59);
- }
- #LSCompareItems.open {
- transition-property: all;
- transition-duration: .5s;
- transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
- height: 6.875rem;
- }
- #LSCompareItems.closed {
- transition-property: all;
- transition-duration: .5s;
- transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
- height: 0;
- overflow: hidden;
- width: 100%;
- }
- #LSCompareItems .ls-brick-compare-card {
- background:#fff;
- box-sizing: border-box;
- padding: 0.25rem;
- position: relative;
- }
- #LSCompareItems .ls-brick-compare-card-empty {
- background: rgb(48, 24, 40);
- height: 5.625rem;
- margin-top: 0.5rem;
- box-sizing: border-box;
- position: relative;
- }
- #LSCompareItems .ls-brick-compare-card .close-button {
- position: absolute;
- top: 0.1rem;
- right: 0.2rem;
- color:red;
- cursor: pointer;
- }
- #LSCompareItems .ls-brick-compare-card .close-button i {
- font-size: 1.5rem;
- }
- #LSCompareItems .ls-brick-item-img {
- height: auto;
- min-height: 5rem;
- width: 25%;
- min-width: 3.125rem;
- background-color: transparent;
- background-size: cover;
- background-repeat: no-repeat;
- background-position: center center;
- position: relative;
- float: left;
- margin-right: 1rem;
- }
- #LSCompareItems .ls-brick-item .ls-brick-item-img {
- background-size: contain;
- }
- #LSCompareItems .ls-brick-compare-desc {
- font-weight: bold;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- #LSCompareItems .ls-compare-buttons a .fa,
- #LSCompareItems .ls-compare-buttons a .button-text {
- color:#fff;
- }
- #LSCompareItems .ls-compare-buttons .button {
- opacity: .9;
- cursor: pointer;
- position: static;
- height: auto;
- }
- #LSCompareItems .ls-compare-buttons .button.disabled{
- opacity: .2;
- cursor: default;
- }
- #LSCompareItems .ls-compare-buttons .fa{
- font-size: 3rem;
- }
- #LSCompareItems .ls-compare-buttons .button-text{
- font-size: 1rem;
- font-weight: lighter;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement