Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
red_brick_board
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ciella Francisco
red_brick_board
Commits
a175570d
Commit
a175570d
authored
Mar 17, 2024
by
gab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added better vertically and horizontally align code
parent
bfefa3b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
login.html
redbrickboard/accounts/templates/accounts/login.html
+2
-1
custom.css
redbrickboard/static/css/custom.css
+5
-8
No files found.
redbrickboard/accounts/templates/accounts/login.html
View file @
a175570d
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
{% endblock %}
{% endblock %}
{% block content %}
{% block content %}
<div
id=
"login-container"
class=
"d-flex my-5"
>
<div
id=
"login-form"
class=
"mx-auto px-3 py-4 bg-white"
style=
"width: 23rem;"
>
<div
id=
"login-form"
class=
"mx-auto px-3 py-4 bg-white"
style=
"width: 23rem;"
>
<p
class=
"h1"
>
Log in
</p>
<p
class=
"h1"
>
Log in
</p>
<form
method=
"POST"
autocomplete=
"off"
>
<form
method=
"POST"
autocomplete=
"off"
>
...
@@ -37,5 +38,5 @@
...
@@ -37,5 +38,5 @@
</div>
</div>
</form>
</form>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
redbrickboard/static/css/custom.css
View file @
a175570d
...
@@ -88,15 +88,12 @@ body {
...
@@ -88,15 +88,12 @@ body {
height
:
100vh
;
height
:
100vh
;
}
}
#login-container
{
align-items
:
center
;
justify-content
:
center
;
}
#login-form
{
#login-form
{
/* Really Bad Code Start */
margin
:
0
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
-ms-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
/* Really Bad Code End */
border-radius
:
0.625rem
;
border-radius
:
0.625rem
;
border
:
1px
solid
#000
;
border
:
1px
solid
#000
;
background
:
#FFF
;
background
:
#FFF
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment