UNPKG

@zohodesk/docs-builder

Version:

docs-builder is used to build your own docs

174 lines (150 loc) 3.09 kB
/* Dashboard Layout */ .dashboardContainer { display: flex; flex-direction: column; padding: 32px; background-color: #f8f9fc; min-height: 100vh; width: 100%; overflow-x: hidden; } /* Header Section */ .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; } .heading1 { font-size: 32px; font-weight: 700; color: #1a1a2e; margin: 0; background: linear-gradient(45deg, #1a1a2e, #4361ee); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 8s ease infinite; } @keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .package { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; background: #ffffff; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); transition: opacity 0.3s ease; } .package code { font-size: 14px; color: #4361ee; font-family: 'Fira Code', 'Roboto Mono', monospace; font-weight: 500; } /* Description */ .description { font-size: 16px; line-height: 1.6; color: #555; max-width: 900px; margin-bottom: 40px; } /* Cards Grid */ .lhs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; width: 100%; } /* Card Styling */ .card { background-color: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; height: 240px; } .card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08); } .cardContent { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; height: 180px; } .bgImage { max-width: 60%; max-height: 120px; object-fit: contain; display: block; margin: 0 auto; transition: transform 0.2s ease; } .card:hover .bgImage { transform: scale(1.05); } .cardfooter { padding: 16px; border-top: 1px solid rgba(0, 0, 0, 0.05); background-color: #ffffff; } .cardfooter p { margin: 0; font-size: 15px; font-weight: 600; color: #333; text-align: center; } /* Responsive Design */ @media (max-width: 768px) { .dashboardContainer { padding: 20px; } .heading1 { font-size: 24px; } .lhs { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } .card { height: 220px; } .cardContent { height: 160px; } } /* For right-hand side and left-hand side layout */ .rhs { margin-bottom: 32px; } /* Utility classes */ .flexgrow { flex-grow: 1; } .flexbasis { flex-basis: 0; }