25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

WebAdmin: Improve CSS of welcome page, docs links, anchor element

This commit is contained in:
Badlop 2024-06-24 18:36:07 +02:00
parent b85cd9a487
commit ce348596b7
3 changed files with 18 additions and 10 deletions

View File

@ -115,7 +115,7 @@
%% h1 with a Guide Link %% h1 with a Guide Link
-define(H1GLraw(Name, Ref, Title), -define(H1GLraw(Name, Ref, Title),
[?XC(<<"h1">>, Name), ?GL(Ref, Title), ?BR]). [?XC(<<"h1">>, Name), ?GL(Ref, Title), ?BR, ?BR]).
-define(H1GL(Name, RefConf, Title), -define(H1GL(Name, RefConf, Title),
?H1GLraw(Name, <<"admin/configuration/", RefConf/binary>>, Title)). ?H1GLraw(Name, <<"admin/configuration/", RefConf/binary>>, Title)).
@ -123,4 +123,4 @@
?XAE(<<"div">>, [{<<"class">>, <<"anchorlink">>}], ?XAE(<<"div">>, [{<<"class">>, <<"anchorlink">>}],
[?XAE(<<"a">>, [?XAE(<<"a">>,
[{<<"href">>, <<"#", Ref/binary>>}], [{<<"href">>, <<"#", Ref/binary>>}],
[?C(<<"<=">>)])])). [?C(unicode:characters_to_binary(""))])])).

View File

@ -131,6 +131,12 @@ ul li #navhead a, ul li #navheadsub a, ul li #navheadsubsub a {
background: #424a55; background: #424a55;
color: #fff; color: #fff;
} }
#welcome {
padding: 2em;
border-top: 0.2em solid #cae7e4;
border-bottom: 0.2em solid #cae7e4;
background-color: #f4f9f9;
}
#lastactivity li { #lastactivity li {
padding: 2px; padding: 2px;
margin-bottom: -1px; margin-bottom: -1px;
@ -248,6 +254,7 @@ p[dir=ltr] a {
background: #3eaffa; background: #3eaffa;
font-size: 0.75em; font-size: 0.75em;
color: #fff; color: #fff;
border-radius: 2px;
} }
table { table {
margin-top: 1em; margin-top: 1em;
@ -296,9 +303,11 @@ details > summary {
cursor: pointer; cursor: pointer;
list-style: none; list-style: none;
padding: 8px; padding: 8px;
border-radius: 4px;
} }
details > pre, details > p { details > pre, details > p {
background-color: #e6f1f0; background-color: #f2f8f7;
border-bottom: 0.2em solid #dbeceb;
margin: 0; margin: 0;
padding: 10px; padding: 10px;
} }

View File

@ -437,12 +437,11 @@ process_admin(global, #request{path = [], lang = Lang} = Request, AJID) ->
?XAE(<<"p">>, [{<<"align">>, <<"center">>}], ?XAE(<<"p">>, [{<<"align">>, <<"center">>}],
[?XA(<<"img">>, [{<<"src">>, <<"logo.png">>}, [?XA(<<"img">>, [{<<"src">>, <<"logo.png">>},
{<<"style">>, <<"border-radius:10px; background:#49cbc1; padding: 1.1em;">>}]) {<<"style">>, <<"border-radius:10px; background:#49cbc1; padding: 1.1em;">>}])
]), ])
?BR, ] ++ Title ++ [
?X(<<"hr">>)] ++ Title ++ ?XAE(<<"blockquote">>,
[?XE(<<"blockquote">>, [{<<"id">>, <<"welcome">>}],
[ [?XC(<<"p">>, <<"Welcome to ejabberd's WebAdmin!">>),
?XC(<<"p">>, <<"Welcome to ejabberd's WebAdmin!">>),
?XC(<<"p">>, <<"Browse the menu to navigate your XMPP virtual hosts, " ?XC(<<"p">>, <<"Browse the menu to navigate your XMPP virtual hosts, "
"Erlang nodes, and other global server pages...">>), "Erlang nodes, and other global server pages...">>),
?XC(<<"p">>, <<"Some pages have a link in the top right corner " ?XC(<<"p">>, <<"Some pages have a link in the top right corner "
@ -460,7 +459,7 @@ process_admin(global, #request{path = [], lang = Lang} = Request, AJID) ->
?XC(<<"p">>, <<"For example, this is the 'stats' command, " ?XC(<<"p">>, <<"For example, this is the 'stats' command, "
"it accepts an argument and returns an integer:">>), "it accepts an argument and returns an integer:">>),
make_command(stats, Request)]), make_command(stats, Request)]),
?X(<<"hr">>), ?BR], ?BR],
make_xhtml(Disclaimer ++ WelcomeText ++ make_xhtml(Disclaimer ++ WelcomeText ++
[?XE(<<"ul">>, [?XE(<<"ul">>,
[?LI([?ACT(MIU, MIN)]) [?LI([?ACT(MIU, MIN)])