From 15f35b7add0cfaf06fe4fbdbccffd3b1978acd4c Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 7 Dec 2020 20:08:53 +0100 Subject: [PATCH] css adjustments --- Client/WebServer/css/credits.css | 21 +++++++++++++++++++ Client/WebServer/css/docs.css | 9 ++++++++ Client/WebServer/css/main.css | 20 ------------------ Client/WebServer/css/tutorial.css | 12 +++++------ Client/WebServer/index.html | 8 ++++--- Client/httpInterface.js | 12 +++++++++++ .../UI/Spaces/Tutorial-Space/TutorialSpace.js | 2 +- 7 files changed, 54 insertions(+), 30 deletions(-) create mode 100644 Client/WebServer/css/credits.css create mode 100644 Client/WebServer/css/docs.css diff --git a/Client/WebServer/css/credits.css b/Client/WebServer/css/credits.css new file mode 100644 index 000000000..2dca71ccc --- /dev/null +++ b/Client/WebServer/css/credits.css @@ -0,0 +1,21 @@ +.credits { + width: 100%; + margin: auto; + margin-bottom: 50; + text-align: center; + position:absolute; + bottom:0; + } + + .credits p { + font-family: 'Saira Condensed'; + font-size: 140%; + color: whitesmoke; + padding: 0 100; + } + + .credits-red { + color: #e3493c; + font-weight: 700; + } + \ No newline at end of file diff --git a/Client/WebServer/css/docs.css b/Client/WebServer/css/docs.css new file mode 100644 index 000000000..a76036070 --- /dev/null +++ b/Client/WebServer/css/docs.css @@ -0,0 +1,9 @@ + + .docs-page { + padding: 15px; + margin-bottom: 20px; + border: 2px solid; + border-color: #1b998b; + border-radius: 8px; + background-color: #fdfdfd; + } \ No newline at end of file diff --git a/Client/WebServer/css/main.css b/Client/WebServer/css/main.css index 970f3871e..d170be6e4 100644 --- a/Client/WebServer/css/main.css +++ b/Client/WebServer/css/main.css @@ -22,23 +22,3 @@ font-style: normal; } -.credits { - width: 100%; - margin: auto; - margin-bottom: 50; - text-align: center; - position:absolute; - bottom:0; -} - -.credits p { - font-family: 'Saira Condensed'; - font-size: 140%; - color: whitesmoke; - padding: 0 100; -} - -.red { - color: #e3493c; - font-weight: 700; -} diff --git a/Client/WebServer/css/tutorial.css b/Client/WebServer/css/tutorial.css index 636e8adcf..eb388876a 100644 --- a/Client/WebServer/css/tutorial.css +++ b/Client/WebServer/css/tutorial.css @@ -239,14 +239,14 @@ } /* Tooltip container */ - .tooltip { + .tutorial-tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; /* If you want dots under the hoverable text */ } /* Tooltip text */ - .tooltip .tooltiptext { + .tutorial-tooltip .tooltiptext { visibility: hidden; width: 240px; background-color: #0295aa; @@ -258,7 +258,7 @@ padding: 15px; border-radius: 6px; - /* Position the tooltip text */ + /* Position the tutorial-tooltip text */ position: absolute; z-index: 1; bottom: 125%; @@ -266,13 +266,13 @@ margin-left: -120px; - /* Fade in tooltip */ + /* Fade in tutorial-tooltip */ opacity: 0; transition: opacity 0.3s; } /* Tooltip arrow */ - .tooltip .tooltiptext::after { + .tutorial-tooltip .tooltiptext::after { content: ""; position: absolute; top: 100%; @@ -284,7 +284,7 @@ } /* Show the tooltip text when you mouse over the tooltip container */ - .tooltip:hover .tooltiptext { + .tutorial-tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } diff --git a/Client/WebServer/index.html b/Client/WebServer/index.html index 2580ea4ba..91c2cf766 100644 --- a/Client/WebServer/index.html +++ b/Client/WebServer/index.html @@ -5,7 +5,9 @@ Superalgos + + @@ -50,13 +52,13 @@ style="overflow:hidden; background: url(Images/superalgos-platform.jpg); background-size: cover;" onresize="onResize()">
-

Superalgos is free and open-source, and is constantly improving thanks to the involvement of contributors:

+

Superalgos is free and open-source, and is constantly improving thanks to the involvement of contributors:

Luis Fernando Molina, Julian Molina, Andreja Cobeljic, Matías Benitez, Ira Miller, Eduardo Remis, Jeff Braun, rico4dev, 9808us, Barry Low, Nikola Bjelogrlic, Hirajin Koizuko, Francisco J. Santillán, Viktoria B., Guillermo V., Daniel J., Javier A., Gustavo J., Romina GS, Pedro P., Thais M., Andrey M., Loui M., Natalia M., Bashar A., Carlos V., Diego M., Sebastian E., Bogdan P., Marko V., Igor S., Niksa K., Rodrigo M., Nicanor M., Alejandro P., Mateo H., Lan T., Leon A., Uroš R., Filip M., Vladimir J. and Pavle B.

-

You too can help grow and improve Superalgos. Become a contributor!

-

If you like the project, please give it a star and fork it on Github. This helps developers find it on the search!

+

You too can help grow and improve Superalgos. Become a contributor!

+

If you like the project, please give it a star and fork it on Github. This helps developers find it on the search!

diff --git a/Client/httpInterface.js b/Client/httpInterface.js index fac211583..51fb54994 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -768,6 +768,18 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE } break + case 'credits.css': + { + sendStyleSheet('credits.css') + } + break + + case 'docs.css': + { + sendStyleSheet('docs.css') + } + break + case 'font-awasome.css': { sendStyleSheet('font-awasome.css') diff --git a/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js b/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js index 719526435..bce1107ac 100644 --- a/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js +++ b/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js @@ -1183,7 +1183,7 @@ function newSuperalgosTutorialSpace() { tutorialDiv.innerHTML = html function addToolTips(text) { - const TOOL_TIP_HTML = '
NODE_TYPENODE_DEFINITION
' + const TOOL_TIP_HTML = '
NODE_TYPENODE_DEFINITION
' let resultingText = '' let splittedText = text.split('->')