Commit c3c48281 authored by Pascal GARCIA's avatar Pascal GARCIA Committed by GitHub
Browse files

refactor(web-pages): move bonita-theme to bonita_web_pages (#525)

parent da1c6c17
......@@ -262,7 +262,7 @@
<overWrite>true</overWrite>
</artifactItem>
<artifactItem>
<groupId>org.bonitasoft.distrib</groupId>
<groupId>org.bonitasoft.web.page</groupId>
<artifactId>bonita-theme</artifactId>
<version>${project.version}</version>
<type>zip</type>
......
......@@ -9,7 +9,6 @@
<modules>
<module>bonita-runtime-bom</module>
<module>resources</module>
<module>bonita-war</module>
<module>tomcat-resources</module>
<module>tomcat</module>
......
target
node_modules
node
\ No newline at end of file
<assembly>
<id>page-package</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.basedir}/dist</directory>
<outputDirectory>resources</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}</directory>
<outputDirectory/>
<includes>
<include>page.properties</include>
</includes>
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
{
"name": "bonita-theme",
"version": "0.0.1",
"description": "Application theme based on Bonita theme.",
"license": "GPL-2.0-or-later",
"scripts": {
"build": "node-sass --precision 8 --output-style compressed --omit-source-map-url true --include-path ./node_modules/bootstrap-sass/assets/stylesheets/ src/scss/main.scss target/theme.noprefix.css && postcss target/theme.noprefix.css --no-map --use autoprefixer -b \"last 2 versions\" -o dist/theme.css"
},
"devDependencies": {
"node-sass": "6.0.1",
"postcss-cli": "8.3.1",
"postcss": "8.3.6",
"autoprefixer": "10.3.1",
"bootstrap-sass": "3.4.1"
}
}
displayName=Bonita theme
name=custompage_themeBonita
description=Application theme based on Bonita theme.
contentType=theme
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.bonitasoft.distrib</groupId>
<artifactId>bonita-theme</artifactId>
<version>7.16-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<node.version>v14.17.3</node.version>
<npm.version>6.14.13</npm.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.7.5</version>
<configuration>
<installDirectory>${session.executionRootDirectory}</installDirectory>
<nodeVersion>${node.version}</nodeVersion>
<npmVersion>${npm.version}</npmVersion>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
<goal>npm</goal>
</goals>
</execution>
<execution>
<id>npm build</id>
<goals>
<goal>npm</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>page-content</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<inherited>false</inherited>
<configuration>
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>content.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>
.btn {
&.btn-primary {
&.disabled,
&[disabled],
fieldset[disabled] & {
background-color: $btn-primary-disabled-bg;
border-color: $btn-primary-disabled-border;
color: $btn-primary-disabled-color;
}
}
}
//
// Pager pagination
// --------------------------------------------------
.pager {
li {
> a,
> span {
color: $pager-color;
}
> a:hover,
> a:focus {
color: $pager-hover-color;
}
}
}
\ No newline at end of file
//Predifined variables can be found here (need to run a build first):
//${project.basedir}/node_modules/bootstrap-sass/assets/stylesheets/bootstrap/_variable.scss
//Brand colors
$brand-primary: #2c3e50;
$brand-success: #008000;
$brand-info: #033c73;
$brand-warning: #dd5600;
$brand-danger: #c71c22;
$gray-light: #999999;
$white: #ffffff;
//Text
$text-color: $brand-primary;
$headings-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
$headings-line-height: 1.2;
$state-success-text: #468847;
$state-info-text: #3a87ad;
$state-warning-text: #c09853;
$state-danger-text: #b94a48;
//Components
$padding-large-vertical: 14px;
//Input
$input-color: $text-color;
$input-height-large: 54px;
//Modals
$modal-inner-padding : 20px;
//Buttons
$btn-default-color: $text-color;
$btn-default-border: rgba(0, 0, 0, 0.1);
$btn-primary-border: $brand-primary;
$btn-success-border: $brand-success;
$btn-info-border: $brand-info;
$btn-warning-border: $brand-warning;
$btn-danger-border: $brand-danger;
$btn-primary-disabled-bg: #95a5a6;
$btn-primary-disabled-border: $btn-primary-disabled-bg;
$btn-primary-disabled-color: #ffffff;
//Navbar
$navbar-default-color: #dddddd;
$navbar-default-bg: $brand-primary;
$navbar-default-link-color: $white;
$navbar-default-brand-hover-color: $white;
$navbar-default-link-hover-color: $white;
$navbar-default-link-hover-bg: #1a242f;
$navbar-default-link-active-bg: #1a242f;
$navbar-default-link-active-color: $white;
$navbar-default-link-disabled-color: #dddddd;
$navbar-default-toggle-hover-bg: #1a242f;
$navbar-default-toggle-icon-bar-bg: $white;
$navbar-default-toggle-border-color: #1a242f;
$navbar-inverse-bg: #033c73;
$navbar-inverse-color: $white;
$navbar-inverse-link-color: $white;
$navbar-inverse-link-hover-bg: #022f5a;
$navbar-inverse-link-active-bg: #022f5a;
$navbar-inverse-link-disabled-color: #cccccc;
$navbar-inverse-toggle-border-color: #022f5a;
$navbar-inverse-toggle-hover-bg: #022f5a;
$navbar-inverse-toggle-icon-bar-bg: $white;
//Dropdown
$dropdown-link-hover-color: $white;
$dropdown-link-hover-bg: #2c3e50;
//Pagination
$pagination-color: $white;
$pagination-bg: $brand-primary;
$pagination-border: transparent;
$pagination-hover-color: $pagination-color;
$pagination-hover-bg: darken($brand-primary, 15%);
$pagination-hover-border: transparent;
$pagination-active-bg: darken($brand-primary, 15%);
$pagination-active-border: transparent;
$pagination-disabled-color: #ecf0f1;
$pagination-disabled-bg: #476481;
$pagination-disabled-border: transparent;
//Pager
$pager-color: $pagination-color;
$pager-bg: $brand-primary;
$pager-hover-color: $pagination-hover-color;
//Badge
$badge-bg: $brand-primary;
//Panel
$panel-border-color: #dddddd;
$panel-primary-border: $panel-border-color;
$panel-primary-text: #fff;
$panel-success-border: $panel-border-color;
$panel-success-text: $panel-primary-text;
$panel-info-border: $panel-border-color;
$panel-info-text: $panel-primary-text;
$panel-warning-border: $panel-border-color;
$panel-warning-text: $panel-primary-text;
$panel-danger-border: $panel-border-color;
$panel-danger-text: $panel-primary-text;
$panel-success-heading-bg: $brand-success;
$panel-info-heading-bg: $brand-info;
$panel-warning-heading-bg: $brand-warning;
$panel-danger-heading-bg: $brand-danger;
//Glyphicons fonts
$icon-font-path: "./fonts/";
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment