// Variables @primary-color: #2c3e50; @secondary-color: #3498db; @accent-color: #e74c3c; @success-color: #27ae60; @warning-color: #f39c12; @background-color: #ecf0f1; @card-background: #ffffff; @text-color: #2c3e50; @border-color: #bdc3c7; @shadow: 0 2px 10px rgba(0,0,0,0.1); // Mixins .button-style(@bg-color) { background: @bg-color; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; font-size: 14px; transition: all 0.3s ease; &:hover { background: darken(@bg-color, 10%); transform: translateY(-1px); } &:active { transform: translateY(0); } } .card-style() { background: @card-background; border-radius: 8px; box-shadow: @shadow; padding: 20px; margin-bottom: 20px; } // Reset and base styles * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: @background-color; color: @text-color; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } // Header styles header { text-align: center; margin-bottom: 40px; h1 { color: @primary-color; font-size: 2.5em; margin-bottom: 10px; } p { color: lighten(@text-color, 20%); font-size: 1.1em; } } // Main content styles .archive-section { .card-style(); h2 { color: @primary-color; margin-bottom: 10px; font-size: 1.8em; } > p { color: lighten(@text-color, 20%); margin-bottom: 30px; } } .package-list { display: grid; gap: 20px; } .package-item { .card-style(); display: flex; justify-content: space-between; align-items: center; padding: 20px; border-left: 4px solid @secondary-color; transition: all 0.3s ease; &:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); } .package-info { flex: 1; h3 { color: @primary-color; margin-bottom: 8px; font-size: 1.3em; } .package-details { display: flex; gap: 20px; span { color: lighten(@text-color, 30%); font-size: 0.9em; &.version { font-weight: 600; } } } } .package-actions { display: flex; gap: 10px; .download-btn { .button-style(@secondary-color); font-size: 13px; padding: 8px 16px; &.docs-download { .button-style(@warning-color); } } } } .no-packages { text-align: center; padding: 40px; color: lighten(@text-color, 30%); } // Footer styles footer { margin-top: 40px; text-align: center; padding: 20px 0; border-top: 1px solid @border-color; .admin-link { margin-bottom: 10px; a { color: @secondary-color; text-decoration: none; font-weight: 600; &:hover { text-decoration: underline; } } } p { color: lighten(@text-color, 30%); font-size: 0.9em; } } // Admin styles .admin-body { background: darken(@background-color, 5%); } .login-container { .card-style(); max-width: 400px; margin: 50px auto; text-align: center; h2 { color: @primary-color; margin-bottom: 10px; } p { color: lighten(@text-color, 20%); margin-bottom: 30px; } } .login-form { .form-group { margin-bottom: 20px; text-align: left; label { display: block; margin-bottom: 5px; color: @primary-color; font-weight: 600; } input { width: 100%; padding: 10px; border: 1px solid @border-color; border-radius: 4px; font-size: 14px; &:focus { outline: none; border-color: @secondary-color; box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); } } } .login-btn { .button-style(@primary-color); width: 100%; padding: 12px; font-size: 16px; } } .admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid @secondary-color; h1 { color: @primary-color; font-size: 2em; } .admin-nav { display: flex; align-items: center; gap: 20px; span { color: @primary-color; font-weight: 600; } .logout-btn { .button-style(@accent-color); } } } .admin-main { .upload-section { .card-style(); margin-bottom: 40px; h2 { color: @primary-color; margin-bottom: 20px; } .upload-form { .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; @media (max-width: 768px) { grid-template-columns: 1fr; } } .form-group { label { display: block; margin-bottom: 5px; color: @primary-color; font-weight: 600; } input { width: 100%; padding: 10px; border: 1px solid @border-color; border-radius: 4px; font-size: 14px; &:focus { outline: none; border-color: @secondary-color; box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); } } &:not(.form-row .form-group) { margin-bottom: 20px; } } .upload-btn { .button-style(@success-color); padding: 12px 30px; font-size: 16px; } } } .package-management { .card-style(); h2 { color: @primary-color; margin-bottom: 20px; } .package-table { overflow-x: auto; table { width: 100%; border-collapse: collapse; thead { background: @primary-color; color: white; th { padding: 12px; text-align: left; font-weight: 600; } } tbody { tr { border-bottom: 1px solid @border-color; &:hover { background: lighten(@background-color, 2%); } td { padding: 12px; .file-indicator { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; margin-right: 5px; &.docs { background: @warning-color; color: white; } &.package { background: @secondary-color; color: white; } } .delete-btn { .button-style(@accent-color); padding: 6px 12px; font-size: 12px; } } } } } } } } .back-link { margin-top: 30px; a { color: @secondary-color; text-decoration: none; font-weight: 600; &:hover { text-decoration: underline; } } } // Message styles .error { background: lighten(@accent-color, 40%); color: @accent-color; padding: 15px; border-radius: 4px; border-left: 4px solid @accent-color; margin-bottom: 20px; } .success { background: lighten(@success-color, 40%); color: @success-color; padding: 15px; border-radius: 4px; border-left: 4px solid @success-color; margin-bottom: 20px; } // Responsive design @media (max-width: 768px) { .container { padding: 10px; } header { h1 { font-size: 2em; } } .package-item { flex-direction: column; align-items: flex-start; gap: 15px; .package-actions { width: 100%; justify-content: flex-end; } } .admin-header { flex-direction: column; gap: 15px; text-align: center; .admin-nav { justify-content: center; } } .package-table { font-size: 14px; table { min-width: 600px; } } } @media (max-width: 480px) { .package-actions { flex-direction: column; width: 100%; .download-btn { width: 100%; text-align: center; } } .login-container { margin: 20px auto; padding: 15px; } }