Skip to content

Basic artifacts to build CSS styles based on the CLARIN house style

Notifications You must be signed in to change notification settings

twagoo/base_style

 
 

Repository files navigation

CLARIN base style

Build Status

A Bootstrap based CLARIN style implementing the CLARIN interface guidelines. Additional information about branding and styling in CLARIN can be found on the CLARIN Trac.

Using the CLARIN style

Compiled CSS output

A compiled CSS file is made available for each release. See releases within the main base_style repository. The best way to use this CSS file in your project, is to use it as is and make any overrides or other adjustments in separate CSS files local to the project. This way you can easily upgrade the CLARIN CSS when a new release is made available.

Less file

The variables.less file can be obtained form the Git repository and is also made available with each release.

Use this Less file in place of the supplied file of the same name when building CSS from Bootstrap sources (see Bootstrap's instructions for building CSS).

Make sure to use a compatible version of Bootstrap when compiling! The version for which the style was developed and tested can be found in the Travis configuration file.

As with the CSS file (see above), its best to use it as is (preferably including it build time based on the style's version number) and make any overrides or other adjustments in separate Less files local to the project. This way you can easily upgrade the CLARIN style when a new release is made available.

Using the style in a Maven project

You can use the following artifact:

<groupId>eu.clarin.style</groupId>
<artifactId>base-style</artifactId>
<version>0.1.2</version>
<!-- available classifiers: 'css-with-bootstrap', 'less-with-bootstrap' and 'less-without-bootstrap' -->
<classifier>css-with-bootstrap</classifier>

This can be used in combination with, for example, the unpack goal of the maven-dependency-plugin so that the CLARIN base style CSS or LESS is included among your resources before compiling or packaging. See the VLO project for an example.

JARs are also bundled with releases.

Note that the POM file was designed to be triggered in the CI process (i.e. by Travis). If you would like to build (one of) these JARs yourself, pass the following parameters:

-Dstyle.version=${STYLE_VERSION}
-Dbootstrap.version=${BOOTSTRAP_VERSION}
-P${PROFILE}

where ${PROFILE} should match one of the classifiers and the style and bootstrap versions should match the respective values specified in .travis.yml

To deploy to Nexus, you can use the maven-deploy script. This requires the STYLE_VERSION environment variable to be set.

Using the style in a drupal website

See the www-clarin-eu_src project. Dependency of alpine-httpd-drupal.

Making changes to the CLARIN style

  1. Edit the Less file(s)
  • Make a branch or fork (please don't commit anything not ready for release to master!) of the base_style repository.
  • Make any desired changes to the variables.less file or add new style code as required.
  1. Check the results
  1. Make or request a release
  • IMPORTANT: increase the version number in .travis.yml
  • Merge into 'master' or make a pull request.
  • Make a tag or ask someone with the right permissions. This will trigger a Travis job, which will result in a deployment of the artifacts into a release.

About

Basic artifacts to build CSS styles based on the CLARIN house style

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 64.1%
  • CSS 32.4%
  • Shell 3.5%