UNPKG

@paroicms/site-generator-plugin

Version:

ParoiCMS Site Generator Plugin

355 lines (299 loc) 4.73 kB
export function getThemeCssContent() { return `/* Global */ :root { --paInteractiveColor: #99f; } /* Reset */ * { box-sizing: border-box; } a, a:visited { color: inherit; text-decoration: none; } /* Elements */ body { background-color: #aaa; margin: 0; padding: 0; } img { display: block; max-width: 100%; } picture { display: block; } header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; padding-top: 15px; color: #fff; } @media (max-width: 768px) { header { flex-wrap: wrap; padding: 15px 0 5px; } } .Header-logo { display: flex; align-items: center; } .Header-logo img { margin-right: 10px; border-radius: 50%; } .Header-title { font-size: 20px; font-weight: bold; } footer { margin-top: 30px; padding: 20px; text-align: center; } /* Card */ a > article { background-color: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); display: flex; max-width: 340px; overflow: hidden; } a > article div:first-child { flex: 0 0 120px; max-width: 120px; } a > article img { height: 100%; object-fit: cover; width: 100%; } a > article div:last-child { display: flex; flex: 1; flex-direction: column; padding: 15px; } a > article h3 { margin: 0 0 8px; font-size: 16px; font-weight: bold; color: #333; } a > article p { color: #666; font-size: 14px; line-height: 1.4; margin: 0; } a:hover > article { box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); } /* Navbar */ nav { align-items: center; display: flex; flex-grow: 1; justify-content: center; margin: 0 15px; } nav a, nav a:visited { color: rgba(255, 255, 255, 0.85); padding: 8px; margin: 0 4px; border-radius: 4px; font-size: 17px; font-weight: bold; position: relative; transition: all 0.2s ease; } nav a:hover { color: #fff; background-color: rgba(255, 255, 255, 0.1); } nav a.active { color: #fff; } nav a.active::after { content: ""; position: absolute; bottom: 0; left: 16px; right: 16px; height: 3px; background-color: #3498db; border-radius: 1.5px; } ._paMobileMenu nav { display: block; margin-top: 40px; } ._paMobileMenu nav a, ._paMobileMenu nav a:visited, ._paMobileMenu nav a:active, ._paMobileMenu nav a:hover { color: #333; } ._paMobileMenu nav a { display: block; margin: 0; padding: 10px; } /* Classes */ ._bg2 { background-color: #444; color: #eee; } .Container { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; } .Page { background-color: #fff; color: #333; padding: 5px 40px; } .TextWidth { max-width: 600px; margin: 0 auto; } .List { display: flex; gap: 20px; flex-wrap: wrap; } .Pt { padding-top: 50px; } .Pb { padding-bottom: 50px; } .Text a, .Text a:visited, .TextLink, .TextLink:visited { color: #007bff; cursor: pointer; text-decoration: underline; } .Hero img { height: auto; width: 100%; } .PaInfiniteLoading-loadMore { align-items: center; display: flex; justify-content: center; } .Button, .PaButton { background-color: #3498db; border: 1px solid #3498db; border-radius: 5px; color: #fff; cursor: pointer; display: inline-block; font-size: 16px; margin: 10px 0; padding: 10px 20px; text-align: center; text-decoration: none; } .Button:hover, .PaButton:hover { background-color: #2980b9; border-color: #2980b9; } .Button:disabled, .PaButton:disabled { background-color: #ccc; border-color: #ccc; } .PaSearchOpenerButton { display: flex; } .Field { margin: 20px 0; a { text-decoration: underline; } } .Field:has(> .Field-img) { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; } .Field-img { border-radius: 10px; } .Indent { border-left: 4px solid #888; margin-left: 40px; } .Row { display: flex; gap: 20px; } .Row.spaceBetween { justify-content: space-between; } .Row.center { align-items: center; } .LanguageSelector { list-style: none; margin: 0; padding: 0; li { display: inline-block; margin: 0 5px; } li:not(:last-child)::after { content: " - "; margin-left: 5px; } a { text-decoration: underline; } span { font-weight: bold; } } .FlexWrap { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0; } .Label { background-color: #e9ecef; border: 1px solid #dee2e6; border-radius: 12px; color: #495057; display: inline-block; font-size: 12px; font-weight: 500; margin: 0; padding: 4px 8px; } a.Label { background-color: #bedefeff; } a.Label:hover { background-color: #8bc0f5ff; } `; }