Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorAngelo Stavrow <angelo@fogcreek.com>2018-08-25 17:56:26 +0300
committerAngelo Stavrow <angelo@fogcreek.com>2018-08-25 17:56:26 +0300
commit860840e18d1fab859ba2158df401db2dda3ae8b8 (patch)
tree1b60f86d45a944c7ced856be39841bb031493e14 /static
parent2ce5bb34cdf6dd1ec05e971270e1e9adf92f5265 (diff)
Split out article pagination and close #8
Diffstat (limited to 'static')
-rw-r--r--static/css/style.css95
1 files changed, 77 insertions, 18 deletions
diff --git a/static/css/style.css b/static/css/style.css
index 6466bfa..541ba2b 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -353,7 +353,6 @@ div#site-header > p {
}
div#page-nav, #pagination {
- display: inline-block;
font-family: 'Fira Sans', Fallback, sans-serif;
font-size: smaller;
line-height: 1em;
@@ -364,39 +363,42 @@ div#page-nav, #pagination {
width: 100%;
}
-div.static-page-nav-item, div.static-page-nav-item-disabled, div.static-page-nav-spacer {
- display: inline-block;
- float: left;
+#page-nav {
+ align-items: flex-start;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ justify-content: space-around;
+}
+
+div.page-nav-item, div.page-nav-spacer {
+ flex: 1 1 auto;
margin: 0;
padding: 0;
- width: 20%;
}
-div.static-page-nav-item > a {
+div.page-nav-item > a {
color: #00416a;
display: block;
text-decoration: none;
+ width: 100%;
}
-div.static-page-nav-item > a:hover {
+div.page-nav-item > a:hover {
+ background-color: #00416a;
color: #dee5e9;
}
-div.static-page-nav-item:hover, div.pagination-item:hover {
- background-color: #00416a;
+div#pagination {
+ display: inline-block;
}
-div.static-page-nav-item-disabled > p {
- display: block;
- font-weight: bold;
- line-height: 1em;
- margin: 0;
- padding: 0;
+div.pagination-item:hover {
+ background-color: #00416a;
}
div#pagination {
- margin-bottom: 0;
- margin-top: 3.5em;
+ margin: 3.5em 0;
}
div.pagination-item, div.pagination-item-spacer {
@@ -420,7 +422,7 @@ div.pagination-item > a:hover {
aside#social {
border-top: 2px solid #3f3f3f;
height: 48px;
- margin: 5em auto 0 auto;
+ margin: 0 auto;
width: 100%;
}
@@ -434,4 +436,61 @@ div#social-icons {
.icon-24x24 {
height: 24px;
width: 24px;
+}
+
+nav#article-skip {
+ align-items: flex-start;
+ border-top: 1px solid #dee5e9;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: nowrap;
+ font-family: 'Fira Sans', Fallback, sans-serif;
+ font-size: smaller;
+ justify-content: space-around;
+ line-height: 1em;
+ margin: 5em 0 0 0;
+ padding: 0;
+ text-align: center;
+ text-transform: uppercase;
+}
+
+.next, .prev, .top {
+ flex: 0 1 auto;
+ margin: 0;
+ padding: 0.5em;
+ width: 100%;
+}
+
+.next {
+ text-align: right;
+}
+
+.prev {
+ text-align: left;
+}
+
+.top {
+ border-left: 1px solid #dee5e9;
+ border-right: 1px solid #dee5e9;
+}
+
+div.next > p,
+div.prev > p {
+ margin: 0;
+ padding: 0;
+}
+
+div.next > a,
+div.prev > a,
+div.top > a {
+ color: #00416a;
+ text-decoration: none;
+}
+
+
+div.next > a:hover,
+div.prev > a:hover,
+div.top > a:hover {
+ background-color: #00416a;
+ color: #dee5e9;
} \ No newline at end of file