From b097acafab77caa54dd6f37d6a3ddaa659d71c01 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Sun, 28 Jul 2024 15:46:08 +0100 Subject: [PATCH] yet more adjustment to header button spacing --- .../default/public/css/styles.css/50body | 12 ++- .../templates/partials/_header.html.ep | 83 +++++++++++++++---- 2 files changed, 73 insertions(+), 22 deletions(-) diff --git a/root/etc/e-smith/templates/usr/share/smanager/themes/default/public/css/styles.css/50body b/root/etc/e-smith/templates/usr/share/smanager/themes/default/public/css/styles.css/50body index 610121e..6f31159 100644 --- a/root/etc/e-smith/templates/usr/share/smanager/themes/default/public/css/styles.css/50body +++ b/root/etc/e-smith/templates/usr/share/smanager/themes/default/public/css/styles.css/50body @@ -1,5 +1,4 @@ -{ - $OUT = <<'EOF'; +/* DO NOT MODIFY THIS FILE! It is updated automatically */ /* smeserver_manager2 */ @@ -234,7 +233,7 @@ a.menu-title { width: 100%; } #h2e11 { - width: 70%; + width: 50%; float: left; } #h2e12 { @@ -257,9 +256,9 @@ a.menu-title { width: 70%; } -#h2e22,#h2e23 { +#h2e22,#h2e23,#h2e12 { float: left; - width: 10%; + width: 14em; text-align: center; } @@ -274,5 +273,4 @@ a.menu-title { } /*end*/ -EOF -} + diff --git a/root/usr/share/smanager/themes/default/templates/partials/_header.html.ep b/root/usr/share/smanager/themes/default/templates/partials/_header.html.ep index a1fc1ea..0064f15 100644 --- a/root/usr/share/smanager/themes/default/templates/partials/_header.html.ep +++ b/root/usr/share/smanager/themes/default/templates/partials/_header.html.ep @@ -29,7 +29,7 @@ #legacy-button button { background-color: #98d36e; /* Button background color */ - font-weight: bold; /* Bold text for the button */ + font-weight: lighter; /* Lighter text for the button */ color: #063; /* Button text color */ padding: 5px 10px; /* Padding for the button */ border: none; /* Remove default button border */ @@ -41,35 +41,88 @@ background-color: #82c961; /* Change color on hover */ } +.infobar { + display: flex; /* Use flexbox for alignment */ + justify-content: space-between; /* Space between child elements */ + align-items: center; /* Center items vertically */ + padding: 10px; /* Adjust padding as desired */ +} + +#h2e21 { + flex: 1; /* Allow the first div to take available space on the left */ +} + +#h2e22 { + display: flex; /* Make this div a flex container */ + justify-content: center; /* Center the help button */ + align-items: center; /* Center vertically */ + flex: none; /* Prevent this div from growing */ + position: relative; /* Relative position for centering */ + width: 100px; /* Set a width for the help button container */ +} + +#h2e23 { + margin-left: auto; /* Push the third div to the right */ +} + +.login-button { + background-color: #98d36e; /* Button background color */ + font-weight: bold; /* Bold text */ + xxcolor: #ffffff; /* Button text color */ + padding: 8px 12px; /* Adjust padding for button height */ + border: none; /* Remove default border */ + border-radius: 4px; /* Rounded corners */ + cursor: pointer; /* Change cursor on hover */ +} + +.login-button:hover { + background-color: #82c961; /* Change color on hover */ +} + +#help-button { + text-decoration: none; /* Remove underline from link */ + font-size: 20px; /* Adjust font size as needed */ + padding: 8px 12px; /* Add padding to the help link */ + background-color: #98d36e; /* Background for visibility */ + border-radius: 4px; /* Rounded corners */ + color: #000; /* Button text color */ +} + +#help-button:hover { + background-color: #82c961; /* Change background on hover */ +}
SME Server -
+
+ +
+ +
+ +
+ % if ( not defined $c->session->{username} ) { + + % } else { + + % } +
-
+
- <%= session 'SystemName' %>@<%= session 'DomainName' %> -
-
-    ?     -
-
- % if ( not defined $c->session->{username} ) { - Login  - % } else { - <%= $c->session->{username} %> Logout  - % } -
+ <%= session 'SystemName' %>@<%= session 'DomainName' %>
+ +