From 61dbe9383be42212736772a83e048b36c13c13ef Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 17 Apr 2020 21:26:12 +0200 Subject: [PATCH] navigation style --- static/archive.css | 44 +++++++++++++++++++++++++------------------- static/index.css | 10 ++++------ 2 files changed, 29 insertions(+), 25 deletions(-) diff --git a/static/archive.css b/static/archive.css index 4ade40e..7c24158 100644 --- a/static/archive.css +++ b/static/archive.css @@ -47,7 +47,7 @@ body { .linkscont{ margin-top: 10%; - height: auto; + height: 100vh; width: auto; position: fixed; left:0%; @@ -55,21 +55,20 @@ body { } .pagelink{ -/* display:table-cell; text-align:center; - vertical-align:middle;*/ - display: inline-flex; - justify-content: center; + vertical-align:middle; + display: block; + /*justify-content: center;*/ align-items: center; position: fixed; + /*text-align: left;*/ /*display: block;*/ left:0px; - width:25px; - height:25px; - padding:10px; + width:36px; + height:36px; + padding-top: 2px; background-color: white; - z-index: 2; - font-size: 24px; + z-index: 2; /*text-align: justify;*/ border-top-style: solid; border-right-style: solid; @@ -80,7 +79,19 @@ body { } -.pagelink:hover{ +.icon{ + text-align:center; + vertical-align:middle; + /* display: block;*/ + /*justify-content: center;*/ + align-items: center; +font-size: 24px; +width: 40%; +height: 40%; +vertical-align:middle; +} + +.active, .pagelink:hover{ background-color: #0BEFEB; } @@ -100,18 +111,13 @@ body { background-color: #0BEFEB; }*/ -.pagename{ -align-items: center; -width:auto; -text-align: left; -} .pagelink .pagename{ - display: inline; - position: absolute; + display: inline-block; + position: relative; width: auto; padding: 5px; - margin-left: 160px; + margin-left: 20px; font-size: 12px; background-color: white; visibility: hidden; diff --git a/static/index.css b/static/index.css index aec11cc..9b86e01 100644 --- a/static/index.css +++ b/static/index.css @@ -1,11 +1,6 @@ body { background: white; - max-width: 100%; - height:100%; - display: inline-table; - font-family: Roboto Mono; - bottom: 20px; - scrollbar-width: thin; + height: 100vh; } /*.img { @@ -38,6 +33,9 @@ display: inline-block; line-height: 1.3; } +.linkscont{ +position-top:0px; +} /*.pagelink{ position: fixed;