Skip to content

Commit

Permalink
update basic css to work on older kindles
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Apr 4, 2024
1 parent ec8afde commit a48a047
Showing 1 changed file with 35 additions and 12 deletions.
47 changes: 35 additions & 12 deletions cps/templates/basic_layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,31 @@
}

nav {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #f8f8f8;
height: 50px;
padding: 5px 20px;
width: 100%;
display: table;
box-sizing: border-box;
border-bottom: 1px solid black;
}

nav > * {
display: inline-block;
display: table-cell;
vertical-align: middle;
float: none;
text-align: center;
width: auto;
}

nav > *:first-child {
text-align: left;
width: 1%;
}

nav > *:last-child {
text-align: right;
width: 1%;
}

nav > a {
Expand All @@ -25,13 +45,10 @@

.search {
margin: auto auto;
width: 50%;
display: flex;
flex: 1;
justify-content: center;
}

form > input {
width: 18ch;
padding-left: 4px;
}

Expand All @@ -52,15 +69,15 @@

button {
border: none;
padding: 0;
padding: 0 10px;
margin: 0;
width: 80px;
height: 100%;
background-color: white;
}

.body {
padding: 0 20px;
padding: 5px 20px;
}

a {
Expand All @@ -81,11 +98,17 @@
}

.pagination {
display: flex;
justify-content: space-between;
padding: 10px 0;
height: 20px;
}

.pagination > div {
float: left;
}

.pagination > div:last-child {
float: right;
}
</style>
</head>

Expand Down

0 comments on commit a48a047

Please sign in to comment.