Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1506722765-practice
Commits
d9abecb6
Commit
d9abecb6
authored
Dec 23, 2019
by
jordan
Browse files
Refactor styling
parent
b8220acd
Pipeline
#27793
passed with stages
in 7 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
functional_test/test_layout_and_styling.py
View file @
d9abecb6
...
...
@@ -10,14 +10,14 @@ class LayoutAndStylingTest(FunctionalTest):
# She notices the input box is nicely centered
inputbox
=
self
.
browser
.
find_element_by_id
(
"id_new_item"
)
self
.
assertAlmostEqual
(
inputbox
.
location
[
"x"
]
+
inputbox
.
size
[
"width"
]
/
2
,
754.0
,
delta
=
5
inputbox
.
location
[
"x"
]
+
inputbox
.
size
[
"width"
]
/
2
,
512.5
,
delta
=
5
)
# She starts a new list and sees the input is nicely
# centered there too
inputbox
.
send_keys
(
"testing
\n
"
)
inputbox
=
self
.
browser
.
find_element_by_id
(
"id_new_item"
)
self
.
assertAlmostEqual
(
inputbox
.
location
[
"x"
]
+
inputbox
.
size
[
"width"
]
/
2
,
754.0
,
delta
=
5
inputbox
.
location
[
"x"
]
+
inputbox
.
size
[
"width"
]
/
2
,
512.5
,
delta
=
5
)
...
...
lists/templates/base.html
View file @
d9abecb6
...
...
@@ -42,7 +42,7 @@
<div
class=
"row"
>
<div
class=
"col-md-
12
col-md-offset-3"
>
<div
class=
"col-md-
6
col-md-offset-3
jumbotron
"
>
<div
class=
"text-center"
>
<h1>
{% block header_text %}{% endblock %}
</h1>
<form
method=
"POST"
action=
"{% block form_action %}{% endblock %}"
>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment