From dd6c684fe680645ddd1d0cd3dc7a02621e92f3ba Mon Sep 17 00:00:00 2001 From: astoria Date: Tue, 1 Nov 2022 14:38:40 -0500 Subject: [PATCH] Menu changes, better mobile-menu --- public/css/default.css | 10 +++++----- views/asidemenu.erb | 9 +-------- views/menu.erb | 9 +++++++++ views/mobilemenu.erb | 9 ++------- 4 files changed, 17 insertions(+), 20 deletions(-) create mode 100644 views/menu.erb diff --git a/public/css/default.css b/public/css/default.css index dfabb0a..51ddafd 100755 --- a/public/css/default.css +++ b/public/css/default.css @@ -62,7 +62,7 @@ input[type="submit" i] { font-size: 1.5em; } -.aside, .article, .section, .mobilemenu, .banner { +.aside, .article, .section, .banner { opacity: 0.9; transition: 0.3s; } @@ -101,14 +101,14 @@ input[type="submit" i] { border: none; } -.aside, .article, .section, .mobilemenu { +.aside, .article, .section { background: var(--bg-col); padding: 10px; border: 1px solid var(--main-col); box-shadow: 3px 3px 2px var(--main-col); } -.aside:hover, .article:hover, .section:hover, .mobilemenu:hover { +.aside:hover, .article:hover, .section:hover { opacity: 1; box-shadow: 6px 6px 4px var(--main-col); } @@ -217,8 +217,8 @@ input[type="submit" i] { .mobilemenu { width: 250px; overflow-x: hidden; - padding-right: 25px; - margin-bottom: 80px; + margin-right: auto; + margin-left: auto; } .mobilemenu > ul { diff --git a/views/asidemenu.erb b/views/asidemenu.erb index 356ca56..89d1128 100644 --- a/views/asidemenu.erb +++ b/views/asidemenu.erb @@ -2,12 +2,5 @@ Navigation
- <%= erb :asideImage %> - <%= erb :asideFolderBox %> - <%= erb :asideListButtons %> -
- Git Server -
- <% time = Time.now.getlocal('+01:00') %> -
@<%= ((time.sec + ( time.min * 60 ) + (time.hour * 60 * 60 )) / 86.4).floor %>
+ <%= erb :menu %>
\ No newline at end of file diff --git a/views/menu.erb b/views/menu.erb new file mode 100644 index 0000000..1930c2a --- /dev/null +++ b/views/menu.erb @@ -0,0 +1,9 @@ +<%= erb :asideImage %> +<%= erb :asideFolderBox %> +<%= erb :asideListButtons %> +
+ Git Server +
+<% time = Time.now.getlocal('+01:00') %> +
@<%= ((time.sec + ( time.min * 60 ) + (time.hour * 60 * 60 )) / 86.4).floor %> +
\ No newline at end of file diff --git a/views/mobilemenu.erb b/views/mobilemenu.erb index f78e5a6..ec528f2 100644 --- a/views/mobilemenu.erb +++ b/views/mobilemenu.erb @@ -9,12 +9,7 @@ <%= erb :headerBoilerplate %> - <%= erb :asideImage %> - <%= erb :asideFolderBox %> - <%= erb :asideListButtons %> -
- Git Server +
+ <%= erb :menu %>
- <% time = Time.now.getlocal('+01:00') %> -
@<%= ((time.sec + ( time.min * 60 ) + (time.hour * 60 * 60 )) / 86.4).floor %>
\ No newline at end of file