Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schilder2000
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schilder
schilder2000
Commits
9a6b64bd
Commit
9a6b64bd
authored
8 months ago
by
Thomas Schneider
Browse files
Options
Downloads
Plain Diff
Merge branch 'login-style' into 'main'
Styling for login pages See merge request
!7
parents
c7392a6d
be8911ee
No related branches found
No related tags found
1 merge request
!7
Styling for login pages
Pipeline
#6393
passed
8 months ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/src/main.less
+22
-0
22 additions, 0 deletions
frontend/src/main.less
schilder2000/templates/login.html.j2
+3
-1
3 additions, 1 deletion
schilder2000/templates/login.html.j2
schilder2000/templates/login_select.html.j2
+5
-4
5 additions, 4 deletions
schilder2000/templates/login_select.html.j2
with
30 additions
and
5 deletions
frontend/src/main.less
+
22
−
0
View file @
9a6b64bd
...
...
@@ -54,6 +54,11 @@ body, @{inputs}, @{buttons} {
&.error {
border-color: red;
}
&:focus-visible {
outline: none;
border-color: var(--accent2);
}
}
.input-error {
...
...
@@ -340,3 +345,20 @@ main {
opacity: 1;
}
}
.login-providers {
max-width: 50rem;
margin: 1rem auto;
display: flex;
flex-direction: column;
align-items: stretch;
.provider + .provider {
margin-top: 0.5rem;
}
button {
width: 100%;
}
}
This diff is collapsed.
Click to expand it.
schilder2000/templates/login.html.j2
+
3
−
1
View file @
9a6b64bd
...
...
@@ -10,6 +10,8 @@
{{ render_field(field) }}
{%- endfor -%}
<input type="submit" value="Anmelden" />
<div class="buttons">
<input type="submit" value="Anmelden" />
</div>
</form>
{%- endblock main %}
This diff is collapsed.
Click to expand it.
schilder2000/templates/login_select.html.j2
+
5
−
4
View file @
9a6b64bd
...
...
@@ -5,10 +5,11 @@
{%- endblock title %}
{% block main -%}
Available login providers:
<ul>
<div class="login-providers">
{% for provider in providers|sort(attribute='title') %}
<li><a href="{{ url_for(login_endpoint, provider=provider.name, next=next) }}">{{ provider.title }}</a></li>
<a class="provider" href="{{ url_for(login_endpoint, provider=provider.name, next=next) }}">
<button>Log In with {{ provider.title }}</button>
</a>
{% endfor %}
</
ul
>
</
div
>
{%- endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment