Skip to content

Commit

Permalink
apply some styling
Browse files Browse the repository at this point in the history
  • Loading branch information
astynax committed Jun 5, 2021
1 parent cf4b06b commit c13f0a3
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 3 deletions.
4 changes: 2 additions & 2 deletions djaif/book/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="icon" sizes="64x64" href="/static/favicon.png" type="image/png" />
</head>
<body>
<div class="main" style="display: flex;">
<div class="main">
<div class="content">
<h1>
{{ page.title }}
Expand Down Expand Up @@ -70,7 +70,7 @@ <h3>Инвентарь</h3>
</div>
<div class="sidebar">
<h3>Заметки</h3>
<form method="POST" style="display: grid;"
<form method="POST" class="new-note"
action="{% url 'add_note' page.book.id %}">
{% csrf_token %}
<label for="memo-text">Новая</label>
Expand Down
50 changes: 49 additions & 1 deletion static/page.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,52 @@
.noteset {}
body {
padding: 0;
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
}

.main {
flex: 1 1;
display: flex;
}

.content {
flex: 1 1;
padding: 1em;
font-size: 150%;
}

.new-note {
display: flex;
flex-direction: column;
}

.sidebar {
padding: 0.2em;
background-color: lightgray;
font-size: 120%;
}

.noteset {
padding: 0;
margin: 0;
}

.noteset > li {
list-style: none;
border-bottom: 1pt black solid;
}

.noteset > li > pre {
margin: 0;
padding: 0.5em;
font-family: Serif;
}

.noteset-other {
background-color: white;
}

.noteset-page {
background-color: greenyellow;
Expand Down

0 comments on commit c13f0a3

Please sign in to comment.