From f242168bbedf54038e289bd5616c4346c34b5aef Mon Sep 17 00:00:00 2001 From: Nicole Finks <nicole.finks@utsouthwestern.edu> Date: Tue, 16 Jul 2019 15:21:12 -0500 Subject: [PATCH] [fixed css] --- layouts/custom/repository.html | 66 +++----------------------------- static/css/sidenavRepository.css | 9 +++-- 2 files changed, 10 insertions(+), 65 deletions(-) diff --git a/layouts/custom/repository.html b/layouts/custom/repository.html index e131169..fa60d94 100644 --- a/layouts/custom/repository.html +++ b/layouts/custom/repository.html @@ -6,61 +6,13 @@ </div> <div class="content"> {{ .Content }} -</div> -<p> Hello testing </p> - -<!--{{ partial "footer.html" . }}--> <!-- cuts off anything after it--> - -<head> - <link rel="stylesheet" type="text/css" href="/static/css/sidenavRepository.css"/> - - <p>hello testing head </p> - -<!--style type="text/css"> - -.sidenav { - width: 130px; - position: fixed; - z-index: 1; - top : 0; - right: 0; - background: #eee; - padding-top: 20px; -} - - -.sidenav a { - padding: 6px 8px 6px 16px; - text-decoration: none; - font-size: 25px; - color: #818181; - display: block; -} - - -.sidenav a:hover{ - color: #f1f1f1; -} - - -@media screen and (max-height:450px){ - .sidenav {padding-top: 15px;} - .sidenav a {font-size: 18px;} -} - -</style--> - -</head> - -<body> - <!-- Sidebar for Filters --> <div class= "sidenav"> - <a href="#">Example</a> + <a href="#">Example</a> </div> @@ -81,22 +33,14 @@ </div> +</div> +<head> + <link rel="stylesheet" type="text/css" href="/css/sidenavRepository.css"/> +</head> - - - - - - - - - - -</body> - {{ partial "footer.html" . }} diff --git a/static/css/sidenavRepository.css b/static/css/sidenavRepository.css index 76d1850..0929ca0 100644 --- a/static/css/sidenavRepository.css +++ b/static/css/sidenavRepository.css @@ -1,10 +1,11 @@ /* the sidebar menu */ .sidenav { width: 130px; - position: fixed; /* stay in place on scroll */ - z-index: 1; /* stau on top*/ + position: fixed/* stay in place on scroll */ + /* z-index:1; /* stay on top*/ top : 0; /* stay on top*/ - right: 0; /* on left side of screen */ + left: 0; /* on left side of screen */ + background: #eee; padding-top: 20px; } @@ -12,7 +13,7 @@ /* Sidenav filters */ .sidenav a { - padding: 6px 8px 6px 16px; + padding: 6px 8px 6px 16px; text-decoration: none; font-size: 25px; color: #818181; -- GitLab