diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml index 5ee8fdb..8bae886 100644 --- a/argocd/deployment.yaml +++ b/argocd/deployment.yaml @@ -27,7 +27,7 @@ spec: mountPath: /data containers: - name: web - image: git.baumann.gr/adebaumann/labhelper:0.053 + image: git.baumann.gr/adebaumann/labhelper:0.054 imagePullPolicy: Always ports: - containerPort: 8000 diff --git a/labhelper/templates/base.html b/labhelper/templates/base.html index faae6d6..0a18558 100644 --- a/labhelper/templates/base.html +++ b/labhelper/templates/base.html @@ -296,6 +296,97 @@ text-decoration: underline; } + .dropdown { + position: relative; + display: inline-block; + } + + .dropdown-content { + display: none; + position: absolute; + right: 0; + background: white; + min-width: 200px; + box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); + border-radius: 10px; + padding: 10px 0; + z-index: 1000; + top: 100%; + margin-top: 10px; + } + + .dropdown-content a { + display: block; + padding: 12px 20px; + color: #555; + text-decoration: none; + transition: all 0.2s ease; + } + + .dropdown-content a:hover { + background: #667eea; + color: white; + } + + .dropdown-content a:first-child { + border-radius: 10px 10px 0 0; + } + + .dropdown-content a:last-child { + border-radius: 0 0 10px 10px; + } + + .dropdown-content button:hover { + background: #667eea; + color: white; + } + + .dropdown:hover .dropdown-content, + .dropdown:focus-within .dropdown-content { + display: block; + } + + .dropdown-btn { + background: none; + border: none; + color: #667eea; + font-weight: 600; + font-size: 15px; + cursor: pointer; + padding: 8px 16px; + border-radius: 8px; + transition: all 0.3s ease; + display: inline-flex; + align-items: center; + gap: 8px; + } + + .dropdown-btn:hover { + background: #667eea; + color: white; + } + + @media (max-width: 768px) { + .dropdown-content { + position: static; + box-shadow: none; + border-radius: 0; + margin-top: 0; + padding: 0; + } + + .dropdown-content a { + width: 100%; + padding: 12px 16px; + border-radius: 0; + } + + .dropdown-btn { + width: 100%; + justify-content: flex-start; + } + } + {% block extra_css %}{% endblock %} {% block extra_head %}{% endblock %} @@ -311,17 +402,24 @@