From c8ebfb57aaeb41f962c0eef1b8938bbc20c4cabe Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Thu, 15 Feb 2018 20:21:20 -0600 Subject: [PATCH] add lang, cleanup unused nav --- .../ClientApp/components/NavMenu.tsx | 33 --------- src/FilterLists.Web/ClientApp/css/site.css | 67 ------------------- .../Views/Shared/_Layout.cshtml | 2 +- 3 files changed, 1 insertion(+), 101 deletions(-) delete mode 100644 src/FilterLists.Web/ClientApp/components/NavMenu.tsx diff --git a/src/FilterLists.Web/ClientApp/components/NavMenu.tsx b/src/FilterLists.Web/ClientApp/components/NavMenu.tsx deleted file mode 100644 index db2094fac..000000000 --- a/src/FilterLists.Web/ClientApp/components/NavMenu.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import * as React from "react"; -import { Link, NavLink } from "react-router-dom"; - -export class NavMenu extends React.Component<{}, {}> { - render() { - return
-
-
- - FilterLists -
-
-
-
    -
  • - - Home - - - GitHub - -
  • -
-
-
-
; - } -} \ No newline at end of file diff --git a/src/FilterLists.Web/ClientApp/css/site.css b/src/FilterLists.Web/ClientApp/css/site.css index 085cb564e..e69de29bb 100644 --- a/src/FilterLists.Web/ClientApp/css/site.css +++ b/src/FilterLists.Web/ClientApp/css/site.css @@ -1,67 +0,0 @@ -.main-nav li .glyphicon { margin-right: 10px; } - -/* Highlighting rules for nav menu items */ - -.main-nav li a.active, -.main-nav li a.active:hover, -.main-nav li a.active:focus { - background-color: #4189C7; - color: white; -} - -/* Keep the nav menu independent of scrolling and on top of other items */ - -.main-nav { - left: 0; - position: fixed; - right: 0; - top: 0; - z-index: 1; -} - -@media (max-width: 767px) { - /* On small screens, the nav menu spans the full width of the screen. Leave a space for it. */ - body { padding-top: 50px; } -} - -@media (min-width: 768px) { - /* On small screens, convert the nav menu to a vertical sidebar */ - .main-nav { - height: 100%; - width: calc(25% - 20px); - } - - .main-nav .navbar { - border-radius: 0px; - border-width: 0px; - height: 100%; - } - - .main-nav .navbar-header { float: none; } - - .main-nav .navbar-collapse { - border-top: 1px solid #444; - padding: 0px; - } - - .main-nav .navbar ul { float: none; } - - .main-nav .navbar li { - float: none; - font-size: 15px; - margin: 6px; - } - - .main-nav .navbar li a { - border-radius: 4px; - padding: 10px 16px; - } - - .main-nav .navbar a { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - /* If a menu item's text is too long, truncate it */ - width: 100%; - } -} \ No newline at end of file diff --git a/src/FilterLists.Web/Views/Shared/_Layout.cshtml b/src/FilterLists.Web/Views/Shared/_Layout.cshtml index c93915941..87a64cc30 100644 --- a/src/FilterLists.Web/Views/Shared/_Layout.cshtml +++ b/src/FilterLists.Web/Views/Shared/_Layout.cshtml @@ -1,5 +1,5 @@  - +