Skip to content
Snippets Groups Projects
Verified Commit ded8b5de authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Styling default theme

parent d9075c38
No related branches found
No related tags found
1 merge request!36merge f-boot-tour to dev
...@@ -52,9 +52,9 @@ LIBS_SUBDIRS = $(addprefix $(LIBS_DIR)/, js css fonts) ...@@ -52,9 +52,9 @@ LIBS_SUBDIRS = $(addprefix $(LIBS_DIR)/, js css fonts)
ALL: install ALL: install
install: clean-ignore-zips install-sss cp-src cp-ext cp-conf $(addprefix $(PUBLIC_DIR)/, $(LIBS)) build_properties merge_xsl merge_js install: clean-ignore-zips install-sss cp-src cp-ext cp-conf $(addprefix $(PUBLIC_DIR)/, $(LIBS)) merge_js build_properties merge_xsl
test: clean-ignore-zips install-sss cp-src cp-ext cp-ext-test cp-conf $(addprefix $(PUBLIC_DIR)/, $(TEST_LIBS)) build_properties merge_xsl merge_js test: clean-ignore-zips install-sss cp-src cp-ext cp-ext-test cp-conf $(addprefix $(PUBLIC_DIR)/, $(TEST_LIBS)) merge_js build_properties merge_xsl
@for f in $(shell find $(TEST_EXT_DIR) -type f -iname *.js) ; do \ @for f in $(shell find $(TEST_EXT_DIR) -type f -iname *.js) ; do \
sed -i "/EXTENSIONS/a \<script src=\"$${f#$(TEST_EXT_DIR)/}\" ></script>" $(PUBLIC_DIR)/index.html ; \ sed -i "/EXTENSIONS/a \<script src=\"$${f#$(TEST_EXT_DIR)/}\" ></script>" $(PUBLIC_DIR)/index.html ; \
echo include $$f; \ echo include $$f; \
......
...@@ -35,6 +35,25 @@ ...@@ -35,6 +35,25 @@
CORE_MODULES=$@ CORE_MODULES=$@
SOURCE_DIR=public/js/ SOURCE_DIR=public/js/
TARGET=public/webcaosdb.dist.js TARGET=public/webcaosdb.dist.js
JSHEADER_TARGET=public/xsl/jsheader.xsl
_create_jsheader () {
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!-- THIS FILE IS AUTO-GENERATED BY THE merge_js.sh SCRIPT -->
<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">
<xsl:output method=\"html\"/>
<xsl:template name=\"caosdb-head-js\">
<script>
window.sessionStorage.caosdbBasePath = \"<xsl:value-of select=\"\$basepath\"/>\";
</script>
<xsl:element name=\"script\">
<xsl:attribute name=\"src\">
<xsl:value-of select=\"concat(\$basepath,'webinterface/\${BUILD_NUMBER}/webcaosdb.dist.js')\"/>
</xsl:attribute>
</xsl:element>
</xsl:template>
</xsl:stylesheet>" > ${JSHEADER_TARGET}
}
function _merge () { function _merge () {
_SOURCE=$2 _SOURCE=$2
...@@ -68,3 +87,4 @@ for _SOURCE in $(find ${SOURCE_DIR} -ipath "${SOURCE_DIR}modules/*.js") ; do ...@@ -68,3 +87,4 @@ for _SOURCE in $(find ${SOURCE_DIR} -ipath "${SOURCE_DIR}modules/*.js") ; do
_merge "extension" ${_SOURCE} $TARGET _merge "extension" ${_SOURCE} $TARGET
done done
_create_jsheader
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
SOURCE_DIR=public/ SOURCE_DIR=public/
MERGE="xsl/footer.xsl xsl/filesystem.xsl xsl/entity.xsl xsl/query.xsl xsl/messages.xsl xsl/navbar.xsl xsl/main.xsl xsl/welcome.xsl xsl/common.xsl" MERGE="xsl/jsheader.xsl xsl/footer.xsl xsl/filesystem.xsl xsl/entity.xsl xsl/query.xsl xsl/messages.xsl xsl/navbar.xsl xsl/main.xsl xsl/welcome.xsl xsl/common.xsl"
TARGET=public/webcaosdb.xsl TARGET=public/webcaosdb.xsl
......
...@@ -31,7 +31,7 @@ body { ...@@ -31,7 +31,7 @@ body {
} }
.background { .background {
background-color: #1a4548; background-color: white;
min-height: 60vh; min-height: 60vh;
} }
...@@ -490,7 +490,10 @@ h5 { ...@@ -490,7 +490,10 @@ h5 {
} }
.caosdb-logo { .caosdb-logo {
margin-top: auto;
margin-bottom: auto;
margin-right: 8px; margin-right: 8px;
height: 30px;
} }
.caosdb-comment-action-item { .caosdb-comment-action-item {
...@@ -518,6 +521,10 @@ h5 { ...@@ -518,6 +521,10 @@ h5 {
padding-right: 1rem; padding-right: 1rem;
padding-top: 0.3ex; padding-top: 0.3ex;
padding-bottom: 0.3ex; padding-bottom: 0.3ex;
border-radius: none;
border-left: none;
border-right: none;
} }
@keyframes appear { @keyframes appear {
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" /> <xsl:output method="html" />
<xsl:include href="xsl/jsheader.xsl" />
<xsl:include href="xsl/main.xsl" /> <xsl:include href="xsl/main.xsl" />
<xsl:include href="xsl/navbar.xsl" /> <xsl:include href="xsl/navbar.xsl" />
<xsl:include href="xsl/messages.xsl" /> <xsl:include href="xsl/messages.xsl" />
...@@ -45,10 +46,6 @@ ...@@ -45,10 +46,6 @@
<h3>Tour</h3> <h3>Tour</h3>
</div> </div>
<div class="caosdb-f-tour-toc-body"></div> <div class="caosdb-f-tour-toc-body"></div>
<!--<button class="btn btn-light caosdb-f-leave-tour">Leave Tour</button>-->
<!--<div class="caosdb-v-tour-footer">-->
<!--<button class="caosdb-f-tour-toc-toggle btn btn-light">Hide</button>-->
<!--</div>-->
</div> </div>
</xsl:template> </xsl:template>
......
...@@ -93,16 +93,6 @@ ...@@ -93,16 +93,6 @@
</xsl:element> </xsl:element>
<!--CSS_EXTENSIONS--> <!--CSS_EXTENSIONS-->
</xsl:template> </xsl:template>
<xsl:template name="caosdb-head-js">
<script>
window.sessionStorage.caosdbBasePath = "<xsl:value-of select="$basepath"/>";
</script>
<xsl:element name="script">
<xsl:attribute name="src">
<xsl:value-of select="concat($basepath,'webinterface/${BUILD_NUMBER}/webcaosdb.dist.js')"/>
</xsl:attribute>
</xsl:element>
</xsl:template>
<xsl:template name="caosdb-data-container"> <xsl:template name="caosdb-data-container">
<div class="container d-flex flex-column-reverse flex-lg-row caosdb-f-main"> <div class="container d-flex flex-column-reverse flex-lg-row caosdb-f-main">
<div class="flex-grow-1 caosdb-f-main-entities"> <div class="flex-grow-1 caosdb-f-main-entities">
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/> <xsl:output method="html"/>
<xsl:template name="welcome"> <xsl:template name="welcome">
<div class="caosdb-v-welcome-panel bg-light"> <div class="caosdb-v-welcome-panel bg-light container">
<h1>Welcome</h1> <h1>Welcome</h1>
<p>This is CaosDB.</p> <p>This is CaosDB.</p>
<p>This is the default welcome message. If you are an administrator you can override it. Just copy <code>src/core/xsl/welcome.xsl</code> to <code>src/ext/xsl/welcome.xsl</code> and change this content. Then run <code>make</code> again in CaosdDB's web interface's root directory.</p> <p>This is the default welcome message. If you are an administrator you can override it. Just copy <code>src/core/xsl/welcome.xsl</code> to <code>src/ext/xsl/welcome.xsl</code> and change this content. Then run <code>make</code> again in CaosdDB's web interface's root directory.</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment