Download the PHP package leadingsystems/lscss without Composer

On this page you can find all versions of the php package leadingsystems/lscss. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lscss

Leading Systems LSCSS

What is LSCSS?

LSCSS is a SASS/SCSS framework whose goal it is to standardize the general workflow typically used in LS projects. Therefore, LSCSS takes care of the bootstrap and fontawesome integration and acts as the central lynchpin for all styling purposes that other LS components (e.g. Merconis, LSJS etc.) can rely on.

Getting started

After installing LSCSS, the LSCSS framework is located in assets/lscss.

Please note: The files in this directory must not be modified.

Instead, you create your own custom scss file, include the LSCSS framework and do all your work here.

The custom scss file should be created in files/lscss and, in order to make the purpose of the file obvious, it should be named lscss-project.scss

In Contao, the extension "leadingsystems/contao-lscss4c" has to be installed in order to be able to easily load lscss stylesheets. With this extension installed, you will find in the layout settings some new fields under the headline "LSCSS". To load the lscss stylesheet, select it as "SCSS file to load".

The lscss-project.scss file should only contain a few imports:

The file lscss.scss contains the lscss framework itself. The other imports are project specific files which technically are not mandatory but of course it makes sense to use them. Therefore, create the files "_variables.scss", "_fonts.scss" and "_custom.scss" inside the same directory where lscss-project.scss is located as well.

_variables.scss is the file in which you override variables defined in the LSCSS framework if necessary. Of course, you can also define new variables.

IMPORTANT: In order to override the default lscss or bootstrap variables, it is mandatory to import the custom variables file before importing lscss!

_fonts.scss contains the @font-face rules for loading fonts

_custom.scss contains all the project specific styles, probably divided in multiple imports.

Using LSCSS and LSJS together

If you use the LSJS framework, you have to include the LSJS stylesheets like this:

Using LSCSS and Merconis together

If you use Merconis, you have to include the Merconis stylesheets like this:

How to use Font Awesome icons

LSCSS comes with Font Awesome already on board and ready to use.

Font Awesome can be used by placing <i></i> elements with specific classes like this:

It is also possible to use mixins and icon variables like this:

How to use LSCSS icons

LSCSS also comes with its very own icon set and it is possible to very easily add own icons using IcoMoon.

Using the built-in LSCSS icons basically works like using Font Awesome but with different class names and mixin/variable names:

Any html element can become an icon by just adding the class "lsi" and then specifying exactly which icon to use with one of the named icon classes (lsi-*)

LSCSS icons can also be used in scss files. The following example shows how to apply an icon style to an html element using lsi mixins and variables in scss.

Updating the LSCSS icon set in the LSCSS core

Of course, updating the icon set in the LSCSS core isn't something regular users would do but this document should cover it anyway.

We created the icon set with icomoon.io which is a really great tool. The IcoMoon app can be used without any license requirements when using own vectors. Using icon packs provided by the IcoMoon library, however, requires the specific license requirements to be met.

Adding new icons to the icon set

In order to add new icons to the icon set it is important to begin by importing the existing icon set into the IcoMoon app. The app has an import option which allows the selection.json file to be imported. This file was automatically created during the previous export and should therefore be included in the lscss-icons folder currently existing in LSCSS. By importing this file into the app all meta data will already be imported and that's very important because only with exactly the same meta data as before we can make sure that all variable names and class names etc. used in LSCSS will still work with the updated icon set. Warning: IcoMoon allows svg files to be imported as well and some meta data also exists in svg files but important meta data is missing and therefore svg files must not be used to import the current icon set.

When the new icons have been added to the icon set in the IcoMoon app, the icon set must be exported with the "generate font" option. Before downloading the generated font there is a settings dialog which should already have all the right settings because they have also been imported with the settings.json file.

For the sake of completeness, here are the important export settings:

The exported file will be a zip file named like lscss-icons-v1.0. Extract the zip file and rename the extracted folder into "lscss-icons" (removing the version information).

Then copy the folder "lscss-icons" with all its contents to the place where the previous version of this folder lives inside LSCSS.

Using own icons on a project level without having to update the LSCSS core

Regular users don't update the icon set in the LSCSS core if they need new or modified icons but instead they would add a copy of the icon set to their project level lscss folder.

  1. Open the IcoMoon app and import the selection.json from the directory ../lscss-icons-custom or create a new icon set/selection
  2. Export the icon set using the "generate font" option
  3. Make sure to use the following export settings
    • Font Name: lscss-icons-custom
    • Class Prefix: lsi-custom-
    • Include metadata in fonts: check
    • Generate preprocessor variables for Sass
    • CSS Selector - Use a class: .lsi-custom
  4. Download and extract the icon set and copy it into your project level lscss folder (e.g. files/merconisfiles/themes/theme10/lscss/lscss-icons-custom)

If the existing icon set lscss-icons-custom has only been updated or extended, this is the end and the following points do not have to be considered.
However, if the icon set would be added new, then note the following points.

  1. Import the icon set stylesheet in lscss-project.scss with @import "lscss-icons-custom/style.scss"; directly below the import statement for the LSCSS core
  2. Open the file _variables.scss and add the following line if it does not already exist:
    • $icomoon-font-path: "/files/your-path-to/your-custom-icons-folder/fonts" !default;
      This overwrites the default path to the fonts in file your-custom-icons-folder/variables.scss
      (If a Merconis theme is used, the path looks something like this: $icomoon-font-path: "/files/merconisfiles/themes/theme10/lscss/lscss-icons-custom/fonts" !default;)

Now you can use your project specific custom icons as follows:


All versions of lscss with dependencies

PHP Build Version
Package Version
Requires contao-components/installer Version ^1.0.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package leadingsystems/lscss contains the following files

Loading the files please wait ....