Skip to content

Commit

Permalink
Adjusted the create page css
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina-Vititneva committed Aug 3, 2024
1 parent fec999e commit 9a99bbf
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
30 changes: 29 additions & 1 deletion project_1/wiki/encyclopedia/static/encyclopedia/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ h1 {
}

textarea {
height: 90vh;
height: 70vh;
width: 80%;
margin: 5px;
padding: 10px;

}

.main {
Expand All @@ -35,4 +38,29 @@ textarea {

.sidebar h2 {
margin-top: 5px;
}

.edit-form {
display: flex;
flex-direction: column;
margin: 5px;
align-content: center;
}

button {
margin: 12px;
border-radius: 3px;
border: 1px solid #f7f7f7;
background-color:#f6f7f790;
padding: 7.5px 15px;
font-size: 80%;
color: #282828;
width:80%;
}

.new-title {
padding: 10px;
margin: 5px;
width: 80%;
font-weight: bold;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{% block body %}
<h1>Create New Page</h1>

<form action="{% url 'create' %}" method="get">
<input class="new_title" type="text" name="new_title" placeholder="New Page Title">
<form action="{% url 'create' %}" method="get" class="edit-form">
<input class="new-title" type="text" name="new-title" placeholder="New Page Title">
<textarea id="content" name="content" rows="4" cols="50" placeholder="New Page Content"></textarea>
<button type="submit" name="save">Save</button>
</form>
Expand Down

0 comments on commit 9a99bbf

Please sign in to comment.