EdgarNotPoe's picture
write a code for Joomla 6.x template which copy Headspace app
e07769f verified
/**
* Headspace Zen Template - Custom Styles
*/
/* Base Typography */
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #FDF8F3;
}
::-webkit-scrollbar-thumb {
background: #FFD4B8;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #FF8C42;
}
/* Selection Color */
::selection {
background: rgba(255, 140, 66, 0.3);
color: #2D3748;
}
/* Joomla Content Overrides */
.item-page {
padding: 0;
}
.page-header {
margin-bottom: 2rem;
}
.page-header h2 {
font-size: 2rem;
font-weight: 700;
color: #2D3748;
margin-bottom: 0.5rem;
}
/* Article Styling */
article {
line-height: 1.8;
}
article p {
margin-bottom: 1.5rem;
color: #4A5568;
}
article h1, article h2, article h3, article h4 {
margin-top: 2rem;
margin-bottom: 1rem;
font-weight: 700;
color: #2D3748;
}
article img {
border-radius: 1.5rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Form Styling */
.form-control, .inputbox, input[type="text"], input[type="email"], input[type="password"], textarea {
width: 100%;
padding: 0.75rem 1rem;
border: 1px solid #E2E8F0;
border-radius: 0.75rem;
background-color: white;
transition: all 0.2s;
}
.form-control:focus, .inputbox:focus {
outline: none;
border-color: #FF8C42;
box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}
.btn, .button, button[type="submit"], input[type="submit"] {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
color: white;
border: none;
border-radius: 9999px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.btn:hover, .button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(255, 140, 66, 0.3);
}
/* Menu Styling */
.nav.menu {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.nav.menu li {
list-style: none;
}
.nav.menu li a {
display: flex;
align-items: center;
padding: 0.75rem 1rem;
color: #4A5568;
text-decoration: none;
border-radius: 0.75rem;
transition: all 0.2s;
}
.nav.menu li a:hover {
background-color: rgba(255, 140, 66, 0.1);
color: #FF8C42;
}
.nav.menu li.active a {
background-color: rgba(255, 140, 66, 0.15);
color: #FF8C42;
font-weight: 600;
}
/* Breadcrumb Styling */
.breadcrumb {
display: flex;
flex-wrap: wrap;
padding: 0;
margin: 0;
list-style: none;
gap: 0.5rem;
}
.breadcrumb li::after {
content: '/';
margin-left: 0.5rem;
color: #CBD5E0;
}
.breadcrumb li:last-child::after {
content: '';
}
.breadcrumb li a {
color: #718096;
text-decoration: none;
}
.breadcrumb li a:hover {
color: #FF8C42;
}
/* Pagination */
.pagination {
display: flex;
justify-content: center;
gap: 0.5rem;
margin-top: 2rem;
list-style: none;
padding: 0;
}
.pagination li a, .pagination li span {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
text-decoration: none;
transition: all 0.2s;
}
.pagination li a {
color: #4A5568;
background: white;
border: 1px solid #E2E8F0;
}
.pagination li a:hover {
border-color: #FF8C42;
color: #FF8C42;
}
.pagination li.active span {
background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
color: white;
border: none;
}
/* Alert Messages */
.alert, .message {
padding: 1rem 1.5rem;
border-radius: 1rem;
margin-bottom: 1rem;
}
.alert-success, .message-success {
background-color: rgba(72, 187, 120, 0.1);
border: 1px solid #48BB78;
color: #22543D;
}
.alert-error, .message-error {
background-color: rgba(245, 101, 101, 0.1);
border: 1px solid #F56565;
color: #742A2A;
}
/* Mobile Optimizations */
@media (max-width: 768px) {
.page-header h2 {
font-size: 1.5rem;
}
.btn, .button {
width: 100%;
}
}
/* Animation Utilities */
.fade-in {
animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Category List Styling */
.category-list {
display: grid;
gap: 1.5rem;
}
.category-list .cat-list-row0,
.category-list .cat-list-row1 {
background: white;
padding: 1.5rem;
border-radius: 1.5rem;
border: 1px solid #E2E8F0;
transition: all 0.2s;
}
.category-list .cat-list-row0:hover,
.category-list .cat-list-row1:hover {
border-color: #FF8C42;
box-shadow: 0 4px 12px rgba(255, 140, 66, 0.1);
}
/* Search Results */
.search-results {
display: flex;
flex-direction: column;
gap: 1rem;
}
.result-title a {
color: #2D3748;
font-weight: 600;
text-decoration: none;
}
.result-title a:hover {
color: #FF8C42;
}