UNPKG

infinity-forge

Version:
20 lines 3 kB
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.StarsText = void 0; var styled_components_1 = __importDefault(require("styled-components")); exports.StarsText = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 4px;\n\n .star {\n color: #ccc;\n\n &.empty {\n -webkit-background-clip: text;\n -webkit-text-fill-color: #ccc;\n }\n\n &.full {\n color: ", ";\n }\n &.half {\n background: linear-gradient(\n to right,\n ", " 50%,\n #ccc 50%\n );\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n }\n\n .number {\n margin-bottom: -2px;\n color: ", ";\n }\n\n @media only screen and (max-width: 1400px) {\n .number {\n margin-bottom: -1px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n .stars {\n gap: 3px;\n }\n\n .number {\n margin-bottom: 0px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .number {\n margin-bottom: -1.5px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .number {\n margin-bottom: 0;\n }\n }\n"], ["\n display: flex;\n align-items: center;\n gap: 4px;\n\n .star {\n color: #ccc;\n\n &.empty {\n -webkit-background-clip: text;\n -webkit-text-fill-color: #ccc;\n }\n\n &.full {\n color: ", ";\n }\n &.half {\n background: linear-gradient(\n to right,\n ", " 50%,\n #ccc 50%\n );\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n }\n\n .number {\n margin-bottom: -2px;\n color: ", ";\n }\n\n @media only screen and (max-width: 1400px) {\n .number {\n margin-bottom: -1px;\n }\n }\n\n @media only screen and (max-width: 1200px) {\n .stars {\n gap: 3px;\n }\n\n .number {\n margin-bottom: 0px;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .number {\n margin-bottom: -1.5px;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .number {\n margin-bottom: 0;\n }\n }\n"])), function (_a) { var $theme = _a.$theme; return ($theme === null || $theme === void 0 ? void 0 : $theme.baseColor) || '#f5a623'; }, function (_a) { var $theme = _a.$theme; return ($theme === null || $theme === void 0 ? void 0 : $theme.baseColor) || '#f5a623'; }, function (p) { return p.theme.grey60; }); var templateObject_1; //# sourceMappingURL=styles.js.map