Fakultas Ilmu Komputer UI
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Introduction-to-PPW-Lab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Model registry
Operate
Environments
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
AHMAD WIGO PRASETYA
Introduction-to-PPW-Lab
Commits
91d69f4b
Commit
91d69f4b
authored
7 years ago
by
Ahmad Wigo Prasetya
Browse files
Options
Downloads
Patches
Plain Diff
Fixing responsive
parent
0be391a7
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
6)
+0
-0
0 additions, 0 deletions
6)
lab_5/static/css/lab_5.css
+25
-43
25 additions, 43 deletions
lab_5/static/css/lab_5.css
lab_5/templates/lab_5/lab_5.html
+2
-2
2 additions, 2 deletions
lab_5/templates/lab_5/lab_5.html
lab_5/views.py
+1
-1
1 addition, 1 deletion
lab_5/views.py
with
28 additions
and
46 deletions
6)
deleted
100644 → 0
+
0
−
0
View file @
0be391a7
This diff is collapsed.
Click to expand it.
lab_5/static/css/lab_5.css
+
25
−
43
View file @
91d69f4b
...
...
@@ -80,53 +80,13 @@ section{
color
:
#2C3E50
;
font-size
:
13px
;
}
/* styling footer */
footer
p
{
text-align
:
center
;
padding-top
:
10px
;
}
/* styling responsive max-width menandakan bahwa rule css ini hanya akan bekerja untuk layar dengan maksimal 768px, jika lebih dari 768px maka rule ini diabaikan */
@media
only
screen
and
(
max-width
:
768px
)
{
#input-list
form
{
width
:
290px
;
}
}
#input-list
{
background
:
linear-gradient
(
to
bottom
right
,
#606062
,
#393939
);
}
#input-list
form
{
width
:
400px
;
margin
:
50px
auto
;
text-align
:
center
;
position
:
relative
;
z-index
:
1
;
background
:
white
;
border
:
0
none
;
border-radius
:
3px
;
box-shadow
:
0
0
15px
1px
rgba
(
0
,
0
,
0
,
0.4
);
padding
:
20px
30px
;
box-sizing
:
border-box
;
position
:
relative
;
}
#input-list
form
>
h2
{
font-size
:
1.3em
;
text-transform
:
uppercase
;
color
:
#2C3E50
;
margin-bottom
:
10px
;
}
#input-list
form
>
.todo-form-input
,
#input-list
form
>
.todo-form-textarea
{
padding
:
15px
;
border
:
1px
solid
#ccc
;
border-radius
:
3px
;
margin-bottom
:
10px
;
width
:
100%
;
box-sizing
:
border-box
;
color
:
#2C3E50
;
font-size
:
13px
;
}
#my-list
{
background
:
linear-gradient
(
141deg
,
#0fb8ad
0%
,
#1fc8db
51%
,
#2cb5e8
75%
);
}
...
...
@@ -171,11 +131,33 @@ footer p{
}
/* Small screens */
@media
all
and
(
max-width
:
768px
)
{
.flex
{
@media
only
screen
and
(
max-width
:
768px
)
{
#input-list
form
{
/* On small screens, we are no longer using row direction but column */
width
:
400px
;
}
.flex
{
flex-direction
:
column
;
}
.flex-item
{
width
:
100vw
;
}
}
@media
only
screen
and
(
max-width
:
480px
)
{
#input-list
form
{
/* On small screens, we are no longer using row direction but column */
width
:
90vw
;
}
.flex
{
flex-direction
:
column
;
}
.flex-item
{
width
:
100vw
;
}
}
.flex-item
{
...
...
This diff is collapsed.
Click to expand it.
lab_5/templates/lab_5/lab_5.html
+
2
−
2
View file @
91d69f4b
...
...
@@ -21,7 +21,7 @@
{% if todo %}
{% for data in todo %}
<div
id=
"parent"
class=
"flex-item"
>
<div
onclick=
"removeElement(this);"
id=
"child"
class=
"to-do-list"
>
<div
id=
"child"
class=
"to-do-list"
>
<div
class=
"to-do-list-title"
>
{{data.title}}
</div>
...
...
@@ -31,7 +31,7 @@
<div
class=
"to-do-list-description"
>
{{data.description}}
</div>
<div
id=
"delete"
class=
"to-do-list-delete"
>
<div
onclick=
"removeElement(this);"
id=
"delete"
class=
"to-do-list-delete"
>
<div
class=
"to-do-list-delete-button"
data-id=
"{{data.id}}"
>
Delete
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
lab_5/views.py
+
1
−
1
View file @
91d69f4b
...
...
@@ -22,4 +22,4 @@ def add_todo(request):
todo
.
save
()
return
HttpResponseRedirect
(
'
/lab-5/
'
)
else
:
return
HttpResponseRedirect
(
'
/lab-5/
'
)
return
HttpResponseRedirect
(
'
/lab-5/
'
)
\ No newline at end of file
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