infinity-forge
Version:
15 lines • 5.03 kB
JavaScript
"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.BlogItem = void 0;
var link_1 = __importDefault(require("next/link"));
var styled_components_1 = __importDefault(require("styled-components"));
exports.BlogItem = (0, styled_components_1.default)(link_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n border-radius: 10px;\n background-color: #fff;\n flex-direction: column;\n border: 1px solid #00000029;\n text-decoration: unset !important;\n\n time {\n margin-bottom: 5px;\n color: #000;\n }\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n .image {\n width: 100%;\n aspect-ratio: 930/482;\n position: relative;\n border-radius: 10px 10px 0 0;\n overflow: hidden;\n\n img {\n transition: transform 0.8s;\n }\n\n img:hover {\n transform: scale(1.1);\n }\n }\n\n .image-link {\n display: flex;\n width: inherit;\n aspect-ratio: inherit;\n height: inherit;\n border-radius: inherit;\n }\n\n .text {\n display: flex;\n flex-direction: column;\n padding: clamp(15px, 1.56vw, 30px);\n padding-bottom: clamp(20px, 2.08vw, 40px);\n }\n\n .tag {\n color: ", ";\n margin-bottom: clamp(5px, 0.52vw, 10px);\n }\n\n .title-post {\n line-height: 1.25;\n transition: 0.3s;\n color: #292929;\n margin-bottom: clamp(10px, 1.04vw, 20px);\n display: -webkit-box;\n line-height: 1.25;\n -webkit-line-clamp: 2;\n overflow: hidden;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n\n &,\n &:hover {\n text-decoration: none !important;\n }\n }\n\n .description {\n color: #414141;\n width: 100%;\n display: -webkit-box;\n line-height: 1.16;\n -webkit-line-clamp: 3;\n overflow: hidden;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n\n * {\n width: 100% !important;\n padding: 0 !important;\n line-height: 1.16;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .description {\n -webkit-line-clamp: 4;\n }\n }\n\n @media only screen and (max-width: 650px) {\n .description {\n line-height: 1.3;\n\n * {\n line-height: 1.3;\n }\n }\n }\n\n @media only screen and (max-width: 500px) {\n border-radius: 5px;\n\n .image {\n border-radius: 5px 5px 0 0;\n }\n\n .title-post {\n line-height: 1.1;\n }\n }\n"], ["\n display: flex;\n border-radius: 10px;\n background-color: #fff;\n flex-direction: column;\n border: 1px solid #00000029;\n text-decoration: unset !important;\n\n time {\n margin-bottom: 5px;\n color: #000;\n }\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n .image {\n width: 100%;\n aspect-ratio: 930/482;\n position: relative;\n border-radius: 10px 10px 0 0;\n overflow: hidden;\n\n img {\n transition: transform 0.8s;\n }\n\n img:hover {\n transform: scale(1.1);\n }\n }\n\n .image-link {\n display: flex;\n width: inherit;\n aspect-ratio: inherit;\n height: inherit;\n border-radius: inherit;\n }\n\n .text {\n display: flex;\n flex-direction: column;\n padding: clamp(15px, 1.56vw, 30px);\n padding-bottom: clamp(20px, 2.08vw, 40px);\n }\n\n .tag {\n color: ", ";\n margin-bottom: clamp(5px, 0.52vw, 10px);\n }\n\n .title-post {\n line-height: 1.25;\n transition: 0.3s;\n color: #292929;\n margin-bottom: clamp(10px, 1.04vw, 20px);\n display: -webkit-box;\n line-height: 1.25;\n -webkit-line-clamp: 2;\n overflow: hidden;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n\n &,\n &:hover {\n text-decoration: none !important;\n }\n }\n\n .description {\n color: #414141;\n width: 100%;\n display: -webkit-box;\n line-height: 1.16;\n -webkit-line-clamp: 3;\n overflow: hidden;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n\n * {\n width: 100% !important;\n padding: 0 !important;\n line-height: 1.16;\n }\n }\n\n @media only screen and (max-width: 1024px) {\n .description {\n -webkit-line-clamp: 4;\n }\n }\n\n @media only screen and (max-width: 650px) {\n .description {\n line-height: 1.3;\n\n * {\n line-height: 1.3;\n }\n }\n }\n\n @media only screen and (max-width: 500px) {\n border-radius: 5px;\n\n .image {\n border-radius: 5px 5px 0 0;\n }\n\n .title-post {\n line-height: 1.1;\n }\n }\n"])), function (p) { return p.theme.primaryColor; });
var templateObject_1;
//# sourceMappingURL=styles.js.map