UNPKG

gimme-stat

Version:

Simple tool for git repositories to generate progress statistic.

574 lines (487 loc) 10.3 kB
/* ===== Reset & Base Styles ===== */ * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; line-height: 1.6; color: #24292e; background-color: #ffffff; } /* ===== Mobile Header ===== */ .mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: 60px; background-color: #ffffff; border-bottom: 1px solid #e1e4e8; padding: 0 20px; align-items: center; justify-content: space-between; z-index: 1001; } .mobile-logo { width: 40px; height: 40px; object-fit: contain; } .mobile-title { font-size: 18px; font-weight: 600; color: #0366d6; } /* Hamburger Menu */ .hamburger { background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 25px; display: flex; flex-direction: column; justify-content: space-between; } .hamburger span { display: block; height: 3px; background-color: #24292e; border-radius: 2px; transition: all 0.3s ease; } .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); } .hamburger.active span:nth-child(2) { opacity: 0; } .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); } /* ===== Sidebar Navigation ===== */ .sidebar { position: fixed; top: 0; left: 0; width: 260px; height: 100vh; background-color: #f6f8fa; border-right: 1px solid #e1e4e8; padding: 0; overflow-y: auto; z-index: 1000; transition: transform 0.3s ease; } .sidebar-header { padding: 20px 25px 0; border-bottom: 1px solid #e1e4e8; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; } .sidebar-logo { width: 100px; height: 100px; object-fit: contain; } .sidebar-title-link { text-decoration: none; display: flex; align-items: center; gap: 8px; transition: opacity 0.2s ease; } .sidebar-title-link:hover { opacity: 0.8; } .sidebar-title { font-size: 22px; font-weight: 600; color: #0366d6; text-align: center; margin: 0; } .npm-icon { width: 24px; height: 24px; object-fit: contain; } /* Navigation Menu */ .nav-menu { list-style: none; padding: 0; } .nav-menu > li { margin-bottom: 2px; } .nav-link { display: block; padding: 10px 25px; color: #586069; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s ease; border-left: 3px solid transparent; } .nav-link:hover { background-color: #e1e4e8; color: #0366d6; } .nav-link.active { background-color: #ffffff; color: #0366d6; border-left-color: #0366d6; } /* Submenu */ .nav-submenu { list-style: none; padding: 5px 0; background-color: rgba(255, 255, 255, 0.5); } .nav-submenu li { margin-bottom: 1px; } .nav-sublink { padding: 8px 25px 8px 50px; font-size: 13px; font-weight: 400; } /* ===== Main Content Area ===== */ .main-content { margin-left: 260px; padding: 40px 60px; max-width: 1200px; } /* Documentation Sections */ .doc-section { margin-bottom: 60px; padding-top: 20px; } .section-intro h1 { font-size: 2.5em; font-weight: 600; margin-bottom: 20px; color: #24292e; } .section-intro h1 strong { color: #0366d6; } .section-intro p { font-size: 16px; color: #586069; margin-bottom: 12px; line-height: 1.7; } h2 { font-size: 1.8em; font-weight: 600; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #e1e4e8; color: #24292e; } h3 { font-size: 1.3em; font-weight: 600; margin-top: 24px; margin-bottom: 12px; color: #24292e; } p { margin-bottom: 16px; color: #586069; } a { color: #0366d6; text-decoration: none; } a:hover { text-decoration: underline; } code { padding: 0.2em 0.4em; margin: 0; font-size: 85%; background-color: rgba(27, 31, 35, 0.05); border-radius: 3px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; } pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f6f8fa; border-radius: 6px; margin-bottom: 20px; border: 1px solid #e1e4e8; } pre code { display: block; padding: 0; margin: 0; overflow: visible; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; font-size: 100%; } /* Arguments List */ .arguments-list { list-style-type: none; padding-left: 0; } .arguments-list > li { margin-bottom: 16px; padding-left: 20px; position: relative; } .arguments-list > li::before { content: "•"; position: absolute; left: 0; color: #0366d6; font-weight: bold; font-size: 18px; } .arguments-list ul { list-style-type: none; padding-left: 20px; margin-top: 8px; } .arguments-list ul li { margin-bottom: 6px; position: relative; padding-left: 16px; } .arguments-list ul li::before { content: "◦"; position: absolute; left: 0; color: #586069; } /* Section Header with Button */ .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .section-header h2 { margin-bottom: 0; flex: 1; } /* Terminal Styling */ .terminal-example { margin-bottom: 24px; border: 1px solid #e1e4e8; border-radius: 6px; overflow: hidden; background-color: #000000; } .terminal-header { background-color: #24292e; padding: 8px 12px; border-bottom: 1px solid #e1e4e8; font-size: 12px; } .terminal-title { color: #d1d5da; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; } .terminal-content { background-color: #000000; color: #ffffff; padding: 16px; margin: 0; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 13px; line-height: 1.4; overflow-x: auto; } .terminal-content code { background-color: transparent; color: inherit; padding: 0; font-size: inherit; font-family: inherit; } /* Collapsible Sections */ .collapsible { display: none; overflow: hidden; } .collapsible.open { display: block; animation: slideDown 0.3s ease-out; } @keyframes slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 5000px; } } /* Example Blocks */ .example-block { margin-bottom: 32px; padding: 20px; background-color: #f6f8fa; border-radius: 6px; border: 1px solid #e1e4e8; } .command-line { margin: 12px 0; padding: 12px 16px; background-color: #ffffff; border-radius: 6px; border: 1px solid #d1d5da; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 14px; line-height: 1.8; } /* Command Line Syntax Highlighting */ .cmd-prompt { color: #6f42c1; font-weight: bold; margin-right: 4px; } .cmd-name { color: #005cc5; font-weight: 600; } .cmd-param { color: #d73a49; font-weight: 500; } .cmd-value { color: #22863a; font-weight: 400; } /* Buttons */ .collapse-btn, .expand-all-btn { background-color: #0366d6; color: white; border: none; padding: 8px 16px; font-size: 14px; border-radius: 6px; cursor: pointer; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; transition: background-color 0.2s ease; font-weight: 500; } .collapse-btn:hover, .expand-all-btn:hover { background-color: #0256c7; } .collapse-btn:active, .expand-all-btn:active { background-color: #024ea1; } .collapse-btn.active { background-color: #6a737d; } .collapse-btn.active:hover { background-color: #586069; } .expand-all-btn.collapse-mode { background-color: #dc3545; } .expand-all-btn.collapse-mode:hover { background-color: #c82333; } /* Footer */ .doc-footer { margin-top: 80px; padding-top: 20px; border-top: 1px solid #e1e4e8; text-align: center; color: #586069; font-size: 14px; } /* ===== Responsive Design ===== */ /* Tablet */ @media (max-width: 1024px) { .main-content { padding: 30px 40px; } } /* Mobile */ @media (max-width: 768px) { .mobile-header { display: flex; } .sidebar { transform: translateX(-100%); padding-top: 80px; } .sidebar.open { transform: translateX(0); box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); } .main-content { margin-left: 0; padding: 80px 20px 40px; } .section-intro h1 { font-size: 1.8em; } h2 { font-size: 1.4em; } h3 { font-size: 1.1em; } .section-header { flex-direction: column; align-items: flex-start; gap: 12px; } .section-header h2 { padding-bottom: 0; border-bottom: none; } .expand-all-btn { width: 100%; } .example-block { padding: 15px; } .command-line { font-size: 12px; padding: 10px; } pre { padding: 12px; font-size: 80%; } .terminal-content { font-size: 11px; } } /* Small Mobile */ @media (max-width: 480px) { .main-content { padding: 70px 15px 30px; } .section-intro h1 { font-size: 1.5em; } }